Using Harmony to Control Interrupts
The MPLAB® Harmony System Service can be used to control the following types of interrupts:
- System Level Interrupts
- Individual peripheral interrupts
- Interrupts generated from an external input pin ( INTx)
System-Level Interrupts
The APIs provided in sys-int-pic.c allow the application program to control system interrupt properties. System level interrupt functions are typically called during an application start-up, or initialization process. System interrupt tasks handled by the interrupt System Services include:
- Initializing the interrupt system
- Enabling and Disabling global interrupts
- Assigning user-written Service Routines to Interrupt Vectors
- Assigning shadow register sets to interrupt priorities.
Individual Peripheral Interrupts
Interrupt System Services provide the ability to modify the properties for "interrupt capable" peripherals. The APIs provide the ability to:
- Enable / Disable individual peripheral interrupts.
- Set interrupt priority, and sub-priority levels.
- Clear / Set an Interrupt Request Flag.
External Interrupts with an INTx pin
The PIC32 MCU can have several pins configured to generate interrupts. Interrupt System Services allows the programmer to set the parameters controlling these pins.

