3.10.2.7.1.2 EICRA – External Interrupt Control Register A
Name: | EICRA |
Offset: | 0x06B |
Reset: | 0x00 |
The external interrupt control register contains control bits for interrupt sense control.
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
ISC11 | ISC10 | ISC01 | ISC00 | ||||||
Access | R | R | R | R | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit 7 – Reserved Bit
0
’.Bit 6 – Reserved Bit
0
’.Bit 5 – Reserved Bit
0
’.Bit 4 – Reserved Bit
0
’.Bit 3 – ISC11 External Interrupt 1 Sense Control Bit
ISC11 | ISC10 | Description |
---|---|---|
0 | 0 | The low level of INT1 generates an interrupt request. |
0 | 1 | Any logical change on INT1 generates an interrupt request. |
1 | 0 | The falling edge of INT1 generates an interrupt request. |
1 | 1 | The rising edge of INT1 generates an interrupt request. |
Note: When changing the
ISC11/ISC10 bits, the interrupt must be disabled by clearing its interrupt
enable bit in the EIMSK register. Otherwise, an interrupt can occur when the
bits are changed.
Bit 2 – ISC10
Bit 1 – ISC01 External Interrupt 0 Sense Control Bit
ISC01 | ISC00 | Description |
---|---|---|
0 | 0 | The low level of INT0 generates an interrupt request. |
0 | 1 | Any logical change on INT0 generates an interrupt request. |
1 | 0 | The falling edge of INT0 generates an interrupt request. |
1 | 1 | The rising edge of INT0 generates an interrupt request. |
Note: When changing the
ISC01/ISC00 bits, the interrupt must be disabled by clearing its interrupt
enable bit in the EIMSK register. Otherwise, an interrupt can occur when the
bits are changed.