10.5.2 Trap Vector Details

Note: Any unimplemented or unused vector locations in the IVT should be programmed with the address of a default interrupt handler routine that contains a RESET instruction.
Table 10-2. Trap Vector Details
Vector SourceMPLAB® XC-DSC Trap ISR NameIRQ #VECNUMIVT OffsetInterrupt Bit Location
FlagEnablePriority
Bus error - CPU X data bus error_BusErrorTrapN/A20x8INTCON3[0]—14
Bus error - CPU Y data bus error_BusErrorTrapN/A20x8INTCON3[1]—14
Bus error - DMA bus error_BusErrorTrapN/A20x8INTCON3[2]—14
Bus error - CPU instruction data bus error_BusErrorTrapN/A20x8INTCON3[3]—14
Illegal instruction_IllegalInstructionTrapN/A30xCINTCON1[2]—13
Address error_AddressErrorTrapN/A40x10INTCON1[3]—12
Stack error_StackErrorTrapN/A50x14INTCON1[4]—11
Math error - Divide by Zero_MathErrorTrapN/A60x18INTCON4[0]—10
Math error - Accumulator Shift error_MathErrorTrapN/A60x18INTCON4[1]—10
Math error - Accumulator B Catastrophic Overflow_MathErrorTrapN/A60x18INTCON4[2]INTCON4[19]10
Math error - Accumulator A Catastrophic Overflow_MathErrorTrapN/A60x18INTCON4[3]INTCON4[19]10
Math error - Accumulator B Overflow_MathErrorTrapN/A60x18INTCON4[4]INTCON4[20]10
Math error - Accumulator A Overflow_MathErrorTrapN/A60x18INTCON4[5]INTCON4[21]10
General error - DMT event trap_GeneralTrapN/A70x1CINTCON5[0]—9
General error - WDT Run event trap_GeneralTrapN/A70x1CINTCON5[1]—9
General error - XRAM PWB DED error_GeneralTrapN/A70x1CINTCON5[2]—9
General error - YRAM PWB DED error_GeneralTrapN/A70x1CINTCON5[3]—9
General error - soft trap_GeneralTrapN/A70x1CINTCON5[31]—9