ADE5166_08 AD [Analog Devices], ADE5166_08 Datasheet - Page 89
![no-image](/images/no-image-200.jpg)
ADE5166_08
Manufacturer Part Number
ADE5166_08
Description
Single-Phase Energy Measurement IC with 8052 MCU, RTC, and LCD Driver
Manufacturer
AD [Analog Devices]
Datasheet
1.ADE5166_08.pdf
(148 pages)
- Current page: 89 of 148
- Download datasheet (3Mb)
INTERRUPT VECTORS
When an interrupt occurs, the program counter is pushed onto the
stack, and the corresponding interrupt vector address is loaded
into the program counter. When the interrupt service routine is
complete, the program counter is popped off the stack by a RETI
instruction. This allows program execution to resume from where
it was interrupted. The interrupt vector addresses are shown in
Table 86.
Table 86. Interrupt Vector Addresses
Source
IE0
TF0
IE1
TF1
RI + TI
TF2 + EXF2
ITEMP (Temperature ADC)
ISPI/I2CI
IPSM (Power Supply)
IADE (Energy Measurement DSP)
IRTC (RTC Interval Timer)
WDT (Watchdog Timer)
RI2 + TI2
INTERRUPT LATENCY
The 8052 architecture requires that at least one instruction
execute between interrupts. To ensure this, the 8052 MCU
core hardware prevents the program counter from jumping to
an ISR immediately after completing a RETI instruction or an
access of the IP and IE SFRs.
The shortest interrupt latency is 3.25 instruction cycles, 800 ns
with a clock of 4.096 MHz. The longest interrupt latency for
a high priority interrupt results when a pending interrupt is
Vector Address
0x0003
0x000B
0x0013
0x001B
0x0023
0x002B
0x0033
0x003B
0x0043
0x0053
0x0063
0x004B
0x005B
Rev. 0 | Page 89 of 148
generated during a low priority interrupt RETI, followed by
a multiply instruction. This results in a maximum interrupt
latency of 16.25 instruction cycles, 4 μs with a clock of 4.096 MHz.
CONTEXT SAVING
When the 8052 vectors to an interrupt, only the program counter
is saved on the stack. Therefore, the interrupt service routine must
be written to ensure that registers used in the main program are
restored to their pre-interrupt state. Common SFRs that can be
modified in the ISR are the accumulator register and the PSW
register. Any general-purpose registers that are used as scratch
pads in the ISR should also be restored before exiting the
interrupt. The following example 8052 code shows how to
restore some commonly used registers:
GeneralISR:
; save the current Accumulator value
; save the current status and register bank
selection
; service interrupt
…
; restore the status and register bank
selection
; restore the accumulator
PUSH
PUSH
POP
POP
RETI
ACC
PSW
PSW
ACC
ADE5166/ADE5169
Related parts for ADE5166_08
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![AD-DAC-FMC-ADP](/images/manufacturer_photos/0/0/57/analog_devices_inc_tmb.jpg)
Part Number:
Description:
DPG2 EVAL ADAPTER FOR XILINX BOARDS
Manufacturer:
Analog Devices Inc
![AD-MSDPDX1850-EVB](/images/manufacturer_photos/0/0/57/analog_devices_inc_tmb.jpg)
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
![AD-MSDPDX2000-EVB](/images/manufacturer_photos/0/0/57/analog_devices_inc_tmb.jpg)
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
![AD-MSDPDX2150-EVB](/images/manufacturer_photos/0/0/57/analog_devices_inc_tmb.jpg)
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
![AD-MSDPDX2350-EVB](/images/manufacturer_photos/0/0/57/analog_devices_inc_tmb.jpg)
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
![AD-MSDPDX2500-EVB](/images/manufacturer_photos/0/0/57/analog_devices_inc_tmb.jpg)
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
![AD-MSDPDX2600-EVB](/images/manufacturer_photos/0/0/57/analog_devices_inc_tmb.jpg)
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
![AD-MSDPDX900-EVB](/images/manufacturer_photos/0/0/57/analog_devices_inc_tmb.jpg)
Part Number:
Description:
Xilinx FMC Interface
Manufacturer:
Analog Devices Inc
Datasheet:
![AD-FMCOMMS1-EBZ](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
RF Development Tools Sransceiver board for FMC evaluation kit
Manufacturer:
Analog Devices
![DAC_12B_10-100NS](/images/no-image3.png)
Part Number:
Description:
Analog Devices: Data Converters: DAC 12-Bit, 10 ns to 100 ns Converters Selection Table
Manufacturer:
AD [Analog Devices]
Datasheet:
![DAC_8B_10-100NS](/images/no-image3.png)
Part Number:
Description:
Analog Devices: Data Converters: DAC 8-Bit, 10 ns to 100 ns Converters Selection Table
Manufacturer:
AD [Analog Devices]
Datasheet:
![AD73411BB-80](/images/no-image3.png)
Part Number:
Description:
Low-Power Analog Front End with DSP Microcomputer
Manufacturer:
AD [Analog Devices]
Datasheet:
![AD7346B](/images/no-image3.png)
Part Number:
Description:
2 Pair/1 Pair ETSI Compatible HDSL Analog Front End
Manufacturer:
AD [Analog Devices]
Datasheet: