Single-Phase Energy Measurement IC with
8052 MCU, RTC, and LCD Driver
ADE7566/ADE7569/ADE7166/ADE7169
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: 27 μ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
Two external interrupt sources
External reset pin
Low power battery mode
Wake-up from I/O, temperature change, alarm, and
universal asynchronous receiver/transmitter (UART)
LCD driver operation
Temperature measurement
Real-time clock
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.384 kHz
Embedded digital crystal frequency compensation for
calibration and temperature variation 2 ppm resolution
Integrated LCD driver
108-segment driver for the ADE7566/ADE7569 and
104-segment driver for the ADE7166/ADE7169
2×, 3×, or 4× multiplexing
LCD voltages generated internally or with external resistors
Internal adjustable drive voltages up to 5 V independent
of power supply level
On-chip peripherals
UART, SPI or I
2
C, and watchdog timer
Power supply monitoring with user-selectable levels
Memory: 16 kB flash memory, 512 bytes RAM
Development tools
Single-pin emulation
IDE-based assembly and C-source debugging
ENERGY MEASUREMENT FEATURES
Proprietary analog-to-digital converters (ADCs) and digital
signal processing (DSP) provide high accuracy active
(Watt), reactive (VAR), and apparent energy (VA)
measurement
Less than 0.1% error on active energy over a dynamic
range of 1000 to 1 @ 25°C
Less than 0.5% error on reactive energy over a dynamic
range of 1000 to 1 @ 25°C (ADE7569 and ADE7169 only)
Less than 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, 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 (ADE7569 and ADE7169 only)
Two current inputs for antitamper detection in the
ADE7166/ADE7169
High frequency outputs proportional to I
rms
, active, reactive,
or apparent power (AP)
Table 1.
Part No.
ADE7566
ADE7569
ADE7166
ADE7169
Anti-
Tamper
No
No
Yes
Yes
Watt, VA,
I
rms
, V
rms
Yes
Yes
Yes
Yes
VAR
No
Yes
No
Yes
di/dt Sensor
No
Yes
No
Yes
Rev. A
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 Analog Devices, Inc. All rights reserved.
ADE7566/ADE7569/ADE7166/ADE7169
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 Configuration and Function Descriptions........................... 16
Typical Performance Characteristics ........................................... 18
Terminology .................................................................................... 22
SFR Mapping ................................................................................... 23
Power Management........................................................................ 25
Power Management Register Details ....................................... 25
Power Supply Architecture........................................................ 28
Battery Switchover...................................................................... 28
Power Supply Monitor Interrupt (PSM).................................. 29
Using the Power Supply Features ............................................. 31
Operating Modes ............................................................................ 33
PSM0 (Normal Mode) ............................................................... 33
PSM1 (Battery Mode) ................................................................ 33
PSM2 (Sleep Mode).................................................................... 33
3.3 V Peripherals and Wake-Up Events................................... 34
Transitioning Between Operating Modes ............................... 35
Using the Power Management Features .................................. 35
Energy Measurement ..................................................................... 37
Access to Energy Measurement SFRs ...................................... 37
Access to Internal Energy Measurement Registers................ 37
Energy Measurement Registers ................................................ 40
Energy Measurement Internal Registers Details.................... 41
Interrupt Status/Enable SFRs .................................................... 44
Analog Inputs.............................................................................. 46
Analog-to-Digital Conversion.................................................. 47
Fault Detection ........................................................................... 50
di/dt Current Sensor and Digital Integrator for the
ADE7569/ADE7169................................................................... 51
Power Quality Measurements................................................... 53
Phase Compensation ................................................................. 55
RMS Calculation ........................................................................ 55
Active Power Calculation .......................................................... 58
Active Energy Calculation ........................................................ 60
Reactive Power Calculation for the ADE7569/ADE7169..... 63
Reactive Energy Calculation for the ADE7569/ADE7169 ... 64
Apparent Power Calculation..................................................... 68
Apparent Energy Calculation ................................................... 69
Ampere-Hour Accumulation ................................................... 70
Energy-to-Frequency Conversion............................................ 71
Energy Register Scaling ............................................................. 72
Energy Measurement Interrupts .............................................. 72
Temperature, Battery, and Supply Voltage Measurements........ 73
Temperature Measurement ....................................................... 75
Battery Measurement................................................................. 75
External Voltage Measurement ................................................ 76
8052 MCU CORE Architecture.................................................... 78
MCU Registers............................................................................ 78
Basic 8052 Registers ................................................................... 80
Standard 8052 SFRs.................................................................... 81
Memory Overview ..................................................................... 81
Addressing Modes...................................................................... 82
Instruction Set ............................................................................ 84
Read-Modify-Write Instructions ............................................. 86
Instructions That Affect Flags .................................................. 86
Dual Data Pointers ......................................................................... 88
Interrupt System ............................................................................. 89
Standard 8052 Interrupt Architecture ..................................... 89
Interrupt Architecture ............................................................... 89
Interrupt Registers...................................................................... 89
Interrupt Priority........................................................................ 90
Interrupt Flags ............................................................................ 91
Interrupt Vectors ........................................................................ 93
Interrupt Latency........................................................................ 93
Context Saving............................................................................ 93
Watchdog Timer ............................................................................. 94
LCD Driver...................................................................................... 96
Rev. A | Page 2 of 144
ADE7566/ADE7569/ADE7166/ADE7169
LCD Registers ..............................................................................96
LCD Setup ....................................................................................99
LCD Timing and Waveforms ....................................................99
Blink Mode................................................................................ 100
Display Element Control......................................................... 100
Voltage Generation .................................................................. 101
LCD External Circuitry........................................................... 101
LCD Function in PSM2........................................................... 101
Flash Memory ............................................................................... 103
Overview ................................................................................... 103
Flash Memory Organization................................................... 104
Using the Flash Memory ......................................................... 104
Protecting the Flash Memory ................................................. 107
In-Circuit Programming ......................................................... 108
Timers ............................................................................................ 109
Timer Registers......................................................................... 109
Timer 0 and Timer 1................................................................ 111
Timer 2 ...................................................................................... 112
PLL ................................................................................................. 114
PLL Registers ............................................................................ 114
Real-Time Clock........................................................................... 116
RTC Registers ........................................................................... 116
Read and Write Operations .................................................... 119
RTC Modes ............................................................................... 119
RTC Interrupts ......................................................................... 119
RTC Calibration ....................................................................... 120
UART Serial Interface...................................................................121
UART Registers .........................................................................121
UART Operation Modes ..........................................................124
UART Baud Rate Generation ..................................................125
UART Additional Features ......................................................127
Serial Peripheral Interface (SPI)..................................................128
SPI Registers ..............................................................................128
SPI Pins.......................................................................................131
SPI Master Operating Modes ..................................................132
SPI Interrupt and Status Flags .................................................133
I
2
C Compatible Interface..............................................................134
Serial Clock Generation ...........................................................134
Slave Addresses..........................................................................134
I
2
C Registers...............................................................................134
Read and Write Operations .....................................................135
I
2
C Receive and Transmit FIFOs.............................................136
I/O Ports .........................................................................................137
Parallel I/O.................................................................................137
I/O Registers ..............................................................................138
Port 0...........................................................................................141
Port 1...........................................................................................141
Port 2...........................................................................................141
Determining the Version of the ADE7566/ADE7569..............142
Outline Dimensions......................................................................143
Ordering Guide .........................................................................144
REVISION HISTORY
Revision History: ADE7566/ADE7569/ADE7166/ADE7169
12/07—Revision A: Initial Combined Version
Revision History: ADE7566/ADE7569
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. A | Page 3 of 144
ADE7566/ADE7569/ADE7166/ADE7169
GENERAL DESCRIPTION
The ADE7566/ADE7569/ADE7166/ADE7169
1
integrate 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 ready to use for energy billing by using
built-in energy scalars. Many power line supervisory features
1
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, a UART, and an
SPI or I
2
C® interface. The ready-to-use information from the
ADE core reduces the program memory size requirement, making
it easy to integrate complicated design into 16 kB of flash
memory.
The ADE7566/ADE7569/ADE7166/ADE7169 also include a
108-/104-segment LCD driver. This driver generates voltages
capable of driving LCDs up to 5 V.
Patents pending.
FUNCTIONAL BLOCK DIAGRAMS
P0.2 (CF1, RTCCAL)
P0.0 (BCTRL/INT1)
P0.3 (CF2)
P0.4 (MOSI/SDATA)
P0.5 (MISO)
P0.6 (SCLK/T0)
P0.7 (SS/T1)
P1.2 (FP25)
P1.3 (T2EX/FP24)
P1.4 (T2/FP23)
P1.5 (FP22)
7
8
MOSI/SDATA
P0.1 (FP19)
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
13
P1.0 (RxD)
P1.1 (TxD)
REF
IN/OUT
SCLK
MISO
T2EX
CF1
CF2
SS
T0
T1
T2
P2.0 (FP18)
P2.1 (FP17)
P2.2 (FP16)
P2.3 (SDEN)
LCDVP1
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
19
16
3V/5V LCD
CHARGE PUMP
ENERGY
MEASUREMENT
DSP
108-SEGMENT
LCD DRIVER
PROGRAM MEMORY
16kB FLASH
USER RAM
256 BYTES
SINGLE
CYCLE
8052
MCU
WATCHDOG
TIMER
18
17
15
4
...
V
P 49
V
N 50
+
PGA2
–
ADC
...
COM3
FP0
1
35
.. .
...
FP15
FP16
FP17
FP18
FP19
FP20
FP21
FP22
FP23
FP24
FP25
FP26
DGND
63
AGND
54
20
14
13
12
TEMP
SENSOR
BATTERY
ADC
TEMP
ADC
USER XRAM
256 BYTES
V
BAT 58
DOWNLOADER
DEBUGGER
1-PIN
EMULATOR
11
10
9
POWER SUPPLY
CONTROL AND
MONITORING
VDCIN
ADC
POR
LDO
LDO
PLL
UART
TIMER
UART
SERIAL
PORT
8
7
RTC
OSC
6
5
55
64
60
61
62
59
56
51
44
36
37
47
46
48
45
V
SWOUT
XTAL1
XTAL2
V
INTA
V
INTD
TxD
EA
RESET
SDEN
V
DCIN
INT0
INT1
V
DD
RxD
Figure 1. ADE7566/ADE7569 Functional Block Diagram
Rev. A | Page 4 of 144
06353-001
ADE7566/ADE7569/ADE7166/ADE7169
P0.2 (CF1, RTCCAL)
P0.3 (CF2)
P0.4 (MOSI/SDATA)
P0.5 (MISO)
P0.6 (SCLK/T0)
P0.7 (SS/T1)
P0.0 (BCTRL/INT1)
P1.2 (FP25)
P1.3 (T2EX/FP24)
P1.4 (T2/FP23)
P1.5 (FP22)
7
8
MOSI/SDATA
P0.1 (FP19)
P1.6 (FP21)
57
43 42
38 39 40 41
39 38 7
8
45 11 43 42 41 40 39 38
37 36 5
6
9 10
12
P1.7 (FP20)
P1.0 (RxD)
P1.1 (TxD)
REF
IN/OUT
SCLK
MISO
T2EX
CF1
CF2
SS
T0
T1
T2
P2.0 (FP18)
P2.1 (FP17)
P2.2 (FP16)
P2.3 (SDEN)
LCDVP1
LCDVP2
LCDVA
LCDVB
LCDVC
COM0
1.20V
REF
13
SPI/I
2
C
SERIAL
INTERFACE
3 × 16-BIT
COUNTER
TIMERS
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
...
I
PB 55
V
P 49
V
N 50
DGND
63
AGND
54
ADC
...
COM3
FP0
ADC
PROGRAM MEMORY
16kB FLASH
USER RAM
256 BYTES
USER XRAM
256 BYTES
VDCIN
ADC
POR
LDO
LDO
108-SEGMENT
LCD DRIVER
SINGLE
CYCLE
8052
MCU
WATCHDOG
TIMER
1
35
.. .
...
FP15
FP16
FP17
FP18
FP19
FP20
FP21
FP22
FP23
FP24
FP25
20
14
13
12
TEMP
SENSOR
BATTERY
ADC
TEMP
ADC
V
BAT 58
DOWNLOADER
DEBUGGER
1-PIN
EMULATOR
11
10
9
PLL
UART
TIMER
UART
SERIAL
PORT
8
7
POWER SUPPLY
CONTROL AND
MONITORING
RTC
OSC
6
5
64
60
61
62
59
56
51
44
36
37
47
46
48
45
XTAL1
V
SWOUT
XTAL2
V
INTA
V
INTD
TxD
EA
INT0
RESET
SDEN
V
DCIN
INT1
V
DD
RxD
Figure 2. ADE7166/ADE7169 Functional Block Diagram
Rev. A | Page 5 of 144
06353-119