ADE5166/ADE5169/ADE5566/ADE5569 Data Sheet
Rev. D | Page 2 of 156
TABLE OF CONTENTS
General Features ............................................................................... 1
Energy Measurement Features ........................................................ 1
Microprocessor Features .................................................................. 1
Revision History ............................................................................... 4
General Description ......................................................................... 5
32 Kb Flash Option ...................................................................... 5
Functional Block Diagrams ............................................................. 5
Specifications ..................................................................................... 7
Energy Metering ........................................................................... 7
Analog Peripherals ....................................................................... 8
Digital Interface ............................................................................ 9
Timing Specifications ................................................................ 11
Absolute Maximum Ratings .......................................................... 16
Thermal Resistance .................................................................... 16
ESD Caution ................................................................................ 16
Pin Configurations and Function Descriptions ......................... 17
Typical Performance Characteristics ........................................... 21
Terminology .................................................................................... 25
Special Function Register (SFR) Mapping .................................. 26
Power Management ........................................................................ 28
Power Management Register Details ....................................... 28
Power Supply Architecture ........................................................ 31
Battery Switchover ...................................................................... 31
Power Supply Management (PSM) Interrupt ......................... 31
Using the Power Supply Features ............................................. 33
Operating Modes ............................................................................ 36
PSM0 (Normal Mode) ............................................................... 36
PSM1 (Battery Mode) ................................................................ 36
PSM2 (Sleep Mode) .................................................................... 36
3.3 V Peripherals and Wake-Up Events ................................... 37
Transitioning Between Operating Modes ............................... 38
Using the Power Management Features .................................. 38
Energy Measurement ..................................................................... 39
Access to Energy Measurement SFRs ...................................... 39
Access to Internal Energy Measurement Registers ................ 39
Energy Measurement Registers ................................................ 42
Energy Measurement Internal Registers Details .................... 43
Interrupt Status/Enable SFRs .................................................... 46
Analog Inputs .............................................................................. 47
Analog-to-Digital Conversion .................................................. 48
Fault Detection (ADE5166/ADE5169 Only) .......................... 52
di/dt Current Sensor and Digital Integrator
(ADE5169/ADE5569 Only) ...................................................... 53
Power Quality Measurements ................................................... 54
Phase Compensation ................................................................. 56
RMS Calculation ........................................................................ 57
Active Power Calculation .......................................................... 59
Active Energy Calculation ........................................................ 62
Reactive Power Calculation (ADE5169/ADE5569 Only) ..... 65
Reactive Energy Calculation (ADE5169/ADE5569 Only) ... 67
Apparent Power Calculation ..................................................... 70
Apparent Energy Calculation ................................................... 70
Ampere-Hour Accumulation ................................................... 72
Energy-to-Frequency Conversion............................................ 73
Energy Register Scaling ............................................................. 73
Energy Measurement Interrupts .............................................. 74
Temperature, Battery, and Supply Voltage Measurements........ 75
Temperature Measurement ....................................................... 77
Battery Measurement ................................................................. 77
External Voltage Measurement ................................................ 78
8052 MCU Core Architecture....................................................... 80
MCU Registers ............................................................................ 80
Basic 8052 Registers ................................................................... 82
Standard 8052 SFRs .................................................................... 84
Memory Overview ..................................................................... 85
Addressing Modes ...................................................................... 86
Instruction Set ............................................................................ 87
Read-Modify-Write Instructions ............................................. 89
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