Datasheet

ADE7116/ADE7156/ADE7166/ADE7169/ADE7566/ADE7569
Rev. B | Page 94 of 152
Table 79. 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 80. Interrupt Enable and Priority 2 SFR (IEIP2, Address 0xA9)
Bit Mnemonic Description
7 Reserved
6 PTI RTC interrupt priority (1 = high, 0 = low).
5 Reserved
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 81).
Table 81. Priority Within Interrupt Level
Source Priority Description
IPSM 0 (highest) Power supply monitor interrupt.
IRTC 1 RTC interval timer interrupt.
IADE 2 ADE energy measurement interrupt.
WDT 3 Watchdog timer overflow interrupt.
ITEMP
1
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 (lowest) Timer/Counter 2 interrupt.
1
This feature is not available in the ADE7116.