11.13.1 INTCON0

Interrupt Control Register 0
Name: INTCON0
Offset: 0x4D6

Bit 76543210 
 GIE/GIEHGIELIPEN  INT2EDGINT1EDGINT0EDG 
Access R/WR/WR/WR/WR/WR/W 
Reset 000111 

Bit 7 – GIE/GIEH Global Interrupt Enable

ValueNameDescription
1 IPEN = 0 Enables all masked interrupts
0 IPEN = 0 Disables all interrupts
1 IPEN = 1 Enables all unmasked high-priority interrupts: The bit also needs to be set for enabling low-priority interrupts
0 IPEN = 1 Disables all interrupts

Bit 6 – GIEL Global Low-Priority Interrupt Enable

ValueNameDescription
n IPEN = 0 Reserved, read as ‘0
1 IPEN = 1 Enables all unmasked low-priority interrupts, GIEH also needs to be set for low-priority interrupts
0 IPEN = 1 Disables all low-priority interrupts

Bit 5 – IPEN Interrupt Priority Enable

ValueDescription
1 Enable priority levels on interrupts
0 Disable priority levels on interrupts, all interrupts are treated as high-priority interrupts

Bit 2 – INT2EDG External Interrupt 2 Edge Select

ValueDescription
1 Interrupt on rising edge of the INT2 pin
0 Interrupt on falling edge of the INT2 pin

Bit 1 – INT1EDG External Interrupt 1 Edge Select

ValueDescription
1 Interrupt on rising edge of the INT1 pin
0 Interrupt on falling edge of the INT1 pin

Bit 0 – INT0EDG External Interrupt 0 Edge Select

ValueDescription
1 Interrupt on rising edge of the INT0 pin
0 Interrupt on falling edge of the INT0 pin