INTCON0

Interrupt Control Register 0
Name:
INTCON0
Address:
0x4D6
Reset:
Access:
Bit76543210
GIE/GIEHGIELIPENINT2EDGINT1EDGINT0EDG
AccessR/WR/WR/WR/WR/WR/W
Reset000111

Bit 7 – GIE/GIEH: Global Interrupt Enable

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: 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

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

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

External Interrupt 2 Edge Select

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

Bit 1 – INT1EDG: External Interrupt 1 Edge Select

External Interrupt 1 Edge Select

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

Bit 0 – INT0EDG: External Interrupt 0 Edge Select

External Interrupt 0 Edge Select

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