ABSTRACT

This chapter provides general information about exceptions and interrupts occurred and handled in the MSP432 and ARMCortex-M4 microcontrollers. The discussion is divided into several parts, which include: the exception and interrupt sources, the priority levels of different exceptions and interrupts, the interrupt vector table used to direct the processor to response and handle the accepted exceptions and interrupts, and the ISR used to process the exception and interrupt requests. The chapter covers two programming models in MSPWare Peripheral Driver Library (MSPPDL) in these discussions. It introduces both CMSIS-Core and MSPPDL API functions used to access NVIC registers to process exceptions and interrupts. The NVIC macros and NVIC API functions are supported by the CMSIS Core software package. The chapter discusses the GPIO interrupts handled by API functions provided by the MSPPDL. The peripheral GPIO is used as an example to illustrate how to generate, respond, and process interrupts coming from any GPIO port.