Single-Phase Energy Measurement IC
with 8052 MCU, RTC, and LCD Driver
ADE7116/ADE7156/ADE7166/ADE7169/ADE7566/ADE7569
GENERAL FEATURES
Wide supply voltage operation: 2.4 V to 3.7 V
Internal bipolar switch between regulated and battery inputs
Ultralow power operation with power saving modes (PSM)
Full operation: 4 mA to 1.6 mA (PLL clock dependent)
Battery mode: 3.2 mA to 400 μA (PLL clock dependent)
Sleep mode
Real-time clock (RTC) mode: 1.5 μA
RTC and LCD mode: 38 μA (LCD charge pump enabled)
Reference: 1.2 V ± 0.1% (10 ppm/°C drift)
64-lead RoHS package options
Lead frame chip scale package (LFCSP)
Low profile quad flat package (LQFP)
Operating temperature range: −40°C to +85°C
MICROPROCESSOR FEATURES
8052-based core
Single-cycle 4 MIPS 8052 core
8052-compatible instruction set
32.768 kHz external crystal with on-chip PLL
2 external interrupt sources
External reset pin
Low power battery mode
Wake-up from I/O, temperature change
1
, alarm, and
universal asynchronous receiver/transmitter (UART)
LCD driver operation
Temperature measurement
Real-time clock (RTC)
Counter for seconds, minutes, and hours
Automatic battery switchover for RTC backup
Operation down to 2.4 V
Ultralow battery supply current: 1.5 μA
Selectable output frequency: 1 Hz to 16 kHz
Embedded digital crystal frequency compensation for
calibration and temperature variation of 2 ppm resolution
Integrated LCD driver
108-segment driver for the ADE7566/ADE7569 and
104-segment driver for the ADE7116/ADE7156/
ADE7166/ADE7169
2×, 3×, or 4× multiplexing
LCD voltages generated internally
2
or with external resistors
Internal adjustable drive voltages up to 5 V independent
of power supply level
2
On-chip peripherals
UART interface
SPI or I
2
C
Watchdog timer
Power supply management with user-selectable levels
Memory: 16 kB flash memory, 512 bytes RAM
Development tools
Single-pin emulation
IDE-based assembly and C-source debugging
1
2
ENERGY MEASUREMENT FEATURES
Proprietary analog-to-digital converters (ADCs) and digital
signal processing (DSP) provide high accuracy active
(watt), reactive (var), and apparent energy (volt-ampere
(VA)) measurement
<0.1% error on active energy over a dynamic range of
1000 to 1 @ 25°C
<0.5% error on reactive energy over a dynamic range of
1000 to 1 @ 25°C (ADE7169 and ADE7569 only)
<0.5% error on root mean square (rms) measurements
over a dynamic range of 500 to 1 for current (I
rms
) and
100 to 1 for voltage (V
rms
) @ 25°C
Supports IEC 62053-21, IEC 62053-22, and IEC 62053-23;
EN 50470-3 Class A, Class B, and Class C; and ANSI C12-16
Differential input with programmable gain amplifiers (PGAs)
supports shunts, current transformers, and di/dt current
sensors (ADE7169 and ADE7569 only)
2 current inputs for antitamper detection in the
ADE7116/ADE7156/ADE7166/ADE7169
High frequency outputs proportional to I
rms
, active, reactive,
or apparent power (AP)
Table 1. Features Available on Each Part
Feature
Antitamper
Watt, VA, I
rms
, V
rms
Var
di/dt Sensor
Part No.
ADE7116, ADE7156, ADE7166, ADE7169
ADE7116, ADE7156, ADE7166, ADE7169,
ADE7566, ADE7569
ADE7169, ADE7569
ADE7169, ADE7569
Not available in the ADE7116.
Not available in the ADE7116 or ADE7156.
Rev. B
Information furnished by Analog Devices is believed to be accurate and reliable. However, no
responsibility is assumed by Analog Devices for its use, nor for any infringements of patents or other
rights of third parties that may result from its use. Specifications subject to change without notice. No
license is granted by implication or otherwise under any patent or patent rights of Analog Devices.
Trademarks and registered trademarks are the property of their respective owners.
One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A.
Tel: 781.329.4700
www.analog.com
Fax: 781.461.3113 ©2007–2008 Analog Devices, Inc. All rights reserved.
ADE7116/ADE7156/ADE7166/ADE7169/ADE7566/ADE7569
TABLE OF CONTENTS
General Features ............................................................................... 1
Energy Measurement Features........................................................ 1
Microprocessor Features.................................................................. 1
Revision History ............................................................................... 3
General Description ......................................................................... 4
Functional Block Diagrams ............................................................. 4
Specifications..................................................................................... 6
Energy Metering ........................................................................... 6
Analog Peripherals ....................................................................... 7
Digital Interface ............................................................................ 8
Timing Specifications ................................................................ 10
Absolute Maximum Ratings.......................................................... 15
Thermal Resistance .................................................................... 15
ESD Caution ................................................................................ 15
Pin Configurations and Function Descriptions ......................... 16
Typical Performance Characteristics ........................................... 22
Performance Curves for the ADE7169 and ADE7569 Only 25
Terminology .................................................................................... 26
Special Function Register (SFR) Mapping .................................. 27
Power Management ........................................................................ 29
Power Management Register Details ....................................... 29
Power Supply Architecture ........................................................ 32
Battery Switchover...................................................................... 32
Power Supply Management (PSM) Interrupt ......................... 33
Using the Power Supply Features ............................................. 35
Operating Modes ............................................................................ 37
PSM0 (Normal Mode) ............................................................... 37
PSM1 (Battery Mode) ................................................................ 37
PSM2 (Sleep Mode).................................................................... 37
3.3 V Peripherals and Wake-Up Events ................................... 38
Transitioning Between Operating Modes ............................... 39
Using the Power Management Features .................................. 39
Energy Measurement ..................................................................... 40
Access to Energy Measurement SFRs ...................................... 40
Access to Internal Energy Measurement Registers ................ 40
Energy Measurement Registers ................................................ 43
Energy Measurement Internal Register Details ..................... 44
Interrupt Status/Enable SFRs .................................................... 47
Analog Inputs .............................................................................. 49
Analog-to-Digital Conversion .................................................. 50
Fault Detection ........................................................................... 54
di/dt Current Sensor and Digital Integrator for the
ADE7169/ADE7569 ................................................................... 55
Power Quality Measurements................................................... 57
Phase Compensation ................................................................. 59
RMS Calculation ........................................................................ 59
Active Power Calculation .......................................................... 62
Active Energy Calculation ........................................................ 64
Reactive Power Calculation (ADE7169/ADE7569) .............. 67
Reactive Energy Calculation (ADE7169/ADE7569) ............. 68
Apparent Power Calculation ..................................................... 72
Apparent Energy Calculation ................................................... 73
Ampere-Hour Accumulation ................................................... 74
Energy-to-Frequency Conversion............................................ 75
Energy Register Scaling ............................................................. 76
Energy Measurement Interrupts .............................................. 76
Temperature, Battery, and Supply Voltage Measurements........ 77
Temperature Measurement ....................................................... 79
Battery Measurement ................................................................. 79
External Voltage Measurement ................................................ 80
8052 MCU Core Architecture....................................................... 82
MCU Registers ............................................................................ 82
Basic 8052 Registers ................................................................... 84
Standard 8052 SFRs.................................................................... 85
Memory Overview ..................................................................... 85
Addressing Modes ...................................................................... 86
Instruction Set ............................................................................ 88
Read-Modify-Write Instructions ............................................. 90
Instructions That Affect Flags .................................................. 90
Dual Data Pointers ......................................................................... 92
Interrupt System ............................................................................. 93
Standard 8052 Interrupt Architecture ..................................... 93
Interrupt Architecture ............................................................... 93
Interrupt Registers...................................................................... 93
Interrupt Priority ........................................................................ 94
Interrupt Flags ............................................................................ 95
Interrupt Vectors ........................................................................ 97
Interrupt Latency........................................................................ 97
Context Saving ............................................................................ 97
Watchdog Timer ............................................................................. 98
Rev. B | Page 2 of
152
ADE7116/ADE7156/ADE7166/ADE7169/ADE7566/ADE7569
LCD Driver ................................................................................... 100
LCD Registers ........................................................................... 100
LCD Setup ................................................................................. 103
LCD Timing and Waveforms ................................................. 103
Blink Mode ................................................................................ 104
Display Element Control ......................................................... 104
Voltage Generation .................................................................. 105
LCD External Circuitry ........................................................... 106
LCD Function in PSM2 Mode ............................................... 106
Flash Memory ............................................................................... 108
Flash Memory Overview ......................................................... 108
Flash Memory Organization................................................... 109
Using the Flash Memory ......................................................... 109
Protecting the Flash Memory ................................................. 113
In-Circuit Programming ......................................................... 114
Timers ............................................................................................ 115
Timer Registers......................................................................... 115
Timer 0 and Timer 1 ................................................................ 117
Timer 2 ...................................................................................... 118
PLL ................................................................................................. 120
PLL Registers ............................................................................ 120
Real-Time Clock (RTC) .............................................................. 121
RTC SFRs .................................................................................. 121
Read and Write Operations .................................................... 124
RTC Modes ............................................................................... 124
RTC Interrupts ......................................................................... 124
RTC Calibration ........................................................................125
UART Serial Interface ...................................................................126
UART SFRs ................................................................................126
UART Operation Modes ..........................................................129
UART Baud Rate Generation ..................................................130
UART Additional Features ......................................................132
Serial Peripheral Interface (SPI) ..................................................133
SPI Registers ..............................................................................133
SPI Pins.......................................................................................136
SPI Master Operating Modes ..................................................137
SPI Interrupt and Status Flags .................................................138
I
2
C-Compatible Interface .............................................................139
Serial Clock Generation ...........................................................139
Slave Addresses..........................................................................139
I
2
C Registers ...............................................................................139
Read and Write Operations .....................................................140
I
2
C Receive and Transmit FIFOs.............................................141
I/O Ports .........................................................................................142
Parallel I/O .................................................................................142
I/O Registers ..............................................................................143
Port 0...........................................................................................146
Port 1...........................................................................................146
Port 2...........................................................................................146
Determining the Version of the Part ..........................................147
Outline Dimensions ......................................................................148
Ordering Guide .........................................................................149
REVISION HISTORY
11/08—Rev. A to Rev. B
Added ADE7116/ADE7156 ......................................... Throughout
Changes to Table 1 ............................................................................ 1
Added Figure 2 .................................................................................. 5
Changes to Table 13 ........................................................................16
Added Figure 10 and Table 14; Renumbered Sequentially ........19
Added Exposed Pad Notation to Outline Dimensions ............148
Changes to Ordering Guide .........................................................149
12/07—Rev. 0 to Rev. A
Added ADE7166/ADE7169 .............................................. Universal
Changes to Table 1 ............................................................................ 1
Changes to Ordering Guide .........................................................144
11/07—Revision 0: Initial Version
Rev. B | Page 3 of
152
ADE7116/ADE7156/ADE7166/ADE7169/ADE7566/ADE7569
GENERAL DESCRIPTION
The ADE7116/ADE7156/ADE7166/ADE7169/ADE7566/
ADE7569
1
integrate the Analog Devices, Inc., energy (ADE)
metering IC analog front end and fixed function DSP solution
with an enhanced 8052 MCU core, an RTC, an LCD driver, and
all the peripherals to make an electronic energy meter with an
LCD display in a single part.
The ADE measurement core includes active, reactive, and apparent
energy calculations, as well as voltage and current rms measure-
ments. This information is accessible for energy billing by using
the built-in energy scalars. Many power line supervisory features
such as SAG, peak, and zero crossing are included in the energy
measurement DSP to simplify energy meter design.
The microprocessor functionality includes a single-cycle 8052
core, a real-time clock with a power supply backup pin, an SPI
or I
2
C® interface, and a UART interface. The ready-to-use infor-
mation from the ADE core reduces the program memory size
requirement, making it easy to integrate complicated design
into 16 kB of flash memory.
The ADE7116/ADE7156/ADE7166/ADE7169/ADE7566/
ADE7569 also include a 108-/104-segment LCD driver. In the
ADE7166/ADE7169/ADE7566/ADE7569, this driver generates
voltages capable of driving LCDs up to 5 V.
1
Patents pending.
FUNCTIONAL BLOCK DIAGRAMS
P0.0 (BCTRL/INT1/P0.0)
P0.3/CF2
P0.4/MOSI/SDATA
P0.5/MISO
P0.6/SCLK/T0
P0.7/SS/T1
P0.2/CF1/RTCCAL
P1.2/FP25
P1.3/T2EX/FP24
P1.4/T2/FP23
6
7
REF
IN/OUT
MOSI/SDATA
57
43 42
38 39 40 41
39 38 7
6
45 11 43 42 41 40 39 38
37 36 5
P1.5/FP22
P1.6/FP21
P1.7/FP20
8
9 10
12
13
P0.1/FP19
P1.0/RxD
P1.1/TxD
SCLK
MISO
T2EX
CF1
CF2
SS
T0
T1
T2
P2.0/FP18
P2.1/FP17
P2.2/FP16
P2.3 (SDEN/P2.3)
LCDVP2
LCDVA
LCDVB
LCDVC
COM0
1.20V
REF
I
P 52
I
N 53
+
PGA1
–
ADC
SPI/I
2
C
SERIAL
INTERFACE
3 × 16-BIT
COUNTER
TIMERS
ADE7566/ADE7569
14
44
16
3V/5V LCD
CHARGE PUMP
18
17
15
4
V
P 49
V
N 50
+
PGA2
–
ADC
ENERGY
MEASUREMENT
DSP
...
COM3
FP0
108-SEGMENT
LCD DRIVER
...
1
35
...
FP15
FP16
FP17
FP18
FP19
FP20
FP21
FP22
FP23
FP24
FP25
FP26
FP27
FP28
06353-001
DGND
63
AGND
54
PROGRAM MEMORY
16kB FLASH
USER RAM
256 BYTES
TEMP
ADC
USER XRAM
256 BYTES
SINGLE
CYCLE
8052
MCU
WATCHDOG
TIMER
TEMP
SENSOR
BATTERY
ADC
V
BAT 58
DOWNLOADER
DEBUGGER
1-PIN
EMULATOR
PLL
UART
TIMER
UART
SERIAL
PORT
POWER SUPPLY
CONTROL AND
MONITORING
VDCIN
ADC
POR
LDO
LDO
RTC
OSC
64
60
61
62
59
56
51
44
36
37
47
46
48
45
V
SWOUT
XTAL1
XTAL2
V
INTD
V
INTA
TxD
EA
RESET
SDEN
V
DCIN
Figure 1. ADE7566/ADE7569 Functional Block Diagram
Rev. B | Page 4 of
152
INT0
INT1
V
DD
RxD
.. .
20
14
13
12
11
10
9
8
7
6
5
55
1
2
ADE7116/ADE7156/ADE7166/ADE7169/ADE7566/ADE7569
P0.0 (BCTRL/INT1/P0.0)
P0.3/CF2
P0.4/MOSI/SDATA
P0.5/MISO
P0.6/SCLK/T0
P0.7/SS/T1
P0.2/CF1/RTCCAL
P1.2/FP25
P1.3/T2EX/FP24
MOSI/SDATA
P1.4/T2/FP23
P1.5/FP22
7
8
REF
IN/OUT
57
43 42
38 39 40 41
39 38 7
6
45 11 43 42 41 40 39 38
37 36 5
6
P1.6/FP21
P1.7/FP20
9 10
12
P0.1/FP19
P1.0/RxD
P1.1/TxD
SCLK
MISO
T2EX
CF1
CF2
SS
T0
T1
T2
P2.0/FP18
P2.1/FP17
P2.2/FP16
P2.3 (SDEN/P2.3)
LCDVP1
LCDVP2
LCDVA
LCDVB
LCDVC
COM0
1.20V
REF
13
SPI/I
2
C
SERIAL
INTERFACE
3 × 16-BIT
COUNTER
TIMERS
ADE7116/ADE7156/ADE7166/ADE7169
14
44
19
I
PA 52
I
N 53
+
PGA1
–
–
PGA1
+
+
PGA2
–
16
ADC
ENERGY
MEASUREMENT
DSP
3V/5V LCD
CHARGE PUMP
18
17
15
4
...
104-SEGMENT
LCD DRIVER
1
35
I
PB 55
V
P 49
V
N 50
DGND
63
AGND
54
ADC
...
...
ADC
PROGRAM MEMORY
16kB FLASH
USER RAM
256 BYTES
USER XRAM
256 BYTES
VDCIN
ADC
POR
LDO
LDO
COM3
FP0
FP15
FP16
FP17
FP18
FP19
FP20
FP21
FP22
FP23
FP24
FP25
FP27
FP28
06353-119
SINGLE
CYCLE
8052
MCU
WATCHDOG
TIMER
TEMP
SENSOR
BATTERY
ADC
TEMP
ADC
V
BAT 58
DOWNLOADER
DEBUGGER
1-PIN
EMULATOR
PLL
UART
TIMER
UART
SERIAL
PORT
POWER SUPPLY
CONTROL AND
MONITORING
RTC
OSC
64
60
61
62
59
56
51
44
36
37
47
46
48
45
V
SWOUT
XTAL1
XTAL2
V
INTD
V
INTA
TxD
EA
RESET
SDEN
V
DCIN
Figure 2. ADE7116/ADE7156/ADE7166/ADE7169 Functional Block Diagram
Rev. B | Page 5 of
152
INT0
INT1
V
DD
RxD
...
20
14
13
12
11
10
9
8
7
6
5
1
2