ADE5166_08 AD [Analog Devices], ADE5166_08 Datasheet - Page 2

no-image

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
ADE5166/ADE5169
TABLE OF CONTENTS
General Features ............................................................................... 1
Energy Measurement Features ........................................................ 1
Microprocessor Features .................................................................. 1
Revision History ............................................................................... 3
General Description ......................................................................... 4
Functional Block Diagram .............................................................. 4
Specifications ..................................................................................... 5
Absolute Maximum Ratings .......................................................... 14
Pin Configuration and Function Descriptions ........................... 15
Typical Performance Characteristics ........................................... 17
Terminology .................................................................................... 21
Special Function Register (SFR) Mapping .................................. 22
Power Management ........................................................................ 24
Operating Modes ............................................................................ 32
Energy Measurement ..................................................................... 35
Energy Metering ........................................................................... 5
Analog Peripherals ....................................................................... 6
Digital Interface ............................................................................ 7
Timing Specifications .................................................................. 9
Thermal Resistance .................................................................... 14
ESD Caution ................................................................................ 14
Power Management Register Details ....................................... 24
Power Supply Architecture ........................................................ 27
Battery Switchover ...................................................................... 27
Power Supply Management (PSM) Interrupt ......................... 27
Using the Power Supply Features ............................................. 29
PSM0 (Normal Mode) ............................................................... 32
PSM1 (Battery Mode) ................................................................ 32
PSM2 (Sleep Mode) .................................................................... 32
3.3 V Peripherals and Wake-Up Events ................................... 33
Transitioning Between Operating Modes ............................... 34
Using the Power Management Features .................................. 34
Access to Energy Measurement SFRs ...................................... 35
Access to Internal Energy Measurement Registers ................ 35
Energy Measurement Registers ................................................ 37
Energy Measurement Internal Register Details ..................... 38
Interrupt Status/Enable SFRs .................................................... 41
Analog Inputs .............................................................................. 42
Analog-to-Digital Conversion .................................................. 43
Fault Detection ........................................................................... 46
Rev. 0 | Page 2 of 148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Temperature, Battery, and Supply Voltage Measurements........ 68
8052 MCU Core Architecture....................................................... 73
Dual Data Pointers ......................................................................... 84
Interrupt System ............................................................................. 85
Watchdog Timer ............................................................................. 90
LCD Driver ...................................................................................... 92
di/dt Current Sensor and Digital Integrator (ADE5169) .......... 47
Power Quality Measurements ................................................... 48
Phase Compensation ................................................................. 50
RMS Calculation ........................................................................ 51
Active Power Calculation .......................................................... 53
Active Energy Calculation ........................................................ 55
Reactive Power Calculation (ADE5169) ................................. 58
Reactive Energy Calculation (ADE5169) ................................ 60
Apparent Power Calculation ..................................................... 63
Apparent Energy Calculation ................................................... 63
Ampere-Hour Accumulation ................................................... 65
Energy-to-Frequency Conversion............................................ 66
Energy Register Scaling ............................................................. 66
Energy Measurement Interrupts .............................................. 67
Temperature Measurement ....................................................... 70
Battery Measurement ................................................................. 70
External Voltage Measurement ................................................ 71
MCU Registers ............................................................................ 73
Basic 8052 Registers ................................................................... 75
Standard 8052 SFRs .................................................................... 77
Memory Overview ..................................................................... 77
Addressing Modes ...................................................................... 78
Instruction Set ............................................................................ 80
Read-Modify-Write Instructions ............................................. 82
Instructions That Affect Flags .................................................. 82
Standard 8052 Interrupt Architecture ..................................... 85
Interrupt Architecture ............................................................... 85
Interrupt Registers...................................................................... 85
Interrupt Priority ........................................................................ 86
Interrupt Flags ............................................................................ 87
Interrupt Vectors ........................................................................ 89
Interrupt Latency ........................................................................ 89
Context Saving ............................................................................ 89
LCD Registers ............................................................................. 92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Related parts for ADE5166_08