Using MPLAB® Harmony v2 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 Application Programming Interfaces (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 PIC® 32 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 >
© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
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.