Datasheet

ADE5166/ADE5169/ADE5566/ADE5569 Data Sheet
Rev. D | Page 94 of 156
Table 82. Interrupt Priority SFR (IP, Address 0xB8)
Bit Bit Address Mnemonic Description
7 0xBF PADE ADE energy measurement interrupt priority (1 = high, 0 = low).
6 0xBE PTEMP Temperature ADC interrupt priority (1 = high, 0 = low).
5 0xBD PT2 Timer 2 interrupt priority (1 = high, 0 = low).
4 0xBC PS UART serial port interrupt priority (1 = high, 0 = low).
3 0xBB PT1 Timer 1 interrupt priority (1 = high, 0 = low).
2 0xBA PX1
INT1
(External Interrupt 1) priority (1 = high, 0 = low).
1 0xB9 PT0 Timer 0 interrupt priority (1 = high, 0 = low).
0 0xB8 PX0
INT0
(External Interrupt 0) priority (1 = high, 0 = low).
Table 83. Interrupt Enable and Priority 2 SFR (IEIP2, Address 0xA9)
Bit Mnemonic Description
7 PS2 UART2 serial port interrupt priority (1 = high, 0 = low).
6 PTI RTC interrupt priority (1 = high, 0 = low).
5 ES2 Enables the UART2 serial port interrupt. Set by the user.
4 PSI SPI/I
2
C interrupt priority (1 = high, 0 = low).
3 EADE Enables the energy metering interrupt (ADE). Set by the user.
2 ETI Enables the RTC interval timer interrupt. Set by the user.
1
EPSM
Enables the PSM power supply management interrupt. Set by the user.
0 ESI Enables the SPI/I
2
C interrupt. Set by the user.
INTERRUPT PRIORITY
If two interrupts of the same priority level occur simultaneously, the polling sequence is observed as shown in Table 84.
Table 84. Priority Within Interrupt Level
Source
Priority
Description
IPSM 0 (highest) Power supply management interrupt.
IRTC 1 RTC interval timer interrupt.
IADE 2 ADE energy measurement interrupt.
WDT 3 Watchdog timer overflow interrupt.
ITEMP 4 Temperature ADC interrupt.
IE0 5 External Interrupt 0.
TF0 6 Timer/Counter 0 interrupt.
IE1 7 External Interrupt 1.
TF1 8 Timer/Counter 1 interrupt.
ISPI/I2CI 9 SPI/I
2
C interrupt.
RI/TI 10 UART serial port interrupt.
TF2/EXF2 11 Timer/Counter 2 interrupt.
RI2/TI2
12 (lowest)
UART2 serial port interrupt.