15.13.1 INTCON
Important: Interrupt flag bits are set when an interrupt condition occurs, regardless of the state of its corresponding enable bit or the global enable bit. User software should ensure the appropriate interrupt flag bits are clear prior to enabling an interrupt. This feature allows for software polling.
Name: | INTCON |
Address: | 0xFF2 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
GIE/GIEH | PEIE/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 bit
Bit 6 – PEIE/GIEL Peripheral Interrupt Enable bit
Bit 5 – IPEN Interrupt Priority Enable bit
Value | Description |
---|---|
1 | Enable priority levels on interrupts |
0 | Disable priority levels on interrupts |
Bits 0, 1, 2 – INTxEDG External Interrupt ‘x’ Edge Select bit
Value | Description |
---|---|
1 | Interrupt on rising edge of INTx pin |
0 | Interrupt on falling edge of INTx pin |