Using Harmony to Control Interrupts

The MPLAB® Harmony System Service can be used to control the following types of interrupts:

  1. System Level Interrupts
  2. Individual peripheral interrupts
  3. 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.
System-Level Interrupts
Learn more >

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.
Individual Peripheral Interrupts
Learn more >

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.

External Interrupts
Learn more >

 Learn More

Entire Interrupt System Services Interface
Learn more >
Entire Interrupt PLIB Interface
Learn more >
© 2016 Microchip Technology, Inc.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.