Interrupts in the MPLAB® XC32/32++ Compiler

Last modified by Microchip on 2023/11/09 09:12

Interrupt Service Routines

To use the macros that identify a function as an interrupt service routine, you must include the #include <sys/attribs.h> file.​

extern "C"
{
void _ISR(vector, IPLn[SRS|SOFT|AUTO]) functionName();
}
ParameterDescriptionPossible Values
vectorPIC32 Interrupt Vector Numbersee here
IPLn[SRS|SOFT|AUTO]Interrupt Priority Level and Context Save Methodn is a value from 0 to 7
SRS = X
SOFT = Y
AUTO = Z