5.8.10 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 must ensure the
appropriate interrupt flag bits are clear prior to enabling an interrupt. This feature
allows for software polling.
Name: | INTCON |
Offset: | 0x0B + n*0x80 [n=0..63] |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
GIE | PEIE | INTEDG | |||||||
Access | R/W | R/W | R/W | ||||||
Reset | 0 | 0 | 1 |
Bit 7 – GIE Global Interrupt Enable bit
Value | Description |
---|---|
1 |
Enables all active interrupts |
0 |
Disables all interrupts |
Bit 6 – PEIE Peripheral Interrupt Enable bit
Value | Description |
---|---|
1 |
Enables all active peripheral interrupts |
0 |
Disables all peripheral interrupts |
Bit 0 – INTEDG External Interrupt Edge Select bit
Value | Description |
---|---|
1 |
Interrupt on rising edge of the INT pin |
0 |
Interrupt on falling edge of the INT pin |