INTCON0

INTCON0

Interrupt Control Register 0
  0x461 8  

INTCON0

Bit  7 6 5 4 3 2 1 0  
  GIE/GIEH GIEL IPEN     INT2EDG INT1EDG INT0EDG  
Access  R/W R/W R/W     R/W R/W R/W  
Reset  0 0 0     1 1 1  

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

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 the INT2 pin
0 Interrupt on falling edge of the INT2 pin

Bit 1 – INT1EDG: External Interrupt 1 Edge Select

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

External Interrupt 0 Edge Select

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