Ade7880 PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 108

Polyphase Multifunction Energy Metering IC

with Harmonic Monitoring


Data Sheet ADE7880
FEATURES GENERAL DESCRIPTION
Highly accurate; supports IEC 62053-21, IEC 62053-22, The ADE78801 is a high accuracy, 3-phase electrical energy
IEC 62053-23, EN 50470-1, EN 50470-3, ANSI C12.20, and measurement IC with serial interfaces and three flexible pulse
IEEE1459 standards outputs. The ADE7880 device incorporates second-order sigma-
Supports IEC 61000-4-7 Class I and Class II accuracy delta (Σ-Δ) analog-to-digital converters (ADCs), a digital
specification integrator, reference circuitry, and all of the signal processing
Compatible with 3-phase, 3-wire or 4-wire (delta or wye), required to perform the total (fundamental and harmonic) active,
and other 3-phase services and apparent energy measurements, rms calculations, as well as
Supplies rms, active, reactive, and apparent powers, power fundamental-only active and reactive energy measurements. In
factor, THD, and harmonic distortion of all harmonics addition, the ADE7880 computes the rms of harmonics on the
within 2.8 kHz pass band on all phases phase and neutral currents and on the phase voltages, together
Supplies rms and harmonic distortions of all harmonics with the active, reactive and apparent powers, and the power
within 2.8 kHz pass band on neutral current factor and harmonic distortion on each harmonic for all phases.
Less than 1% error in harmonic current and voltage rms, Total harmonic distortion (THD) is computed for all currents
harmonic active and reactive powers over a dynamic and voltages. A fixed function digital signal processor (DSP)
range of 2000 to 1 at TA = 25°C executes this signal processing. The DSP program is stored in
Supplies total (fundamental and harmonic) active and the internal ROM memory.
apparent energy and fundamental active/reactive energy
The ADE7880 is suitable for measuring active, reactive, and
on each phase and on the overall system
apparent energy in various 3-phase configurations, such as wye
Less than 0.1% error in active and fundamental reactive
or delta services with, both, three and four wires. The ADE7880
energy over a dynamic range of 1000 to 1 at TA = 25°C
provides system calibration features for each phase, that is, rms
Less than 0.2% error in active and fundamental reactive
offset correction, phase calibration, and gain calibration. The
energy over a dynamic range of 5000 to 1 at TA = 25°C
CF1, CF2, and CF3 logic outputs provide a wide choice of
Less than 0.1% error in voltage and current rms over a
power information: total active powers, apparent powers, or the
dynamic range of 1000 to 1 at TA = 25°C
sum of the current rms values, and fundamental active and
Battery supply input for missing neutral operation
reactive powers.
Wide supply voltage operation: 2.4 V to 3.7 V
Reference: 1.2 V (drift 20 ppm/°C typical) with external The ADE7880 contains waveform sample registers that allow
overdrive capability access to all ADC outputs. The devices also incorporate power
40-lead lead frame chip scale package (LFCSP), Pb-free, pin- quality measurements, such as short duration low or high
for-pin compatible with ADE7854, ADE7858, ADE7868 and voltage detections, short duration high current variations, line
ADE7878 voltage period measurement, and angles between phase voltages
and currents. Two serial interfaces, SPI and I2C, can be used to
APPLICATIONS
communicate with the ADE7880. A dedicated high speed
Energy metering systems interface, the high speed data capture (HSDC) port, can be used
Power quality monitoring in conjunction with I2C to provide access to the ADC outputs
Solar inverters and real-time power information. The ADE7880 also has two
Process monitoring interrupt request pins, IRQ0 and IRQ1, to indicate that an enabled
Protective devices interrupt event has occurred. Three specially designed low power
modes ensure the continuity of energy accumulation when the
ADE7880 is in a tampering situation. The ADE7880 is available
in the 40-lead LFCSP, Pb-free package, pin-for-pin compatible
with ADE7854, ADE7858, ADE7868, and ADE7878 devices.

1
Protected by U.S. Patent 8,010,304 B2. Other patents pending.

Rev. C Document Feedback


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 One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A.
license is granted by implication or otherwise under any patent or patent rights of Analog Devices. Tel: 781.329.4700 ©2011–2014 Analog Devices, Inc. All rights reserved.
Trademarks and registered trademarks are the property of their respective owners. Technical Support www.analog.com
ADE7880* PRODUCT PAGE QUICK LINKS
Last Content Update: 02/23/2017

COMPARABLE PARTS REFERENCE MATERIALS


View a parametric search of comparable parts. Technical Articles
• MS-2250: Adaptive Real-Time DSP Architecture to Monitor
EVALUATION KITS Harmonic Components and Various Power Quality Factors
in Electric Power Grids
• ADE7880 Evaluation Board

DOCUMENTATION DESIGN RESOURCES


• ADE7880 Material Declaration
Application Notes
• PCN-PDN Information
• AN-1127: Differences Between the ADE7880 and the
ADE7878 • Quality And Reliability
• AN-1171: Calibrating a Three-Phase Energy Meter Based • Symbols and Footprints
on the ADE7880
• AN-1334: Impact of Adding a Neutral Attenuation DISCUSSIONS
Network in a 3P4W Wye System View all ADE7880 EngineerZone Discussions.
• AN-639: Frequently Asked Questions (FAQs) Analog
Devices Energy (ADE) Products
SAMPLE AND BUY
Data Sheet
Visit the product page to see pricing options.
• ADE7880: Polyphase Multifunction Energy Metering IC
with Harmonic Monitoring Data Sheet
TECHNICAL SUPPORT
Product Highlight
Submit a technical question or find your regional support
• ADE7880–Polyphase Energy Metering number.
• ADE78xx Polyphase Multifunction Energy Metering ICs
User Guides DOCUMENT FEEDBACK
• UG-356: Evaluating the ADE7880 Energy Metering IC Submit feedback for this data sheet.

This page is dynamically generated by Analog Devices, Inc., and inserted into this data sheet. A dynamic change to the content on this page will not
trigger a change to either the revision number or the content of the product data sheet. This dynamic page may be frequently modified.
ADE7880 Data Sheet

TABLE OF CONTENTS
Features .............................................................................................. 1 Power Quality Measurements................................................... 32
Applications ....................................................................................... 1 Phase Compensation ................................................................. 37
General Description ......................................................................... 1 Reference Circuit ........................................................................ 39
Revision History ............................................................................... 3 Digital Signal Processor............................................................. 39
Functional Block Diagram .............................................................. 4 Root Mean Square Measurement ............................................. 41
Specifications..................................................................................... 5 Active Power Calculation .......................................................... 45
Timing Characteristics ................................................................ 8 Fundamental Reactive Power Calculation .............................. 51
Absolute Maximum Ratings .......................................................... 11 Apparent Power Calculation ..................................................... 55
Thermal Resistance .................................................................... 11 Power Factor Calculation .......................................................... 58
ESD Caution ................................................................................ 11 Harmonics Calculations ............................................................ 58
Pin Configuration and Function Descriptions ........................... 12 Waveform Sampling Mode ....................................................... 66
Typical Performance Characteristics ........................................... 14 Energy-to-Frequency Conversion............................................ 66
Test Circuit ...................................................................................... 19 No Load Condition .................................................................... 71
Terminology .................................................................................... 20 Checksum Register..................................................................... 73
Power Management ........................................................................ 21 Interrupts ..................................................................................... 74
PSM0—Normal Power Mode (All Parts) ................................ 21 Serial Interfaces .......................................................................... 75
PSM1—Reduced Power Mode.................................................. 21 ADE7880 Quick Setup As Energy Meter ................................ 82
PSM2—Low Power Mode ......................................................... 21 Layout Guidelines....................................................................... 83
PSM3—Sleep Mode (All Parts) ................................................ 22 Crystal Circuit ............................................................................ 84
Power-Up Procedure .................................................................. 24 ADE7880 Evaluation Board ...................................................... 84
Hardware Reset ........................................................................... 25 Die Version .................................................................................. 84
Software Reset Functionality .................................................... 25 Silicon Anomaly ............................................................................. 85
Theory of Operation ...................................................................... 26 ADE7880 Functionality Issues ................................................. 85
Analog Inputs .............................................................................. 26 Functionality Issues.................................................................... 85
Analog-to-Digital Conversion .................................................. 26 Section 1. ADE7880 Functionality Issues ............................... 86
Current Channel ADC............................................................... 27 Registers List ................................................................................... 87
di/dt Current Sensor and Digital Integrator ............................... 29 Outline Dimensions ..................................................................... 107
Voltage Channel ADC ............................................................... 30 Ordering Guide ........................................................................ 107
Changing Phase Voltage Data Path .......................................... 31

Rev. C | Page 2 of 107


Data Sheet ADE7880
REVISION HISTORY
12/14—Rev. B to Rev. C Changes to Power Factor Calculation Section and Harmonics
Changes to Pin EP, Table 7 .............................................................13 Calculations Section ....................................................................... 58
Changes to Configuring Harmonic Calculations Update Changes to Figure 85 ...................................................................... 60
Rate Section ......................................................................................66 Changes to Energy-to-Frequency Conversion Section .............. 66
Change to Address 0x43C7, Table 30 ...........................................88 Changes to Checksum Register Section, Equation 54, and
Changes to Bit 19, Table 36 ............................................................94 Figure 100 ......................................................................................... 73
Changes to Bit 19, Table 38 ............................................................97 Changes to Table 24 ........................................................................ 75
Changes to I2C-Compatible Interface Section ............................ 76
8/14—Rev. A to Rev. B Changes to Figure 109 .................................................................... 80
Change to Features Section .............................................................. 1 Changes to ADE7880 Quick Setup as Energy Meter Section ... 82
Changes to Patent Footnote ............................................................. 1 Added Layout Guidelines Section................................................. 83
Changes to Functional Block Diagram .......................................... 4 Added Crystal Circuit Section ...................................................... 84
Changes to Table 1 ............................................................................ 5 Changes to Silicon Anomaly Section, Table 26, and Table 27... 85
Changes to Data Hold Time Parameter, Table 2, and Figure 2 ... 8 Changes to Table 30 ........................................................................ 87
Changes to Pin 5 and Pin 24, Table 7, and Figure 6 ...................12 Changes to Table 33 ........................................................................ 90
Changes to Figure 16 and Figure 18 .............................................15 Changes to Bit 19, Table 36 ............................................................ 94
Changes to Figure 20 and Figure 24 Caption ..............................16 Changes to Bit 19, Table 38 ............................................................ 97
Moved Figure 29 and Figure 30 .....................................................18 Changes to Table 42 ........................................................................ 99
Changes to Test Circuit Section and Figure 32 ...........................19 Changes to Table 45 ......................................................................101
Changes to Terminology Section ..................................................20 Changes to Table 50 ......................................................................104
Changes to PSM2—Low Power Mode Section ...........................21 Changes to Bits[4:3], Table 54 .....................................................106
Added Figure 34; Renumbered Sequentially ...............................22
Change to Power-Up Procedure Section and Figure 35 ............24 3/12—Rev. 0 to Rev. A
Changes to Figure 42 and Figure 43 .............................................28 Removed References to + N (Plus Noise) and changed VTHDN
Changes to Figure 48 and Figure 50; Added Figure 49 ..............30 to VTHD and ITHDN to ITHD ..................................Throughout
Changes to Changing Phase Voltage Data Path Section and Changes to Reactive Energy Management Parameter in Table 14
Figure 51 ...........................................................................................31 Changes to Figure 6 ........................................................................ 11
Changes to Power Quality Measurements Section and Changes to Table 7 .......................................................................... 12
Figure 52 ...........................................................................................32 Changes to Phase Compensation Section.................................... 36
Changed ADCMAX = 5,928,256, to ADCMAX = 5,326,737, Changes to Equation 13 ................................................................. 39
Neutral Current Mismatch Section...............................................37 Changes to Equation 33 ................................................................. 49
Added Figure 64 ..............................................................................38 Changes to Fundamental Reactive Energy Calculation
Changes to Reference Circuit Section and Digital Signal Section .............................................................................................. 51
Processor Section ............................................................................39 Changes to Figure 80 ...................................................................... 55
Changes to Current RMS Calculation Section ............................41 Changes to Figure 85 ...................................................................... 62
Changes to Voltage RMS Offset Compensation Section, Changes to Energy Registers and CF Outputs for Various
Voltage RMS in 3-Phase, 3-Wire Delta Configurations Section, Accumulation Modes Section ....................................................... 67
and Active Power Calculation Section .........................................45 Changes to Figure 95 ...................................................................... 69
Changes to Figure 76 ......................................................................46 Changes to No Load Condition Section ...................................... 69
Changes to Fundamental Active Power Calculation Section ...47 Changes to Equation 53 ................................................................. 71
Added Managing Change in Fundamental Line Frequency Changes to Figure 100 .................................................................... 74
Section ..............................................................................................47 Changes to Figure 101 and to Figure 102 .................................... 75
Changes to Figure 78 ......................................................................49 Changes to SPI-Compatible Interface Section ............................ 76
Changes to Active Energy Accumulation Modes Section .........50 Changes to HSDC Interface Section............................................. 78
Changes to Fundamental Reactive Power Calculation Section Changes to Figure 109 and to Figure 110 .................................... 80
and Equation 35 ...............................................................................51 Changes to Silicon Anomaly Section ........................................... 81
Changes to Fundamental Reactive Energy Accumulation Changes to Table 48 ........................................................................ 99
Modes Section..................................................................................54 Changes to Table 52 ......................................................................101
Changes to Apparent Power Calculation Section .......................55
Changes to Apparent Energy Accumulation Modes Section 10/11—Revision 0: Initial Version
and Figure 83 ...................................................................................57

Rev. C | Page 3 of 107


ADE7880 Data Sheet

FUNCTIONAL BLOCK DIAGRAM


RESET REFIN/OUT VDD AGND AVDD DVDD DGND
4 17 26 25 24 5 6

AIRMSOS

POR LDO LDO


27 ADE7880
APGAIN
2 PM0
CLKIN 27 X2 AIRMS
LPF
CLKOUT 28 3 PM1
1.2V
REF
HPFEN OF DIGITAL X2 AVRMS
CONFIG3 INTEGRATOR AIGAIN LPF

27 CF1DEN
IAP 7
PGA1 ADC
HPF
IAN 8 AVRMSOS DFC : 33 CF1
HPFEN OF APGAIN AWATTOS
APHCAL CONFIG3 AVGAIN
CF2DEN

VAP 23 LPF PHASE A,


PGA3 ADC
HPF APGAIN AFWATTOS
PHASE B,
AND DFC : 34 CF2/HREADY
PHASE C
DATA
COMPUTATIONAL CF3DEN
IBP 9 BLOCK FOR
PGA1 ADC TOTAL/FUNDAMENTAL ACTIVE ENERGIES FUNDAMENTAL APGAIN AFVAROS
IBN 12 FUNDAMENTAL REACTIVE ENERGY ACTIVE AND
APPARENT ENERGY
VOLTAGE CURRENT RMS
REACTIVE POWER DFC : 35 CF3/HSCLK
HARMONIC INFORMATION CALCULATION
VBP 22 FOR PHASE B
(SEE PHASE A FOR DETAILED DATA PATH)
PGA3 ADC

COMPUTATIONAL 29 IRQ0
BLOCK FOR
ICP 13
HARMONIC SPI/I2C
INFORMATION ON 32 IRQ1
PGA1 ADC TOTAL/FUNDAMENTAL ACTIVE ENERGIES PHASE A CURRENT
FUNDAMENTAL REACTIVE ENERGY
ICN 14 APPARENT ENERGY AND VOLTAGE
VOLTAGE/CURRENT RMS 36 SCLK/SCL
HARMONIC INFORMATION CALCULATION
VCP 19 FOR PHASE C
ADC
(SEE PHASE A FOR DETAILED DATA PATH) 38 MOSI/SDA
PGA3
VN 18
I2C
37 MISO/HSD
COMPUTATIONAL BLOCK FOR HARMONIC
INFORMATION ON NEUTRAL CURRENT
39 SS/HSA
HPFEN OF DIGITAL HSDC
CONFIG3 INTEGRATOR NIGAIN NIRMSOS

INP 15
DIGITAL SIGNAL
PGA2 ADC X2 NIRMS PROCESSOR
HPF LPF

10193-001
INN 16

Figure 1. ADE7880 Functional Block Diagram

Rev. C | Page 4 of 107


Data Sheet ADE7880

SPECIFICATIONS
VDD = 3.3 V ± 10%, AGND = DGND = 0 V, on-chip reference, CLKIN = 16.384 MHz, TMIN to TMAX = −40°C to +85°C, TTYP = 25°C.

Table 1.
Parameter 1, 2 Min Typ Max Unit Test Conditions/Comments
ACTIVE ENERGY MEASUREMENT
Active Energy Measurement Error
(per Phase)
Total Active Energy 0.1 % Over a dynamic range of 1000 to 1,
PGA = 1, 2, 4; integrator off, pf = 1, gain
compensation only
0.2 % Over a dynamic range of 5000 to 1,
PGA = 1, 2, 4; integrator off, pf = 1
0.1 % Over a dynamic range of 500 to 1,
PGA = 8, 16; integrator on, pf = 1, gain
compensation only
0.2 % Over a dynamic range of 2000 to 1,
PGA = 8, 16; integrator on, pf = 1
Fundamental Active Energy 0.1 % Over a dynamic range of 1000 to 1,
PGA = 1, 2, 4; integrator off, pf = 1, gain
compensation only
0.2 % Over a dynamic range of 5000 to 1,
PGA = 1, 2, 4; integrator off, pf = 1
0.1 % Over a dynamic range of 500 to 1,
PGA = 8, 16; integrator on, pf = 1, gain
compensation only
0.2 % Over a dynamic range of 2000 to 1,
PGA = 8, 16; integrator on, pf = 1
AC Power Supply Rejection VDD = 3.3 V + 120 mV rms/120 Hz,
IPx = VPx = ±100 mV rms
Output Frequency Variation 0.01 %
DC Power Supply Rejection VDD = 3.3 V ± 330 mV dc
Output Frequency Variation 0.01 %
Total Active Energy Measurement 3.3 kHz
Bandwidth (−3 dB)
REACTIVE ENERGY MEASUREMENT
Reactive Energy Measurement Error
(per Phase)
Fundamental Reactive Energy 0.1 % Over a dynamic range of 1000 to 1,
PGA = 1, 2, 4; integrator off, pf = 0, gain
compensation only
0.2 % Over a dynamic range of 5000 to 1,
PGA = 1, 2, 4; integrator off, pf = 0
0.1 % Over a dynamic range of 500 to 1,
PGA = 8, 16; integrator on, pf = 0, gain
compensation only
0.2 % Over a dynamic range of 2000 to 1,
PGA = 8, 16; integrator on, pf = 0
AC Power Supply Rejection VDD = 3.3 V + 120 mV rms/120 Hz,
IPx = VPx = ± 100 mV rms
Output Frequency Variation 0.01 %
DC Power Supply Rejection VDD = 3.3 V ± 330 mV dc
Output Frequency Variation 0.01 %
Fundamental Reactive Energy 3.3 kHz
Measurement Bandwidth (−3 dB)

Rev. C | Page 5 of 107


ADE7880 Data Sheet
Parameter 1, 2 Min Typ Max Unit Test Conditions/Comments
RMS MEASUREMENTS (PSM0 Mode)
I RMS and V RMS Measurement 3.3 kHz
Bandwidth (−3 dB)
I RMS and V RMS Measurement Error 0.1 % Over a dynamic range of 1000 to 1,
PGA = 1
MEAN ABSOLUTE VALUE (MAV)
MEASUREMENT (PSM1 Mode)
I MAV Measurement Bandwidth 260 Hz
I MAV Measurement Error 0.5 % Over a dynamic range of 100 to 1,
PGA = 1, 2, 4, 8
HARMONIC MEASUREMENTS
Bandwidth (−3 dB) 3.3 kHz
No attenuation Pass Band 2.8 kHz
Fundamental Line Frequency, fL 45 66 Hz Voltage signal must have amplitudes
greater than 100 mV peak at ADC stage.
Set the SELFREQ bit of COMPMODE
register based on the frequency. See the
Managing Change in Fundamental Line
Frequency section for details.
Maximum Number of Harmonics 3  2800 
 
 fL 
Absolute Maximum Number of 63
Harmonics
Harmonic RMS Measurement Error 1 % Instantaneous reading accuracy over a
dynamic range of 1000 to 1 for harmonics
of frequencies within the pass band; after
the initial 750 ms settling time; PGA = 1
Accuracy over a dynamic range of 2000:1
for harmonics of frequencies within the
pass band; average of 10 readings at
128 ms update rate, after the initial
750 ms setting time; PGA = 1
Harmonic Active/Reactive Power 1 % Instantaneous reading accuracy over a
Measurement Error dynamic range of 1000 to 1 for harmonics
of frequencies within the pass band; after
the initial 750 ms settling time; PGA = 1
Accuracy over a dynamic range of 2000:1
for harmonics of frequencies within the
pass band; average of 5 readings at
128 ms update rate, after the initial
750 ms setting time; PGA = 1
ANALOG INPUTS
Maximum Signal Levels ±500 mV peak PGA = 1, differential or single-ended inputs
between the following pins: IAP and IAN,
IBP and IBN, ICP and ICN, INP and INN;
single-ended inputs between the following
pins: VAP and VN, VBP and VN, VCP and
VN
Input Impedance (DC)
IAP, IAN, IBP, IBN, ICP, ICN, VAP, VBP, 490 kΩ
and VCP Pins
VN Pin 170 kΩ
ADC Offset −35 mV PGA = 1, uncalibrated error, see the
Terminology section. Scales inversely
proportional to the other PGA gains
Gain Error ±4 % External 1.2 V reference

Rev. C | Page 6 of 107


Data Sheet ADE7880
Parameter 1, 2 Min Typ Max Unit Test Conditions/Comments
WAVEFORM SAMPLING Sampling CLKIN/2048, 16.384 MHz/2048
= 8 kSPS
Current and Voltage Channels See the Waveform Sampling Mode
section
Signal-to-Noise Ratio, SNR 72 dB PGA = 1, fundamental frequency = 45 Hz
to 65 Hz, see the Terminology section
Signal-to-Noise-and-Distortion Ratio, 72 dB PGA = 1, fundamental frequency = 45 Hz
SINAD to 65 Hz, see the Terminology section
Bandwidth (−3 dB) 3.3 kHz
TIME INTERVAL BETWEEN PHASES
Measurement Error 0.3 Degrees Line frequency = 45 Hz to 65 Hz, HPF on
CF1, CF2, CF3 PULSE OUTPUTS
Maximum Output Frequency 68.818 kHz WTHR = VARTHR = VATHR = 3
Duty Cycle 50 % If CF1, CF2, or CF3 frequency > 6.25 Hz
and CFDEN is even and > 1
(1 + 1/CFDEN) × % If CF1, CF2, or CF3 frequency > 6.25 Hz
50 and CFDEN is odd and > 1
Active Low Pulse Width 80 ms If CF1, CF2, or CF3 frequency < 6.25 Hz
Jitter 0.04 % For CF1, CF2, or CF3 frequency = 1 Hz and
nominal phase currents are larger than
10% of full scale
REFERENCE INPUT
REFIN/OUT Input Voltage Range 1.1 1.3 V Minimum = 1.2 V − 8%; maximum =
1.2 V + 8%
Input Capacitance 10 pF
ON-CHIP REFERENCE Nominal 1.2 V at the REFIN/OUT pin at
TA = 25°C
PSM0 and PSM1 Modes
Temperature Coefficient −50 ±20 +50 ppm/°C Drift across the entire temperature range
of −40°C to +85°C is calculated with
reference to 25°C; see the Reference
Circuit section for more details
CLKIN See the Crystal Circuit section for more
details
Input Clock Frequency 16.22 16.384 16.55 MHz
LOGIC INPUTS—MOSI/SDA, SCLK/SCL, SS,
RESET, PM0, AND PM1
Input High Voltage, VINH 2.4 V VDD = 3.3 V
Input Current, IIN 82 nA Input = VDD = 3.3 V
Input Low Voltage, VINL 0.8 V VDD = 3.3 V
Input Current, IIN −7.3 µA Input = 0, VDD = 3.3 V
Input Capacitance, CIN 10 pF
LOGIC OUTPUTS—IRQ0, IRQ1, AND VDD = 3.3 V
MISO/HSD
Output High Voltage, VOH 3.0 V ISOURCE = 800 µA
Output Low Voltage, VOL 0.4 V ISINK = 2 mA
CF1, CF2, CF3/HSCLK
Output High Voltage, VOH 2.4 V ISOURCE = 500 µA
Output Low Voltage, VOL 0.4 V ISINK = 8 mA
POWER SUPPLY For specified performance
PSM0 Mode
VDD Pin 2.97 3.63 V Minimum = 3.3 V − 10%; maximum =
3.3 V + 10%
IDD 25 28 mA

Rev. C | Page 7 of 107


ADE7880 Data Sheet
Parameter1, 2 Min Typ Max Unit Test Conditions/Comments
PSM1 and PSM2 Modes
VDD Pin 2.4 3.7 V
IDD
PSM1 Mode 5.3 5.8 mA
PSM2 Mode 0.2 0.27 mA
PSM3 Mode For specified performance
VDD Pin 2.4 3.7 V
IDD in PSM3 Mode 1.8 6 μA
1
See the Typical Performance Characteristics section.
2
See the Terminology section for a definition of the parameters.
 2800 
 
3
means the whole number of the division.
 fL 

TIMING CHARACTERISTICS
VDD = 3.3 V ± 10%, AGND = DGND = 0 V, on-chip reference, CLKIN = 16.384 MHz, TMIN to TMAX = −40°C to +85°C. Note that dual
function pin names are referenced by the relevant function only within the timing tables and diagrams (see the Pin Configuration and
Function Descriptions section for full pin mnemonics and descriptions).

Table 2. I2C-Compatible Interface Timing Parameter


Standard Mode Fast Mode
Parameter Symbol Min Max Min Max Unit
SCL Clock Frequency fSCL 0 100 0 400 kHz
Hold Time (Repeated) Start Condition tHD;STA 4.0 0.6 μs
Low Period of SCL Clock tLOW 4.7 1.3 μs
High Period of SCL Clock tHIGH 4.0 0.6 μs
Set-Up Time for Repeated Start Condition tSU;STA 4.7 0.6 μs
Data Hold Time tHD;DAT 0.1 3.45 0.1 0.9 μs
Data Setup Time tSU;DAT 250 100 ns
Rise Time of Both SDA and SCL Signals tR 1000 20 300 ns
Fall Time of Both SDA and SCL Signals tF 300 20 300 ns
Setup Time for Stop Condition tSU;STO 4.0 0.6 μs
Bus Free Time Between a Stop and Start Condition tBUF 4.7 1.3 μs
Pulse Width of Suppressed Spikes tSP N/A1 50 ns
1
N/A means not applicable.

SDA

tBUF
tF tSU;DAT tHD;STA tSP tF
tF tF
tLOW

SCL

tHD;STA
tHD;DAT tSU;STA tSU;STO
tHIGH
10193-002

START REPEATED START STOP START


CONDITION CONDITION CONDITION CONDITION

Figure 2. I2C-Compatible Interface Timing

Rev. C | Page 8 of 107


Data Sheet ADE7880
Table 3. SPI Interface Timing Parameters
Parameter Symbol Min Max Unit
SS to SCLK Edge tSS 50 ns
SCLK Period 0.4 40001 μs
SCLK Low Pulse Width tSL 175 ns
SCLK High Pulse Width tSH 175 ns
Data Output Valid After SCLK Edge tDAV 100 ns
Data Input Setup Time Before SCLK Edge tDSU 100 ns
Data Input Hold Time After SCLK Edge tDHD 5 ns
Data Output Fall Time tDF 20 ns
Data Output Rise Time tDR 20 ns
SCLK Rise Time tSR 20 ns
SCLK Fall Time tSF 20 ns
MISO Disable After SS Rising Edge tDIS 200 ns
SS High After SCLK Edge tSFS 0 ns
1
Guaranteed by design.

SS

tSS
tSFS

SCLK

tSL
tSH tSF tSR
tDAV
tDIS

MISO MSB INTERMEDIATE BITS LSB

tDF tDR

INTERMEDIATE BITS

MOSI MSB IN LSB IN

tDSU
10193-003

tDHD

Figure 3. SPI Interface Timing

Rev. C | Page 9 of 107


ADE7880 Data Sheet
Table 4. HSDC Interface Timing Parameter
Parameter Symbol Min Max Unit
HSA to HSCLK Edge tSS 0 ns
HSCLK Period 125 ns
HSCLK Low Pulse Width tSL 50 ns
HSCLK High Pulse Width tSH 50 ns
Data Output Valid After HSCLK Edge tDAV 40 ns
Data Output Fall Time tDF 20 ns
Data Output Rise Time tDR 20 ns
HSCLK Rise Time tSR 10 ns
HSCLK Fall Time tSF 10 ns
HSD Disable After HSA Rising Edge tDIS 5 ns
HSA High After HSCLK Edge tSFS 0 ns

HSA

tSS
tSFS

HSCLK

tSL

tSH tSF tSR


tDAV
tDIS

HSD MSB INTERMEDIATE BITS LSB

10193-004
tDF tDR

Figure 4. HSDC Interface Timing

2mA IOL

TO OUTPUT 1.6V
PIN
CL
50pF

800µA IOH
10193-005

Figure 5. Load Circuit for Timing Specifications

Rev. C | Page 10 of 107


Data Sheet ADE7880

ABSOLUTE MAXIMUM RATINGS


TA = 25°C, unless otherwise noted. Stresses at or above those listed under Absolute Maximum
Table 5. Ratings may cause permanent damage to the product. This is a
stress rating only; functional operation of the product at these
Parameter1 Rating
or any other conditions above those indicated in the operational
VDD to AGND −0.3 V to +3.7 V
section of this specification is not implied. Operation beyond
VDD to DGND −0.3 V to +3.7 V
the maximum operating conditions for extended periods may
Analog Input Voltage to AGND, IAP, IAN, −2 V to +2 V
IBP, IBN, ICP, ICN, VAP, VBP, VCP, VN affect product reliability.
Analog Input Voltage to INP and INN −2 V to +2 V THERMAL RESISTANCE
Reference Input Voltage to AGND −0.3 V to VDD + 0.3 V
θJA is specified equal to 29.3°C/W; θJC is specified equal to
Digital Input Voltage to DGND −0.3 V to VDD + 0.3 V
1.8°C/W.
Digital Output Voltage to DGND −0.3 V to VDD + 0.3 V
Operating Temperature Table 6. Thermal Resistance
Industrial Range −40°C to +85°C Package Type θJA θJC Unit
Storage Temperature Range −65°C to +150°C 40-Lead LFCSP 29.3 1.8 °C/W
Junction Temperature 150°C
Lead Temperature (Soldering, 10 sec) 300°C
1
ESD CAUTION
Regarding the temperature profile used in soldering RoHS Compliant Parts,
Analog Devices, Inc. advises that reflow profiles conform to J-STD 20 from
JEDEC. Refer to JEDEC website for the latest revision.

Rev. C | Page 11 of 107


ADE7880 Data Sheet

PIN CONFIGURATION AND FUNCTION DESCRIPTIONS

CF2/HREADY
CF3/HSCLK
SCLK/SCL
MOSI/SDA
MISO/HSD
SS/HSA

IRQ1
CF1

NC
NC

34
33
40
39
38
37
36
35

32
31
NC 1 30 NC
PM0 2 29 IRQ0
PM1 3 28 CLKOUT
RESET 4 ADE7880 27 CLKIN
DVDD 5 26 VDD
DGND 6 TOP VIEW 25 AGND
IAP 7 (Not to Scale) 24 AVDD
IAN 8 23 VAP
IBP 9 22 VBP
NC 10 21 NC
11
12
13

16
14
15

18
19
20
17 REFIN/OUT
IBN

INN

VN
ICN
ICP

INP

VCP
NC

NC
NOTES
1. NC = NO CONNECT.
2. CREATE A SIMILAR PAD ON THE PCB UNDER THE
EXPOSED PAD. SOLDER THE EXPOSED PAD TO

10193-006
THE PAD ON THE PCB TO CONFER MECHANICAL
STRENGTH TO THE PACKAGE. CONNECT THE
PADS TO AGND AND DGND.

Figure 6. Pin Configuration

Table 7. Pin Function Descriptions


Pin No. Mnemonic Description
1, 10, 11, 20, NC No Connect. Do not connect to these pins. These pins are not connected internally.
21, 30, 31, 40
2 PM0 Power Mode Pin 0. This pin, combined with PM1, defines the power mode of the ADE7880, as
described in Table 8.
3 PM1 Power Mode Pin 1. This pin defines the power mode of the ADE7880 when combined with PM0, as
described in Table 8.
4 RESET Reset Input, Active Low. In PSM0 mode, this pin must stay low for at least 10 μs to trigger a
hardware reset.
5 DVDD 2.5 V Output of the Digital Low Dropout (LDO) Regulator. Decouple this pin with a 4.7 μF capacitor
in parallel with a ceramic 220 nF capacitor. Do not connect external active circuitry to this pin.
6 DGND Ground Reference. This pin provides the ground reference for the digital circuitry.
7, 8 IAP, IAN Analog Inputs for Current Channel A. This channel is used with the current transducers and is
referenced in this data sheet as Current Channel A. These inputs are fully differential voltage inputs
with a maximum differential level of ±0.5 V. This channel also has an internal PGA equal to the ones
on Channel B and Channel C.
9, 12 IBP, IBN Analog Inputs for Current Channel B. This channel is used with the current transducers and is
referenced in this data sheet as Current Channel B. These inputs are fully differential voltage inputs
with a maximum differential level of ±0.5 V. This channel also has an internal PGA equal to the ones
on Channel C and Channel A.
13, 14 ICP, ICN Analog Inputs for Current Channel C. This channel is used with the current transducers and is
referenced in this data sheet as Current Channel C. These inputs are fully differential voltage inputs
with a maximum differential level of ±0.5 V. This channel also has an internal PGA equal to the ones
on Channel A and Channel B.
15, 16 INP, INN Analog Inputs for Neutral Current Channel N. This channel is used with the current transducers and
is referenced in this data sheet as Current Channel N. These inputs are fully differential voltage
inputs with a maximum differential level of ±0.5 V. This channel also has an internal PGA, different
from the ones found on the A, B, and C channels.
17 REFIN/OUT This pin provides access to the on-chip voltage reference. The on-chip reference has a nominal
value of 1.2 V. An external reference source with 1.2 V ± 8% can also be connected at this pin. In
either case, decouple this pin to AGND with a 4.7 μF capacitor in parallel with a ceramic 100 nF
capacitor. After reset, the on-chip reference is enabled.

Rev. C | Page 12 of 107


Data Sheet ADE7880
Pin No. Mnemonic Description
18, 19, 22, 23 VN, VCP, VBP, VAP Analog Inputs for the Voltage Channel. This channel is used with the voltage transducer and is
referenced as the voltage channel in this data sheet. These inputs are single-ended voltage inputs
with a maximum signal level of ±0.5 V with respect to VN for specified operation. This channel also
has an internal PGA.
24 AVDD 2.5 V Output of the Analog Low Dropout (LDO) Regulator. Decouple this pin with a 4.7 μF capacitor
in parallel with a ceramic 220 nF capacitor. Do not connect external active circuitry to this pin.
25 AGND Ground Reference. This pin provides the ground reference for the analog circuitry. Tie this pin to the
analog ground plane or to the quietest ground reference in the system. Use this quiet ground
reference for all analog circuitry, for example, antialiasing filters, current, and voltage transducers.
26 VDD Supply Voltage. This pin provides the supply voltage. In PSM0 (normal power mode), maintain the
supply voltage at 3.3 V ± 10% for specified operation. In PSM1 (reduced power mode), PSM2 (low
power mode), and PSM3 (sleep mode), when the ADE7880 is supplied from a battery, maintain the
supply voltage between 2.4 V and 3.7 V. Decouple this pin to DGND with a 10 µF capacitor in parallel
with a ceramic 100 nF capacitor.
27 CLKIN Master Clock. An external clock can be provided at this logic input. Alternatively, a parallel resonant
AT-cut crystal can be connected across CLKIN and CLKOUT to provide a clock source for the ADE7880.
The clock frequency for specified operation is 16.384 MHz. Use ceramic load capacitors of a few tens
of picofarad with the gate oscillator circuit. Refer to the data sheet of the crystal manufacturer for
load capacitance requirements.
28 CLKOUT A crystal can be connected across this pin and CLKIN (as previously described with Pin 27 in this
table) to provide a clock source for the ADE7880.
29, 32 IRQ0, IRQ1 Interrupt Request Outputs. These are active low logic outputs. See the Interrupts section for a
detailed presentation of the events that can trigger interrupts.
33, 34, 35 CF1, CF2/HREADY, Calibration Frequency (CF) Logic Outputs. These outputs provide power information based on the
CF3/HSCLK CF1SEL[2:0], CF2SEL[2:0], and CF3SEL[2:0] bits in the CFMODE register. These outputs are used for
operational and calibration purposes. The full-scale output frequency can be scaled by writing to
the CF1DEN, CF2DEN, and CF3DEN registers, respectively (see the Energy-to-Frequency Conversion
section). CF2 is multiplexed with the HREADY signal generated by the harmonic calculations block.
CF3 is multiplexed with the serial clock output of the HSDC port.
36 SCLK/SCL Serial Clock Input for SPI Port/Serial Clock Input for I2C Port. All serial data transfers are synchronized
to this clock (see the Serial Interfaces section). This pin has a Schmidt trigger input for use with a
clock source that has a slow edge transition time, for example, optoisolator outputs.
37 MISO/HSD Data Out for SPI Port/Data Out for HSDC Port.
38 MOSI/SDA Data In for SPI Port/Data Out for I2C Port.
39 SS/HSA Slave Select for SPI Port/HSDC Port Active.
EP Exposed Pad Create a similar pad on the PCB under the exposed pad. Solder the exposed pad to the pad on the
PCB to confer mechanical strength to the package. Connect the pads to AGND and DGND.

Rev. C | Page 13 of 107


ADE7880 Data Sheet

TYPICAL PERFORMANCE CHARACTERISTICS


0.5 0.5
VDD = 2.97V
VDD = 3.30V
VDD = 3.63V
0.3 0.3

0.1 0.1
ERROR (%)

ERROR (%)
–0.1 –0.1

–0.3 –0.3
+85°C, PF = 1.0
+25°C, PF = 1.0
–40°C, PF = 1.0
–0.5 –0.5

10193-100

10193-103
0.01 0.1 1 10 100 0.01 0.1 1 10 100
PERCENTAGE OF FULL-SCALE CURRENT (%) PERCENTAGE OF FULL-SCALE CURRENT (%)

Figure 7. Total Active Energy Error as Percentage of Reading (Gain = +1, Figure 10. Total Active Energy Error as Percentage of Reading (Gain = +1)
Power Factor = 1) over Temperature with Internal Reference and over Power Supply with Internal Reference and Integrator Off
Integrator Off
0.5 0.5
GAIN = +1
GAIN = +2
GAIN = +4
GAIN = +8 0.3
0.3
GAIN = +16

0.1 0.1
ERROR (%)
ERROR (%)

–0.1 –0.1

–0.3 –0.3
+85°C, PF = 1.0
+25°C, PF = 1.0
–40°C, PF = 1.0
–0.5 –0.5

10193-104
10193-101

0.01 0.1 1 10 100 0.01 0.1 1 10 100


PERCENTAGE OF FULL-SCALE CURRENT (%) PERCENTAGE OF FULL-SCALE CURRENT (%)

Figure 8. Total Active Energy Error as Percentage of Reading over Gain with Figure 11. Total Active Energy Error as Percentage of Reading (Gain = +16)
Internal Reference and Integrator Off over Temperature with Internal Reference and Integrator On

0.5 0.5
PF = +1.0
PF = +0.5
PF = –0.5

0.3 0.3

0.1 0.1
ERROR (%)
ERROR (%)

–0.1 –0.1

–0.3 –0.3
+85°C, PF = 1.0
+25°C, PF = 1.0
–40°C, PF = 1.0
–0.5 –0.5
10193-105
10193-102

45 47 49 51 53 55 57 59 61 63 65 0.01 0.1 1 10 100


LINE FREQUENCY (Hz) PERCENTAGE OF FULL-SCALE CURRENT (%)

Figure 9. Total Active Energy Error as Percentage of Reading (Gain = +1) over Figure 12. Fundamental Active Energy Error as Percentage of Reading
Frequency with Internal Reference and Integrator Off (Gain = +1, Power Factor = 1) over Temperature with Internal Reference and
Integrator Off

Rev. C | Page 14 of 107


Data Sheet ADE7880
0.5 0.5
GAIN = +1 +85°C, PF = 0
GAIN = +2 +25°C, PF = 0
GAIN = +4 –40°C, PF = 0
GAIN = +8 0.3
0.3
GAIN = +16

0.1 0.1

ERROR (%)
ERROR (%)

–0.1 –0.1

–0.3 –0.3

–0.5 –0.5

10193-109
10193-106
0.01 0.1 1 10 100 0.01 0.1 1 10 100
PERCENTAGE OF FULL-SCALE CURRENT (%) PERCENTAGE OF FULL-SCALE CURRENT (%)

Figure 13. Fundamental Active Energy Error as Percentage of Reading over Figure 16. Fundamental Reactive Energy Error as Percentage of Reading
Gain with Internal Reference and Integrator Off (Gain = +1, Power Factor = 0) over Temperature with Internal Reference and
Integrator Off
0.5 0.5
VDD = 2.97V GAIN = +1
VDD = 3.30V GAIN = +2
VDD = 3.63V GAIN = +4
0.3 GAIN = +8
0.3
GAIN = +16

0.1 0.1
ERROR (%)

ERROR (%)

–0.1 –0.1

–0.3 –0.3

–0.5 –0.5
10193-107

10193-110
0.01 0.1 1 10 100 0.01 0.1 1 10 100
PERCENTAGE OF FULL-SCALE CURRENT (%) PERCENTAGE OF FULL-SCALE CURRENT (%)

Figure 14. Fundamental Active Energy Error as Percentage of Reading Figure 17. Fundamental Reactive Energy Error as Percentage of Reading over
(Gain = +1) over Power Supply with Internal Reference and Integrator Off Gain with Internal Reference and Integrator Off
0.5 0.5
PF = 0
PF = +0.866
PF = –0.866
0.3 0.3

0.1 0.1
ERROR (%)
ERROR (%)

–0.1 –0.1

–0.3 –0.3
+85°C, PF = 1.0
+25°C, PF = 1.0
–40°C, PF = 1.0 –0.5
–0.5
10193-111
10193-108

0.01 0.1 1 10 100 45 47 49 51 53 55 57 59 61 63 65


PERCENTAGE OF FULL-SCALE CURRENT (%) LINE FREQUENCY (Hz)

Figure 15. Fundamental Active Energy Error as Percentage of Reading Figure 18. Fundamental Reactive Energy Error as Percentage of Reading
(Gain = +1) over Temperature with Internal Reference and Integrator On (Gain = +1) over Frequency with Internal Reference and Integrator Off

Rev. C | Page 15 of 107


ADE7880 Data Sheet
0.5 0.5
VDD = 2.97V
VDD = 3.30V
VDD = 3.63V
0.3 0.3

0.1 0.1
ERROR (%)

ERROR (%)
–0.1 –0.1

–0.3 –0.3
+85°C, PF = 1.0
+25°C, PF = 1.0
–40°C, PF = 1.0
–0.5 –0.5

10193-112

10193-115
0.01 0.1 1 10 100 0.01 0.1 1 10 100
PERCENTAGE OF FULL-SCALE CURRENT (%) PERCENTAGE OF FULL-SCALE CURRENT (%)

Figure 19. Fundamental Reactive Energy Error as Percentage of Reading Figure 22. V RMS Error as a Percentage of Reading (Gain = +1) over
(Gain = +1) over Power Supply with Internal Reference and Integrator Off Temperature with Internal Reference
0.5 5

(% ERROR RELATIVE TO FUNDAMENTAL)


0.3 –5

–10

0.1
GAIN ERROR

–15
ERROR (%)

–20

–0.1 –25

–30

–0.3 –35
+85°C, PF = 0
+25°C, PF = 0 –40
–40°C, PF = 0
–0.5 –45
10193-113

10193-116
0.01 0.1 1 10 100 0 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 51 54 57 60 63
PERCENTAGE OF FULL-SCALE CURRENT (%) HARMONIC ORDER (55Hz FUNDAMENTAL)

Figure 20. Fundamental Reactive Energy Error as Percentage of Reading Figure 23. Harmonic I RMS Error as a Percentage of Reading over Harmonic
(Gain = +16) over Temperature with Internal Reference and Integrator On Order, 63 Harmonics, 55 Hz Fundamental, 30 Averages per Reading, 750 ms
Settling time, 125 µs Update Rate
0.5 6
MEASUREMENT ERROR (% of Reading)

4
0.3

2
0.1
ERROR (%)

–0.1
–2

–0.3
–4
+85°C, PF = 1.0
+25°C, PF = 1.0
–40°C, PF = 1.0
–0.5 –6
10193-114

10193-117

0.01 0.1 1 10 100 0.01 0.1 1 10 100


PERCENTAGE OF FULL-SCALE CURRENT (%) PERCENTAGE OF FULL-SCALE CURRENT (%)

Figure 21. I RMS Error as Percentage of Reading (Gain = +1) over Figure 24. Harmonic I RMS Error as a Percentage of Reading (Gain = +1),
Temperature with Internal Reference and Integrator Off 51 Harmonics, 55 Hz Fundamental, Single Reading, 750 ms Settling Time;
125 µs Update Rate

Rev. C | Page 16 of 107


Data Sheet ADE7880
6 6
MEASUREMENT ERROR (% of Reading)

MEASUREMENT ERROR (% of Reading)


4 4

2 2

0 0

–2 –2

–4 –4

–6 –6

10193-120
10193-118
0.01 0.1 1 10 100 0.01 0.1 1 10 100
PERCENTAGE OF FULL-SCALE CURRENT (%) PERCENTAGE OF FULL-SCALE CURRENT (%)

Figure 25. Harmonic I RMS Error as Percentage of Reading (Gain = +1), Figure 27. Harmonic Active Power Error as Percentage of Reading
51 Harmonics, 55 Hz Fundamental, 10 Averages per Reading, 750 ms (Gain = +1), 51 Harmonics, 55 Hz Fundamental, 10 Averages per Reading,
Settling Time, 125 µs Update Rate 750 ms Settling Time, 125 µs Update Rate
6 6
MEASUREMENT ERROR (% of Reading)

MEASUREMENT ERROR (% of Reading)


4 4

2 2

0 0

–2 –2

–4 –4

–6 –6

10193-121
10193-119

0.01 0.1 1 10 100 0.01 0.1 1 10 100


PERCENTAGE OF FULL-SCALE CURRENT (%) PERCENTAGE OF FULL-SCALE CURRENT (%)

Figure 26. Harmonic Active Power Error as Percentage of Reading Figure 28. Harmonic Reactive Power Error as Percentage of Reading
(Gain = +1), 51 Harmonics, 55 Hz Fundamental, Single Reading, (Gain = +1), 51 Harmonics, 55 Hz Fundamental, Single Reading, 750 ms
750 ms Settling Time, 125 µs Update Rate Settling Time, 125 µs Update Rate

Rev. C | Page 17 of 107


ADE7880 Data Sheet
6 6

MEASUREMENT ERROR (% of Reading)


MEASUREMENT ERROR (% of Reading)

4 4

2 2

0 0

–2 –2

–4 –4

–6 –6

10193-124
10193-122
0.01 0.1 1 10 100 0.01 0.1 1 10 100
PERCENTAGE OF FULL-SCALE CURRENT (%) PERCENTAGE OF FULL-SCALE CURRENT (%)

Figure 29. Harmonic Reactive Power Error as Percentage of Reading Figure 31. Harmonic Apparent Power Error as Percentage of Reading
(Gain = +1), 51 Harmonics, 55 Hz Fundamental, 10 Averages per Reading, (Gain = +1), 51 Harmonics, 55 Hz Fundamental, 10 Averages per Reading,
750 ms Settling Time, 125 µs Update Rate 750 ms Settling Time, 125 µs Update Rate
6
MEASUREMENT ERROR (% of Reading)

–2

–4

–6
10193-123

0.01 0.1 1 10 100


PERCENTAGE OF FULL-SCALE CURRENT (%)

Figure 30. Harmonic Apparent Power Error as Percentage of Reading


(Gain = +1), 51 Harmonics, 55 Hz Fundamental, Single Reading,
750 ms Settling Time, 125 µs Update Rate

Rev. C | Page 18 of 107


Data Sheet ADE7880

TEST CIRCUIT
In Figure 32, the PM1 and PM0 pins are pulled up internally to VDD. Select the mode of operation by using a microcontroller to
programmatically change the pin values. See the Power Management section for details.
3.3V

+
10µF 0.1µF

+ +
4.7µF 0.22µF 4.7µF 0.22µF

24 26 5

VDD
AVDD

DVDD
3.3V 2 PM0
SS/HSA 39
3 PM1
10kΩ 1µF MOSI/SDA 38
3.3V
1kΩ 4 RESET MISO/HSD 37
2.2nF 7 IAP 1.5kΩ
SCLK/SCL 36
2.2nF 8 IAN
CF3/HSCLK 35

1kΩ 9 IBP
SAME AS CF2 34
IAP, IAN 12 IBN SAME AS
CF1 33
ADE7880 CF2
13 ICP
SAME AS IRQ1 32
IAP, IAN
14 ICN
1kΩ 2.2nF IRQ0 29
18 VN
REFIN/OUT 17
CL2 +
19 VCP 4.7µF 0.1µF
CLKOUT 28
1kΩ 2.2nF SAME AS
22 VBP
VCP 5MΩ 16.384MHz
AGND
DGND

SAME AS 23 VAP
VCP CLKIN 27
6 25 CL1

10193-007
Figure 32. Test Circuit

Rev. C | Page 19 of 107


ADE7880 Data Sheet

TERMINOLOGY
Measurement Error Maximum = max(Period0, Period1, Period2, Period3)
The error associated with the energy measurement made by the Minimum = min(Period0, Period1, Period2, Period3)
ADE7880 is defined by
Period0  Period1  Period 2  Period3
Measurement Error = Average =
4
Energy Registered by ADE 7880  True Energy
 100% (1) The CF jitter is then computed as
True Energy
Maximum Minimum
Power Supply Rejection (PSR) CFJITTER   100% (2)
This quantifies the ADE7880 measurement error as a percen- Average
tage of reading when the power supplies are varied. For the ac Signal-to-Noise Ratio (SNR)
PSR measurement, a reading at nominal supplies (3.3 V) is SNR is the ratio of the rms value of the actual input signal to the
taken. A second reading is obtained with the same input signal rms sum of all other spectral components below 3.3 kHz, excluding
levels when an ac signal (120 mV rms at 100 Hz) is introduced harmonics and dc. The input signal contains only the fundamental
onto the supplies. Any error introduced by this ac signal is component. The spectral components are calculated over a 2 sec
expressed as a percentage of reading (see the Measurement window. The value for SNR is expressed in decibels.
Error definition).
Signal-to-Noise-and-Distortion (SINAD) Ratio
For the dc PSR measurement, a reading at nominal supplies SINAD is the ratio of the rms value of the actual input signal to the
(3.3 V) is taken. A second reading is obtained with the same rms sum of all other spectral components below 3.3 kHz,
input signal levels when the power supplies are varied ±10%. including harmonics but excluding dc. The input signal contains
Any error introduced is expressed as a percentage of the only the fundamental component. The spectral components are
reading. calculated over a 2 sec window. The value for SINAD is expressed
ADC Offset in decibels.
ADC offset refers to the dc offset associated with the analog Harmonic Power Measurement Error
inputs to the ADCs. It means that with the analog inputs To measure the error in the harmonic active and reactive power
connected to AGND, the ADCs still see a dc analog input calculations made by the ADE7880, the voltage channel is supplied
signal. The magnitude of the offset depends on the gain and with a signal comprising a fundamental and one harmonic
input range selection. The high-pass filter (HPF) removes the component with amplitudes equal to 250 mV. The current
offset from the current and voltage channels; therefore, the channel is supplied with a signal comprising a fundamental
power calculation remains unaffected by this offset. with amplitude of 50 mV and one harmonic component of the
Gain Error same index as the one in the voltage channel. The amplitude of
The gain error in the ADCs of the ADE7880 is defined as the the harmonic is varied from 250 mV, down to 250 μV, 2000 times
difference between the measured ADC output code (minus the lower than full scale.
offset) and the ideal output code (see the Current Channel ADC The error is defined by
section and the Voltage Channel ADC section). The difference
Measurement Error =
is expressed as a percentage of the ideal code.
Power Registered by ADE7880  True Power
CF Jitter 100% (3)
True Power
The period of pulses at one of the CF1, CF2, or CF3 pins is
continuously measured. The maximum, minimum, and average
values of four consecutive pulses are computed as follows:

Rev. C | Page 20 of 107


Data Sheet ADE7880

POWER MANAGEMENT
The ADE7880 has four modes of operation, determined by the during PSM1 (see the Current Mean Absolute Value Calculation
state of the PM0 and PM1 pins (see Table 8). These pins provide section for more details on the xIMAV registers).
complete control of the ADE7880 operation and can easily be The 20-bit mean absolute value measurements done in PSM1,
connected to an external microprocessor I/O. The PM0 and although also available in PSM0, are different from the rms meas-
PM1 pins have internal pull-up resistors. See Table 10 and Table 11 urements of phase currents and voltages executed only in PSM0
for a list of actions that are recommended before and after setting and stored in the HxIRMS and HxVRMS 24-bit registers. See
a new power mode. the Current Mean Absolute Value Calculation section for details.
Table 8. Power Supply Modes If the ADE7880 is set in PSM1 mode after being in PSM0 mode,
Power Supply Modes PM1 PM0 the ADE7880 begins the mean absolute value calculations without
PSM0, Normal Power Mode 0 1 any delay. The xIMAV registers are accessible at any time; however,
PSM1, Reduced Power Mode 0 0 if the ADE7880 is set in PSM1 mode after being in PSM2 or
PSM2, Low Power Mode 1 0 PSM3 modes, the ADE7880 signals the start of the mean absolute
PSM3, Sleep Mode 1 1 value computations by triggering the IRQ1 pin low. The xIMAV
registers can be accessed only after this moment.
PSM0—NORMAL POWER MODE (ALL PARTS)
PSM2—LOW POWER MODE
In PSM0 mode, the ADE7880 is fully functional. For the ADE7880
to enter this mode, the PM0 pin is set to high, and the PM1 pin In the low power mode, PSM2, the ADE7880 compares all
is set to low. If the ADE7880 is in PSM1, PSM2, or PSM3 mode phase currents against a threshold for a period of 0.02 ×
and is switched into PSM0 mode, then all control registers take (LPLINE[4:0] + 1) seconds, independent of the line frequency.
the default values with the exception of the threshold register, LPLINE[4:0] are Bits[7:3] of the LPOILVL register (see Table 9).
LPOILVL, which is used in PSM2 mode, and the CONFIG2
Table 9. LPOILVL Register
register, both of which maintain their values.
Bit Mnemonic Default Description
The ADE7880 signals the end of the transition period by triggering [2:0] LPOIL[2:0] 111 Threshold is put at a value
the IRQ1 interrupt pin low and setting Bit 15 (RSTDONE) in the corresponding to full scale
STATUS1 register to 1. This bit is 0 during the transition period multiplied by LPOIL/8
and becomes 1 when the transition is finished. The status bit is [7:3] LPLINE[4:0] 00000 The measurement period is
(LPLINE[4:0] + 1)/50 sec
cleared and the IRQ1 pin is set back to high by writing to the
STATUS1 register with the corresponding bit set to 1. Bit 15 The threshold is derived from Bits[2:0] (LPOIL[2:0]) of the
(RSTDONE) in the interrupt mask register does not have any LPOILVL register as LPOIL[2:0]/8 of full scale. Every time
functionality attached even if the IRQ1 pin goes low when Bit 15 one phase current becomes greater than the threshold, a
(RSTDONE) in the STATUS1 register is set to 1. This makes the counter is incremented. If every phase counter remains below
RSTDONE interrupt unmaskable. LPLINE[4:0] + 1 at the end of the measurement period, then
the IRQ0 pin is triggered low. If a single phase counter becomes
PSM1—REDUCED POWER MODE
greater or equal to LPLINE[4:0] + 1 at the end of the measurement
In the reduced power mode, PSM1, the ADE7880 measures the period, the IRQ1 pin is triggered low. Figure 33 illustrates how
mean absolute values (mav) of the 3-phase currents and stores the ADE7880 behaves in PSM2 mode when LPLINE[4:0] = 2
the results in the AIMAV, BIMAV, and CIMAV 20-bit registers. and LPOIL[2:0] = 3. The test period is three 50 Hz cycles (60 ms),
This mode is useful in missing neutral cases in which the voltage and the Phase A current rises above the LPOIL[2:0] threshold three
supply of the ADE7880 is provided by an external battery. The times. At the end of the test period, the IRQ1 pin is triggered low.
serial ports, I2C or SPI, are enabled in this mode; the active port
LPLINE[4:0] = 2
can be used to read the AIMAV, BIMAV, and CIMAV registers.
Do not read any of the other registers as their values are not LPOIL[2:0]
THRESHOLD
guaranteed in this mode. Similarly, the ADE7880 does not take a IA CURRENT

write operation into account by in this mode.


In summary, in this mode, it is not recommended to access any
register other than AIMAV, BIMAV, and CIMAV. The circuit
that computes the rms estimates is also active during PSM0;
therefore, its calibration can be completed in either PSM0 mode
PHASE PHASE PHASE
or in PSM1 mode. Note that the ADE7880 does not provide any COUNTER = 1 COUNTER = 2 COUNTER = 3

register to store or process the corrections resulting from the


10193-008

IRQ1
calibration process. The external microprocessor stores the gain
Figure 33. PSM2 Mode Triggering IRQ Pin for LPLINE[4:0] = 2 (50 Hz Systems)
values in connection with these measurements and uses them
Rev. C | Page 21 of 107
ADE7880 Data Sheet
+V p-p/2
+V p-p currents when there is no voltage input and the voltage supply
IxP
of the ADE7880 is provided by an external battery. If the IRQ0
pin is triggered low at the end of a measurement period, it signifies
IxP – IxN
–V p-p/2 all phase currents stayed below threshold and, therefore, there is
+V p-p/2
no current flowing through the system. At this point, the external
IxN
microprocessor sets the ADE7880 into sleep mode PSM3. If the
–V p-p
IRQ1 pin is triggered low at the end of the measurement period,
–V p-p/2 it signifies that at least one current input is above the defined
(a) threshold and current is flowing through the system, although
no voltage is present at the ADE7880 pins. This situation is often
IxP called missing neutral and is considered a tampering situation,
at which point the external microprocessor sets the ADE7880
PEAK DETECT CIRCUIT
TAMPER into PSM1 mode, measures the mean absolute values of phase
INDICATION
VREF
currents, and integrates the energy based on their values and the
nominal voltage.
10193-134
(b) It is recommended to use the ADE7880 in PSM2 mode when
Figure 34. PSM2 Low Power Mode Peak Detection Bits[2:0] (PGA1[2:0]) of the Gain register are equal to 1 or 2.
These bits represent the gain in the current channel data path. It
The PSM2 level threshold comparison works based on a peak
is not recommended to use the ADE7880 in PSM2 mode when
detection methodology. The peak detect circuit makes the
the PGA1[2:0] bits are equal to 4, 8, or 16.
comparison based on the positive terminal current channel
input, IAP, IBP, and ICP (see Figure 34). In case of differential PSM3—SLEEP MODE (ALL PARTS)
inputs being applied to the current channels, Figure 34 shows In sleep mode, the ADE7880 has most of its internal circuits
the differential antiphase signals at each of the current input turned off and the current consumption is at its lowest level.
terminals, IxP and IxN, and the net differential current, IxP − IxN. The I2C, HSDC, and SPI ports are not functional during this
The I2C or SPI port is not functional during this mode. The PSM2 mode, and the RESET, SCLK/SCL, MOSI/SDA, and SS/HSA pins
mode reduces the power consumption required to monitor the must be set high.

Table 10. Power Modes and Related Characteristics


Power Mode All Registers1 LPOILVL, CONFIG2 I2C/SPI Functionality
PSM0
State After Hardware Reset Set to default Set to default I2C enabled All circuits are active and DSP is in idle
mode.
State After Software Reset Set to default Unchanged Active serial port is All circuits are active and DSP is in idle
unchanged if lock-in mode.
procedure has been
previously executed
PSM1 Not available PSM0 values retained Enabled Current mean absolute values are
computed and the results are stored
in the AIMAV, BIMAV, and CIMAV
registers. The I2C or SPI serial port is
enabled with limited functionality.
PSM2 Not available PSM0 values retained Disabled Compares phase currents against the
threshold set in LPOILVL. Triggers
IRQ0or IRQ1 pins accordingly. The
serial ports are not available.
PSM3 Not available PSM0 values retained Disabled Internal circuits shut down and the
serial ports are not available.
1
Setting for all registers except the LPOILVL and CONFIG2 registers.

Rev. C | Page 22 of 107


Data Sheet ADE7880

Table 11. Recommended Actions When Changing Power Modes


Initial Power Before Setting Next Next Power Mode
Mode Power Mode PSM0 PSM1 PSM2 PSM3
PSM0 Stop DSP by setting the Current mean absolute Wait until the IRQ0 No action
Run register = 0x0000 values (mav) computed or IRQ1 pin is necessary
immediately triggered
Disable HSDC by clearing xIMAV registers can be accordingly
Bit 6 (HSDCEN) to 0 in the accessed immediately
CONFIG register
Mask interrupts by setting
MASK0 = 0x0 and
MASK1 = 0x0
Erase interrupt status flags
in the STATUS0 and STATUS1
registers
PSM1 No action necessary Wait until the IRQ1 pin Wait until the IRQ0 No action
is triggered low or IRQ1 pin is necessary
Poll the STATUS1 triggered
register until Bit 15 accordingly
(RSTDONE) is set to 1
PSM2 No action necessary Wait until the IRQ1 pin Wait until the IRQ1 pin No action
is triggered low triggered low necessary
Poll the STATUS1 Current mean absolute
register until Bit 15 values compute at this
(RSTDONE) is set to 1 moment
xIMAV registers may be
accessed from this
moment
PSM3 No action necessary Wait until the IRQ1 pin Wait until the IRQ1 pin is Wait until the IRQ0
is triggered low triggered low or IRQ1 pin is
Poll the STATUS1 Current mav circuit triggered
register until Bit 15 begins computations at accordingly
(RSTDONE) is set to 1 this time
xIMAV registers can be
accessed from this
moment

Rev. C | Page 23 of 107


ADE7880 Data Sheet
POWER-UP PROCEDURE

3.3V – 10%

VDD 2.0V ± 10% ADE7880


PSM0 READY

0V

~26ms ~40ms
MICROPROCESSOR
MAKES THE

10193-009
MICROPROCESSOR POR TIMER ADE7880 RSTDONE CHOICE BETWEEN
SETS PM1 PIN TO 0; TURNED ON FULLY INTERRUPT I2C AND SPI
APPLY VDD TO CHIP POWERED UP TRIGGERED

Figure 35. Power-Up Procedure

The ADE7880 contains an on-chip power supply monitor that Immediately after entering PSM0 mode, all registers in the
supervises the power supply (VDD). At power-up, the device is ADE7880 are set to their default values, including the
inactive until VDD reaches 2.0 V ± 10%. When VDD crosses CONFIG2 and LPOILVL registers.
this threshold, the power supply monitor keeps the device in the The ADE7880 signals the end of the transition period by pulling
inactive state for an additional 26 ms to allow VDD to rise to the IRQ1 interrupt pin low and setting Bit 15 (RSTDONE) in
3.3 V − 10%, the minimum recommended supply voltage.
the STATUS1 register to 1. This bit is cleared to 0 during the
The PM0 and PM1 pins have internal pull-up resistors, but it is transition period and is set to 1 when the transition ends.
necessary to set the PM1 pin to Logic 0, either through a micro- Writing the STATUS1 register with the RSTDONE bit set to 1
controller or by grounding the PM1 pin externally, before powering clears the status bit and returns the IRQ1 pin high. Because
up the chip. The PM0 pin can remain open as it is held high, due RSTDONE is an unmaskable interrupt, Bit 15 (RSTDONE) in
to the internal pull-up resistor. This ensures that the ADE7880 the STATUS1 register must be cancelled for the IRQ1 pin to
always powers up in PSM0 (normal) mode. The time from the chip return high. Wait until the IRQ1 pin goes low before accessing
being powered up completely to all functionality being enabled the STATUS1 register to test the state of the RSTDONE bit. At
is about 40 ms (see Figure 35). It is necessary to ensure that the this point, as a good programming practice, cancel all other
RESET pin is held high during the entire power-up procedure. status flags in the STATUS1 and STATUS0 registers by writing
If PSM0 mode is the only desired power mode, the PM1 pin can the corresponding bits with 1.
be tied to ground externally. When the ADE7880 enters PSM0 Initially, the DSP is in idle mode and, therefore, does not execute
mode, the I2C port is the active serial port. To use the SPI port, any instructions. This is the moment to initialize all registers in
toggle the SS/HSA pin three times from high to low. the ADE7880. See the Digital Signal Processor section for the
To lock I2C as the active serial port, set Bit 1 (I2C_LOCK) of the proper procedure to initialize all registers and start the metering.
CONFIG2 register to 1. From this moment, the device ignores If the supply voltage, VDD, falls lower than 2.0 V ± 10%, the
spurious toggling of the SS/HSA pin, and a switch to the SPI ADE7880 enters an inactive state, which means that no
port is no longer possible. measurements or computations are executed.
If SPI is the active serial port, any write to the CONFIG2 register If the RESET pin is held low while the IC powers up or if the
locks the port, and a switch to the I2C port is no longer possible. power-up sequence timing cannot be maintained as per
To use the I2C port, the ADE7880 must be powered down or the Figure 35, perform the following sequence of write operations
device must be reset by setting the RESET pin low. After the serial prior to starting the DSP (setting the RUN register to 0x01), to
port is locked, the serial port selection is maintained when the ensure that the modulators are reset properly.
device changes from one PSMx power mode to another.
1. 8-bit write: 0xAD is written at Address 0xE7FE.
2. 8-bit write: 0x14 is written at Address 0xE7E2.
3. Wait 200 μs.
4. 8-bit write: 0xAD is written at Address 0xE7FE.
5. 8-bit write: 0x04 is written at Address 0xE7E2.

Rev. C | Page 24 of 107


Data Sheet ADE7880
HARDWARE RESET SOFTWARE RESET FUNCTIONALITY
The ADE7880 has a RESET pin. If the ADE7880 is in PSM0 Bit 7 (SWRST) in the CONFIG register manages the software
mode and the RESET pin is set low, then the ADE7880 enters reset functionality in PSM0 mode. The default value of this bit is 0.
the hardware reset state. The ADE7880 must be in PSM0 mode If this bit is set to 1, then the ADE7880 enters the software reset
for a hardware reset to be considered. Setting the RESET pin state. In this state, almost all internal registers are set to their
low while the ADE7880 is in PSM1, PSM2, and PSM3 modes default values. In addition, the choice of which serial port, I2C or
does not have any effect. SPI, is in use remains unchanged if the lock-in procedure has
been executed previously (see the Serial Interfaces section for
If the ADE7880 is in PSM0 mode and the RESET pin is toggled details). The registers that maintain their values despite the
from high to low and then back to high after at least 10 µs, all the SWRST bit being set to 1 are the CONFIG2 and LPOILVL
registers are set to their default values, including the CONFIG2 and registers. When the software reset ends, Bit 7 (SWRST) in the
LPOILVL registers. The ADE7880 signals the end of the transition CONFIG register is cleared to 0, the IRQ1 interrupt pin is set
period by triggering the IRQ1 interrupt pin low and setting Bit 15 low, and Bit 15 (RSTDONE) in the STATUS1 register is set to 1.
(RSTDONE) in the STATUS1 register to 1. This bit is 0 during the This bit is 0 during the transition period and becomes 1 when
transition period and becomes 1 when the transition ends. The the transition ends. The status bit is cleared and the IRQ1 pin is
status bit is cleared and the IRQ1 pin is returned high by writing set back high by writing to the STATUS1 register with the
to the STATUS1 register with the corresponding bit set to 1. corresponding bit set to 1.
After a hardware reset, the DSP is in idle mode, which means it After a software reset ends, the DSP is in idle mode, which means it
does not execute any instruction. does not execute any instruction. As a good programming practice,
Because the I2C port is the default serial port of the ADE7880, it it is recommended to initialize all the ADE7880 registers and
becomes active after a reset state. If SPI is the port used by the then write 0x0001 into the Run register to start the DSP (see the
external microprocessor, the procedure to enable it must be Digital Signal Processor section for details on the Run register).
repeated immediately after the RESET pin is toggled back to Software reset functionality is not available in PSM1, PSM2, or
high (see the Serial Interfaces section for details). PSM3 mode.
At this point, it is recommended to initialize all of the ADE7880
registers and then write 0x0001 into the Run register to start the
DSP. See the Digital Signal Processor section for details on the
Run register.

Rev. C | Page 25 of 107


ADE7880 Data Sheet

THEORY OF OPERATION
DIFFERENTIAL INPUT
ANALOG INPUTS V1 + V2 = 500mV MAX PEAK
COMMON MODE
V1
The ADE7880 has seven analog inputs forming current and VCM = ±25mV MAX

voltage channels. The current channels consist of four pairs of +500mV VAP, VBP,
fully differential voltage inputs: IAP and IAN, IBP and IBN, ICP V1 OR VCP

and ICN, and INP and INN. These voltage input pairs have a VCM
maximum differential signal of ±0.5 V. VN
VCM

10193-011
–500mV
The maximum signal level on analog inputs for the IxP/IxN
pair is also ±0.5 V with respect to AGND. The maximum
Figure 38. PGA in Current and Voltage Channels
common-mode signal allowed on the inputs is ±25 mV. Figure 36
presents a schematic of the input for the current channels and ANALOG-TO-DIGITAL CONVERSION
their relation to the maximum common-mode voltage. The ADE7880 has seven sigma-delta (Σ-Δ) analog-to-digital
DIFFERENTIAL INPUT
V1 + V2 = 500mV MAX PEAK
converters (ADCs). In PSM0 mode, all ADCs are active. In
COMMON MODE PSM1 mode, only the ADCs that measure the Phase A, Phase B,
V1 + V2
VCM = ±25mV MAX
and Phase C currents are active. The ADCs that measure the
+500mV IAP, IBP, neutral current and the A, B, and C phase voltages are turned
V1 ICP, OR INP
off. In PSM2 and PSM3 modes, the ADCs are powered down to
VCM minimize power consumption.
VCM V2 IAN, IBN,
For simplicity, the block diagram in Figure 39 shows a first-order
10193-010

–500mV ICN, OR INN


Σ-Δ ADC. The converter is composed of the Σ-Δ modulator
Figure 36. Maximum Input Level, Current Channels, Gain = 1 and the digital low-pass filter.
CLKIN/16
All inputs have a programmable gain amplifier (PGA) with a ANALOG
LOW-PASS FILTER DIGITAL
possible gain selection of 1, 2, 4, 8, or 16. The gain of IA, IB, and INTEGRATOR
LATCHED
LOW-PASS
R FILTER
IC inputs is set in Bits[2:0] (PGA1[2:0]) of the Gain register. +
+
COMPARATOR

The gain of the IN input is set in Bits[5:3] (PGA2[2:0]) of the C
VREF
– 24

Gain register; thus, a different gain from the IA, IB, or IC inputs
is possible. See Table 43 for details on the Gain register.
.....10100101.....

10193-013
The voltage channel has three single-ended voltage inputs: VAP, 1-BIT DAC

VBP, and VCP. These single-ended voltage inputs have a maximum Figure 39. First-Order Σ-∆ ADC
input voltage of ±0.5 V with respect to VN. The maximum signal
level on analog inputs for VxP and VN is also ±0.5 V with respect A Σ-Δ modulator converts the input signal into a continuous
to AGND. The maximum common-mode signal allowed on the serial stream of 1s and 0s at a rate determined by the sampling
inputs is ±25 mV. Figure 37 presents a schematic of the voltage clock. In the ADE7880, the sampling clock is equal to 1.024 MHz
channels inputs and their relation to the maximum common- (CLKIN/16). The 1-bit DAC in the feedback loop is driven by
mode voltage. the serial data stream. The DAC output is subtracted from the
GAIN input signal. If the loop gain is high enough, the average value
SELECTION
of the DAC output (and, therefore, the bit stream) can approach
IxP, VyP that of the input signal level. For any given input value in a single
VIN K × VIN sampling interval, the data from the 1-bit ADC is virtually mean-
ingless. Only when a large number of samples are averaged is a
IxN, VN
meaningful result obtained. This averaging is carried out in the
NOTES second part of the ADC, the digital low-pass filter. By averaging
10193-012

1. x = A, B, C, N
y = A, B, C. a large number of bits from the modulator, the low-pass filter
Figure 37. Maximum Input Level, Voltage Channels, Gain = 1 can produce 24-bit data-words that are proportional to the
input signal level.
All inputs have a programmable gain with a possible gain
selection of 1, 2, 4, 8, or 16. To set the gain, use Bits[8:6]
(PGA3[2:0]) in the Gain register (see Table 43).
Figure 38 shows how the gain selection from the Gain register
works in both current and voltage channels.

Rev. C | Page 26 of 107


Data Sheet ADE7880
The Σ-Δ converter uses two techniques to achieve high resolu- sampling frequency, that is, 1.024 MHz, move into the band of
tion from what is essentially a 1-bit conversion technique. The interest for metering, that is, 40 Hz to 3.3 kHz. To attenuate the
first is oversampling. Oversampling means that the signal is high frequency (near 1.024 MHz) noise and prevent the distortion
sampled at a rate (frequency) that is many times higher than of the band of interest, a low-pass filter (LPF) must be introduced.
the bandwidth of interest. For example, the sampling rate in For conventional current sensors, it is recommended to use one
the ADE7880 is 1.024 MHz, and the bandwidth of interest is RC filter with a corner frequency of 5 kHz for the attenuation to
40 Hz to 3.3 kHz. Oversampling has the effect of spreading the be sufficiently high at the sampling frequency of 1.024 MHz.
quantization noise (noise due to sampling) over a wider The 20 dB per decade attenuation of this filter is usually sufficient
bandwidth. With the noise spread more thinly over a wider to eliminate the effects of aliasing for conventional current sensors.
bandwidth, the quantization noise in the band of interest is However, for a di/dt sensor such as a Rogowski coil, the sensor
lowered, as shown in Figure 40. However, oversampling alone is has a 20 dB per decade gain. This neutralizes the 20 dB per decade
not efficient enough to improve the signal-to-noise ratio (SNR) attenuation produced by the LPF. Therefore, when using a di/dt
in the band of interest. For example, an oversampling factor of 4 is sensor, take care to offset the 20 dB per decade gain. One simple
required just to increase the SNR by a mere 6 dB (1 bit). To keep approach is to cascade one additional RC filter, thereby
the oversampling ratio at a reasonable level, it is possible to producing a −40 dB per decade attenuation.
shape the quantization noise so that the majority of the noise ALIASING EFFECTS
SAMPLING
lies at the higher frequencies. In the Σ-Δ modulator, the noise is FREQUENCY

shaped by the integrator, which has a high-pass-type response


for the quantization noise. This is the second technique used to
achieve high resolution. The result is that most of the noise is at
the higher frequencies where it can be removed by the digital
0 3.3 4 512 1024
low-pass filter. This noise shaping is shown in Figure 40.
FREQUENCY (kHz)

10193-015
ANTIALIAS FILTER IMAGE
(RC) FREQUENCIES
DIGITAL FILTER
SIGNAL
SHAPED NOISE Figure 41. Aliasing Effects
SAMPLING
FREQUENCY
ADC Transfer Function
NOISE
All ADCs in the ADE7880 are designed to produce the same
24-bit signed output code for the same input signal level. With a
0 3.3 4 512 1024
FREQUENCY (kHz) full-scale input signal of 0.5 V and an internal reference of 1.2 V,
the ADC output code is nominally 5,326,737 (0x514791) and
HIGH RESOLUTION
OUTPUT FROM usually varies for each ADE7880 around this value. The code
DIGITAL LPF
SIGNAL from the ADC can vary between 0x800000 (−8,388,608) and
0x7FFFFF (+8,388,607); this is equivalent to an input signal
level of ±0.787 V. However, for specified performance, do not
NOISE exceed the nominal range of ±0.5 V; ADC performance is
guaranteed only for input signals lower than ±0.5 V.
10193-014

0 3.3 4 512 1024


FREQUENCY (kHz) CURRENT CHANNEL ADC
Figure 40. Noise Reduction Due to Oversampling and
Figure 42 shows the ADC and signal processing path for Input
Noise Shaping in the Analog Modulator
IA of the current channels (it is the same for IB and IC). The
Antialiasing Filter ADC outputs are signed twos complement 24-bit data-words
Figure 39 also shows an analog low-pass filter (RC) on the input and are available at a rate of 8 kSPS (thousand samples per
to the ADC. This filter is placed outside the ADE7880, and its role second). With the specified full-scale analog input signal
is to prevent aliasing. Aliasing is an artifact of all sampled systems of ±0.5V, the ADC produces its maximum output code value.
as shown in Figure 41. Aliasing means that frequency components Figure 42 shows a full-scale voltage signal applied to the differ-
in the input signal to the ADC, which are higher than half the ential inputs (IAP and IAN). The ADC output swings between
sampling rate of the ADC, appear in the sampled signal at a −5,326,737 (0xAEB86F) and +5,326,737 (0x514791). Note that
frequency below half the sampling rate. Frequency components these are nominal values and every ADE7880 varies around
above half the sampling frequency (also known as the Nyquist these values. The input, IN, corresponds to the neutral current
frequency, that is, 512 kHz) are imaged or folded back down of a 3-phase system. If no neutral line is present, connect this
below 512 kHz. This happens with all ADCs regardless of the input to AGND. The data path of the neutral current is similar
architecture. In the example shown, only frequencies near the to the path of the phase currents as shown in Figure 43.

Rev. C | Page 27 of 107


ADE7880 Data Sheet
ZX SIGNAL
ZX DETECTION DATA RANGE
LPF1 0x514791 =
+5,326,737
CURRENT PEAK,
OVERCURRENT
DETECT
0V
DSP INTEN BIT CURRENT RMS (IRMS)
CONFIG[0] CALCULATION
PGA1 BITS HPFEN BIT
GAIN[2:0] REFERENCE
CONFIG3[0] AIGAIN[23:0] IAWV WAVEFORM 0xAEB86F =
×1, ×2, ×4, ×8, ×16 DIGITAL SAMPLE REGISTER –5,326,737
IAP INTEGRATOR
TOTAL/FUNDAMENTAL
VIN PGA1 ADC ACTIVE AND REACTIVE
HPF POWER CALCULATION
IAN

VIN CURRENT CHANNEL


DATA RANGE
+0.5V/GAIN 0x514791 =
+5,326,737

0V 0V

10193-016
–0.5V/GAIN 0xAEB86F =
–5,326,737
ANALOG INPUT RANGE

Figure 42. Current Channel Signal Path

DSP ININTEN BIT


CONFIG3[3]
PGA2 BITS
GAIN[5:3] REFERENCE HPFEN BIT
×1, ×2, ×4, ×8, ×16 CONFIG3[0] NIGAIN[23:0] CURRENT RMS (IRMS)
DIGITAL CALCULATION
IAP INTEGRATOR

INWV WAVEFORM
VIN PGA2 ADC SAMPLE REGISTER

10193-017
HPF
IAN

Figure 43. Neutral Current Signal Path


31 28 27 24 23 0
Current Waveform Gain Registers
0000 24-BIT NUMBER
There is a multiplier in the signal path of each phase and neutral
current. The current waveform can be changed by ±100% by

10193-018
BITS[27:24] ARE BIT 23 IS A SIGN BIT
writing a corresponding twos complement number to the 24-bit EQUAL TO BIT 23

signed current waveform gain registers (AIGAIN, BIGAIN, Figure 44. 24-Bit xIGAIN Transmitted as 32-Bit Words
CIGAIN, and NIGAIN). For example, if 0x400000 is written to Current Channel HPF
those registers, the ADC output is scaled up by 50%. To scale
the input by −50%, write 0xC00000 to the registers. Equation 4 The ADC outputs can contain a dc offset. This offset can create
describes mathematically the function of the current waveform errors in power and rms calculations. High-pass filters (HPFs)
gain registers. are placed in the signal path of the phase and neutral currents
and of the phase voltages. If enabled, the HPF eliminates any dc
Current Waveform = offset on the current channel. All filters are implemented in the
 Content of Current Gain Register  DSP and, by default, they are all enabled: Bit 0 (HPFEN) of the
ADC Output × 1 +  (4)
 223  CONFIG3[7:0] register is set to 1. All filters are disabled by
setting Bit 0 (HPFEN) to 0.
Changing the content of the AIGAIN, BIGAIN, CIGAIN, or
INGAIN registers affects all calculations based on its current;
that is, it affects the corresponding phase active/reactive/
apparent energy and current rms calculation. In addition,
waveform samples scale accordingly.
Note that the serial ports of the ADE7880 work on 32-, 16-, or
8-bit words, and the DSP works on 28 bits. The 24-bit AIGAIN,
BIGAIN, CIGAIN, and NIGAIN registers are accessed as 32-bit
registers with the four most significant bits (MSBs) padded with
0s and sign extended to 28 bits. See Figure 44 for details.
Rev. C | Page 28 of 107
Data Sheet ADE7880
Current Channel Sampling allows for using a different current sensor to measure the neutral
The waveform samples of the current channel are taken at the current (for example a current transformer) from the current
output of HPF and stored in the 24-bit signed registers, IAWV, sensors used to measure the phase currents (for example di/dt
IBWV, ICWV, and INWV at a rate of 8 kSPS. All power and rms sensors). The digital integrators are managed by Bit 0 (INTEN) of
calculations remain uninterrupted during this process. Bit 17 the CONFIG register and by Bit 3 (ININTEN) of the CONFIG3
(DREADY) in the STATUS0 register is set when the IAWV, IBWV, register. Bit 0 (INTEN) of the CONFIG register manages the
ICWV, and INWV registers are available to be read using the I2C integrators in the phase current channels. Bit 3 (ININTEN) of the
or SPI serial port. Setting Bit 17 (DREADY) in the MASK0 CONFIG3 register manages the integrator in the neutral current
register enables an interrupt to be set when the DREADY flag is channel. When the INTEN bit is 0 (default), all integrators in the
set. See the Digital Signal Processor section for more details on phase current channels are disabled. When INTEN bit is 1, the
Bit DREADY. integrators in the phase currents data paths are enabled. When the
ININTEN bit is 0 (default), the integrator in the neutral current
As stated in the Current Waveform Gain Registers section, the
channel is disabled. When the ININTEN bit is 1, the integrator in
serial ports of the ADE7880 work on 32-, 16-, or 8-bit words. the neutral current channel is enabled.
When the IAWV, IBWV, ICWV, and INWV 24-bit signed
registers are read from the ADE7880, they are transmitted sign Figure 47 and Figure 48 show the magnitude and phase
extended to 32 bits. See Figure 45 for details. response of the digital integrator.
31 24 23 22 0 Note that the integrator has a −20 dB/dec attenuation and
24-BIT SIGNED NUMBER approximately −90° phase shift. When combined with a di/dt
sensor, the resulting magnitude and phase response is a flat gain
10193-019

BITS[31:24] ARE BIT 23 IS A SIGN BIT over the frequency band of interest. However, the di/dt sensor
EQUAL TO BIT 23
has a 20 dB/dec gain associated with it and generates significant
Figure 45. 24-Bit IxWV Register Transmitted as 32-Bit Signed Word high frequency noise. At least a second order antialiasing filter
The ADE7880 contains a high speed data capture (HSDC) port is needed to avoid noise aliasing back in the band of interest
that is specially designed to provide fast access to the waveform when the ADC is sampling (see the Antialiasing Filter section).
sample registers. See the HSDC Interface section for more details. 50
MAGNITUDE (dB)

di/dt CURRENT SENSOR AND DIGITAL INTEGRATOR


0
The di/dt sensor detects changes in the magnetic field caused by
the ac current. Figure 46 shows the principle of a di/dt current –50
sensor.
0.01 0.1 1 10 100 1000
FREQUENCY (Hz)
0
MAGNETIC FIELD CREATED BY CURRENT
PHASE (Degrees)

(DIRECTLY PROPORTIONAL TO CURRENT)

–50

+ EMF (ELECTROMOTIVE FORCE)


10193-020

– INDUCED BY CHANGES IN –100

10193-021
MAGNETIC FLUX DENSITY (di/dt) 0 500 1000 1500 2000 2500 3000 3500 4000
FREQUENCY (Hz)
Figure 46. Principle of a di/dt Current Sensor
Figure 47. Combined Gain and Phase Response of the
The flux density of a magnetic field induced by a current is Digital Integrator
directly proportional to the magnitude of the current. The The DICOEFF 24-bit signed register is used in the digital
changes in the magnetic flux density passing through a conductor integrator algorithm. At power-up or after a reset, its value is
loop generate an electromotive force (EMF) between the two 0x000000. Before turning on the integrator, this register must be
ends of the loop. The EMF is a voltage signal that is propor- initialized with 0xFFF8000. DICOEFF is not used when the
tional to the di/dt of the current. The voltage output from the integrator is turned off and can remain at 0x000000 in that case.
di/dt current sensor is determined by the mutual inductance
between the current carrying conductor and the di/dt sensor.
Due to the di/dt sensor, the current signal needs to be filtered
before it can be used for power measurement. On each phase and
neutral current data path, there are built-in digital integrators to
recover the current signal from the di/dt sensor. The digital
integrators placed on the phase currents data paths are independent
of the digital integrator placed in the neutral current data path. This
Rev. C | Page 29 of 107
ADE7880 Data Sheet
–15
As stated in the Current Waveform Gain Registers section, the
MAGNITUDE (dB)

–20
serial ports of the ADE7880 work on 32-, 16-, or 8-bit words.
Similar to the registers shown in Figure 44, the DICOEFF 24-bit
–25 signed register is accessed as a 32-bit register with four MSBs
padded with 0s and sign extended to 28 bits, which practically
–30
30 35 40 45 50 55 60 65 70 means it is transmitted equal to 0x0FFF8000.
FREQUENCY (Hz)
–89.96 When the digital integrator is switched off, the ADE7880 can
be used directly with a conventional current sensor, such as
PHASE (Degrees)

–89.97 a current transformer (CT).


–89.98 VOLTAGE CHANNEL ADC
Figure 50 shows the ADC and signal processing chain for
–89.99

10193-022
30 35 40 45 50 55 60 65 70 Input VA in the voltage channel. The VB and VC channels
FREQUENCY (Hz)
have similar processing chains. The ADC outputs are signed
Figure 48. Combined Gain and Phase Response of the twos complement 24-bit words and are available at a rate of
Digital Integrator (30 Hz to 70 Hz) when DICOEFF is Set to 0x00000000
8 kSPS. With the specified full-scale analog input signal of
–15
±0.5 V, the ADC produces its maximum output code value.
MAGNITUDE (dB)

–20
Figure 50 shows a full-scale voltage signal being applied to the
differential inputs (VA and VN). The ADC output swings
–25 between −5,326,737 (0xAEB86F) and +5,326,737 (0x514791).
Note these are nominal values and every ADE7880 varies
–30
30 35 40 45 50 55 60 65 70 around these values.
FREQUENCY (Hz)
–80
PHASE (Degrees)

–82

–84

–86
10193-349

30 35 40 45 50 55 60 65 70
FREQUENCY (Hz)

Figure 49. Combined Gain and Phase Response of the


Digital Integrator (30 Hz to 70 Hz) when DICOEFF is Set to 0x0FFF8000
VOLTAGE PEAK,
OVERVOLTAGE,
SAG DETECT

DSP CURRENT RMS (VRMS)


CALCULATION
PGA3 BITS HPFEN BIT
GAIN[8:6] REFERENCE
CONFIG3[0] VAWV WAVEFORM
×1, ×2, ×4, ×8, ×16 AVGAIN[23:0] SAMPLE REGISTER
VAP

TOTAL/FUNDAMENTAL
VIN PGA3 ADC ACTIVE AND REACTIVE
HPF
POWER CALCULATION
VN

VIN ZX DETECTION
LPF1
+0.5V/GAIN

VOLTAGE CHANNEL ZX SIGNAL


DATA RANGE DATA RANGE

0V 0x514791 = 0x514791 =
+5,326,737 +5,326,737

–0.5V/GAIN 0V 0V
ANALOG INPUT RANGE
10193-023

0xAEB86F = 0xAEB86F =
–5,326,737 –5,326,737

Figure 50. Voltage Channel Data Path

Rev. C | Page 30 of 107


Data Sheet ADE7880
Voltage Waveform Gain Registers CHANGING PHASE VOLTAGE DATA PATH
There is a multiplier in the signal path of each phase voltage. The ADE7880 can direct one phase voltage input to the
The voltage waveform can be changed by ±100% by writing computational data path of another phase. For example, Phase A
a corresponding twos complement number to the 24-bit signed voltage can be introduced in the Phase B computational data path,
voltage waveform gain registers (AVGAIN, BVGAIN, and which means all powers computed by the ADE7880 in Phase B
CVGAIN). For example, if 0x400000 is written to those registers, are based on Phase A voltage and Phase B current.
the ADC output is scaled up by 50%. To scale the input by −50%,
Bits[9:8] (VTOIA[1:0]) of the CONFIG register manage which
write 0xC00000 to the registers. Equation 5 describes mathe-
phase voltage is directed to the Phase A computational data path. If
matically the function of the current waveform gain registers.
VTOIA[1:0] = 00 (default value), the Phase A voltage is directed
Voltage Waveform = to the Phase A computational data path. If VTOIA[1:0] = 01,
 Content of Voltage Gain Register  the Phase B voltage is directed to the Phase A computational
ADC Output × 1 +  (5) data path. If VTOIA[1:0] = 10, the Phase C voltage is directed
 2 23 
to the Phase A computational data path. If VTOIA[1:0] = 11,
Changing the content of the AVGAIN, BVGAIN, and CVGAIN the ADE7880 behaves as if VTOIA[1:0] = 00.
registers affects all calculations based on its voltage; that is, it
affects the corresponding phase active/reactive/apparent energy Bits[11:10] (VTOIB[1:0]) of the CONFIG register manage
and voltage rms calculation. In addition, waveform samples are which phase voltage is directed to the Phase B computational
scaled accordingly. data path. If VTOIB[1:0] = 00 (default value), the Phase B
voltage is directed to the Phase B computational data path.
As stated in the Current Waveform Gain Registers section, the If VTOIB[1:0] = 01, the Phase C voltage is directed to the
serial ports of the ADE7880 work on 32-, 16-, or 8-bit words, Phase B computational data path. If VTOIB[1:0] = 10, the Phase A
and the DSP works on 28 bits. As presented in Figure 44, the voltage is directed to the Phase B computational data path. If
AVGAIN, BVGAIN, and CVGAIN registers are accessed as VTOIB[1:0] = 11, the ADE7880 behaves as if VTOIB[1:0] = 00.
32-bit registers with four MSBs padded with 0s and sign
extended to 28 bits. Bits[13:12] (VTOIC[1:0]) of the CONFIG register manage
which phase voltage is directed to the Phase C computational
Voltage Channel HPF data path. If VTOIC[1:0] = 00 (default value), the Phase C
As explained in the Current Channel HPF section, the ADC voltage is directed to the Phase C computational data path, if
outputs can contain a dc offset that can create errors in power VTOIC[1:0] = 01, the Phase A voltage is directed to the Phase C
and rms calculations. HPFs are placed in the signal path of the computational data path. If VTOIC[1:0] = 10, the Phase B
phase voltages, similar to the ones in the current channels. Bit 0 voltage is directed to the Phase C computational data path. If
(HPFEN) of CONFIG3 register can enable or disable the filters. VTOIC[1:0] = 11, the ADE7880 behaves as if VTOIC[1:0] = 00.
See the Current Channel HPF section for more details. IA
PHASE A
Voltage Channel Sampling COMPUTATIONAL
APHCAL DATAPATH
The waveform samples of the voltage channel are taken at the VTOIA[1:0] = 10,
VA PHASE A VOLTAGE
output of HPF and stored into VAWV, VBWV, and VCWV DIRECTED
TO PHASE B
24-bit signed registers at a rate of 8 kSPS. All power and rms IB
calculations remain uninterrupted during this process. Bit 17 PHASE B
COMPUTATIONAL
(DREADY) in the STATUS0 register is set when the VAWV, BPHCAL DATAPATH
VBWV, and VCWV registers are available to be read using the VB
VTOIB[1:0] = 10,
PHASE B VOLTAGE
I2C or SPI serial port. Setting Bit 17 (DREADY) in the MASK0 DIRECTED
TO PHASE C
IC
register enables an interrupt to be set when the DREADY flag is
set. See the Digital Signal Processor section for more details on PHASE C
COMPUTATIONAL
Bit DREADY. CPHCAL DATAPATH
VTOIC[1:0] = 10,
VC PHASE C VOLTAGE
10193-024

As stated in the Current Waveform Gain Registers section, the DIRECTED


TO PHASE A
serial ports of the ADE7880 work on 32-, 16-, or 8-bit words.
Similar to registers presented in Figure 45, the VAWV, VBWV, Figure 51. Phase Voltages Used in Different Data Paths
and VCWV 24-bit signed registers are transmitted sign Figure 51 presents the case in which the Phase A voltage is used
extended to 32 bits. in the Phase B data path, the Phase B voltage is used in the Phase C
The ADE7880 contains an HSDC port especially designed to data path, and the Phase C voltage is used in the Phase A data path.
provide fast access to the waveform sample registers. See the
HSDC Interface section for more details.

Rev. C | Page 31 of 107


ADE7880 Data Sheet
POWER QUALITY MEASUREMENTS cleared and the IRQ1 pin is set to high by writing to the STATUS1
Zero-Crossing Detection register with the status bit set to 1.
The ADE7880 has a zero-crossing (ZX) detection circuit on the Zero-Crossing Timeout
phase current and voltage channels. The neutral current data Every zero-crossing detection circuit has an associated timeout
path does not contain a zero-crossing detection circuit. Zero- register. This register is loaded with the value written into the
crossing events are used as a time base for various power quality 16-bit ZXTOUT register and is decremented (1 LSB) every
measurements and in the calibration process. 62.5 μs (16 kHz clock). The register is reset to the ZXTOUT
The output of LPF1 is used to generate zero crossing events. value every time a zero crossing is detected. The default value of
The low-pass filter is intended to eliminate all harmonics of this register is 0xFFFF. If the timeout register decrements to 0
50 Hz and 60 Hz systems, and to help identify the zero-crossing before a zero crossing is detected, one of Bits[8:3] of the STATUS1
events on the fundamental components of both current and register is set to 1. Bit 3 (ZXTOVA), Bit 4 (ZXTOVB), and Bit 5
voltage channels. (ZXTOVC) in the STATUS1 register refer to Phase A, Phase B,
and Phase C of the voltage channel; Bit 6 (ZXTOIA), Bit 7
The digital filter has a pole at 80 Hz and is clocked at 256 kHz.
(ZXTOIB), and Bit 8 (ZXTOIC) in the STATUS1 register refer
As a result, there is a phase lag between the analog input signal
to Phase A, Phase B, and Phase C of the current channel.
(one of IA, IB, IC, VA, VB, and VC) and the output of LPF1.
The error in ZX detection is 0.0703° for 50 Hz systems (0.0843° If a ZXTOIx or ZXTOVx bit is set in the MASK1 register, the
for 60 Hz systems). The phase lag response of LPF1 results in a IRQ1 interrupt pin is driven low when the corresponding status bit
time delay of approximately 31.4° or 1.74 ms (at 50 Hz) between is set to 1. The status bit is cleared and the IRQ1 pin is returned to
its input and output. The overall delay between the zero crossing high by writing to the STATUS1 register with the status bit set to 1.
on the analog inputs and ZX detection obtained after LPF1 is The resolution of the ZXOUT register is 62.5 μs (16 kHz clock)
about 39.6° or 2.2 ms (at 50 Hz). The ADC and HPF introduce per LSB. Thus, the maximum timeout period for an interrupt is
the additional delay. The LPF1 cannot be disabled to assure a 4.096 sec: 216/16 kHz.
good resolution of the ZX detection. Figure 52 shows how the
zero-crossing signal is detected. Figure 53 shows the mechanism of the zero-crossing timeout
detection when the voltage or the current signal stays at a fixed
DSP dc level for more than 62.5 μs × ZXTOUT μs.
IA, IB, IC, REFERENCE HPFEN BIT
OR CONFIG3[0] GAIN[23:0]
VA, VB, VC
16-BIT INTERNAL
ZX REGISTER VALUE
PGA ADC DETECTION ZXTOUT
HPF LPF1

39.6° OR 2.2ms @ 50Hz


VPEAK
VPEAK × 0.855

ZX
0V
ZX ZX ZX
IA, IB, IC VOLTAGE
10193-025

OR LPF1 OUTPUT OR
VA, VB, VC CURRENT 0V
SIGNAL
Figure 52. Zero-Crossing Detection on Voltage and Current Channels

To provide further protection from noise, input signals to the


voltage channel with amplitude lower than 10% of full scale do ZXZOxy FLAG IN
not generate zero-crossing events at all. The Current Channel ZX STATUS1[31:0], x = V, A
y = A, B, C
detection circuit is active for all input signals independent of their
amplitudes.
10193-026

IRQ1 INTERRUPT PIN


The ADE7880 contains six zero-crossing detection circuits, one
Figure 53. Zero-Crossing Timeout Detection
for each phase voltage and current channel. Each circuit drives
one flag in the STATUS1 register. If a circuit placed in the Phase Phase Sequence Detection
A voltage channel detects one zero-crossing event, Bit 9 (ZXVA) The ADE7880 has on-chip phase sequence error detection
in the STATUS1 register is set to 1. circuits. This detection works on phase voltages and considers
Similarly, the Phase B voltage circuit drives Bit 10 (ZXVB), the only the zero crossings determined by their negative-to-positive
Phase C voltage circuit drives Bit 11 (ZXVC), and circuits placed transitions. The regular succession of these zero-crossing events is
in the current channel drive Bit 12 (ZXIA), Bit 13 (ZXIB), and Phase A followed by Phase B followed by Phase C (see Figure 55).
Bit 14 (ZXIC) in the STATUS1 register. If a ZX detection bit is If the sequence of zero-crossing events is, instead, Phase A followed
set in the MASK1 register, the IRQ1 interrupt pin is driven low by Phase C followed by Phase B, then Bit 19 (SEQERR) in the
and the corresponding status flag is set to 1. The status bit is STATUS1 register is set.

Rev. C | Page 32 of 107


Data Sheet ADE7880
If Bit 19 (SEQERR) in the MASK1 register is set to 1 and a
PHASE A PHASE B PHASE C
phase sequence error event is triggered, the IRQ1 interrupt pin
is driven low. The status bit is cleared and the IRQ1 pin is set
high by writing to the STATUS1 register with the Status Bit 19
(SEQERR) set to 1.
The phase sequence error detection circuit is functional only

10193-028
when the ADE7880 is connected in a 3-phase, 4-wire, three voltage ZX A ZX B ZX C

sensors configuration (Bits[5:4], CONSEL[1:0] in the ACCMODE Figure 55. Regular Succession of Phase A, Phase B, and Phase C
register, set to 00). In all other configurations, only two voltage
When the ANGLESEL[1:0] bits are set to 00, the default value,
sensors are used; therefore, it is not recommended to use the
the delays between voltages and currents on the same phase are
detection circuit. In these cases, use the time intervals between
measured. The delay between Phase A voltage and Phase A
phase voltages to analyze the phase sequence (see the Time
current is stored in the 16-bit unsigned ANGLE0 register (see
Interval Between Phases section for details).
Figure 56 for details). In a similar way, the delays between
Figure 54 presents the case in which Phase A voltage is not voltages and currents on Phase B and Phase C are stored in the
followed by Phase B voltage but by Phase C voltage. Every time ANGLE1 and ANGLE2 registers, respectively.
a negative-to-positive zero crossing occurs, Bit 19 (SEQERR) in
PHASE A
the STATUS1 register is set to 1 because such zero crossings on VOLTAGE
PHASE A
Phase C, Phase B, or Phase A cannot come after zero crossings CURRENT

from Phase A, Phase C, or respectively, Phase B zero crossings.

PHASE A PHASE C PHASE B

10193-029
A, B, C PHASE ANGLE0
VOLTAGES AFTER
LPF1
Figure 56. Delay Between Phase A Voltage and Phase A Current Is
Stored in the ANGLE0 Register

ZX A ZX C ZX B When the ANGLESEL[1:0] bits are set to 01, the delays between
phase voltages are measured. The delay between Phase A voltage
and Phase C voltage is stored into the ANGLE0 register. The
BIT 19 (SEQERR) IN
STATUS1 REGISTER delay between Phase B voltage and Phase C voltage is stored in
the ANGLE1 register, and the delay between Phase A voltage
IRQ1 and Phase B voltage is stored in the ANGLE2 register (see
Figure 57 for details).
STATUS1[19] SET TO 1 STATUS1[19] CANCELLED
10193-027

BY A WRITE TO THE
STATUS1 REGISTER WITH When the ANGLESEL[1:0] bits are set to 10, the delays between
SEQERR BIT SET
phase currents are measured. Similar to delays between phase
Figure 54. SEQERR Bit Set to 1 When Phase A Voltage Is Followed by
voltages, the delay between Phase A and Phase C currents is
Phase C Voltage
stored into the ANGLE0 register, the delay between Phase B and
Once a phase sequence error is detected, the time measurement Phase C currents is stored in the ANGLE1 register, and the
between various phase voltages (see the Time Interval Between delay between Phase A and Phase B currents is stored into the
Phases section) can help to identify which phase to consider ANGLE2 register (see Figure 57 for details).
with another phase current in the computational data path.
Bits[9:8] (VTOIA[1:0]), Bits[11:10] (VTOIB[1:0]), and PHASE A PHASE B PHASE C

Bits[13:12] (VTOIC[1:0]) in the CONFIG register can be used


to direct one phase voltage to the data path of another phase.
See the Changing Phase Voltage Data Path section for details.
Time Interval Between Phases
The ADE7880 has the capability to measure the time delay ANGLE2 ANGLE1
10193-030

between phase voltages, between phase currents, or between ANGLE0


voltages and currents of the same phase. The negative-to-positive
transitions identified by the zero-crossing detection circuit are Figure 57. Delays Between Phase Voltages (Currents)
used as start and stop measuring points. Only one set of such The ANGLE0, ANGLE1, and ANGLE2 registers are 16-bit
measurements is available at one time, based on Bits[10:9] unsigned registers with 1 LSB corresponding to 3.90625 μs
(ANGLESEL[1:0]) in the COMPMODE register. (256 kHz clock), which means a resolution of 0.0703° (360° ×
50 Hz/256 kHz) for 50 Hz systems and 0.0843° (360° × 60 Hz/
Rev. C | Page 33 of 107
ADE7880 Data Sheet
256 kHz) for 60 Hz systems. The delays between phase voltages with Bit 16 (SAG) set to 1 to erase the bit and bring IRQ1 interrupt
or phase currents are used to characterize how balanced the pin back high. Then the phase A voltage stays above the SAGLVL
load is. The delays between phase voltages and currents can be threshold for four half-line cycles (SAGCYC = 4). The Bit 16 (SAG)
used to compute the power factor on each phase, as shown in in STATUS1 register is set to 1 to indicate the condition and the bit
the following Equation 6: VSPHASE[0] in the PHSTATUS register is set back to 0.
 360  f LINE  Bits VSPHASE[1] and VSPHASE[2] relate to the sag events on
cosφx = cos  ANGLEx   (6) Phase B and Phase C in the same way: when Phase B or Phase C
 256 kHz 
voltage stays below SAGLVL, they are set to 1. When the phase
where fLINE = 50 Hz or 60 Hz. voltages are above SAGLVL, they are set to 0.
PHASE B VOLTAGE
However, the ADE7880 computes the power factor based on the
FULL SCALE
powers as described in the Power Factor Calculation section. SAGLVL[23:0]

Period Measurement
The ADE7880 provides the period measurement of the line in
the voltage channel. The period of each phase voltage is SAGCYC[7:0] = 0x4

measured and stored in three different registers, APERIOD, PHASE A VOLTAGE

BPERIOD, and CPERIOD. The period registers are 16-bit


unsigned registers and update every line period. Because of the
LPF1 filter (see Figure 52), a settling time of 30 ms to 40 ms is
associated with this filter before the measurement is stable.
SAGCYC[7:0] = 0x4 STATUS1[16] CANCELLED BY
The period measurement has a resolution of 3.90625 μs/LSB A WRITE TO STATUS1[31:0]
WITH SAG BIT SET
(256 kHz clock), which represents 0.0195% (50 Hz/256 kHz) BIT 16 (SAG) IN STATUS[16] SET TO 1
STATUS1[31:0]
when the line frequency is 50 Hz and 0.0234% (60 Hz/256 kHz) IRQ1 PIN GOES HIGH
BECAUSE STATUS1[16]
when the line frequency is 60 Hz. The value of the period registers CANCELLED BY A WRITE
TO STATUS[31:0] WITH SAG
for 50 Hz networks is approximately 5120 (256 kHz/50 Hz) and IRQ1 PIN BIT SET

PHSTATUS[12] SET TO 1
for 60 Hz networks is approximately 4267 (256 kHz/60 Hz). The BECAUSE PHASE A
VOLTAGE WAS BELOW
length of the registers enables the measurement of line frequencies VSPHASE[0] =
SAGLVL FOR SAGCYC
HALF LINE CYCLES
as low as 3.9 Hz (256 kHz/216). The period registers are stable at PHSTATUS[12]
PHSTATUS[12] CLEARED
TO 0 BECAUSE PHASE A
±1 LSB when the line is established and the measurement does VOLTAGE WAS ABOVE
SAGLVL FOR SAGCYC
not change. VSPHASE[1] =
PHSTATUS[13]
HALF LINE CYCLES

10193-031
The following equations can be used to compute the line period PHSTATUS[13] SET TO 1

and frequency using the period registers: Figure 58. SAG Detection

PERIOD[15:0] The SAGCYC register represents the number of half-line cycles


TL  sec (7) the phase voltage must remain below or above the level indicated
256E3
in the SAGLVL register to trigger a SAG interrupt; 0 is not a
256E3
fL  [Hz] (8) valid number for SAGCYC. For example, when the sag cycle
PERIOD[15 :0] (SAGCYC[7:0]) contains 0x07, the SAG flag in the STATUS1
Phase Voltage Sag Detection register is set at the end of the seventh half line cycle for which
the line voltage falls below the threshold. If Bit 16 (SAG) in
The ADE7880 can be programmed to detect when the absolute
MASK1 is set, the IRQ1 interrupt pin is driven low in case of a
value of any phase voltage drops below or grows above a certain
peak value for a number of half-line cycles. The phase where sag event in the same moment the Status Bit 16 (SAG) in
this event takes place and the state of the phase voltage relative STATUS1 register is set to 1. The SAG status bit in the STATUS1
to the threshold is identified in Bits[14:12] (VSPHASE[x]) of register and the IRQ1 pin is returned to high by writing to the
the PHSTATUS register. An associated interrupt is triggered STATUS1 register with the status bit set to 1.
when any phase drops below or grows above a threshold. This Note that the internal zero-crossing counter is always active. By
condition is illustrated in Figure 58. setting the SAGLVL register, the first sag detection result is,
Figure 58 shows Phase A voltage falling below a threshold that therefore, not executed across a full SAGCYC period. Writing to
is set in the sag level register (SAGLVL) for four half-line cycles the SAGCYC register when the SAGLVL register is already initia-
(SAGCYC = 4). When Bit 16 (SAG) in the STATUS1 register is set lized resets the zero-crossing counter, thus ensuring that the first
to 1 to indicate the condition, Bit VSPHASE[0] in the PHSTATUS sag detection result is obtained across a full SAGCYC period.
register is also set to 1 because the phase A voltage is below
SAGLVL. The microcontroller then writes back STATUS1 register

Rev. C | Page 34 of 107


Data Sheet ADE7880
IPPHASE/VPPHASE BITS
The recommended procedure to manage sag events is the
following: 31 27 26 25 24 23 0
00000 24-BIT UNSIGNED NUMBER
1. Enable sag interrupts in the MASK1 register by setting
Bit 16 (SAG) to 1. PEAK DETECTED PEAK DETECTED
ON PHASE C ON PHASE A

10193-033
2. When a sag event happens, the IRQ1 interrupt pin goes PEAK DETECTED
ON PHASE B
low and Bit 16 (SAG) in the STATUS1 is set to 1.
Figure 60. Composition of IPEAK[31:0] and VPEAK[31:0] Registers
3. The STATUS1 register is read with Bit 16 (SAG) set to 1.
4. The PHSTATUS register is read, identifying on which PEAK VALUE WRITTEN INTO
IPEAK AT THE END OF FIRST
phase or phases a sag event happened. PEAKCYC PERIOD
5. The STATUS1 register is written with Bit 16 (SAG) set to 1. END OF FIRST
PEAKCYC = 16 PERIOD
Immediately, the sag bit is erased.
END OF SECOND
Sag Level Set PEAKCYC = 16 PERIOD

The content of the SAGLVL[23:0] sag level register is compared to


the absolute value of the output from HPF. Writing 5,326,737 PHASE A
CURRENT
(0x5A7540) to the SAGLVL register puts the SAG detection
level at full scale (see the Voltage Channel ADC section), thus;
the sag event is triggered continuously. Writing 0x00 or 0x01 BIT 24 OF IPEAK
puts the sag detection level at 0, therefore, the sag event is never CLEARED TO 0 AT
THE END OF SECOND
triggered. BIT 24 PEAKCYC PERIOD
OF IPEAK
10193-032

31 24 23 0
0000 0000 24-BIT NUMBER

Figure 59. SAGLVL Register Transmitted as a 32-Bit Word PHASE B


CURRENT

As stated in the Current Waveform Gain Registers section, the


serial ports of the ADE7880 work on 32-, 16-, or 8-bit words.
BIT 25 OF IPEAK
The SAGLVL register is accessed as a 32-bit register with eight PEAK VALUE WRITTEN INTO SET TO 1 AT THE
IPEAK AT THE END OF END OF SECOND

10193-034
MSBs padded with 0s. See Figure 59 for details. BIT 25 SECOND PEAKCYC PERIOD PEAKCYC PERIOD
OF IPEAK
Peak Detection
Figure 61. Peak Level Detection
The ADE7880 records the maximum absolute values reached by
the voltage and current channels over a certain number of half- Figure 61 shows how the ADE7880 records the peak value on the
line cycles and stores them into the less significant 24 bits of the current channel when measurements on Phase A and Phase B are
VPEAK and IPEAK 32-bit registers. enabled (Bit PEAKSEL[2:0] in the MMODE register are 011).
PEAKCYC is set to 16, meaning that the peak measurement
The PEAKCYC register contains the number of half-line cycles cycle is four line periods. The maximum absolute value of Phase A
used as a time base for the measurement. The circuit uses the is the greatest during the first four line periods (PEAKCYC = 16),
zero-crossing points identified by the zero-crossing detection so the maximum absolute value is written into the less signifi-
circuit. Bits[4:2] (PEAKSEL[2:0]) in the MMODE register select cant 24 bits of the IPEAK register, and Bit 24 (IPPHASE[0]) of
the phases upon which the peak measurement is performed. Bit 2 the IPEAK register is set to 1 at the end of the period. This bit
selects Phase A, Bit 3 selects Phase B, and Bit 4 selects Phase C. remains at 1 for the duration of the second PEAKCYC period of
Selecting more than one phase to monitor the peak values four line cycles. The maximum absolute value of Phase B is the
decreases proportionally the measurement period indicated in greatest during the second PEAKCYC period; therefore, the
the PEAKCYC register because zero crossings from more maximum absolute value is written into the less significant
phases are involved in the process. When a new peak value is 24 bits of the IPEAK register, and Bit 25 (IPPHASE[1]) in the
determined, one of Bits[26:24] (IPPHASE[2:0] or VPPHASE[2:0]) IPEAK register is set to 1 at the end of the period.
in the IPEAK and VPEAK registers is set to 1, identifying the
phase that triggered the peak detection event. For example, if a At the end of the peak detection period in the current channel,
peak value has been identified on Phase A current, Bit 24 Bit 23 (PKI) in the STATUS1 register is set to 1. If Bit 23 (PKI)
(IPPHASE[0]) in the IPEAK register is set to 1. If next time a in the MASK1 register is set, the IRQ1 interrupt pin is driven low
new peak value is measured on Phase B, Bit 24 (IPPHASE[0]) at the end of the PEAKCYC period, and Status Bit 23 (PKI) in
of the IPEAK register is cleared to 0, and Bit 25 (IPPHASE[1]) the STATUS1 register is set to 1. In a similar way, at the end of
of the IPEAK register is set to 1. Figure 60 shows the the peak detection period in the voltage channel, Bit 24 (PKV) in
composition of the IPEAK and VPEAK registers. the STATUS1 register is set to 1. If Bit 24 (PKV) in the MASK1
register is set, the IRQ1 interrupt pin is driven low at the end of
PEAKCYC period and Status Bit 24 (PKV) in the STATUS1
Rev. C | Page 35 of 107
ADE7880 Data Sheet
register is set to 1. To find the phase that triggered the interrupt, Whenever the absolute instantaneous value of the voltage goes
one of either the IPEAK or VPEAK registers is read immediately above the threshold from the OVLVL register, Bit 18 (OV) in
after reading the STATUS1 register. Next, the status bits are the STATUS1 register and Bit 9 (OVPHASE[0]) in the PHSTATUS
cleared, and the IRQ1 pin is set to high by writing to the register are set to 1. Bit 18 (OV) of the STATUS1 register and
STATUS1 register with the status bit set to 1. Bit 9 (OVPHASE[0]) in the PHSTATUS register are cancelled
when the STATUS1 register is written with Bit 18 (OV) set to 1.
Note that the internal zero-crossing counter is always active. By
setting Bits[4:2] (PEAKSEL[2:0]) in the MMODE register, the The recommended procedure to manage overvoltage events is
first peak detection result is, therefore, not executed across a full the following:
PEAKCYC period. Writing to the PEAKCYC register when the 1. Enable OV interrupts in the MASK1 register by setting
PEAKSEL[2:0] bits are set resets the zero-crossing counter, Bit 18 (OV) to 1.
thereby ensuring that the first peak detection result is obtained 2. When an overvoltage event happens, the IRQ1 interrupt
across a full PEAKCYC period. pin goes low.
Overvoltage and Overcurrent Detection 3. The STATUS1 register is read with Bit 18 (OV) set to 1.
The ADE7880 detects when the instantaneous absolute value 4. The PHSTATUS register is read, identifying on which
measured on the voltage and current channels becomes greater phase or phases an overvoltage event happened.
than the thresholds set in the OVLVL and OILVL 24-bit 5. The STATUS1 register is written with Bit 18 (OV) set to 1.
unsigned registers. If Bit 18 (OV) in the MASK1 register is set, In this moment, Bit OV is erased and also all Bits[11:9]
the IRQ1 interrupt pin is driven low in case of an overvoltage (OVPHASE[2:0]) of the PHSTATUS register.
event. There are two status flags set when the IRQ1 interrupt In case of an overcurrent event, if Bit 17 (OI) in the MASK1 register
pin is driven low: Bit 18 (OV) in the STATUS1 register and one is set, the IRQ1 interrupt pin is driven low. Immediately, Bit 17
of Bits[11:9] (OVPHASE[2:0]) in the PHSTATUS register to (OI) in the STATUS1 register and one of Bits[5:3] (OIPHASE[2:0])
identify the phase that generated the overvoltage. The Status in the PHSTATUS register, which identify the phase that generated
Bit 18 (OV) in the STATUS1 register and all Bits[11:9] the interrupt, are set. To find the phase that triggered the interrupt,
(OVPHASE[2:0]) in the PHSTATUS register are cleared, and the PHSTATUS register is read immediately after reading the
the IRQ1 pin is set to high by writing to the STATUS1 register STATUS1 register. Next, Status Bit 17 (OI) in the STATUS1
with the status bit set to 1. Figure 62 presents overvoltage register and Bits[5:3] (OIPHASE[2:0]) in the PHSTATUS
detection in the Phase A voltage. register are cleared and the IRQ1 pin is set to high by writing
PHASE A OVERVOLTAGE to the STATUS1 register with the status bit set to 1. The process
VOLTAGE CHANNEL DETECTED
is similar with overvoltage detection.

OVLVL[23:0]
Overvoltage and Overcurrent Level Set
The content of the overvoltage (OVLVL), and overcurrent,
(OILVL) 24-bit unsigned registers is compared to the absolute
value of the voltage and current channels. The maximum value of
these registers is the maximum value of the HPF outputs:
+5,326,737 (0x514791). When the OVLVL or OILVL register is
equal to this value, the overvoltage or overcurrent conditions
are never detected. Writing 0x0 to these registers signifies the
overvoltage or overcurrent conditions are continuously detected,
BIT 18 (OV) OF
STATUS1 and the corresponding interrupts are permanently triggered.

STATUS1[18] AND
As stated in the Current Waveform Gain Registers section, the
PHSTATUS[9] serial ports of the ADE7880 work on 32-, 16-, or 8-bit words.
CANCELLED BY A
WRITE OF STATUS1 Similar to the register presented in Figure 59, OILVL and
WITH OV BIT SET.

BIT 9 (OVPHASE)
OVLVL registers are accessed as 32-bit registers with the eight
10193-035

OF PHSTATUS MSBs padded with 0s.

Figure 62. Overvoltage Detection

Rev. C | Page 36 of 107


Data Sheet ADE7880
Neutral Current Mismatch value, always set ISUMLVL as a positive number, somewhere
In 3-phase systems, the neutral current is equal to the algebraic between 0x00000 and 0x7FFFFF. ISUMLVL uses the same scale
sum of the phase currents of the current ADCs outputs, so writing +5,326,737 (0x514791)
to the ISUMLVL register puts the mismatch detection level at
IN(t) = IA(t) + IB(t) + IC(t)
full scale; see the Current Channel ADC section for details.
If there is a mismatch between these two quantities, then a Writing 0x000000, the default value, or a negative value,
tamper situation may have occurred in the system. signifies the MISMTCH event is always triggered. The right
The ADE7880 computes the sum of the phase currents adding value for the application must be written into the ISUMLVL
the content of the IAWV, IBWV, and ICWV registers, and register after power-up or after a hardware/software reset to
storing the result into the ISUM 28-bit signed register: ISUM(t) = avoid continuously triggering MISMTCH events.
IA(t) + IB(t) + IC(t). ISUM is computed every 125 µs (8 kHz As stated in the Current Waveform Gain Registers section, the
frequency), the rate at which the current samples are available, serial ports of the ADE7880 work on 32-, 16-, or 8-bit words
and Bit 17 (DREADY) in the STATUS0 register is used to signal and the DSP works on 28 bits. As presented in Figure 63, ISUM,
when the ISUM register can be read. See the Digital Signal the 28-bit signed register, is accessed as a 32-bit register with the
Processor section for more details on Bit DREADY. four most significant bits padded with 0s.
31 28 27 0
To recover ISUM(t) value from the ISUM register, use the
0000 28-BIT SIGNED NUMBER
following equation:

10193-036
ISUM[27:0]
I SUM (t ) = × I FS BIT 27 IS A SIGN BIT
ADC MAX Figure 63. The ISUM[27:0] Register is Transmitted As a 32-Bit Word
where: Similar to the registers presented in Figure 44, the ISUMLVL
ADCMAX = 5,326,737, the ADC output when the input is at register is accessed as a 32-bit register with four most significant
full scale. bits padded with 0s and sign extended to 28 bits.
IFS is the full-scale ADC phase current.
PHASE COMPENSATION
Note that the ADE7880 also computes the rms of ISUM and
stores it into NIRMS register when Bit 2 (INSEL) in CONFIG3 As described in the Current Channel ADC and Voltage Channel
register is set to 1 (see Current RMS Calculation section for ADC sections, the data path for both current and voltages is the
details). same. The phase error between current and voltage signals
introduced by the ADE7880 is negligible. However, the ADE7880
The ADE7880 computes the difference between the absolute must work with transducers that may have inherent phase
values of ISUM and the neutral current from the INWV errors. For example, a current transformer (CT) with a phase
register, take its absolute value and compare it against the error of 0.1° to 3° is not uncommon. These phase errors can
ISUMLVL threshold. vary from part to part, and they must be corrected to perform
If accurate power calculations.
ISUM − INWV ≤ ISUMLVL , The errors associated with phase mismatch are particularly
noticeable at low power factors. The ADE7880 provides a
then it is assumed that the neutral current is equal to the sum means of digitally calibrating these small phase errors. The
of the phase currents, and the system functions correctly. ADE7880 allows a small time delay or time advance to be
If introduced into the signal processing chain to compensate for
the small phase errors.
ISUM − INWV > ISUMLVL ,
The phase calibration registers (APHCAL, BPHCAL, and
a tamper situation may have occurred, and Bit 20 (MISMTCH) CPHCAL) are 10-bit registers that can vary the time advance
in the STATUS1 register is set to 1. An interrupt attached to the in the voltage channel signal path from −374.0 µs to +61.5 μs.
flag can be enabled by setting Bit 20 (MISMTCH) in the MASK1 Negative values written to the PHCAL registers represent a time
register. If enabled, the IRQ1 pin is set low when Status Bit advance whereas positive values represent a time delay. One LSB
MISMTCH is set to 1. The status bit is cleared and the IRQ1 pin is equivalent to 0.976 µs of time delay or time advance (clock
is set back to high by writing to the STATUS1 register with Bit 20 rate of 1.024 MHz). With a line frequency of 60 Hz, this gives
(MISMTCH) set to 1. a phase resolution of 0.0211° (360° × 60 Hz/1.024 MHz) at the
fundamental. This corresponds to a total correction range of
If ISUM − INWV ≤ ISUMLVL , then MISMTCH = 0
−8.079° to +1.329° at 60 Hz. At 50 Hz, the correction range is
If ISUM − INWV > ISUMLVL , then MISMTCH = 1 −6.732° to +1.107° and the resolution is 0.0176° (360° × 50 Hz/
1.024 MHz).
ISUMLVL, the positive threshold used in the process, is a 24-bit
signed register. Because it is used in a comparison with an absolute
Rev. C | Page 37 of 107
ADE7880 Data Sheet
Given a phase error of x degrees, measured using the phase current transducer (equivalent of 55.5 μs for 50 Hz systems). To
voltage as the reference, the corresponding LSBs are computed cancel the lead (1°) in the current channel of Phase A, a phase
dividing x by the phase resolution (0.0211°/LSB for 60 Hz and lead must be introduced into the corresponding voltage channel.
0.0176°/LSB for 50 Hz). Results between −383 and +63 only are Using Equation 8, APHCAL is 57 least significant bits, rounded
acceptable; numbers outside this range are not accepted. If the up from 56.8. The phase lead is achieved by introducing a time
current leads the voltage, the result is negative and the absolute delay of 55.73 μs into the Phase A current.
value is written into the PHCAL registers. If the current lags the As stated in the Current Waveform Gain Registers section, the
voltage, the result is positive and 512 is added to the result serial ports of the ADE7880 work on 32-, 16-, or 8-bit words. As
before writing it into xPHCAL. shown in Figure 64, APHCAL, BPHCAL, and CPHCAL 10-bit
APHCAL, BPHCAL, or CPHCAL registers are accessed as 16-bit registers with the six MSBs
 x  padded with 0s.
 ,x  0 

10193-037
15 10 9 0
 phase _ resolution 
=  (9) 0000 00 xPHCAL
 x
 512, x  0  Figure 64. xPHCAL Registers Communicated As 16-Bit Registers
 phase _ resolution 

Figure 65 illustrates how the phase compensation is used to remove


x = −1° phase lead in IA of the current channel from the external

IAP

IA PGA1 ADC

IAN
PHASE
CALIBRATION
APHCAL = 57
VAP

VA PGA3 ADC

VN

IA IA

PHASE COMPENSATION
ACHIEVED DELAYING
VA IA BY 56µs
VA
10193-038

50Hz

Figure 65. Phase Calibration on Voltage Channels

Rev. C | Page 38 of 107


Data Sheet ADE7880
REFERENCE CIRCUIT different lots. Each IC has a temperature coefficient curve that
The nominal reference voltage at the REFIN/OUT pin is 1.2 V. This differs slightly from any other, which necessitates the trimming
is the reference voltage used for the ADCs in the ADE7880. Use a of all devices based on a carefully chosen single voltage reference
typical external reference voltage of 1.2 V to overdrive the REFIN/OUT value. Though the absolute value of the reference voltage at
pin. Calculate the temperature coefficient of the internal voltage 25°C differs from one device to another in mV range, the drift
reference based on the endpoint method. To calculate the drift over temperature in a particular device always remains within
over temperature, measure and compare the values of the voltage the maximum limits, as stated in the Specifications section.
reference at endpoints (−40°C and +85°C) to the reference value Because the reference is used for all ADCs, any x% drift in the
at 25°C to obtain the slope of the temperature coefficient curve. reference results in a 2x% deviation of the meter accuracy. The
Figure 66 is a typical representation of the drift over temperature. reference drift resulting from temperature changes is usually
very small and, typically, much smaller than the drift of other
LY TY
–20 PICA components on a meter. Alternatively, calibrate the meter at
REFERENCE VOLTAGE

AL C +25°C
Y PICpm/° pp LLY
m/°
T 0p C multiple temperatures.
+2 B
The ADE7880 use the internal voltage reference when Bit 0
A C
–40°C +85°C
(EXTREFEN) in the CONFIG2 register is cleared to 0 (the default
value); the external voltage reference is used when the bit is set to 1.
Set the CONFIG2 register during the PSM0 mode; its value is
10193-165

TEMPERATURE (°C)
maintained during the PSM1, PSM2, and PSM3 power modes.
Figure 66. Internal Voltage Reference Temperature Drift DIGITAL SIGNAL PROCESSOR
Figure 66 shows that independent consideration of two regions The ADE7880 contains a fixed function digital signal processor
is necessary for accurate analysis of the drift over temperature, (DSP) that computes all powers and rms values. It contains
as follows: program memory ROM and data memory RAM.
 Considering the region between Point A and Point B, the The program used for the power and rms computations is stored
reference value increases with increase in temperature; in the program memory ROM and the processor executes it every
thus, the curve has a positive slope from A to B. This 8 kHz. The end of the computations is signaled by setting Bit 17
results in a positive temperature coefficient in this region. (DREADY) to 1 in the STATUS0 register. An interrupt attached
 Considering the region between Point B and Point C, the to this flag can be enabled by setting Bit 17 (DREADY) in the
slope of the curve is negative because the voltage reference MASK0 register. If enabled, the IRQ0 pin is set low and Status
decreases with an increase in temperature; thus, this region Bit DREADY is set to 1 at the end of the computations. The status
of the curve has a negative temperature coefficient. bit is cleared and the IRQ0 pin is set to high by writing to the
STATUS0 register with Bit 17 (DREADY) set to 1.
The general relationship between the absolute value of the
voltage reference at a particular endpoint temperature and the The registers used by the DSP are located in the data memory
temperature coefficient for that region of the curve is explained RAM, at addresses between 0x4380 and 0x43BE. The width of
by the following two equations: this memory is 28 bits. A two-stage pipeline is used when write
operations to the data memory RAM are executed. This means
   40C  25C  
VREF (−40°C) = VREF (+25°C) × 1  c  two things: when only one register needs to be initialized, write
 106  it two more times to ensure the value has been written into RAM.
  85C  25C   When two or more registers need to be initialized, write the last
VREF (85°C) = VREF (25°C) × 1  h  register in the queue two more times to ensure the value is
 10 6 
written into RAM.
where αc and αh are cold and hot temperature coefficients,
As explained in the Power-Up Procedure section, at power-up
respectively, calculated by:
or after a hardware or software reset, the DSP is in idle mode.
VREF ( 40C)  VREF ( 25C) No instruction is executed. All the registers located in the data
VREF ( 25C) memory RAM are initialized at 0, their default values and they
c 
40C  25C 
× 106 ppm/°C
can be read/written without any restriction. The Run register,
used to start and stop the DSP, is cleared to 0x0000. The Run
VREF (85C)  VREF (25C) register needs to be written with 0x0001 for the DSP to start
VREF (25C) code execution. It is recommended to first initialize all ADE7880
h  × 106 ppm/°C
85C  25C  registers located in the data memory RAM with their desired
values. Next, write the last register in the queue two additional
To find the typical, maximum, and minimum temperature
times to flush the pipeline and then write the Run register with
coefficients as listed in the Specifications section, data based on
the end-point method is collected on ICs spread out over
Rev. C | Page 39 of 107
ADE7880 Data Sheet
0x0001. In this way, the DSP starts the computations from a 7. Enable the data memory RAM protection by writing 0xAD
desired configuration. to an internal 8-bit register located at Address 0xE7FE
To protect the integrity of the data stored in the data memory RAM followed by a write of 0x80 to an internal 8-bit register
of the DSP (between Address 0x4380 and Address 0x43BE), a write located at Address 0xE7E3.
protection mechanism is available. By default, the protection is 8. Read back all data memory RAM registers to ensure that
disabled and registers placed between 0x4380 and 0x43BE can they initialized with the desired values. In the unlikely case
be written without restriction. When the protection is enabled, that one or more registers does not initialize correctly, disable
no writes to these registers are allowed. Registers can be always the protection by writing 0xAD to an internal 8-bit register
read, without restriction, independent of the write protection located at Address 0xE7FE, followed by a write of 0x00 to an
state. To enable the protection, write 0xAD to an internal 8-bit internal 8-bit register located at Address 0xE7E3. Reinitialize
register located at Address 0xE7FE, followed by a write of 0x80 the registers, and write the last register in the queue three
to an internal 8-bit register located at Address 0xE7E3. To disable times. Enable the write protection by writing 0xAD to an
the protection, write 0xAD to an internal 8-bit register located internal 8-bit register located at Address 0xE7FE, followed
at Address 0xE7FE, followed by a write of 0x00 to an internal 8-bit by a write of 0x80 to an internal 8-bit register located at
register located at Address 0xE7E3. It is recommended to enable Address 0xE7E3.
the write protection before starting the DSP. If any data memory 9. Start the DSP by setting Run = 1.
RAM based register needs to be changed, simply disable the 10. Read the energy registers xWATTHR, xVAHR, xFWATTHR,
protection, change the value and then enable back the protection. and xFVARHR to erase their content and start energy
There is no need to stop the DSP in order to change these registers. accumulation from a known state.
11. Enable the CF1, CF2 and CF3 frequency converter outputs
To disable the protection, write 0xAD to an internal 8-bit register by clearing bits 9, 10 and 11 (CF1DIS, CF2DIS, and
located at Address 0xE7FE, followed by a write of 0x00 to an CF3DIS) to 0 in CFMODE register.
internal 8-bit register located at Address 0xE7E3.
There is no obvious reason to stop the DSP if the ADE7880 is
Use the following procedure to initialize the ADE7880 registers
maintained in PSM0 normal mode. All ADE7880 registers,
at power-up:
including ones located in the data memory RAM, can be
1. Select the PGA gains in the phase currents, voltages, and modified without stopping the DSP. However, to stop the DSP,
neutral current channels: Bits [2:0] (PGA1), Bits [5:3] write 0x0000 into the Run register. To restart the DSP, follow
(PGA2) and Bits [8:6] (PGA3) in the Gain register. one of the following procedures:
2. If Rogowski coils are used, enable the digital integrators in
• If the ADE7880 registers located in the data memory RAM
the phase and neutral currents: Bit 0 (INTEN) set to 1 in
have not been modified, write 0x0001 into the Run register to
CONFIG register. Initialize DICOEFF register to 0xFF8000
start the DSP.
before setting the INTEN bit in the CONFIG register.
3. If fn is between 55 Hz and 66 Hz, set Bit 14 (SELFREQ) in • If the ADE7880 registers located in the data memory RAM
COMPMODE register. have to be modified, first execute a software or a hardware
4. Initialize all the other data memory RAM registers. Write reset, initialize all ADE7880 registers at desired values, enable
the last register in the queue three times to ensure that its the write protection and then write 0x0001 into the Run
value is written into the RAM. register to start the DSP.
5. Initialize WTHR, VARTHR, VATHR, VLEVEL and As mentioned in the Power Management section, when the
VNOM registers based on Equation 26, Equation 37, ADE7880 switch out of PSM0 power mode, it is recommended to
Equation 44, Equation 22, and Equation 42, respectively. stop the DSP by writing 0x0000 into the Run register (see Table 10
6. Initialize CF1DEN, CF2DEN, and CF3DEN based on and Table 11 for the recommended actions when changing
Equation 49. power modes).

Rev. C | Page 40 of 107


Data Sheet ADE7880
ROOT MEAN SQUARE MEASUREMENT The second method computes the absolute value of the input
Root mean square (rms) is a measurement of the magnitude of signal and then filters it to extract its dc component. It computes
an ac signal. Its definition can be both practical and mathematical. the absolute mean value of the input. If the input signal in
Defined practically, the rms value assigned to an ac signal is the Equation 16 has a fundamental component only, its average
amount of dc required to produce an equivalent amount of value is
power in the load. Mathematically, the rms value of a conti- T 
T
1 2
nuous signal f(t) is defined as FDC =  ∫ 2 × F1 × sin(ωt )dt − ∫ 2 × F1 × sin(ωt )dt 
T 0 T
1 t 2  
∫ f (t )dt
2
F rms = (10)
t 0 2
FDC = × 2 × F1
For time sampling signals, rms calculation involves squaring the π
signal, taking the average, and obtaining the square root. The calculation based on this method is simultaneously processed
1 N only on the three phase currents. Each result is available in the
F rms =
N
∑ f 2 [n] (11) 20-bit registers AIMAV, BMAV, and CMAV. Note that the
N =1
proportionality between mav and rms values is maintained for
Equation 10 implies that for signals containing harmonics, the the fundamental components only. If harmonics are present in the
rms calculation contains the contribution of all harmonics, not current channel, the mean absolute value is no longer
only the fundamental. The ADE7880 uses two different methods proportional to rms.
to calculate rms values. The first one is very accurate and is active
Current RMS Calculation
only in PSM0 mode. The second one is less accurate, uses the
estimation of the mean absolute value (mav) measurement, and This section presents the first approach to compute the rms
is active in PSM0 and PSM1 modes. values of all phase and neutral currents. The ADE7880 also
computes the rms of the sum of the instantaneous values of the
The ADE7880 also computes the rms values of various funda-
phase currents if Bit 2 (INSEL) in the CONFIG3 register is set
mental and harmonic components of phase currents, phase
to 1. Note that the instantaneous value of the sum is stored into
voltages and neutral current as part of the harmonic calculations
ISUM register presented in the Neutral Current Mismatch section.
block. Refer to the Harmonics Calculations section for details.
In 3-phase four wired systems that only require sensing the phase
The first method is to low-pass filter the square of the input currents, this value provides a measure of the neutral current.
signal (LPF) and take the square root of the result (see Figure 68).
Figure 68 shows the detail of the signal processing chain for the

If f (t ) = ∑ Fk 2 sin(kωt + γ k ) (12) rms calculation on one of the phases of the current channel. The
k =1 current channel rms value is processed from the samples used
then, in the current channel. The current rms values are signed 24-bit
values and they are stored into the AIRMS, BIRMS, CIRMS,
∞ ∞
f 2 (t ) = ∑ Fk2 − ∑ Fk2 cos(2kωt + 2 γ k ) + NIRMS registers. The update rate of the current rms measurement
k =1 k =1 is 8 kHz. If Bit 2 (INSEL) of the CONFIG3 register is 0 (default),
∞ (13)
+2 ∑ 2 × Fk × Fm sin(kωt + γ k )× sin(mωt + γ m ) the NIRMS register contains the rms value of the neutral current.
k ,m =1 If the INSEL bit is 1, the NIRMS register contains the rms value
k ≠m
of the sum of the instantaneous values of the phase currents.
After the LPF and the execution of the square root, the rms With the specified full-scale analog input signal of 0.5 V, the
value of f(t) is obtained by ADC produces an output code that is approximately ±5,326,737.
∞ The equivalent rms value of a full-scale sinusoidal signal is
F= ∑ Fk2 (14) 3,766,572 (0x39792C), independent of the line frequency. If
k =1
the integrator is enabled, that is, when Bit 0 (INTEN) in the
The rms calculation based on this method is simultaneously CONFIG register is set to 1, the equivalent rms value of a full-
processed on all seven analog input channels. Each result is scale sinusoidal signal at 50 Hz is 3,759,718 (0x395E66) and at
available in the 24-bit registers: AIRMS, BIRMS, CIRMS, 60 Hz is 3,133,207 (0x2FCF17).
AVRMS, BVRMS, CVRMS, and NIRMS.

Rev. C | Page 41 of 107


ADE7880 Data Sheet
The accuracy of the current rms is typically 0.1% error from Table 12. Settling Time for I rms Measurement
the full-scale input down to 1/1000 of the full-scale input when Integrator Status 50 Hz Input Signals 60 Hz Input Signals
PGA = 1. Additionally, this measurement has a bandwidth of
Integrator Off 580 ms 580 ms
3.3 kHz. It is recommended to read the rms registers synchronous
Integrator On 700 ms 700 ms
to the voltage zero crossings to ensure stability. The IRQ1 inter-
rupt can be used to indicate when a zero crossing has occurred As stated in the Current Waveform Gain Registers section, the
(see the Interrupts section). Table 12 shows the settling time for serial ports of the ADE7880 work on 32-, 16-, or 8-bit words.
the I rms measurement, which is the time it takes for the rms Similar to the register presented in Figure 67, the AIRMS,
register to settle within 99.5% of the input to the current channel BIRMS, CIRMS, NIRMS 24-bit signed registers are accessed as
when starting from 0 to full scale. However, during the IC 32-bit registers with the eight MSBs padded with 0s.
power-up and DSP reset cases, it typically takes about 1.3 seconds
from the moment the RUN register is set to 0x01 for a FS/1000 31 24 23 0

10193-039
signal to be 99.5% settled. 0000 0000 24-BIT NUMBER

Figure 67. 24-Bit AIRMS, BIRMS, CIRMS and NIRMS Registers Transmitted as
32-Bit Words

xIRMSOS[23:0]

27

CURRENT SIGNAL FROM


HPF OR INTEGRATOR x2 xIRMS[23:0]
(IF ENABLED) LPF

0x514791 =
5,326,737

0V

10193-040

0xAEB86F =
–5,326,737

Figure 68. Current RMS Signal Processing

Rev. C | Page 42 of 107


Data Sheet ADE7880
212000
Current RMS Offset Compensation
211500
The ADE7880 incorporates a current rms offset compensation
211000
register for each phase: AIRMSOS, BIRMSOS, CIRMSOS, and
NIRMSOS. These are 24-bit signed registers that are used to 210500

remove offsets in the current rms calculations. An offset can 210000

exist in the rms calculation due to input noises that are integrated

LSB
209500
in the dc component of i2(t). The current rms offset register is 209000
multiplied by 128 and added to the squared current rms before the
208500
square root is executed. Assuming that the maximum value from
208000
the current rms calculation is 3,766,572 with full-scale ac inputs
(50 Hz), one LSB of the current rms offset represents 0.00045% 207500

207000
 3767 2 + 128 / 3767 − 1 × 100

10193-042
45 50 55 60 65
 
  FREQUENCY (Hz)

Figure 70. xIMAV Register Values at Full Scale, 45 Hz to 65 Hz Line


of the rms measurement at 60 dB down from full scale. Conduct Frequencies
offset calibration at low current; avoid using currents equal to
zero for this purpose. The mav values of full-scale sinusoidal signals of 50 Hz and
60 Hz are 209,686 and 210,921, respectively. As seen in Figure 70,
I rms = I rms02 + 128 × IRMSOS (15) there is a 1.25% variation between the mav estimate at 45 Hz
and the one at 65 Hz for full-scale sinusoidal inputs. The accuracy
where I rms0 is the rms measurement without offset correction.
of the current mav is typically 0.5% error from the full-scale
As stated in the Current Waveform Gain Registers section, the input down to 1/100 of the full-scale input. Additionally, this
serial ports of the ADE7880 work on 32-, 16-, or 8-bit words measurement has a bandwidth of 3.3 kHz. The settling time for
and the DSP works on 28 bits. Similar to the register presented the current mav measurement, that is the time it takes for the
in Figure 44, the AIRMSOS, BIRMSOS, CIRMSOS, and mav register to reflect the value at the input to the current
NIRMSOS 24-bit signed registers are accessed as 32-bit registers channel within 0.5% error, is 500 ms. However, during the first
with four MSBs padded with 0s and sign extended to 28 bits. measurement after entering this mode, it takes a longer time to
Current Mean Absolute Value Calculation settle to the correct value.

This section presents the second approach to estimate the rms As stated in the Current Waveform Gain Registers section, the
values of all phase currents using the mean absolute value (mav) serial ports of the ADE7880 work on 32-, 16-, or 8-bit words. As
method. This approach is used in PSM1 mode, to allow energy presented in Figure 71, the AIMAV, BIMAV, and CIMAV 20-bit
accumulation based on current rms values when the missing unsigned registers are accessed as 32-bit registers with the 12 MSBs
neutral case demonstrates to be a tamper attack. This data path padded with 0s.
31 20 19 0

10193-043
is active also in PSM0 mode to allow for its gain calibration.
0000 0000 0000 20-BIT UNSIGNED NUMBER
The gain is used in the external microprocessor during PSM1
mode. The mav value of the neutral current is not computed Figure 71. xIMAV Registers Transmitted as 32-Bit Registers
using this method. Figure 69 shows the details of the signal Current MAV Gain and Offset Compensation
processing chain for the mav calculation on one of the phases
The current rms values stored in the AIMAV, BIMAV, and CIMAV
of the current channel.
registers can be calibrated using gain and offset coefficients
10193-041

CURRENT SIGNAL
COMING FROM ADC
|X| xIMAV[23:0] corresponding to each phase. Calculate the gains in PSM0 mode
HPF LPF
by supplying the ADE7880 with nominal currents. The offsets
Figure 69. Current MAV Signal Processing for PSM1 Mode can be estimated by supplying the ADE7880 with low currents,
The current channel mav value is processed from the samples usually equal to the minimum value at which the accuracy is
used in the current channel waveform sampling mode. The required. Every time the external microcontroller reads the
samples are passed through a high-pass filter to eliminate the AIMAV, BIMAV, and CIMAV registers, it uses these coefficients
eventual dc offsets introduced by the ADCs and the absolute stored in its memory to correct them.
values are computed. The outputs of this block are then filtered
to obtain the average. The current mav values are unsigned 20-bit
values and they are stored in the AIMAV, BIMAV, and CIMAV
registers. The update rate of this mav measurement is 8 kHz.

Rev. C | Page 43 of 107


ADE7880 Data Sheet
Voltage Channel RMS Calculation this measurement has a bandwidth of 3.3 kHz. It is recommended
Figure 72 shows the detail of the signal processing chain for the to read the rms registers synchronous to the voltage zero crossings
rms calculation on one of the phases of the voltage channel. The to ensure stability. The IRQ1 interrupt can be used to indicate
voltage channel rms value is processed from the samples used in when a zero crossing has occurred (see the Interrupts section).
the voltage channel. The voltage rms values are signed 24-bit The V rms measurement settling time is 580 ms for both 50 Hz
values and they are stored into the Registers AVRMS, BVRMS, and 60 Hz input signals. The V rms measurement settling time
and CVRMS. The update rate of the current rms measurement is the time it takes for the rms register to reflect the value at the
is 8 kHz. input to the voltage channel when starting from 0.
With the specified full-scale analog input signal of 0.5 V, the As stated in the Current Waveform Gain Registers section, the
ADC produces an output code that is approximately ±5,326,737. serial ports of the ADE7880 work on 32-, 16-, or 8-bit words.
The equivalent rms value of a full-scale sinusoidal signal is Similar to the register presented in Figure 59, the AVRMS,
3,766,572 (0x39792C), independent of the line frequency. BVRMS, and CVRMS 24-bit signed registers are accessed as
The accuracy of the voltage rms is typically 0.1% error from the 32-bit registers with the eight MSBs padded with 0s.
full-scale input down to 1/1000 of the full-scale input. Additionally,
xVRMSOS[23:0]

27

VOLTAGE SIGNAL
FROM HPF x2 xVRMS[23:0]
LPF

0x14791 =
+5,326,737

0V

10193-044
0xAEB86F =
–5,326,737

Figure 72. Voltage RMS Signal Processing

Rev. C | Page 44 of 107


Data Sheet ADE7880
Voltage RMS Offset Compensation The ADE7880 also computes the harmonic active powers, the
The ADE7880 incorporates voltage rms offset compensation active powers determined by the harmonic components of the
registers for each phase: AVRMSOS, BVRMSOS, and CVRMSOS. voltages and currents. See the Harmonics Calculations section
These are 24-bit signed registers used to remove offsets in the for details.
voltage rms calculations. An offset can exist in the rms calcula- Total Active Power Calculation
tion due to input noises that are integrated in the dc component Electrical power is defined as the rate of energy flow from source
of V2(t). The voltage rms offset register is multiplied by 128 and to load, and it is given by the product of the voltage and current
added to the squared voltage rms before the square root is executed. waveforms. The resulting waveform is called the instantaneous
Assuming that the maximum value from the voltage rms calcu- power signal, and it is equal to the rate of energy flow at every
lation is 3,766,572 with full-scale ac inputs (50 Hz), one LSB of instant of time. The unit of power is the watt or joules/sec. If an
the current rms offset represents 0.00045% ac system is supplied by a voltage, v(t), and consumes the current,
 3767  128 / 3767 1 100
2 i(t), and each of them contains harmonics, then

of the rms measurement at 60 dB down from full scale. Conduct v(t )  Vk 2 sin (kωt + φk) (17)
k 1
offset calibration at low current; avoid using voltages equal to

i(t )   I k 2 sinkt   k 
zero for this purpose.
k 1
V rms  V rms02  128 VRMSOS (16)
where:
where V rms0 is the rms measurement without offset correction. Vk, Ik are rms voltage and current, respectively, of each
As stated in the Current Waveform Gain Registers section, the harmonic.
serial ports of the ADE7880 work on 32-, 16-, or 8-bit words φk, γk are the phase delays of each harmonic.
and the DSP works on 28 bits. Similar to registers presented in The instantaneous power in an ac system is
Figure 44, the AVRMSOS, BVRMSOS, and CVRMSOS 24-bit  
registers are accessed as 32-bit registers with the four most p(t) = v(t) × i(t) = Vk I k cos(φk – γk) − Vk I k cos(2kωt + φk + γk)
k 1 k 1
significant bits padded with 0s and sign extended to 28 bits. 
Voltage RMS in 3-Phase, 3-Wire Delta Configurations + Vk Im {cos[(k − m)ωt + φk – γm] – cos[(k + m)ωt + φk + γm]}
k , m 1
In 3-phase 3-wire delta configurations, Phase B is considered the km

ground of the system, and Phase A and Phase C voltages are (18)
measured relative to it. This configuration is chosen using The average power over an integral number of line cycles (n) is
CONSEL bits equal to 01 in ACCMODE register (see Table 15 given by the equation in Equation 19.
for all configurations where the ADE7880 may be used). In this
1 nT 
situation, all Phase B active, reactive, and apparent powers are 0. P=
nT
 pt dt  Vk I k cos(φk – γk) (19)
0 k 1
In this configuration, the ADE7880 computes the rms value of the
line voltage between Phase A and Phase C and stores the result where:
into BVRMS register. BVGAIN and BVRMSOS registers may be T is the line cycle period.
used to calibrate BVRMS register computed in this configuration. P is referred to as the total active or total real power.
The apparent power computation, in 3-wire and 4-wire delta Note that the total active power is equal to the dc component of
configurations, will be incorrect, because the line to line the instantaneous power signal p(t) in Equation 18, that is,

voltages are treated as phase voltages by the IC. To get the
equivalent wye-configuration apparent power, a scaling factor
Vk I k cos(φk – γk)
k 1
needs to be applied. Refer to the Three Phase Configurations
This is the equation used to calculate the total active power in the
section of the AN-639 Application Note, Analog Devices Energy
ADE7880 for each phase. The equation of fundamental active
(ADE) Products: Frequently Asked Questions (FAQ), for details.
power is obtained from Equation 18 with k = 1, as follows:
ACTIVE POWER CALCULATION FP = V1I1 cos(φ1 – γ1) (20)
The ADE7880 computes the total active power on every phase.
Total active power considers in its calculation all fundamental
and harmonic components of the voltages and currents. In
addition, the ADE7880 computes the fundamental active power,
the power determined only by the fundamental components of
the voltages and currents.

Rev. C | Page 45 of 107


ADE7880 Data Sheet
Figure 76 shows how the ADE7880 computes the total active where:
power on each phase. First, it multiplies the current and voltage VFS, IFS are the rms values of the phase voltage and current when
signals in each phase. Next, it extracts the dc component of the the ADC inputs are at full scale.
instantaneous power signal in each phase (A, B, and C) using PMAX = 27,059,678 it is the instantaneous power computed
LPF2, the low-pass filter. when the ADC inputs are at full scale and in phase.
If the phase currents and voltages contain only the fundamental The xWATT[23:0] waveform registers can be accessed using
component, are in phase (that is, φ1 = γ1 = 0), and they correspond various serial ports. Refer to the Waveform Sampling Mode
to full-scale ADC inputs, then multiplying them results in an section for more details.
instantaneous power signal that has a dc component, V1 × I1, 0
and a sinusoidal component, V1 × I1 cos(2ωt); Figure 73 shows
the corresponding waveforms.
INSTANTANEOUS –5
POWER SIGNAL p(t)= V rms × I rms – V rms × I rms × cos(2ωt)
0x339CBBC =
54,119,356

MAGNITUDE (dB)
INSTANTANEOUS –10
ACTIVE POWER
SIGNAL: V rms × I rms

V rms × I rms –15


0x19CE5DE =
27,059,678

–20

0x000 0000
–25

10193-172
0.1 1 3 10
10193-046

i(t) = √2 × I rms × sin(ωt)


v(t) = √2 × V rms × sin(ωt) FREQUENCY (Hz)

Figure 74. Frequency Response of the LPF Used to Filter Instantaneous Power
Figure 73. Active Power Calculation in Each Phase When the LPFSEL Bit of CONFIG3 is 0 (Default)
Because LPF2 does not have an ideal brick wall frequency
response, the active power signal has some ripple due to the
instantaneous power signal. This ripple is sinusoidal and has a
0
frequency equal to twice the line frequency. Because the ripple
is sinusoidal in nature, it is removed when the active power
signal is integrated over time to calculate the energy. Bit 1 –10
MAGNITUDE (dB)

(LPFSEL) of CONFIG3 register selects the LPF2 strength. If


LPFSEL is 0 (default), the settling time is 650 ms and the ripple
–20
attenuation is 65 dB. If LPFSEL is 1, the settling time is 1300 ms
and the ripple attenuation is 128 dB. Figure 74 shows the
frequency response of LPF2 when LPFSEL is 0 and Figure 75 –30
shows the frequency response of LPF2 when LPFSEL is 1.
The ADE7880 stores the instantaneous total phase active
–40
powers into the AWATT, BWATT, and CWATT registers. Their 0.1 1 10
10193-173

equation is FREQUENCY (Hz)

∞ Vk I 1 Figure 75. Frequency Response of the LPF Used to Filter Instantaneous Power
xWATT = ∑ × k × cos(φk – γk) × PMAX × 4 (21) in Each Phase when the LPFSEL Bit of CONFIG3 is 1
k =1 VFS I FS 2

HPFEN BIT INTEN BIT


AIGAIN CONFIG3[0] CONFIG[0]

IA APGAIN AWATTOS
HPF LPSEL BIT
CONFIG3[1]
HPFEN BIT
APHCAL CONFIG3[0] INSTANTANEOUS
AVGAIN PHASE A
LPF ACTIVE POWER
VA
: AWATT
HPF
10193-045

DIGITAL SIGNAL PROCESSOR 24

Figure 76. Total Active Power Data Path


Rev. C | Page 46 of 107
Data Sheet ADE7880
Fundamental Active Power Calculation place. For an instant change, the typical settling time for
fundamental frequency based computations is 10 seconds.
The ADE7880 computes the fundamental active power using
For a more gradual change, the waiting period is shorter.
a proprietary algorithm that requires some initializations function
of the frequency of the network and its nominal voltage measured 7. Calibrate the IC.
in the voltage channel. Bit 14 (SELFREQ) in the COMPMODE Example 2: Consider the scenario where the user plans to
register must be set according to the frequency of the network in evaluate the performance of the IC at 45 Hz and at 65 Hz. In
which the ADE7880 is connected. If the network frequency is such a case, the following steps must be followed in sequential
between 45 Hz and 55 Hz, clear this bit to 0 (the default value). If order.
the network frequency is between 55 Hz and 66 Hz, set this bit to 1.
1. Apply a 45 Hz line frequency.
In addition, initialize the VLEVEL 28-bit signed register based
2. Keep the SELFREQ bit of the COMPMODE register at 0.
on the following equation:
3. Evaluate the IC.
VFS 4. Apply a 50 Hz line frequency.
VLEVEL = × 4 × 10 6 (22)
Vn 5. Wait for 10 seconds.
6. Apply a 65 Hz line frequency.
where:
7. Immediately set the SELFREQ bit of the COMPMODE register
VFS is the rms value of the phase voltages when the ADC inputs
to 1. It is essential to complete this step immediately after
are at full scale.
Step 6.
Vn is the rms nominal value of the phase voltage.
8. Wait for 10 seconds.
The VLEVEL register is a 28-bit signed register and is zero 9. Evaluate the IC.
padded to 32 bits.
Active Power Gain Calibration
Table 13 presents the settling time for the fundamental active
power measurement. Note that the average active power result from the LPF2 output
in each phase can be scaled by ±100% by writing to the watt gain
Table 13. Settling Time for Fundamental Active Power 24-bit register of the phase (APGAIN, BPGAIN, CPGAIN). The
Input Signals xPGAIN registers are placed on data paths of all powers computed
63% PMAX 100% PMAX by the ADE7880: total active powers, fundamental active and
375 ms 875 ms reactive powers and apparent powers. This is possible because
all power data paths have identical overall gains. Therefore, to
Managing Change in Fundamental Line Frequency
compensate the gain errors in various powers data paths it is
The ADE7880 has a very accurate method for tracking changes in sufficient to analyze only one power data path, for example, the
line frequency up to 10 Hz. Typical changes in line frequency are total active power, calculate the correspondent APGAIN,
very slow. However, in some calibration or testing scenarios, the BPGAIN and CPGAIN registers, and all the power data paths
line frequency can change abruptly. It is recommended to keep are gain compensated.
changes in the line frequency within ±5 Hz at any one transition.
The power gain registers are twos complement, signed registers
To cover a wide frequency range from 45 Hz to 66 Hz, it is
and have a resolution of 2−23/LSB. Equation 23 describes
necessary to ensure that the SELFREQ bit of the COMPMODE
mathematically the function of the power gain registers.
register is changed according to the line frequency.
Average Power Data =
The following two scenarios are examples on how to manage
the SELFREQ bit and how to change the line frequency.  Power Gain Register  (23)
LPF 2 Output × 1 + 
Example 1: Consider the scenario where the user plans to  2 23 
calibrate the IC at 50 Hz and then at 60 Hz. In such a case, the The output is scaled by −50% by writing 0xC00000 to the watt
following steps must be followed in sequential order. gain registers, and it is increased by +50% by writing 0x400000
1. Apply a 50 Hz line frequency. to them. These registers are used to calibrate the active, reactive
and apparent power (or energy) calculation for each phase.
2. Keep the SELFREQ bit of the COMPMODE register at 0.
As stated in the Current Waveform Gain Registers section, the
3. Calibrate the IC.
serial ports of the ADE7880 work on 32-, 16-, or 8-bit words,
4. Apply a 60 Hz line frequency. and the DSP works on 28 bits. Similar to registers presented in
5. Immediately, set the SELFREQ bit of the COMPMODE register Figure 44, the APGAIN, BPGAIN, and CPGAIN 24-bit signed
to 1. It is essential to complete this step immediately after registers are accessed as 32-bit registers with the four MSBs
Step 4. padded with 0s and sign extended to 28 bits.
6. Wait for 10 seconds. This waiting period depends on how
rapidly the frequency change from 50 Hz to 60 Hz takes

Rev. C | Page 47 of 107


ADE7880 Data Sheet
Active Power Offset Calibration Bit 6 (REVAPSEL) in the ACCMODE register sets the type of
The ADE7880 incorporates a watt offset 24-bit register on each active power being monitored. When REVAPSEL is 0, the
phase and on each active power. The AWATTOS, BWATTOS, default value, the total active power is monitored. When
and CWATTOS registers compensate the offsets in the total REVAPSEL is 1, the fundamental active power is monitored.
active power calculations, and the AFWATTOS, BFWATTOS, Bits[8:6] (REVAPC, REVAPB, and REVAPA, respectively) in the
and CFWATTOS registers compensate offsets in the fundamental STATUS0 register are set when a sign change occurs in the power
active power calculations. These are signed twos complement, selected by Bit 6 (REVAPSEL) in the ACCMODE register.
24-bit registers that are used to remove offsets in the active Bits[2:0] (CWSIGN, BWSIGN, and AWSIGN, respectively) in
power calculations. An offset can exist in the power calculation the PHSIGN register are set simultaneously with the REVAPC,
due to crosstalk between channels on the PCB or in the chip REVAPB, and REVAPA bits. They indicate the sign of the
itself. One LSB in the active power offset register is equivalent power. When they are 0, the corresponding power is positive.
to 1 LSB in the active power multiplier output. With full-scale When they are 1, the corresponding power is negative.
current and voltage inputs, the LPF2 output is PMAX =
27,059,678. At −80 dB down from the full scale (active power Bit REVAPx of STATUS0 and Bit xWSIGN in the PHSIGN
scaled down 104 times), one LSB of the active power offset register refer to the total active power of Phase x, the power type
register represents 0.0369% of PMAX. being selected by Bit 6 (REVAPSEL) in the ACCMODE register.

As stated in the Current Waveform Gain Registers section, the Interrupts attached to Bits[8:6] (REVAPC, REVAPB, and
serial ports of the ADE7880 work on 32-, 16-, or 8-bit words REVAPA, respectively) in the STATUS0 register can be enabled
and the DSP works on 28 bits. Similar to registers presented in by setting Bits[8:6] in the MASK0 register. If enabled, the IRQ0
Figure 44, the AWATTOS, BWATTOS, CWATTOS, AFWATTOS, pin is set low, and the status bit is set to 1 whenever a change of
BFWATTOS, and CFWATTOS 24-bit signed registers are accessed sign occurs. To find the phase that triggered the interrupt, the
as 32-bit registers with the four MSBs padded with 0s and sign PHSIGN register is read immediately after reading the STATUS0
extended to 28 bits. register. Next, the status bit is cleared and the IRQ0 pin is returned
to high by writing to the STATUS0 register with the corresponding
Sign of Active Power Calculation
bit set to 1.
The average active power is a signed calculation. If the phase
difference between the current and voltage waveform is Active Energy Calculation
more than 90°, the average power becomes negative. Negative As previously stated, power is defined as the rate of energy flow.
power indicates that energy is being injected back on the grid. This relationship can be expressed mathematically as
The ADE7880 has sign detection circuitry for active power dEnergy
calculations. It can monitor the total active powers or the Power  (24)
dt
fundamental active powers. As described in the Active Energy
Calculation section, the active energy accumulation is performed Conversely, energy is given as the integral of power, as follows:
in two stages. Every time a sign change is detected in the energy Energy   p t dt (25)
accumulation at the end of the first stage, that is, after the energy
accumulated into the internal accumulator reaches the WTHR
register threshold, a dedicated interrupt is triggered. The sign of
each phase active power can be read in the PHSIGN register.

HPFEN BIT INTEN BIT


CONFIG3[0] CONFIG[0] AIGAIN

IA APGAIN AWATTOS REVAPA BIT IN


HPF STATUS0[31:0]

HPFEN BIT AWATTHR[31:0]


APHCAL CONFIG3[0]
AVGAIN INTERNAL
LPF ACCUMULATOR
32-BIT REGISTER
VA : AWATT
HPF THRESHOLD
24
DIGITAL SIGNAL PROCESSOR

34 27 26 0
10193-049

WTHR 0

Figure 77. Total Active Energy Accumulation

Rev. C | Page 48 of 107


Data Sheet ADE7880
The ADE7880 achieves the integration of the active power signal where:
in two stages (see Figure 77). The process is identical for both n is the discrete time sample number.
total and fundamental active powers. The first stage accumulates T is the sample period.
the instantaneous phase total or fundamental active power at In the ADE7880, the total phase active powers are accumulated
1.024MHz, although they are computed by the DSP at 8 kHz in the AWATTHR, BWATTHR, and CWATTHR 32-bit signed
rate. Every time a threshold is reached, a pulse is generated and registers, and the fundamental phase active powers are accumu-
the threshold is subtracted from the internal register. lated in the AFWATTHR, BFWATTHR, and CFWATTHR 32-bit
The sign of the energy in this moment is considered the sign signed registers. The active energy register content can roll over
of the active power (see the Sign of Active Power Calculation to full-scale negative (0x80000000) and continue increasing in
section for details). The second stage consists of accumulating value when the active power is positive. Conversely, if the active
the pulses generated at the first stage into internal 32-bit accu- power is negative, the energy register underflows to full-scale
mulation registers. The content of these registers is transferred positive (0x7FFFFFFF) and continues decreasing in value.
to watt-hour registers, xWATTHR and xFWATTHR, when The ADE7880 provides a status flag to signal when one of the
these registers are accessed. xWATTHR and xFWATTHR registers is half full. Bit 0 (AEHF)
THRESHOLD
in the STATUS0 register is set when Bit 30 of one of the xWATTHR
registers changes, signifying one of these registers is half full. If
FIRST STAGE OF the active power is positive, the watt-hour register becomes half
ACTIVE POWER
ACCUMULATION full when it increments from 0x3FFF FFFF to 0x4000 0000. If the
active power is negative, the watt-hour register becomes half
full when it decrements from 0xC000 0000 to 0xBFFF FFFF.
Similarly, Bit 1 (FAEHF) in STATUS0 register, is set when Bit 30
PULSES of one of the xFWATTHR registers changes, signifying one of
GENERATED
AFTER FIRST these registers is half full.
10193-050

STAGE
1 PULSE = 1LSB OF WATTHR[31:0] Setting Bits[1:0] in the MASK0 register enable the FAEHF and
Figure 78. Active Power Accumulation Inside the DSP AEHF interrupts, respectively. If enabled, the IRQ0 pin is set
Figure 78 explains this process. The threshold is formed by low and the status bit is set to 1 whenever one of the energy
concatenating the WTHR 8-bit unsigned register to 27 bits registers, xWATTHR (for the AEHF interrupt) or xFWATTHR
equal to 0. It is introduced by the user and is common for total (for the FAEHF interrupt), become half full. The status bit is
and fundamental active powers on all phases. Its value depends cleared and the IRQ0 pin is set to logic high by writing to the
on how much energy is assigned to one LSB of watt-hour regis- STATUS0 register with the corresponding bit set to 1.
ters. Supposing a derivative of Wh [10n Wh], n as an integer, is Setting Bit 6 (RSTREAD) of the LCYCMODE register enables a
desired as one LSB of the xWATTHR register, WTHR is read-with-reset for all watt-hour accumulation registers, that is,
computed using the following equation: the registers are reset to 0 after a read operation.
PMAX  f S  3600  10n Integration Time Under Steady Load
WTHR  (26)
U FS  I FS  227 The discrete time sample period (T) for the accumulation register
where: is 976.5625 ns (1.024MHz frequency). With full-scale sinusoidal
PMAX = 27,059,678 = 0x19CE5DE as the instantaneous power signals on the analog inputs and the watt gain registers set to
computed when the ADC inputs are at full scale. 0x00000, the average word value from each LPF2 is PMAX =
fS = 1.024 MHz, the frequency at which every instantaneous 27,059,678 = 0x19CE5DE. If the WTHR register threshold is set
power computed by the DSP at 8 kHz is accumulated. at 3, its minimum recommended value, the first stage accumulator
UFS, IFS are the rms values of phase voltages and currents when generates a pulse that is added to watt-hour registers every
the ADC inputs are at full scale. 3  227
 14.531 sec
WTHR register is an 8-bit unsigned number, so its maximum PMAX 1.024 106
value is 28 − 1. Its default value is 0x3. Avoid values lower than The maximum value that can be stored in the watt-hour
3, that is, 2 or 1, and never use 0 as the threshold must be a non- accumulation register before it overflows is 231 − 1 or
zero value. 0x7FFFFFFF. The integration time is calculated as
This discrete time accumulation or summation is equivalent to Time = 0x7FFF,FFFF × 14.531 μs = 8 hr 40 min 6 sec (28)
integration in continuous time following the description in
Equation 27.

 
Energy   p t dt  Lim   p nT   T  (27)
T 0 n 0 
Rev. C | Page 49 of 107
ADE7880 Data Sheet
Active Energy Accumulation Modes over an integer number of line cycles is that the sinusoidal compo-
The active power is accumulated in each watt-hour nent in the active energy is reduced to 0. This eliminates any
accumulation 32-bit register (AWATTHR, BWATTHR, ripple in the energy calculation and allows the energy to be
CWATTHR, AFWATTHR, BFWATTHR, and CFWATTHR) accumulated accurately over a shorter time. By using the line
according to the configuration of Bit 5 and Bit 4 (CONSEL bits) cycle energy accumulation mode, the energy calibration can be
in the ACCMODE register. The various configurations are greatly simplified, and the time required to calibrate the meter
described in Table 14. can be significantly reduced. In line cycle energy accumulation
mode, the ADE7880 transfers the active energy accumulated in the
Table 14. Inputs to Watt-Hour Accumulation Registers 32-bit internal accumulation registers into the xWATHHR or
CONSEL AWATTHR BWATTHR CWATTHR xFWATTHR registers after an integral number of line cycles, as
00 VA × IA VB × IB VC × IC shown in Figure 79. The number of half line cycles is specified
01 VA × IA VB × IB VC × IC in the LINECYC register.
VB = VA – VC1
The line cycle energy accumulation mode is activated by setting
10 VA × IA VB × IB VC × IC
Bit 0 (LWATT) in the LCYCMODE register. The energy accu-
VB = −VA − VC
mulation over an integer number of half line cycles is written to
11 VA × IA VB × IB VC × IC
the watt-hour accumulation registers after LINECYC number of
VB = −VA
half line cycles is detected. When using the line cycle accumulation
1
In a 3-phase three wire case (CONSEL[1:0] = 01), the ADE7880 computes the mode, the Bit 6 (RSTREAD) of the LCYCMODE register must
rms value of the line voltage between Phase A and Phase C and stores the
result into BVRMS register (see the Voltage RMS in 3-Phase, 3-Wire Delta be set to Logic 0 because the read with reset of watt-hour registers
Configurations section). Consequently, the ADE7880 computes powers is not available in this mode.
associated with Phase B that do not have physical meaning. To avoid any
errors in the frequency output pins (CF1, CF2, or CF3) related to the powers Phase A, Phase B, and Phase C zero crossings are, respectively,
associated with Phase B, disable the contribution of Phase B to the energy-to-
frequency converters by setting bits TERMSEL1[1] or TERMSEL2[1] or TERMSEL3[1]
included when counting the number of half line cycles by setting
to 0 in the COMPMODE register (see the Energy-to-Frequency Conversion Bits[5:3] (ZXSEL[x]) in the LCYCMODE register. Any combi-
section). nation of the zero crossings from all three phases can be used
Depending on the polyphase meter service, choose the appro- for counting the zero crossing. Select only one phase at a time
priate formula to calculate the active energy. The American for inclusion in the zero crossings count during calibration.
ANSI C12.10 standard defines the different configurations of ZXSEL[0] IN
LCYCMODE[7:0]
the meter. Table 15 describes which mode to choose in these
various configurations. ZERO-
CROSSING
DETECTION
(PHASE A)
Table 15. Meter Form Configuration
ZXSEL[1] IN LINECYC[15:0]
ANSI Meter Form Configuration CONSEL LCYCMODE[7:0]

5S/13S 3-wire delta 01 ZERO-


CROSSING CALIBRATION
6S/14S 4-wire wye 10 DETECTION CONTROL
(PHASE B)
8S/15S 4-wire delta 11
ZXSEL[2] IN
9S/16S 4-wire wye 00 LCYCMODE[7:0]

Bits[1:0] (WATTACC[1:0]) in the ACCMODE register determine ZERO-


CROSSING
how the active power is accumulated in the watt-hour registers DETECTION
(PHASE C)
and how the CF frequency output can be generated as a
function of the total and fundamental active powers. See the APGAIN AWATTOS
AWATTHR[31:0]
Energy-to-Frequency Conversion section for details.
OUTPUT
FROM INTERNAL
ACCUMULATOR
The apparent power computation, in 3-wire and 4-wire delta LPF2 32-BIT
REGISTER
configurations, will be incorrect, because the line to line THRESHOLD

voltages are treated as phase voltages by the IC. To get the


34 27 26 0
10193-051

equivalent wye-configuration apparent power, a scaling factor WTHR 0


needs to be applied. Refer to the Three Phase Configurations
section of AN-639 Application Note, Analog Devices Energy Figure 79. Line Cycle Active Energy Accumulation Mode
(ADE) Products: Frequently Asked Questions (FAQ), for details. The number of zero crossings is specified by the LINECYC 16-bit
Line Cycle Active Energy Accumulation Mode unsigned register. The ADE7880 can accumulate active power
for up to 65,535 combined zero crossings. Note that the internal
In line cycle energy accumulation mode, the energy accumula-
zero-crossing counter is always active. By setting Bit 0 (LWATT)
tion is synchronized to the voltage channel zero crossings such
in the LCYCMODE register, the first energy accumulation result
that active energy is accumulated over an integral number of
is, therefore, incorrect. Writing to the LINECYC register when
half line cycles. The advantage of summing the active energy
Rev. C | Page 50 of 107
Data Sheet ADE7880
the LWATT bit is set resets the zero-crossing counter, thus ∞
π
q(t ) = ∑Vk I k × 2 sin(kωt + φk) × sin(kωt + γk + )+
ensuring that the first energy accumulation result is accurate. k =1 2

At the end of an energy calibration cycle, Bit 5 (LENERGY) in π
the STATUS0 register is set. If the corresponding mask bit in
∑Vk I m × 2sin(kωt + φk) × sin(mωt + γm + )
k ,m =1 2
k ≠m
the MASK0 interrupt mask register is enabled, the IRQ0 pin
also goes active low. The status bit is cleared and the IRQ0 pin is Note that q(t) can be rewritten as
set to high again by writing to the STATUS0 register with the ∞
π π
corresponding bit set to 1. q(t ) = ∑Vk I k {cos(φk − γk − ) − cos(2 kωt + φk + γk + )} +
k =1 2 2
Because the active power is integrated on an integer number of ∞
π
half-line cycles in this mode, the sinusoidal components are ∑V kI m {cos[(k – m)ωt + φk − γk − ]−
reduced to 0, eliminating any ripple in the energy calculation. k ,m =1 2
k ≠m
Therefore, total energy accumulated using the line cycle
accumulation mode is π
cos[(k + m)ωt + φk + γk + ]} (33)
t + nT ∞
2
e= ∫ p (t )dt = nT ∑Vk I k cos(φk – γk) (29) The average total reactive power over an integral number of line
t k =1
cycles (n) is shown in Equation 34.
where nT is the accumulation time.
1 nT ∞
π
Note that line cycle active energy accumulation uses the same Q= ∫ q(t )dt = ∑Vk I k cos(φk – γk − ) (34)
nT 0 k =1 2
signal path as the active energy accumulation. The LSB size of

these two methods is equivalent. Q = ∑Vk I k sin(φk – γk)
k =1
FUNDAMENTAL REACTIVE POWER CALCULATION
The ADE7880 computes the fundamental reactive power, the where:
power determined only by the fundamental components of the T is the period of the line cycle.
voltages and currents. Q is referred to as the total reactive power. Note that the total
reactive power is equal to the dc component of the instantaneous
The ADE7880 also computes the harmonic reactive powers, the reactive power signal q(t) in Equation 32, that is,
reactive powers determined by the harmonic components of the

voltages and currents. See Harmonics Calculations section for ∑ Vk I k sin(φk – γk)
details. A load that contains a reactive element (inductor or k =1

capacitor) produces a phase difference between the applied ac This is the relationship used to calculate the total reactive power
voltage and the resulting current. The power associated with for each phase. The instantaneous reactive power signal, q(t), is
reactive elements is called reactive power, and its unit is VAR. generated by multiplying each harmonic of the voltage signals
Reactive power is defined as the product of the voltage and current by the 90° phase-shifted corresponding harmonic of the current
waveforms when all harmonic components of one of these in each phase.
signals are phase shifted by 90°.
The expression of fundamental reactive power is obtained from
Equation 31 is an example of the instantaneous reactive power Equation 33 with k = 1, as follows:
signal in an ac system when the phase of the current channel is
FQ = V1I1 sin(φ1 – γ1)
shifted by +90°.

The ADE7880 computes the fundamental reactive power using
v(t ) = ∑Vk 2 sin(kωt + φk) (30) a proprietary algorithm that requires some initialization function
k =1 of the frequency of the network and its nominal voltage measured
∞ in the voltage channel. These initializations are introduced in
i(t ) = ∑ I k 2 sin(kωt + γ k ) (31)
k =1
the Active Power Calculation section and are common for both
fundamental active and reactive powers.
∞ π
i' (t ) = ∑ I k 2 sin kωt + γ k +  The ADE7880 stores the instantaneous fundamental phase reactive
k =1  2
powers into the AFVAR, BFVAR, and CFVAR registers. Their
where i’(t) is the current waveform with all harmonic equation is
components phase shifted by 90°.
V1 I1 1
Next, the instantaneous reactive power, q(t), can be expressed as xFVAR = × × sin(φ1 – γ1) × PMAX × 4 (35)
VFS I FS 2
q(t) = v(t) × iʹ(t) (32)
where:
VFS, IFS are the rms values of the phase voltage and current when
the ADC inputs are at full scale.
Rev. C | Page 51 of 107
ADE7880 Data Sheet
PMAX = 27,059,678, the instantaneous power computed when Fundamental Reactive Power Gain Calibration
the ADC inputs are at full scale and in phase. The average fundamental reactive power in each phase can be
The xFVAR waveform registers are not mapped with an address scaled by ±100% by writing to one of the phase’s VAR gain 24-bit
in the register space and can be accessed only through HSDC register (APGAIN, BPGAIN, or CPGAIN). Note that these
port in the waveform sampling mode (see Waveform Sampling registers are the same gain registers used to compensate the other
Mode section for details). Fundamental reactive power powers computed by the ADE7880. See the Active Power Gain
information is also available through the harmonic calculations Calibration section for details on these registers.
of the ADE7880 (see Harmonics Calculations section for details). Fundamental Reactive Power Offset Calibration
Table 16 presents the settling time for the fundamental reactive The ADE7880 provides a fundamental reactive power offset
power measurement, which is the time it takes the power to register on each phase. The AFVAROS, BFVAROS, and CFVAROS
reflect the value at the input of the ADE7880. registers compensate the offsets in the fundamental reactive power
calculations. These are signed twos complement, 24-bit registers
Table 16. Settling Time for Fundamental Reactive Power
that are used to remove offsets in the fundamental reactive power
Input Signals
calculations. An offset can exist in the power calculation due to
63% PMAX 100% PMAX
crosstalk between channels on the PCB or in the chip itself. The
375 ms 875 ms
resolution of the registers is the same as for the active power
Bit 14 (SELFREQ) in the COMPMODE register must be set offset registers (see the Active Power Offset Calibration section).
according to the frequency of the network in which the ADE7880 As stated in the Current Waveform Gain Registers section, the
is connected. If the network frequency is between 45 Hz and 55 Hz, serial ports of the ADE7880 work on 32-, 16-, or 8-bit words
clear this bit to 0 (the default value). If the network frequency is and the DSP works on 28 bits. Similar to the registers presented
between 55 Hz and 66 Hz, set this bit to 1. In addition, initialize in Figure 44, the AFVAROS, BFVAROS, and CFVAROS 24-bit
the VLEVEL, 28-bit signed register based on Equation 22. signed registers are accessed as 32-bit registers with the four
Refer to the Managing Change in Fundamental Line Frequency MSBs padded with 0s and sign extended to 28 bits.
section for details on how to manage changes in line frequency.

HPFEN BIT DIGITAL


CONFIG3[0] INTEGRATOR AIGAIN

IA APGAIN AFVAROS REVFRPA BIT IN


HPF STATUS0[31:0]
FUNDAMENTAL
HPFEN BIT REACTIVE AFVARHR[31:0]
CONFIG3[0] POWER
APHCAL AVGAIN ALGORITHM INTERNAL
ACCUMULATOR
32-BIT REGISTER
VA : AFVAR
HPF THRESHOLD
24
DIGITAL SIGNAL PROCESSOR

34 27 26 0

10193-052
VARTHR 0

Figure 80. Fundamental Reactive Energy Accumulation

Rev. C | Page 52 of 107


Data Sheet ADE7880
Sign of Fundamental Reactive Power Calculation Similar to active power, the ADE7880 achieves the integration
Note that the fundamental reactive power is a signed calculation. of the reactive power signal in two stages (see Figure 80).
Table 17 summarizes the relationship between the phase difference • The first stage accumulates the instantaneous phase
between the voltage and the current and the sign of the resulting fundamental reactive power at 1.024 MHz, although they
reactive power calculation. are computed by the DSP at 8 kHz rate. Every time a threshold
The ADE7880 has sign detection circuitry for reactive power is reached, a pulse is generated and the threshold is subtracted
calculations that can monitor the fundamental reactive powers. from the internal register. The sign of the energy in this
As described in the Fundamental Reactive Energy Calculation moment is considered the sign of the reactive power (see
section, the reactive energy accumulation is executed in two the Sign of Fundamental Reactive Power Calculation
stages. Every time a sign change is detected in the energy section for details).
accumulation at the end of the first stage, that is, after the energy • The second stage consists in accumulating the pulses generated
accumulated into the internal accumulator reaches the VARTHR after the first stage into internal 32-bit accumulation registers.
register threshold, a dedicated interrupt is triggered. The sign of The content of these registers is transferred to the var-hour
each phase reactive power can be read in the PHSIGN register. registers (xFVARHR) when these registers are accessed.
AFWATTHR, BFWATTHR, and CFWATTHR represent
Bits[12:10] (REVFRPC, REVFRPB, and REVFRPA, respect-
phase fundamental reactive energies.
tively) in the STATUS0 register are set when a sign change
occurs in the fundamental reactive power. Figure 80 explains this process. The threshold is formed by
Bits[6:4] (CFVARSIGN, BFVARSIGN, and AFVARSIGN, concatenating the VARTHR 8-bit unsigned register to 27 bits
respectively) in the PHSIGN register are set simultaneously with equal to 0 and it is introduced by the user. Its value depends on
the REVFRPC, REVFRPB, and REVFRPA bits. They indicate the how much energy is assigned to one LSB of var-hour registers.
sign of the fundamental reactive power. When they are 0, the Supposing a derivative of a volt ampere reactive hour (varh)
reactive power is positive. When they are 1, the reactive power [10n varh] where n is an integer, is desired as one LSB of the
is negative. VARHR register, the VARTHR register can be computed using
the following equation:
Bit REVFRPx of the STATUS0 register and Bit xFVARSIGN in
the PHSIGN register refer to the reactive power of Phase x. PMAX × f s × 3600 × 10 n
VARTHR =
Setting Bits[12:10] in the MASK0 register enables the REVFRPC, U FS × I FS × 2 27
(37)
REVFRPB, and REVFRPA interrupts, respectively. If enabled,
the IRQ0 pin is set low and the status bit is set to 1 whenever a where:
PMAX = 27,059,678 = 0x19CE5DE, the instantaneous power
change of sign occurs. To find the phase that triggered the
computed when the ADC inputs are at full scale.
interrupt, the PHSIGN register is read immediately after read-
fS = 1.024 MHz, the frequency at which every instantaneous
ing the STATUS0 register. Next, the status bit is cleared and the
power computed by the DSP at 8 kHz is accumulated.
IRQ0 pin is set to high by writing to the STATUS0 register with
UFS, IFS are the rms values of phase voltages and currents when
the corresponding bit set to 1.
the ADC inputs are at full scale.
Table 17. Sign of Reactive Power Calculation VARTHR register is an 8-bit unsigned number, so its maximum
Φ1 Sign of Reactive Power value is 28 − 1. Its default value is 0x3. Avoid, values lower than
Between 0 to +180 Positive 3, that is, 2 or 1, and never use 0 as the threshold must be a non-
Between −180 to 0 Negative zero value.
1
Φ is defined as the phase angle of the voltage signal minus the current
signal; that is, Φ is positive if the load is inductive and negative if the load is
This discrete time accumulation or summation is equivalent to
capacitive. integration in continuous time, shown in Equation 38:
Fundamental Reactive Energy Calculation ∞ 
ReactiveEnergy = ∫ q (t )dt = Lim  ∑ q (nT ) × T  (38)
Fundamental reactive energy is defined as the integral of T → 0 n = 0 
fundamental reactive power.
where:
Reactive Energy = ∫q(t)dt (36) n is the discrete time sample number.
T is the sample period.

Rev. C | Page 53 of 107


ADE7880 Data Sheet
On the ADE7880, the fundamental phase reactive powers are Table 18. Inputs to Var-Hour Accumulation Registers
accumulated in the AFVARHR, BFVARHR, and CFVARHR 32-bit CONSEL[1:0] AFVARHR BFVARHR CFVARHR
signed registers. The reactive energy register content can roll 00 VA × IA’ VB × IB’ VC × IC’
over to full-scale negative (0x80000000) and continue increasing in 01 VA × IA’ VB × IB’ VC × IC’
value when the reactive power is positive. Conversely, if the reactive VB = VA − VC1
power is negative, the energy register underflows to full-scale 10 VA × IA’ VB × IB’ VC x IC’
positive (0x7FFFFFFF) and continues to decrease in value. VB = −VA − VC
The ADE7880 provides a status flag to signal when one of the 11 VA × IA’ VB × IB’ VC × IC’
xFVARHR registers is half full. Bit 3 (FREHF) in the STATUS0 VB = −VA
register is set when Bit 30 of one of the xFVARHR registers 1
In a 3-phase three wire case (CONSEL[1:0] = 01), the ADE7880 computes the
changes, signifying one of these registers is half full. If the reactive rms value of the line voltage between phases A and C and stores the result
into BVRMS register (see the Voltage RMS in 3-Phase, 3-Wire Delta
power is positive, the var-hour register becomes half full when it Configurations section). Consequently, the ADE7880 computes powers
increments from 0x3FFF FFFF to 0x4000 0000. If the reactive associated with Phase B that do not have physical meaning. To avoid any
power is negative, the var-hour register becomes half full when errors in the frequency output pins (CF1, CF2, or CF3) related to the powers
associated with Phase B, disable the contribution of Phase B to the energy to
it decrements from 0xC000 0000 to 0xBFFF FFFF. frequency converters by setting bits TERMSEL1[1] or TERMSEL2[1] or
TERMSEL3[1] to 0 in COMPMODE register (see the Energy-to-Frequency
Setting Bit 3 in the MASK0 register enables the FREHF interrupt. Conversion section).
If enabled, the IRQ0 pin is set low and the status bit is set to 1 Bits[3:2] (VARACC[1:0]) in the ACCMODE register determine
whenever one of the energy registers, xFVARHR, becomes half how the reactive power is accumulated in the var-hour registers
full. The status bit is cleared and the IRQ0 pin is set to high by and how the CF frequency output can be generated function of
writing to the STATUS0 register with the corresponding bit set to 1. total and fundamental active and reactive powers. See the Energy-
Setting Bit 6 (RSTREAD) of the LCYCMODE register enables a to-Frequency Conversion section for details.
read-with-reset for all var-hour accumulation registers, that is, The apparent power computation, in 3-wire and 4-wire delta
the registers are reset to 0 after a read operation. configurations, will be incorrect, because the line to line
Integration Time Under Steady Load voltages are treated as phase voltages by the IC. To get the
equivalent wye-configuration apparent power, a scaling factor
The discrete time sample period (T) for the accumulation
needs to be applied. Refer to the Three Phase Configurations
register is 976.5625 ns (1.024 MHz frequency). With full-scale
section of AN-639 Application Note, Analog Devices Energy
sinusoidal signals on the analog inputs and a 90° phase difference
(ADE) Products: Frequently Asked Questions (FAQ), for details.
between the voltage and the current signal (the largest possible
reactive power), the average word value representing the reactive Line Cycle Reactive Energy Accumulation Mode
power is PMAX = 27,059,678 = 0x19CE5DE. If the VARTHR As mentioned in the Line Cycle Active Energy Accumulation
threshold is set at 3, its minimum recommended value, the first Mode section, in line cycle energy accumulation mode, the
stage accumulator generates a pulse that is added to var-hour energy accumulation can be synchronized to the voltage
registers every channel zero crossings so that reactive energy can be
3  227 accumulated over an integral number of half line cycles.
 14.531 μsec
PMAX 1.024 106 In this mode, the ADE7880 transfers the reactive energy
accumulated in the 32-bit internal accumulation registers into
The maximum value that can be stored in the var-hour
the xFVARHR registers after an integral number of line cycles,
accumulation register before it overflows is 231 − 1 or
0x7FFFFFFF. The integration time is calculated as as shown in Figure 81. The number of half line cycles is
specified in the LINECYC register.
Time = 0x7FFF,FFFF × 14.531 μs = 8 hr 40 min 6 sec (39)
The line cycle reactive energy accumulation mode is activated by
Fundamental Reactive Energy Accumulation Modes setting Bit 1 (LVAR) in the LCYCMODE register. The fundamental
The fundamental reactive power accumulated in each var-hour reactive energy accumulated over an integer number of half line
accumulation 32-bit register (AFVARHR, BFVARHR, and cycles or zero crossings is available in the var-hour accumulation
CFVARHR) depends on the configuration of Bits[5:4] registers after the number of zero crossings specified in the
(CONSEL[1:0]) in the ACCMODE register, in correlation with LINECYC register is detected. When using the line cycle
the watt-hour registers. The different configurations are accumulation mode, set Bit 6 (RSTREAD) of the LCYCMODE
described in Table 18. Note that IA’/IB’/IC’ are the phase- register to Logic 0 because a read with the reset of var-hour
shifted current waveforms. registers is not available in this mode.

Rev. C | Page 54 of 107


Data Sheet ADE7880
ZXSEL[0] IN
LCYCMODE[7:0]
power is by multiplying the voltage rms value by the current
rms value (also called the arithmetic apparent power).
ZERO-
CROSSING
DETECTION S = V rms × I rms (40)
(PHASE A)

ZXSEL[1] IN
where:
LINECYC[15:0]
LCYCMODE[7:0]
S is the apparent power.
ZERO-
CROSSING
V rms and I rms are the rms voltage and current, respectively.
CALIBRATION
DETECTION CONTROL
(PHASE B) The ADE7880 computes the arithmetic apparent power on each
ZXSEL[2] IN
phase. Figure 82 illustrates the signal processing in each phase
LCYCMODE[7:0]
for the calculation of the apparent power in the ADE7880.
ZERO-
CROSSING
Because V rms and I rms contain all harmonic information, the
DETECTION
(PHASE C) apparent power computed by the ADE7880 is total apparent
power. The ADE7880 computes fundamental and harmonic
APGAIN AFVAROS
AFVARHR[31:0]
apparent powers determined by the fundamental and harmonic
components of the voltages and currents. See the Harmonics
INTERNAL
ACCUMULATOR
32-BIT
Calculations section for details.
REGISTER
OUTPUT FROM THRESHOLD
FUNDAMENTAL REACTIVE The ADE7880 stores the instantaneous phase apparent powers
POWER ALGORITHM
into the AVA, BVA, and CVA registers. Their equation is
34 27 26 0
10193-053

VARTHR 0 U I 1
xVA    PMAX  4 (41)
Figure 81. Line Cycle Fundamental Reactive Energy Accumulation Mode U FS I FS 2

Phase A, Phase B, and Phase C zero crossings are, respectively, where:


included when counting the number of half line cycles by U, I are the rms values of the phase voltage and current.
setting Bits[5:3] (ZXSEL[x]) in the LCYCMODE register. Any UFS, IFS are the rms values of the phase voltage and current when
combination of the zero crossings from all three phases can be the ADC inputs are at full scale.
used for counting the zero crossing. Select only one phase at a PMAX = 27,059,678, the instantaneous power computed when
time for inclusion in the zero-crossings count during calibration. the ADC inputs are at full scale and in phase.
For details on setting the LINECYC register and Bit 5 The xVA[23:0] waveform registers may be accessed using
(LENERGY) in the MASK0 interrupt mask register associated various serial ports. Refer to the Waveform Sampling Mode
with the line cycle accumulation mode, see the Line Cycle section for more details.
Active Energy Accumulation Mode section. The ADE7880 can compute the apparent power in an alternative
APPARENT POWER CALCULATION way by multiplying the phase rms current by an rms voltage
introduced externally. See the Apparent Power Calculation
Apparent power is defined as the maximum active power that
Using VNOM section for details.
can be delivered to a load. One way to obtain the apparent

APGAIN
AIRMS
AVAHR[31:0]
INTERNAL
ACCUMULATOR
32-BIT REGISTER
AVRMS
: AVA

THRESHOLD
DIGITAL SIGNAL 24
PROCESSOR

34 27 26 0
10193-054

VATHR 0

Figure 82. Apparent Power Data Flow and Apparent Energy Accumulation

Rev. C | Page 55 of 107


ADE7880 Data Sheet
Apparent Power Gain Calibration register. The second stage consists in accumulating the pulses
The average apparent power result in each phase can be scaled generated after the first stage into internal 32-bit accumulation
by ±100% by writing to one of the phase’s PGAIN 24-bit registers. The content of these registers is transferred to the VA-
registers (APGAIN, BPGAIN, or CPGAIN). Note that these hour registers, xVAHR, when these registers are accessed.
registers are the same gain registers used to compensate the Figure 82 illustrates this process. The threshold is formed by the
other powers computed by the ADE7880. See the Active Power VATHR 8-bit unsigned register concatenated to 27 bits equal to
Gain Calibration section for details on these registers. 0. It is introduced by the user and is common for all phase total
Apparent Power Offset Calibration active and fundamental powers. Its value depends on how much
energy is assigned to one LSB of VA-hour registers. When a
Each rms measurement includes an offset compensation register
derivative of apparent energy (VAh) [10n VAh], where n is an
to calibrate and eliminate the dc component in the rms value
integer, is desired as one LSB of the xVAHR register, the xVATHR
(see the Root Mean Square Measurement section). The voltage
register can be computed using the following equation:
and current rms values are multiplied together in the apparent
power signal processing. As no additional offsets are created in PMAX × f s × 3600 × 10n
VATHR =
the multiplication of the rms values, there is no specific offset U FS × I FS × 227
(44)
compensation in the apparent power signal processing. The offset
compensation of the apparent power measurement in each phase is where:
accomplished by calibrating each individual rms measurement. PMAX = 27,059,678 = 0x19CE5DE, the instantaneous power
computed when the ADC inputs are at full scale.
Apparent Power Calculation Using VNOM
fS = 1.024 MHz, the frequency at which every instantaneous
The ADE7880 can compute the apparent power by multiplying power computed by the DSP at 8 kHz is accumulated.
the phase rms current by an rms voltage introduced externally UFS, IFS are the rms values of phase voltages and currents when
in the VNOM 24-bit signed register. the ADC inputs are at full scale.
When one of Bits[13:11] (VNOMCEN, VNOMBEN, or The VATHR register is an 8-bit unsigned number, so its
VNOMAEN) in the COMPMODE register is set to 1, the maximum value is 28 − 1. Its default value is 0x3. Avoid values
apparent power in the corresponding phase (Phase x for lower than 3, that is, 2 or 1; never use 0 as the threshold must be
VNOMxEN) is computed in this way. When the VNOMxEN a non-zero value.
bits are cleared to 0, the default value, then the arithmetic apparent
This discrete time accumulation or summation is equivalent to
power is computed. When the VNOMxEN bit is set to 1, the
integration in continuous time following the description in
applied voltage input in the corresponding phase is ignored
Equation 45.
and all corresponding rms voltage instances are replaced by
the value in the VNOM register. ∞ 
ApparentEnergy = ∫ s (t )dt = Lim  ∑ s (nT ) × T  (45)
The VNOM register contains a number determined by V, the T→0 n=0 
desired nominal phase rms voltage, and VFS, the rms value of where:
the phase voltage when the ADC inputs are at full scale: n is the discrete time sample number.
V T is the sample period.
VNOM = × 3,766,572 (42)
VFS In the ADE7880, the phase apparent powers are accumulated in
where V is the nominal phase rms voltage. the AVAHR, BVAHR, and CVAHR 32-bit signed registers. The
apparent energy register content can roll over to full-scale negative
As stated in the Current Waveform Gain Registers, the serial (0x80000000) and continue increasing in value when the apparent
ports of the ADE7880 work on 32-, 16-, or 8-bit words. Similar power is positive.
to the register presented in Figure 59, the VNOM 24-bit signed
register is accessed as a 32-bit register with the eight MSBs The ADE7880 provides a status flag to signal when one of the
padded with 0s. xVAHR registers is half full. Bit 4 (VAEHF) in the STATUS0
register is set when Bit 30 of one of the xVAHR registers changes,
Apparent Energy Calculation signifying one of these registers is half full. As the apparent
Apparent energy is defined as the integral of apparent power. power is always positive and the xVAHR registers are signed, the
Apparent Energy = ∫s(t)dt (43) VA-hour registers become half full when they increment from
0x3FFFFFFF to 0x40000000. Interrupts attached to Bit VAEHF in
Similar to active and reactive powers, the ADE7880 achieves
the STATUS0 register can be enabled by setting Bit 4 in the MASK0
the integration of the apparent power signal in two stages (see
register. If enabled, the IRQ0 pin is set low and the status bit is
Figure 82). The first stage accumulates the instantaneous
set to 1 whenever one of the Energy Registers xVAHR becomes
apparent power at 1.024 MHz, although they are computed by
half full. The status bit is cleared and the IRQ0 pin is set to high
the DSP at 8 kHz rate. Every time a threshold is reached, a pulse
is generated and the threshold is subtracted from the internal
Rev. C | Page 56 of 107
Data Sheet ADE7880
by writing to the STATUS0 register with the corresponding bit Line Cycle Apparent Energy Accumulation Mode
set to 1. As described in the Line Cycle Active Energy Accumulation
Setting Bit 6 (RSTREAD) of the LCYCMODE register enables a Mode section, associated with the line cycle accumulation
read-with-reset for all xVAHR accumulation registers, that is, mode, the energy accumulation can be synchronized to the
the registers are reset to 0 after a read operation. voltage channel zero crossings allowing apparent energy to be
accumulated over an integral number of half line cycles. In this
Integration Time Under Steady Load
mode, the ADE7880 transfers the apparent energy accumulated
The discrete time sample period for the accumulation register in the 32-bit internal accumulation registers into the xVAHR
is 976.5625 ns (1.024 MHz frequency). With full-scale pure registers after an integral number of line cycles, as shown in
sinusoidal signals on the analog inputs, the average word value Figure 83. The number of half line cycles is specified in the
representing the apparent power is PMAX. If the VATHR LINECYC register.
threshold register is set at 3, its minimum recommended value,
ZXSEL[0] IN
the first stage accumulator generates a pulse that is added to the LCYCMODE[7:0]

3  227 ZERO-

 14.531 sec
CROSSING
xVAHR registers every DETECTION
PMAX  1.024  106 (PHASE A)

ZXSEL[1] IN LINECYC[15:0]
The maximum value that can be stored in the xVAHR LCYCMODE[7:0]

accumulation register before it overflows is 231 − 1 or ZERO-


CROSSING CALIBRATION
DETECTION CONTROL
0x7FFFFFFF. The integration time is calculated as (PHASE B)

Time = 0x7FFFFFFF × 14.531 μs = 8 hr 40 min 6 sec (46) ZXSEL[2] IN


LCYCMODE[7:0]

Apparent Energy Accumulation Modes ZERO-


CROSSING
DETECTION
The apparent power accumulated in each accumulation register (PHASE C)

depends on the configuration of Bits[5:4] (CONSEL[1:0]) in the


AIRMS APGAIN
ACCMODE register. The various configurations are described
AVAHR[31:0]
in Table 19. INTERNAL
ACCUMULATOR
Table 19. Inputs to VA-Hour Accumulation Registers 32-BIT REGISTER

AVRMS
CONSEL[1:0] AVAHR BVAHR CVAHR THRESHOLD
00 AVRMS × AIRMS BVRMS × BIRMS CVRMS × CIRMS
01 AVRMS × AIRMS BVRMS × BIRMS CVRMS × CIRMS

10193-055
34 27 26 0
VB = VA – VC1 VATHR 0

10 AVRMS × AIRMS BVRMS × BIRMS CVRMS × CIRMS


Figure 83. Line Cycle Apparent Energy Accumulation Mode
VB = −VA − VC
11 AVRMS × AIRMS BVRMS × BIRMS CVRMS × CIRMS The line cycle apparent energy accumulation mode is activated
VB = −VA by setting Bit 2 (LVA) in the LCYCMODE register. The apparent
1
In a 3-phase three wire case (CONSEL[1:0] = 01), the ADE7880 computes the energy accumulated over an integer number of zero crossings is
rms value of the line voltage between Phase A and Phase C and stores the written to the xVAHR accumulation registers after the number
result into the BVRMS register (see the Voltage RMS in 3-Phase, 3-Wire Delta
Configurations section). Consequently, the ADE7880 computes powers of zero crossings specified in LINECYC register is detected. When
associated with Phase B that do not have physical meaning. To avoid any using the line cycle accumulation mode, set Bit 6 (RSTREAD) of
errors in the frequency output pins (CF1, CF2, or CF3) related to the powers
associated with Phase B, disable the contribution of phase B to the energy to
the LCYCMODE register to Logic 0 because a read with the
frequency converters by setting bits TERMSEL1[1] or TERMSEL2[1] or reset of xVAHR registers is not available in this mode.
TERMSEL3[1] to 0 in COMPMODE register (see the Energy-to-Frequency
Conversion section). Phase A, Phase B, and Phase C zero crossings are, respectively,
The apparent power computation, in 3-wire and 4-wire delta included when counting the number of half line cycles by setting
configurations, will be incorrect, because the line to line Bits[5:3] (ZXSEL[x]) in the LCYCMODE register. Any combi-
voltages are treated as phase voltages by the IC. To get the nation of the zero crossings from all three phases can be used
equivalent wye-configuration apparent power, a scaling factor for counting the zero crossing. Select only one phase at a time
needs to be applied. Refer to the Three Phase Configurations for inclusion in the zero-crossings count during calibration.
section of AN-639 Application Note, Analog Devices Energy For details on setting the LINECYC register and Bit 5 (LENERGY)
(ADE) Products: Frequently Asked Questions (FAQ), for details. in the MASK0 interrupt mask register associated with the line
cycle accumulation mode, see the Line Cycle Active Energy
Accumulation Mode section.

Rev. C | Page 57 of 107


ADE7880 Data Sheet
POWER FACTOR CALCULATION By default the instantaneous total phase active and apparent
The ADE7880 provides a direct power factor measurement powers are used to calculate the power factor and the registers
simultaneously on all phases. Power factor in an ac circuit is are updated at a rate of 8 kHz. The sign bit is taken from the
defined as the ratio of the total active power flowing to the load instantaneous fundamental phase reactive energy measurement
to the apparent power. The absolute power factor measurement on each phase.
is defined in terms of leading or lagging referring to whether the If a measurement with more averaging is required, the ADE7880
current is leading or lagging the voltage waveform. When the provides an option of using the line cycle accumulation measurement
current is leading the voltage, the load is capacitive and this is on the active and apparent energies to determine the power factor.
defined as a negative power factor. When the current is lagging This option provides a more stable power factor reading. This
the voltage, the load is inductive and this defined as a positive mode is enabled by setting the PFMODE bit (Bit 7) in the
power factor. The relationship of the current to the voltage LCYCMODE register (Address 0xE702). When this mode is
waveform is illustrated in Figure 84. enabled the line cycle accumulation mode must be enabled on
both the active and apparent energies. This is done by setting
ACTIVE (–) ACTIVE (+)
REACTIVE (–) REACTIVE (–) the LWATT and LVA bits in the LCYCMODE register
PF (–) PF (–)
(Address 0xE702). The update rate of the power factor
CAPACITIVE:
CURRENT LEADS measurement is now an integral number of half line cycles that can
VOLTAGE
be programmed into the LINECYC register (Address 0xE60C). For
full details on setting up the line cycle accumulation mode see
θ = +60° PF = –0.5
V
the Line Cycle Active Energy Accumulation Mode and Line
θ = –60° PF = +0.5 Cycle Apparent Energy Accumulation Mode sections.
Note that the power factor measurement is effected by the no
load condition if it is enabled (see the No Load Condition
INDUCTIVE:
I CURRENT LAGS section). If the apparent energy no load is true, then the power
VOLTAGE
ACTIVE (–) ACTIVE (+) factor measurement is set to 1. If the no load condition based
10193-056

REACTIVE (+) REACTIVE (+)


PF (+) PF (+) on total active and apparent energies is true, the power factor
measurement is set at 0.
Figure 84. Capacitive and Inductive Loads
The ADE7880 also computes the power factor on the
As shown in Figure 84, the reactive power measurement is negative
fundamental and harmonic components based on the
when the load is capacitive, and positive when the load is inductive.
fundamental and harmonic active, reactive and apparent
The sign of the reactive power can therefore be used to reflect
powers. See the Harmonics Calculations section for details.
the sign of the power factor. Note that the ADE7880 computes the
fundamental reactive power, so its sign is used as the sign of the HARMONICS CALCULATIONS
absolute power factor. If the fundamental reactive power is in The ADE7880 contains a harmonic engine that analyzes one
no load state, then the sign of the power factor is the sign of the phase at a time. Harmonic information is computed with a no
total active power. attenuation pass band of 2.8 kHz (corresponding to a −3 dB
The mathematical definition of power factor is shown in bandwidth of 3.3 kHz) and it is specified for line frequencies
Equation 47: between 45 Hz and 66 Hz. It is essential that the VLEVEL and
SELFREQ registers be set properly to obtain trustable harmonic
Power Factor = (Sign Fundamental Reactive Power) ×
measurements. Also, the voltage signal must be above ±100 mV
abs(Total Active Power )
(47) peak for the harmonic engine to function properly. See the
Apparent Power Managing Change in Fundamental Line Frequency section for
As previously mentioned, the ADE7880 provides a power factor details on managing changes in line frequency. Neutral current
measurement on all phases simultaneously. These readings are can also be analyzed simultaneously with the sum of the phase
provided into three 16-bit signed registers, APF (Address 0xE902) currents. Figure 85 presents a synthesized diagram of the
for Phase A, BPF (Address 0xE903) for Phase B, and CPF harmonic engine, its settings and its output registers.
(Address 0xE904) for Phase C. The registers are signed twos
complement register with the MSB indicating the polarity of the
power factor. Each LSB of the APF, BPF, and CPF registers equates
to a weight of 2−15, hence the maximum register value of 0x7FFF
equating to a power factor value of 1. The minimum register
value of 0x8000 corresponds to a power factor of −1. If because
of offset and gain calibrations, the power factor is outside the −1
to +1 range, the result is set at −1 or +1 depending on the sign
of the fundamental reactive power.
Rev. C | Page 58 of 107
Data Sheet ADE7880
Harmonics Calcuations Theory Qy = VyIysin(φy – γy), y = 2, 3,…, N
Consider a nonsinusoidal ac system supplied by a voltage, v(t) Qz = VzIzsin(φz – γz), z = 2, 3,…, N
that consumes the current i(t). Then • Apparent power of up to three harmonics:

Sx = VxIx, x = 2, 3, …, N
v(t ) = ∑Vk 2 sin (kωt + φk) (48) Sy = VyIy, y = 2 , 3, …, N
k =1 Sz = VzIz, z = 2, 3, …, N

• Power factor of up to three harmonics:
i(t ) = ∑ I k 2 sin(kωt + γ k )
k =1
Px
pf x = , x = 2, 3,…, N
where: Sx
Vk, Ik are rms voltage and current, respectively, of each harmonic.
Φk, γk are the phase delays of each harmonic. Py
pf y = , y = 2, 3,…, N
ω is the angular velocity at the fundamental (line) frequency f. Sy
The ADE7880 harmonics calculations are specified for line Pz
frequencies between 45 Hz and 66 Hz. The phase nominal pf z = , z = 2, 3,…, N
Sz
voltage used as time base must have an amplitude greater than
20% of full scale. • Total harmonic distortion of the phase current
The number of harmonics N that can be analyzed within the
I 2 − I 12
2.8 kHz pass band is the whole number of 2800/f. The absolute (THD )I =
maximum number of harmonics accepted by the ADE7880 is 63. I1

 2800  • Total harmonic distortion of the phase voltage


N =  , N≤63
 f 
V 2 − V12
When the ADE7880 analyzes a phase, the following metering (THD )V =
V1
quantities are computed:
• Harmonic distortion of up to three harmonics on the phase
• Fundamental phase current rms: I1
current
• Fundamental phase voltage rms: V1
• RMS of up to three harmonics of phase current: Ix
HDI x =
Ix, Iy, Iz, x, y, z = 2, 3,…, N I1 , x = 2, 3,…, N
• RMS of up to three harmonics of phase voltage:
Vx, Vy, Vz, x, y, z = 2, 3,…, N Iy
HDI y =
• Fundamental phase active power I1 , y = 2, 3,…, N
P1 = V1I1cos(φ1 − γ1)
• Fundamental phase reactive power Iz
HDI z =
Q1 = V1I1sin(φ1 − γ1) I1 , z = 2, 3,…, N
• Fundamental phase apparent power
• Harmonic distortion of up to three harmonics on the phase
S1 = V1I1
voltage:
• Power factor of the fundamental
Vx
P1 HDVx =
pf1 = V1 , x = 2, 3,…, N
S1
Vy
Active power of up to three harmonics: HDVy =
Px = VxIxcos(φx – γx), x = 2, 3,…, N V1 , y = 2, 3,…, N
Py = VyIycos(φy – γy), y = 2, 3,…, N
Pz = VzIzcos(φz – γz), z = 2, 3,…, N Vz
HDVz =
V1 , z = 2, 3,…, N
• Reactive power of up to three harmonics:
Qx = VxIxsin(φx – γx), x = 2, 3,…, N

Rev. C | Page 59 of 107


ADE7880 Data Sheet
ACTPHSEL BITS HCONFIG[9,8] SELECT
HPHASE BITS THE PHASE USED TO AS TIME BASE OUTPUT REGISTERS USED WHEN ONE OF PHASES A, B, C IS ANALYZED
HCONFIG[2,1]
SELECT THE PHASE
BEING MONITORED FVRMS FIRMS FWATT FVAR FVA FPF VTHD ITHD

HXVRMS HXIRMS HXWATT HXVAR HXVA HXPF HXVHD HXIHD


IA, VA
HYVRMS HYIRMS HYWATT HYVAR HYVA HYPF HYVHD HYIHD

IB, VB HZVRMS HZIRMS HZWATT HZVAR HZVA HZPF HZVHD HZIHD


ADE7880 HARMONIC
CALCULATIONS
IC, VC
HXVRMS HXIRMS HXVHD HXIHD
OUTPUT REGISTERS
IN, ISUM HYVRMS HYIRMS HYVHD HYIHD USED WHEN NEUTRAL
CURRENT IS ANALYZED
HZVRMS HZIRMS HZVHD HZIHD

HX, HY, HZ REGISTERS SELECT THE


HARMONICS TO MONITOR ISUM IN ISUM IN
RESULTS RESULTS RESULTS RESULTS
HRATE BITS HCONFIG[7:5] SELECT THE
UPDATE RATE OF HARMONIC
REGISTERS
HSTIME BITS HCONFIG[4,3] SELECT
THE DELAY IN TRIGGERING HREADY
INTERRUPT
HRCFG BIT HCONFIG[0] SELECTS IF

10193-057
HREADY FLAG IN STATUS0 IS SET
IMMEDIATELY OF AFTER HSTIME

Figure 85. ADE7880 Harmonic Engine Block Diagram

When the neutral current and the sum of the three phase the register for that harmonic to be monitored. If the second
currents represented by ISUM register are analyzed, the harmonic is monitored, write 2. If harmonic 51 is desired, write
following metering quantities are computed for both currents: 51. The fundamental components are always monitored, inde-
pendent of the values written into HX, HY, or HZ. Therefore, if
• RMS of fundamental and of up to 2 harmonics or rms of
one of these registers is made equal to 1, the ADE7880 monitors
up to three harmonics: Ix, Iy, Iz, x, y, z = 1,2, 3,…, N.
the fundamental components multiple times. The maximum
• Harmonic distortions of the analyzed harmonics.
index allowed in HX, HY, and HZ registers is 63. The no
Configuring the Harmonic Calculations attenuation pass band is 2.8 kHz, corresponding to a −3 dB
The ADE7880 requires a time base provided by a phase voltage. bandwidth of 3.3 kHz, thus all harmonics of frequency lower
Bit 9 and Bit 8 (ACTPHSEL) of HCONFIG[15:0]register select than 2800 Hz are supported without attenuation.
this phase voltage. If ACTPHSEL = 00, the phase A is used. If
The rms of the phase voltage and phase current fundamental
ACTPHSEL = 01, the Phase B is used and if ACTPHSEL = 10,
components are stored into FVRMS and FIRMS 24-bit signed
the Phase C is used. If the phase voltage used as time base is
registers. The associated data path is presented in Figure 86.
down, select another phase, and the harmonic engine continues
Similar to the rms current and voltage rms data paths presented
to work properly.
in the Root Mean Square Measurement section, the data path
The phase under analysis is selected by Bit 2 and Bit 1 (HPHASE) contains 24-bit signed offset compensation registers xIRMSOS,
of HCONFIG[15:0]register. If HPHASE = 00, the Phase A is xVRMSOS, x = A, B, C for each phase quantity. The rms of the
monitored. If HPHASE = 01, the Phase B is monitored and if phase current and phase voltage three harmonic components
HPHASE = 10, the Phase C is monitored. If HPHASE = 11, the are stored into HXVRMS, HXIRMS, HYVRMS, HYIRMS,
neutral current together with the sum of the phase currents HZVRMS, and HZIRMS 24-bit signed registers. The associated
represented by ISUM register are monitored. data path is presented in Figure 87 and contains the following
Harmonic Calculations When a Phase is Monitored 24-bit signed offset compensation registers: HXIRMSOS,
HYIRMSOS, HZIRMSOS, HXVRMSOS, HYVRMSOS, and
When a phase is monitored, fundamental information together
HZVRMSOS.
with information about up to three harmonics is computed. The
indexes of the three additional harmonics simultaneously It is recommended to leave the offset compensation registers at
monitored by the ADE7880 are provided by the 8-bit registers 0, the default value.
HX, HY, and HZ. Simply write the index of the harmonic into

Rev. C | Page 60 of 107


Data Sheet ADE7880
Table 20. Harmonic Engine Outputs When Phase A, Phase B, or Phase C is Analyzed and the Registers Where the Values are Stored
Quantity Definition ADE7880 Register
RMS of the Fundamental Component V1, I1 FVRMS, FIRMS
RMS of a Harmonic Component Vx, Ix, x = 2, 3,…,N HXVRMS, HXIRMS
Vy, Iy, y = 2, 3,…,N HYVRMS, HYIRMS
Vz, Iz, z = 2, 3,…,N HZVRMS, HZIRMS
Active Power of the Fundamental Component P1 = V1I1cos(φ1 − γ1) FWATT
Active Power of a Harmonic Component Px = VxIxcos(φx – γx), x = 2, 3,…,N HXWATT
Py = VyIycos(φy – γy), y = 2, 3,…,N HYWATT
Pz = VzIzcos(φz – γz), z = 2, 3,…,N HZWATT
Reactive Power of the Fundamental Component Q1 = V1I1sin(φ1 − γ1) FVAR
Reactive Power of a Harmonic Component Qx = VxIxsin(φ1 − γ1), x = 2, 3,…,N HXVAR
Qy = VyIysin(φy – γy), y = 2, 3,…,N HYVAR
Qz = VzIzsin(φz – γz), z = 2, 3,…,N HZVAR
Apparent Power of the Fundamental Component S1 = V1I1 FVA
Apparent Power of a Harmonic Component Sx = VxIx, x = 2, 3, …,N HXVA
Sy = VyIy, y = 2, 3, …,N HYVA
Sz = VzIz, z = 2, 3, …,N HZVA
Power Factor of the Fundamental Component P1 FPF
pf1 =
S1
Power Factor of a Harmonic Component Px HXPF
pf x = , x = 2, 3,…,N
Sx
Py HYPF
pf y =
Sy
, y = 2, 3,…,N
Pz HZPF
pf z =
Sz , z = 2, 3,…,N

Total Harmonic Distortion VTHD


V 2 − V12
(THD )V =
V1
ITHD
I 2 − I 12
(THD )I =
I1
Harmonic Distortion of a Harmonic Component Vx I HXVHD, HXIHD
HDVx = HDI x = x
V1 , I1 , x = 2, 3,…,N

Vy Iy HYVHD, HYIHD
HDV y = HDI y =
V1 , I1 ,y = 2, 3,…,N

Vz I HZVHD, HZIHD
HDV z = HDI z = z
V1 , I1 ,z = 2, 3,…,N

Rev. C | Page 61 of 107


ADE7880 Data Sheet

Table 21. Harmonic Engine Outputs when Neutral Current and ISUM are Analyzed and the Registers Where the Values are Stored
ADE7880
Quantity Definition Register
RMS of a Harmonic Component (Including the Fundamental) of the Neutral Current Ix, x = 1, 2, 3,…,N HXIRMS
Iy, y = 1, 2, 3,…,N HYIRMS
Iz, z = 1, 2, 3,…,N HZIRMS
RMS of a Harmonic Component (Including the Fundamental) of ISUM ISUMx, x = 1, 2, 3,…,N HXVRMS
ISUMy, y = 1, 2, 3,…,N HYVRMS
ISUMz, z = 1, 2, 3,…,N HZVRMS
Harmonic Distortion of a Harmonic Component (Including the Fundamental) of the Ix HXIHD
Neutral Current (Note that the HX Register Must be Set to 1 for These Calculations to be HDI x =
I1 ,
Executed)
x = 1, 2, 3,…,N
Iy HYIHD
HDI y =
I1 ,
y = 1, 2, 3,…,N
Iz HZIHD
HDI z =
I1 ,
z = 1, 2, 3,…,N
Harmonic Distortion of a Harmonic Component (Including the Fundamental) of ISUM. ISUM x HXVHD
(Note that the HX Register Must be Set to 1 for These Calculations to be Executed) HDISUM x =
ISUM 1 ,
x = 1, 2, 3,…,N
ISUM y HYVHD
HDISUM y =
ISUM 1 ,
y = 1, 2, 3,…,N
ISUM z HZVHD
HDISUM z =
ISUM 1 ,
z = 1, 2, 3,…,N

Rev. C | Page 62 of 107


Data Sheet ADE7880
HPHASE BITS
HCONFIG[2, 1] SELECT THE
PHASE BEING MONITORED
AFIRMSOS

27

BFIRMSOS

27

FIRMS HPHASE BITS


HCONFIG[2, 1] SELECT THE
GAIN BEING USED
CFIRMSOS

27
APGAIN OR
BPGAIN OR
CPGAIN
CALCULATIONS

HPHASE BITS
FUNDAMENTAL
COMPONENTS

HCONFIG[2, 1] SELECT THE


PHASE BEING MONITORED
FVA
AFVRMSOS

27 2–21

BFVRMSOS

27

FVRMS

CFVRMSOS

27

10193-058

Figure 86. Fundamental RMS Signal Processing

The active, reactive, and apparent powers of the fundamental the active and reactive harmonic power data paths. Figure 89
component are stored into the FWATT, FVAR, and FVA 24-bit presents the associated data path.
signed registers. Figure 88 presents the associated data path. The power factor of the fundamental component is stored into
The active, reactive and apparent powers of the 3 harmonic FPF 24-bit signed register. The power factors of the three harmonic
components are stored into the HXWATT, HXVAR, HXVA, components are stored into the HXPF, HYPF, and HZPF 24-bit
HYWATT, HYVAR, HYVA, HZWATT, HZVAR, and HZVA signed registers.
24-bit signed registers. The HPGAIN register is a 24-bit signed
register used to scale the output of the harmonic active, reactive The total harmonic distortion ratios computed using the rms of
and apparent power components, as shown in Figure 89. The the fundamental components and the rms of the phase current
24-bit HPGAIN register is accessed as a 32-bit register with the and the phase voltage (see Root Mean Square Chapter for details
four most significant bits (MSBs) padded with 0s and sign about these measurements) are stored into the VTHD and ITHD
extended to 28 bits (See Figure 44 for details). HXWATTOS, 24-bit registers in 3.21 signed format. This means the ratios are
HYWATTOS, HZWATTOS, HXVAROS, HYVAROS and limited to +3.9999 and all greater results are clamped to it.
HZVAROS are 24-bit offset compensation registers located in

Rev. C | Page 63 of 107


ADE7880 Data Sheet
HXIRMSOS

27

HXIRMS

HYIRMSOS

27

HYIRMS

HZIRMSOS

27

CALCULATIONS
COMPONENTS
HZIRMS
HARMONIC

HXVRMSOS

27

HXVRMS

HYVRMSOS

27

HYVRMS

HXVRMSOS

27
10193-059

HZVRMS

Figure 87. Harmonic RMS Signal Processing


HPHASE BITS
HCONFIG[2, 1] SELECT THE
PHASE BEING MONITORED

APGAIN AFWATTOS 22

÷
BPGAIN BFWATTOS 22

÷ FWATT

CPGAIN CFWATTOS 22

÷
CALCULATIONS
FUNDAMENTAL
COMPONENTS

HPHASE BITS
HCONFIG[2, 1] SELECT THE
PHASE BEING MONITORED

APGAIN AFVAROS 22

÷
BPGAIN BFVAROS 22

÷ FVAR

CPGAIN CFVAROS 22
10193-060

÷
Figure 88. Fundamental Active and Reactive Powers Signal Processing
Rev. C | Page 64 of 107
Data Sheet ADE7880
HPGAIN HXWATTOS 22

÷ HXWATT

HPGAIN HYWATTOS 22

÷ HYWATT

HPGAIN HZWATTOS 22

CALCULATIONS
COMPONENTS
÷

HARMONIC
HZWATT

HPGAIN HXVAROS 22

÷ HXVAR

HPGAIN HYVAROS 22

÷ HYVAR

HPGAIN HZVAROS 22

10193-061
÷ HZVAR

Figure 89. Harmonic Active and Reactive Powers Signal Processing

The harmonic distortions of the three harmonic components HYVHD, HYIHD, HZVHD, and HZIHD 24-bit registers. The
are stored into the HXVHD, HXIHD, HYVHD, HYIHD, distortions of the neutral current are saved into HYIHD and
HZVHD, and HZIHD 24-bit registers in 3.21 signed format. HZIHD registers and the distortions of the ISUM are stored
This means the ratios are limited to +3.9999 and all greater into the HYVHD and HZVHD registers. As HX is set to 1, the
results are clamped to it. HXIHD and HXVHD registers contain 0x1FFFFF, a number
As a reference, Table 20 presents the ADE7880 harmonic engine representing 1 in 3.21 signed format.
outputs when one phase is analyzed and the registers in which As a reference, Table 21 presents the ADE7880 harmonic engine
the outputs are stored. outputs when the neutral current and ISUM are analyzed and
Harmonic Calculations When the Neutral is Monitored the registers in which the outputs are stored.

When the neutral current and the sum of phase currents are Configuring Harmonic Calculations Update Rate
monitored, only the harmonic rms related registers are updated. The ADE7880 harmonic engine functions at 8 kHz rate. From
The registers HX, HY and HZ identify the index of the harmonic, the moment the HCONFIG register is initialized and the
including the fundamental. When a phase is analyzed, the harmonic indexes are set in the HX, HY and HZ index registers,
fundamental rms values are calculated continuously and the the ADE7880 calculations take typically 750 ms to settle within
results are stored in dedicated registers FIRMS and FVRMS. the specification parameters.
When the neutral is analyzed, the fundamental information is The update rate of the harmonic engine output registers is
calculated by setting one of the harmonic index registers HX, managed by Bits[7:5] (HRATE) in HCONFIG register and is
HY or HZ to 1 and the results are stored in harmonic registers. independent of the engine’s calculations rate of 8 kHz. The default
The maximum index allowed in HX, HY and HZ registers is 63. value of 000 means the registers are updated every 125 μs
The no attenuation pass band is 2.8 kHz, corresponding to a (8 kHz rate). Other update periods are: 250 μs (HRATE = 001),
−3 dB bandwidth of 3.3 kHz, thus all harmonics of frequency 1 ms (010), 16 ms (011), 128 ms (100), 512 ms (101), 1.024 sec
lower than 2800 Hz are supported without attenuation. (110). If HRATE bits are 111, then the harmonic calculations
HXIRMS, HYIRMS and HZIRMS registers contain the harmonic are disabled.
rms components of the neutral current and HXVRMS, HYVRMS The ADE7880 provides two ways to manage the harmonic
and HZVRMS registers contain the harmonic rms components computations. The first approach, enabled when Bit 0 (HRCFG)
of ISUM. Note that in this case, the rms of the fundamental of HCONFIG register is cleared to its default value of 0, sets Bit
component is not computed into FIRMS or FVRMS registers, 19 (HREADY) in STATUS0 register to 1 after a certain period
but it is computed if one of the index registers HX, HY and HZ of time and then every time the harmonic calculations are updated
is initialized with 1. at HRATE frequency. This allows an external microcontroller to
If the HX register is initialized to 1, the ADE7880 computes the access the harmonic calculations only after they have settled.
harmonic distortions of the other harmonics identified into HY The time period is determined by the state of Bits[4:3] (HSTIME)
and HZ registers and stores them in 3.21 signed format into the in the HCONFIG register. The default value of 01 sets the time
Rev. C | Page 65 of 107
ADE7880 Data Sheet
to 750 ms, the settling time of the harmonic calculations. Other • Initialize the gain registers used in the harmonic
possible values are 500 ms (HSTIME = 00), 1 sec (10) and calculations. Leave the offset registers to 0.
1250 ms (11).
• Read the registers in which the harmonic information is
The second approach, enabled when Bit 0 (HRCFG) of HCONFIG stored using the burst or regular reading mode at high to
register is set to 1, sets Bit 19 (HREADY) in STATUS0 register low transitions of CF2/HREADY pin.
to 1 every time the harmonic calculations are updated at the
update frequency determined by HRATE bits without waiting
WAVEFORM SAMPLING MODE
for the harmonic calculations to settle. This allows an external The waveform samples of the current and voltage waveform,
microcontroller to access the harmonic calculations immediately the active, reactive, and apparent power outputs are stored
after they have been started. If the corresponding mask bit in every 125 µs (8 kHz rate) into 24-bit signed registers that can be
the MASK0 interrupt mask register is enabled, the IRQ pin also accessed through various serial ports of the ADE7880. Table 22
goes active low. The status bit is cleared and the pin IRQ is set provides a list of registers and their descriptions.
to high again by writing to the STATUS0 register with the Table 22. Waveform Registers List
corresponding bit set to 1.
Register Description
Additionally, the ADE7880 provides a periodical output signal IAWV Phase A current
called HREADY at the CF2/HREADY pin synchronous to the VAWV Phase A voltage
moment the harmonic calculations are updated in the harmonic IBWV Phase B current
registers. This functionality is chosen if Bit 2 (CF2DIS) is set to VBWV Phase B voltage
1 in the CONFIG register. If CF2DIS is set to 0 (default value), ICWV Phase C current
the CF2 energy to frequency converter output is provided at VCWV Phase C voltage
CF2/HREADY pin. The default state of this signal is high. Every INWV Neutral current
time the harmonic registers are updated based on HRATE bits AVA Phase A apparent power
in HCONFIG register, the signal HREADY goes low for approx- BVA Phase B apparent power
imately 10 µs and then goes back high. If Bit 0 (HRCFG) in the CVA Phase C apparent power
HCONFIG register is set to 1, the HREADY bit in the STATUS0 AWATT Phase A active power
register is set to 1 every HRATE period right after the harmonic BWATT Phase B active power
calculations start, and the HREADY signal toggles high, low, and CWATT Phase C active power
back synchronously. If the HRCFG bit is set to 0, the HREADY
Bit 17 (DREADY) in the STATUS0 register can be used to
bit in the STATUS0 register is set to 1 after the HSTIME period,
signal when the registers listed in Table 22 can be read using
and the HREADY signal toggles high, low and back synchronously.
I2C or SPI serial ports. An interrupt attached to the flag can be
The HREADY signal allows fast access to the harmonic registers
enabled by setting Bit 17 (DREADY) in the MASK0 register. (see
without having to use HREADY interrupt in MASK0 register.
the Digital Signal Processor section for more details on
In order to facilitate the fast reading of the registers in which Bit DREADY).
the harmonic calculations are stored, a special burst registers
The ADE7880 contains a high speed data capture (HSDC) port
reading has been implemented in the serial interfaces. See the
that is specially designed to provide fast access to the waveform
I2C Read Operation of Harmonic Calculations Registers and the
sample registers. Read the HSDC Interface section for more
SPI Read Operation sections for details.
details.
Recommended Approach to Managing Harmonic
As stated in the Current Waveform Gain Registers section, the
Calculations
serial ports of the ADE7880 work on 32-, 16-, or 8-bit words.
The recommended approach to managing the ADE7880 All registers listed in Table 22 are transmitted signed extended
harmonic calculations is the following: from 24 bits to 32 bits (see Figure 45).
• Set up Bit 2 (CF2DIS) in the CONFIG register. Set the ENERGY-TO-FREQUENCY CONVERSION
CF2DIS bit to 1 to use the CF2/HREADY pin to signal
when the harmonic calculations have settled and are The ADE7880 provides three frequency output pins: CF1, CF2,
updated. The high to low transition of HREADY signal and CF3. The CF2 pin is multiplexed with the HREADY pin of
indicates when to read the harmonic registers. Use the the harmonic calculations block. When HREADY is enabled, the
burst reading mode to read the harmonic registers as it is CF2 functionality is disabled at the pin. The CF3 pin is multiplexed
the most efficient way to read them. with the HSCLK pin of the HSDC interface. When HSDC is
enabled, the CF3 functionality is disabled at the pin. The CF1
• Choose the harmonics to be monitored by setting HX, HY pin and the CF2 pin are always available. After initial calibration
and HZ appropriately. at manufacturing, the manufacturer or end customer verifies
• Select all the HCONFIG register bits. the energy meter calibration. One convenient way to verify the
meter calibration is to provide an output frequency proportional to
Rev. C | Page 66 of 107
Data Sheet ADE7880
the active, reactive, or apparent powers under steady load First, Bits[2:0] (TERMSEL1[2:0]), Bits[5:3] (TERMSEL2[2:0]),
conditions. This output frequency can provide a simple, single- and Bits[8:6] (TERMSEL3[2:0]) of the COMPMODE register
wire, optically isolated interface to external calibration decide which phases, or which combination of phases, are added.
equipment. Figure 90 illustrates the energy-to-frequency
The TERMSEL1 bits refer to the CF1 pin, the TERMSEL2 bits
conversion in the ADE7880.
refer to the CF2 pin, and the TERMSEL3 bits refer to the CF3
The DSP computes the instantaneous values of all phase powers: pin. The TERMSELx[0] bits manage Phase A. When set to 1,
total active, fundamental active, fundamental reactive, and Phase A power is included in the sum of powers at the CFx
apparent. The process in which the energy is sign accumulated converter. When cleared to 0, Phase A power is not included.
in various xWATTHR, xFVARHR, and xVAHR registers has The TERMSELx[1] bits manage Phase B, and the TERMSELx[2]
already been described in the energy calculation sections: Active bits manage Phase C. Setting all TERMSELx bits to 1 means all
Energy Calculation, Fundamental Reactive Energy Calculation, 3-phase powers are added at the CFx converter. Clearing all
and Apparent Energy Calculation. In the energy-to-frequency TERMSELx bits to 0 means no phase power is added and no
conversion process, the instantaneous powers generate signals CF pulse is generated.
at the frequency output pins (CF1, CF2, and CF3). One energy-
to-frequency converter is used for every CFx pin. Every converter Second, Bits[2:0] (CF1SEL[2:0]), Bits[5:3] (CF2SEL[2:0]), and
sums certain phase powers and generates a signal proportional Bits[8:6] (CF3SEL[2:0]) in the CFMODE register decide what
to the sum. Two sets of bits decide what powers are converted. type of power is used at the inputs of the CF1, CF2, and CF3
converters, respectively. Table 23 shows the values that CFxSEL
can have: total active, apparent, fundamental active, or fundamental
reactive powers.
Table 23. CFxSEL Bits Description
CFxSEL Description Registers Latched When CFxLATCH = 1
000 CFx signal proportional to the sum of total phase active powers AWATTHR, BWATTHR, CWATTHR
001 Reserved
010 CFx signal proportional to the sum of phase apparent powers AVAHR, BVAHR, CVAHR
011 CFx signal proportional to the sum of fundamental phase active AFWATTHR, BFWATTHR, CFWATTHR
powers
100 CFx signal proportional to the sum of fundamental phase reactive AFVARHR, BFVARHR, CFVARHR
powers
101 to 111 Reserved

Rev. C | Page 67 of 107


ADE7880 Data Sheet
By default, the TERMSELx bits are all 1 and the CF1SEL bits are 103
000, the CF2SEL bits are 100, and the CF3SEL bits are 010. This CFxDEN  (49)
MC[imp/kwh]10n
means that by default, the CF1 digital-to-frequency converter
produces signals proportional to the sum of all 3-phase total The derivative of wh must be chosen in such a way to obtain a
active powers, CF2 produces signals proportional to fundamental CFxDEN register content greater than 1. If CFxDEN = 1, then
reactive powers, and CF3 produces signals proportional to the CFx pin stays active low for only 1 μs. Thus, CFxDEN register
apparent powers. must not be set to 1. The frequency converter cannot accommodate
fractional results; the result of the division must be rounded to
Similar to the energy accumulation process, the energy-to- the nearest integer. If CFxDEN is set equal to 0, then the ADE7880
frequency conversion is accomplished in two stages. The first considers it to be equal to 1.
stage is the same stage illustrated in the energy accumulation
The CFx pulse output stays low for 80 ms if the pulse period is
sections of active, reactive and apparent powers (see Active
larger than 160 ms (6.25 Hz). If the pulse period is smaller than
Energy Calculation, Fundamental Reactive Energy Calculation,
160 ms and CFxDEN is an even number, the duty cycle of the
Apparent Energy Calculation sections). The second stage consists
pulse output is exactly 50%. If the pulse period is smaller than
of the frequency divider by the CFxDEN 16-bit unsigned registers.
160 ms and CFxDEN is an odd number, the duty cycle of the
The values of CFxDEN depend on the meter constant (MC),
pulse output is
measured in impulses/kWh and how much energy is assigned to
one LSB of various energy registers: xWATTHR, xFVARHR, (1+1/CFxDEN) × 50%
and so forth. Suppose a derivative of Wh [10n Wh] where n is a
positive or negative integer, is desired as one LSB of xWATTHR
register. Then, CFxDEN is as follows:
TERMSELx BITS IN
COMPMODE

CFxSEL BITS IN
CFMODE
INSTANTANEOUS
PHASE A
ACTIVE POWER VA
27
INSTANTANEOUS WATT REVPSUMx BIT OF
PHASE B STATUS0[31:0]
ACTIVE POWER INTERNAL
FWATT ACCUMULATOR
CFx PULSE
FREQ DIVIDER OUTPUT
INSTANTANEOUS
PHASE C FVAR
ACTIVE POWER THRESHOLD
CFxDEN
DIGITAL SIGNAL
PROCESSOR 34 27 26 0 27

10193-062
WTHR 0

Figure 90. Energy-to-Frequency Conversion

Rev. C | Page 68 of 107


Data Sheet ADE7880
The CFx pulse output is active low and preferably connected to Bits[14:12] (CF3LATCH, CF2LATCH, and CF1LATCH) of the
an LED, as shown in Figure 91. CFMODE register enable this process when set to 1. When cleared
VDD to 0, the default state, no latch occurs. The process is available
even if the CFx output is not enabled by the CFxDIS bits in the
CFMODE register.

10193-090
Energy Registers and CF Outputs for Various
CFx PIN Accumulation Modes
Figure 91. CFx Pin Recommended Connection Bits[1:0] (WATTACC[1:0]) in the ACCMODE register deter-
Bits[11:9] (CF3DIS, CF2DIS, and CF1DIS) of the CFMODE mine the accumulation modes of the total and fundamental active
register decide if the frequency converter output is generated at powers when signals proportional to the active powers are chosen
the CF3, CF2, or CF1 pin. When Bit CFxDIS is set to 1 (the at the CFx pins (the CFxSEL[2:0] bits in the CFMODE register
default value), the CFx pin is disabled and the pin stays high. equal 000 or 011). They also determine the accumulation modes
When Bit CFxDIS is cleared to 0, the corresponding CFx pin of the watt-hour energy registers (AWATTHR, BWATTHR,
output generates an active low signal. CWATTHR, AFWATTHR, BFWATTHR and CFWATTHR).
When WATTACC[1:0] = 00 (the default value), the active powers
Bits[16:14] (CF3, CF2, CF1) in the Interrupt Mask register MASK0
are sign accumulated in the watt-hour registers and before entering
manage the CF3, CF2, and CF1 related interrupts. When the CFx
the energy-to-frequency converter. Figure 93 shows how signed
bits are set, whenever a high-to-low transition at the corresponding
active power accumulation works. In this mode, the CFx pulses
frequency converter output occurs, an interrupt IRQ0 is triggered
synchronize perfectly with the active energy accumulated in
and a status bit in the STATUS0 register is set to 1. The interrupt
xWATTHR registers because the powers are sign accumulated
is available even if the CFx output is not enabled by the CFxDIS
in both data paths.
bits in the CFMODE register.
Synchronizing Energy Registers with CFx Outputs
The ADE7880 contains a feature that allows synchronizing the
content of phase energy accumulation registers with the generation ACTIVE ENERGY

of a CFx pulse. When a high-to-low transition at one frequency


converter output occurs, the content of all internal phase energy
registers that relate to the power being output at CFx pin is latched NO-LOAD
THRESHOLD
into hour registers and then resets to 0. See Table 23 for the list
of registers that are latched based on the CFxSEL[2:0] bits in the ACTIVE POWER
CFMODE register. All 3-phase registers are latched independent
NO-LOAD
of the TERMSELx bits of the COMPMODE register. The process THRESHOLD
is shown in Figure 92 for CF1SEL[2:0] = 010 (apparent powers
REVAPx BIT
contribute at the CF1 pin) and CFCYC = 2. IN STATUS0

The CFCYC 8-bit unsigned register contains the number of xWSIGN BIT
IN PHSIGN
high to low transitions at the frequency converter output between

10193-065
two consecutive latches. Avoid writing a new value into the APNOLOAD POS NEG POS NEG
SIGN = POSITIVE
CFCYC register during a high-to-low transition at any CFx pin.
Figure 93. Active Power Signed Accumulation Mode
CF1 PULSE
BASED ON
PHASE A AND When WATTACC[1:0] = 01, the active powers are accumulated
PHASE B
APPARENT CFCYC = 2
in positive only mode. When the powers are negative, the watt-
POWERS
hour energy registers are not accumulated. CFx pulses are
AVAHR, BVAHR, AVAHR, BVAHR,
generated based on signed accumulation mode. In this mode,
10193-064

CVAHR LATCHED CVAHR LATCHED


ENERGY REGISTERS ENERGY REGISTERS
RESET RESET the CFx pulses do not synchronize perfectly with the active energy
Figure 92. Synchronizing AVAHR and BVAHR with CF1 accumulated in xWATTHR registers because the powers are
accumulated differently in each data path. Figure 94 shows how
positive only active power accumulation works.
WATTACC[1:0] = 10 setting is reserved and the ADE7880
behaves identically to the case when WATTACC[1:0] = 00.

Rev. C | Page 69 of 107


ADE7880 Data Sheet
When WATTACC[1:0] = 11, the active powers are accumulated
in absolute mode. When the powers are negative, they change
sign and accumulate together with the positive power in the
watt-hour registers and before entering the energy-to-frequency
converter. In this mode, the CFx pulses synchronize perfectly
ACTIVE ENERGY
with the active energy accumulated in xWATTHR registers because
the powers are accumulated in the same way in both data paths.
Figure 95 shows how absolute active power accumulation works.
NO-LOAD
THRESHOLD

ACTIVE POWER

NO-LOAD
ACTIVE ENERGY THRESHOLD

REVAPx BIT
IN STATUS0

NO-LOAD xWSIGN BIT


THRESHOLD IN PHSIGN

10193-067
APNOLOAD POS NEG POS NEG
ACTIVE POWER
SIGN = POSITIVE

NO-LOAD Figure 95. Active Power Absolute Accumulation Mode


THRESHOLD

REVAPx BIT
IN STATUS0

xWSIGN BIT REACTIVE


IN PHSIGN ENERGY
10193-066

APNOLOAD POS NEG POS NEG


SIGN = POSITIVE

Figure 94. Active Power Positive Only Accumulation Mode NO-LOAD


THRESHOLD

Bits[3:2] (VARACC[1:0]) in the ACCMODE register determine the


REACTIVE
accumulation modes of the fundamental reactive powers when POWER
signals proportional to the fundamental reactive powers are NO-LOAD
THRESHOLD
chosen at the CFx pins (the CFxSEL[2:0] bits in the CFMODE
register equal 100). When VARACC[1:0] = 00, the default value, REVRPx BIT
IN STATUS0
the fundamental reactive powers are sign accumulated in the
xVARSIGN BIT
var-hour energy registers and before entering the energy-to- IN PHSIGN
frequency converter. Figure 96 shows how signed fundamental

10193-068
VARNOLOAD POS NEG POS NEG
reactive power accumulation works. In this mode, the CFx SIGN = POSITIVE
pulses synchronize perfectly with the fundamental reactive Figure 96. Fundamental Reactive Power Signed Accumulation Mode
energy accumulated in the xFVARHR registers because the
powers are sign accumulated in both data paths. When VARACC[1:0] = 11, the fundamental reactive powers are
accumulated in absolute mode. When the powers are negative,
VARACC[1:0] = 01 setting is reserved and ADE7880 behaves they change sign and accumulate together with the positive
identically to the case when VARACC[1:0] = 00. power in the var-hour registers. CFx pulses are generated based
When VARACC[1:0] = 10, the fundamental reactive powers are on signed accumulation mode. In this mode, the CFx pulses do
accumulated depending on the sign of the corresponding active not synchronize perfectly with the fundamental reactive energy
power in the var-hour energy registers and before entering the accumulated in x VARHR registers because the powers are
energy-to-frequency converter. If the fundamental active power accumulated differently in each data path. Figure 98 shows how
is positive or considered 0 when lower than the no load threshold, absolute fundamental reactive power accumulation works.
the fundamental reactive power is accumulated as is. If the Sign of Sum of Phase Powers in the CFx Data Path
fundamental active power is negative, the sign of the fundamental
The ADE7880 has sign detection circuitry for the sum of phase
reactive power is changed for accumulation. Figure 97 shows how
powers that are used in the CFx data path. As seen in the beginning
the sign adjusted fundamental reactive power accumulation
of the Energy-to-Frequency Conversion section, the energy
mode works. In this mode, the CFx pulses synchronize perfectly
accumulation in the CFx data path is executed in two stages.
with the fundamental reactive energy accumulated in xFVARHR
Every time a sign change is detected in the energy accumulation
registers because the powers are accumulated in the same way in
at the end of the first stage, that is, after the energy accumulated
both data paths.
Rev. C | Page 70 of 107
Data Sheet ADE7880
into the accumulator reaches one of the WTHR, VARTHR, or indicate the sign of the sum of phase powers. When cleared to
VATHR thresholds, a dedicated interrupt can be triggered 0, the sum is positive. When set to 1, the sum is negative.
synchronously with the corresponding CFx pulse. The sign Interrupts attached to Bit 18, Bit 13, and Bit 9 (REVPSUM3,
of each sum can be read in the PHSIGN register. REVPSUM2, and REVPSUM1, respectively) in the STATUS0
register are enabled by setting Bit 18, Bit 13, and Bit 9 in the
MASK0 register. If enabled, the IRQ0 pin is set low, and the
REACTIVE status bit is set to 1 whenever a change of sign occurs. To find
ENERGY
the phase that triggered the interrupt, the PHSIGN register is
NO-LOAD read immediately after reading the STATUS0 register. Next, the
THRESHOLD
REACTIVE status bit is cleared, and the IRQ0 pin is set high again by writing
POWER
to the STATUS0 register with the corresponding bit set to 1.
NO-LOAD
THRESHOLD
NO LOAD CONDITION
NO-LOAD
THRESHOLD The no load condition is defined in metering equipment standards
ACTIVE as occurring when the voltage is applied to the meter and no cur-
POWER
rent flows in the current circuit. To eliminate any creep effects in
the meter, the ADE7880 contains three separate no load detection
REVRPx BIT
IN STATUS0 circuits: one related to the total active power, one related to the
xVARSIGN BIT
IN PHSIGN fundamental active and reactive powers, and one related to the
10193-069

VARNOLOAD POS NEG POS apparent powers.


SIGN = POSITIVE
No Load Detection Based On Total Active Power and
Figure 97. Fundamental Reactive Power Accumulation in Sign
Adjusted Mode Apparent Power
This no load condition uses the total active energy and the apparent
energy to trigger this no load condition. The apparent energy is
proportional to the rms values of the corresponding phase current
and voltage. If neither total active energy nor apparent energy are
accumulated for a time indicated in the respective APNOLOAD
REACTIVE ENERGY and VANOLOAD unsigned 16-bit registers, the no load condition
is triggered, the total active energy of that phase is not accumulated
and no CFx pulses are generated based on the total active energy.
NO-LOAD The equations used to compute the APNOLOAD and
THRESHOLD
VANOLOAD unsigned 16-bit values are
REACTIVE POWER
Y WTHR  217
NO-LOAD APNOLOAD  216 
THRESHOLD PMAX
REVAPx BIT Y VATHR 217
IN STATUS0 VANOLOAD  216  (50)
PMAX
xVARSIGN BIT
IN PHSIGN
where:
10193-070

VARNOLOAD POS NEG POS NEG


Y is the required no load current threshold computed relative to
SIGN = POSITIVE full scale. For example, if the no load threshold current is set
Figure 98. Fundamental Reactive Power Accumulation in Absolute Mode 10,000 times lower than full scale value, then Y = 10,000.
Bit 18, Bit 13, and Bit 9 (REVPSUM3, REVPSUM2, and WTHR and VATHR represent values stored in the WTHR and
REVPSUM1, respectively) of the STATUS0 register are set VATHR registers and are used as the thresholds in the first stage
to 1 when a sign change of the sum of powers in CF3, CF2, energy accumulators for active and apparent energy, respectively
or CF1 data paths occurs. To correlate these events with the (see Active Energy Calculation section). PMAX = 27,059,678 =
pulses generated at the CFx pins, after a sign change occurs, 0x19CE5DE, the instantaneous active power computed when
Bit REVPSUM3, Bit REVPSUM2, and Bit REVPSUM1 are set the ADC inputs are at full scale. Do not write 0xFFFF to the
in the same moment in which a high-to-low transition at the APNOLOAD and VANOLOAD registers.
CF3, CF2, and CF1 pin, respectively, occurs. The VANOLOAD register usually contains the same value as
Bit 8, Bit 7, and Bit 3 (SUM3SIGN, SUM2SIGN, and SUM1SIGN, the APNOLOAD register. When APNOLOAD and VANOLOAD
respectively) of the PHSIGN register are set in the same moment are set to 0x0, the no load detection circuit is disabled. If only
with Bit REVPSUM3, Bit REVPSUM2, and Bit REVPSUM1 and VANOLOAD is set to 0, then the no load condition is triggered
Rev. C | Page 71 of 107
ADE7880 Data Sheet
based only on the total active power being lower than APNOLOAD. whenever one of three phases enters or exits this no load
In the same way, if only APNOLOAD is set to 0x0, the no load condition. To find the phase that triggered the interrupt, the
condition is triggered based only on the apparent power being PHNOLOAD register is read immediately after reading the
lower than VANOLOAD. STATUS1 register. Then the status bit is cleared and the IRQ1
Bit 0 (NLOAD) in the STATUS1 register is set when a no load pin is set back high by writing to the STATUS1 register with the
condition in one of the three phases is triggered. Bits[2:0] corresponding bit set to 1.
(NLPHASE[2:0]) in the PHNOLOAD register indicate the state No Load Detection Based on Apparent Power
of all phases relative to a no load condition and are set simulta- This no load condition is triggered when no less significant bits
neously with Bit NLOAD in the STATUS1 register. NLPHASE[0] are accumulated into the apparent energy register on one phase
indicates the state of Phase A, NLPHASE[1] indicates the state (xVAHR, x = A, B, or C) for a time indicated by the VANOLOAD
of Phase B, and NLPHASE[2] indicates the state of Phase C. unsigned 16-bit register. In this case, the apparent energy of that
When Bit NLPHASE[x] is cleared to 0, it means the phase is out phase is not accumulated and no CFx pulses are generated based
of a no load condition. When set to 1, it means the phase is in a on this energy.
no load condition.
The equation used to compute the VANOLOAD unsigned
An interrupt attached to Bit 0 (NLOAD) in the STATUS1 16-bit value is
register can be enabled by setting Bit 0 in the MASK1 register.
If enabled, the IRQ1 pin is set to low, and the status bit is set Y × VATHR × 217
VANOLOAD = 216 − (51)
to 1 whenever one of three phases enters or exits this no load PMAX
condition. To find the phase that triggered the interrupt, the where:
PHNOLOAD register is read immediately after reading the
Y is the required no load current threshold computed relative to
STATUS1 register. Next, the status bit is cleared, and the IRQ1
full scale. For example, if the no load threshold current is set
pin is set to high by writing to the STATUS1 register with the
10,000 times lower than full scale value, then Y=10,000.
corresponding bit set to 1.
VATHR is the VATHR register used as the threshold of the first
No Load Detection Based on Fundamental Active and
stage energy accumulator (see Apparent Energy Calculation
Reactive Powers
section) PMAX = 27,059,678 = 0x19CE5DE, the instantaneous
This no load condition is triggered when no less significant bits apparent power computed when the ADC inputs are at full scale.
are accumulated into the fundamental active and reactive energy When the VANOLOAD register is set to 0x0, the no load
registers on one phase (xFWATTHR and xFVARHR, x = A, B, detection circuit is disabled.
or C) for a time indicated in the respective APNOLOAD and
Bit 2 (VANLOAD) in the STATUS1 register is set when this no
VARNOLOAD unsigned 16-bit registers. In this case, the
load condition in one of the three phases is triggered. Bits[8:6]
fundamental active and reactive energies of that phase are not
(VANLPHASE[2:0]) in the PHNOLOAD register indicate the
accumulated and no CFx pulses are generated based on these
state of all phases relative to a no load condition and they are set
energies. APNOLOAD is the same no load threshold set for the
simultaneously with Bit VANLOAD in the STATUS1 register:
total active powers. The VARNOLOAD register usually contains
the same value as the APNOLOAD register. If only APNOLOAD • Bit VANLPHASE[0] indicates the state of Phase A.
is set to 0x0, then the fundamental active power is accumulated • Bit VANLPHASE[1] indicates the state of Phase B.
without restriction. In the same way, if only VARNOLOAD is set • Bit VANLPHASE[2] indicates the state of Phase C.
to 0x0, the fundamental reactive power is accumulated without
When Bit VANLPHASE[x] is cleared to 0, it means the phase is
restriction. As with the APNOLOAD and VANOLOAD registers,
out of no load condition. When set to 1, it means the phase is in
do not write 0xFFFF to the VARNOLOAD register.
no load condition.
Bit 1 (FNLOAD) in the STATUS1 register is set when this no
An interrupt attached to Bit 2 (VANLOAD) in the STATUS1
load condition in one of the three phases is triggered. Bits[5:3]
register is enabled by setting Bit 2 in the MASK1 register. If
(FNLPHASE[2:0]) in the PHNOLOAD register indicate the
state of all phases relative to a no load condition and are set enabled, the IRQ1 pin is set low and the status bit is set to 1
simultaneously with Bit FNLOAD in the STATUS1 register. whenever one of three phases enters or exits this no load
FNLPHASE[0] indicates the state of Phase A, FNLPHASE[1] condition. To find the phase that triggered the interrupt, the
indicates the state of Phase B, and FNLPHASE[2] indicates the PHNOLOAD register is read immediately after reading the
state of Phase C. When Bit FNLPHASE[x] is cleared to 0, it STATUS1 register. Next, the status bit is cleared, and the IRQ1
means the phase is out of the no load condition. When set to 1, pin is set to high by writing to the STATUS1 register with the
it means the phase is in a no load condition. corresponding bit set to 1.
An interrupt attached to the Bit 1 (FNLOAD) in the STATUS1
register can be enabled by setting Bit 1 in the MASK1 register. If
enabled, the IRQ1 pin is set low and the status bit is set to 1
Rev. C | Page 72 of 107
Data Sheet ADE7880
CHECKSUM REGISTER G(x) = x32 + x26 + x23 + x22 + x16 + x12 + x11 + x10 + x8 + x7 +
The ADE7880 has a checksum 32-bit register, CHECKSUM, that x5 + x4 + x2 + x + 1 (52)
ensures the configuration registers maintain their desired value g0 = g1 = g2 = g4 = g5 = g7 = 1
during Normal Power Mode PSM0. g8 = g10 = g11 = g12 = g16 = g22 = g23 = g26 = 1 (53)
The registers covered by this register are MASK0, MASK1, All of the other gi coefficients are equal to 0.
COMPMODE, gain, CFMODE, CF1DEN, CF2DEN, CF3DEN, FB(j) = aj – 1 XOR b31(j − 1) (54)
CONFIG, MMODE, ACCMODE, LCYCMODE, HSDC_CFG,
all registers located in the DSP data memory RAM between b0(j) = FB(j) AND g0 (55)
Address 0x4380 and Address 0x43BE, and another eight 8-bit bi(j) = FB(j) AND gi XOR bi – 1(j – 1), i = 1, 2, 3, ..., 31 (56)
reserved internal registers that always have default values. The Equation 54, Equation 55, and Equation 56 must be repeated for
ADE7880 computes the cyclic redundancy check (CRC) based j = 1, 2, …, 2272. The value written into the CHECKSUM register
on the IEEE802.3 standard. The registers are introduced one-by- contains the Bit bi(2272), i = 0, 1, …, 31.
one into a linear feedback shift register (LFSR) based generator
starting with the least significant bit (as shown in Figure 99). Every time a configuration register of the ADE7880 is written or
The 32-bit result is written in the CHECKSUM register. After changes value inadvertently, the Bit 25 (CRC) in STATUS1 register
power-up or a hardware/software reset, the CRC is computed is set to 1 to signal CHECKSUM value has changed. If Bit 25 (CRC)
on the default values of the registers giving a result equal to in MASK1 register is set to 1, then the IRQ1 interrupt pin is driven
0xAFFA63B9. low and the status flag CRC in STATUS1 is set to 1. The status bit is
cleared and the IRQ1 pin is set to high by writing to the STATUS1
Figure 100 shows how the LFSR works: the MASK0, MASK1,
register with the status bit set to 1.
COMPMODE, Gain, CFMODE, CF1DEN, CF2DEN, CF3DEN,
CONFIG, MMODE, ACCMODE, LCYCMODE, and HSDC_CFG When Bit CRC in STATUS1 is set to 1 without any register being
registers, the registers located between Address 0x4380, and written, it can be assumed that one of the registers has changed
Address 0x43BE and the eight 8-bit reserved internal registers value and therefore, the ADE7880 has changed configuration.
form the bits [a2271, a2270,…, a0] used by LFSR. Bit a0 is the least The recommended response is to initiate a hardware/software
significant bit of the first register to enter LFSR; Bit a2271 is the reset that sets the values of all registers to the default, including
most significant bit of the last register to enter LFSR. The the reserved ones, and then reinitialize the configuration registers.
formulas that govern LFSR are as follows: Bit 3 of the internal configuration register at Address 0xE7E4
 bi(0) = 1, i = 0, 1, 2, …, 31, the initial state of the bits that determines if the checksum feature is enabled or disabled. If the
form the CRC. Bit b0 is the least significant bit, and Bit b31 bit is set, which is the default state, the checksum functionality
is the most significant. works as expected. Though the register is write protected, it is
important to ensure that the bit remains set while working with
 gi, i = 0, 1, 2, …, 31 are the coefficients of the generating this feature. If for any reason the bit gets reset to 0, the checksum
polynomial defined by the IEEE802.3 standard as follows: functionality no longer works. Resetting the chip sets the bit to
1 again.
2271 0
10193-071

LFSR
ARRAY OF 2272 BITS GENERATOR

Figure 99. CHECKSUM Register Calculation

g0 g1 g2 g3 g31
FB

b0 b1 b2 b31

LFSR
10193-072

a2271, a2270,....,a2, a1, a0


Figure 100. LFSR Generator Used in CHECKSUM Register Calculation

Rev. C | Page 73 of 107


ADE7880 Data Sheet
INTERRUPTS The following bits in the MASK0 register work with the status
bits in the PHSIGN register:
The ADE7880 has two interrupt pins, IRQ0 and IRQ1. Each of the
pins is managed by a 32-bit interrupt mask register, MASK0 and • Bits[6:8] (REVAPx)
MASK1, respectively. To enable an interrupt, a bit in the MASKx • Bits[10:12] (REVRPx)
register must be set to 1. To disable it, the bit must be cleared • Bit 9, Bit 13, and Bit 18 (REVPSUMx)
to 0. Two 32-bit status registers, STATUS0 and STATUS1, are When the STATUSx register is read and one of these bits is set
associated with the interrupts. When an interrupt event occurs to 1, the status register associated with the bit is immediately
in the ADE7880, the corresponding flag in the interrupt status read to identify the phase that triggered the interrupt and only
register is set to a logic 1 (see Table 36 and Table 37). If the mask at that time can the STATUSx register be written back with the
bit for this interrupt in the interrupt mask register is logic 1, bit set to 1.
then the IRQx logic output goes active low. The flag bits in the
Using the Interrupts with an MCU
interrupt status register are set irrespective of the state of the mask
bits. To determine the source of the interrupt, the MCU must Figure 101 shows a timing diagram that illustrates a suggested
perform a read of the corresponding STATUSx register and implementation of the ADE7880 interrupt management using an
identify which bit is set to 1. To erase the flag in the status register, MCU. At Time t1, the IRQx pin goes active low indicating that
write back to the STATUSx register with the flag set to 1. After an one or more interrupt events have occurred in the ADE7880, at
interrupt pin goes low, the status register is read and the source of which point, take the following steps:
the interrupt is identified. Then, the status register is written back 1. Tie the IRQx pin to a negative-edge-triggered external
without any change to clear the status flag to 0. The IRQx pin interrupt on the MCU.
remains low until the status flag is cancelled. 2. On detection of the negative edge, configure the MCU to
By default, all interrupts are disabled. However, the RSTDONE start executing its interrupt service routine (ISR).
interrupt is an exception. This interrupt can never be masked 3. On entering the ISR, disable all interrupts using the global
(disabled) and, therefore, Bit 15 (RSTDONE) in the MASK1 interrupt mask bit. At this point, the MCU external interrupt
register does not have any functionality. The IRQ1 pin always flag can be cleared to capture interrupt events that occur
goes low, and Bit 15 (RSTDONE) in the STATUS1 register is set during the current ISR.
to 1 whenever a power-up or a hardware/software reset process 4. When the MCU interrupt flag is cleared, a read from
ends. To cancel the status flag, the STATUS1 register has to be STATUSx, the interrupt status register, is carried out. The
written with Bit 15 (RSTDONE) set to 1. interrupt status register content is used to determine the
source of the interrupt(s) and, therefore, the appropriate
Certain interrupts are used in conjunction with other status
action to be taken.
registers. The following bits in the MASK1 register work in
5. The same STATUSx content is written back into the
conjunction with the status bits in the PHNOLOAD register:
ADE7880 to clear the status flag(s) and reset the IRQx line
• Bit 0 (NLOAD) to logic high (t2).
• Bit 1 (FNLOAD)
If a subsequent interrupt event occurs during the ISR (t3), that
• Bit 2 (VANLOAD)
event is recorded by the MCU external interrupt flag being
The following bits in the MASK1 register work with the status set again.
bits in the PHSTATUS register: On returning from the ISR, the global interrupt mask bit is
• Bit 16, (SAG) cleared (same instruction cycle) and the external interrupt flag
• Bit 17 (OI) uses the MCU to jump to its ISR once again. This ensures that
• Bit 18 (OV) the MCU does not miss any external interrupts.
Figure 102 shows a recommended timing diagram when the
The following bits in the MASK1 register work with the status
status bits in the STATUSx registers work in conjunction with
bits in the IPEAK and VPEAK registers, respectively:
bits in other registers. When the IRQx pin goes active low, the
• Bit 23 (PKI) STATUSx register is read, and if one of these bits is 1, a second
• Bit 24 (PKV) status register is read immediately to identify the phase that
triggered the interrupt. The name, PHx, in Figure 102 denotes
one of the PHSTATUS, IPEAK, VPEAK, or PHSIGN registers.
Then, STATUSx is written back to clear the status flag(s).

Rev. C | Page 74 of 107


Data Sheet ADE7880
MCU
t1 t2 t3 INTERRUPT
FLAG SET
IRQx

GLOBAL CLEAR MCU WRITE ISR RETURN

10193-073
PROGRAM JUMP READ ISR ACTION JUMP
SEQUENCE TO ISR INTERRUPT INTERRUPT STATUSx BACK GLOBAL INTERRUPT
STATUSx (BASED ON STATUSx CONTENTS) TO ISR
MASK FLAG MASK RESET

Figure 101. Interrupt Management


MCU
t1 t2 t3 INTERRUPT
FLAG SET

IRQx

GLOBAL CLEAR MCU WRITE ISR RETURN

10193-074
PROGRAM JUMP READ READ ISR ACTION JUMP
SEQUENCE TO ISR INTERRUPT INTERRUPT STATUSx BACK (BASED ON STATUSx CONTENTS) GLOBAL INTERRUPT TO ISR
PHx STATUSx
MASK FLAG MASK RESET

Figure 102. Interrupt Management when PHSTATUS, IPEAK, VPEAK, or PHSIGN Registers are Involved

SERIAL INTERFACES read using either the I2C or SPI interfaces. The HSDC port
The ADE7880 has three serial port interfaces: one fully licensed provides the state of up to 16 registers representing instantaneous
I2C interface, one serial peripheral interface (SPI), and one high values of phase voltages and neutral currents, and active, reactive,
speed data capture port (HSDC). As the SPI pins are multiplexed and apparent powers.
with some of the pins of the I2C and HSDC ports, the ADE7880 Communication Verification
accepts two configurations: one using the SPI port only and one The ADE7880 includes a set of three registers that allow any
using the I2C port in conjunction with the HSDC port. communication via I2C or SPI to be verified. The LAST_OP
Serial Interface Choice (Address 0xEA01), LAST_ADD (Address 0xE9FE) and
After reset, the HSDC port is always disabled. Choose between LAST_RWDATA registers record the nature, address and data
of the last successful communication respectively. The
the I2C and SPI ports by manipulating the SS/HSA pin after
LAST_RWDATA register has three separate addresses
power-up or after a hardware reset. If the SS/HSA pin is kept
depending on the length of the successful communication.
high, then the ADE7880 uses the I2C port until a new hardware
reset is executed. If the SS/HSA pin is toggled high to low three Table 24. LAST_RWDATA Register Locations
times after power-up or after a hardware reset, the ADE7880 Communication Type Address
uses the SPI port until a new hardware reset is executed. This 8-Bit Read/Write 0xE7FD
manipulation of the SS/HSA pin can be accomplished in two 16-Bit Read/Write 0xE9FF
ways. First, use the SS/HSA pin of the master device (that is, the 32-Bit Read/Write 0xE5FF
microcontroller) as a regular I/O pin and toggle it three times. After each successful communication with the ADE7880, the
Second, execute three SPI write operations to a location in the address of the last accessed register is stored in the 16-bit
address space that is not allocated to a specific ADE7880 register LAST_ADD register (Address 0xE9FE). This is a read only
(for example 0xEBFF, where eight bit writes can be executed). register that stores the value until the next successful read or
These writes allow the SS/HSA pin to toggle three times. See the write is complete. The LAST_OP register (Address 0xEA01)
SPI Write Operation section for details on the write protocol stores the nature of the operation. That is, it indicates whether a
involved. read or a write was performed. If the last operation is a write, the
After the serial port choice is completed, it needs to be locked. LAST_OP register stores the value 0xCA. If the last operation is
Consequently, the active port remains in use until a hardware a read, the LAST_OP register stores the value 0x35. The
reset is executed in PSM0 normal mode or until a power-down. LAST_RWDATA register stores the data that was written or
If I2C is the active serial port, Bit 1 (I2C_LOCK) of the CONFIG2 read from the register. Any unsuccessful read or write operation
register must be set to 1 to lock it in. From this moment, the is not reflected in these registers.
ADE7880 ignores spurious toggling of the SS pin and an eventual When LAST_OP, LAST_ADD and LAST_RWDATA registers
switch into using the SPI port is no longer possible. If the SPI is are read, their values are not stored into themselves.
the active serial port, any write to the CONFIG2 register locks
the port. From this moment, a switch into using the I2C port is
no longer possible. Once locked, the serial port choice is
maintained when the ADE7880 changes PSMx power modes.
The functionality of the ADE7880 is accessible via several on-
chip registers. The contents of these registers can be updated or
Rev. C | Page 75 of 107
ADE7880 Data Sheet
I2C-Compatible Interface I2C Write Operation
The ADE7880 supports a fully licensed I C interface. The I C
2 2
The write operation using the I2C interface of the ADE7880
interface is implemented as a full hardware slave. SDA is the initiate when the master generates a start condition and consists
data I/O pin, and SCL is the serial clock. These two pins are in one byte representing the address of the ADE7880 followed
shared with the MOSI and SCLK pins of the on-chip SPI by the 16-bit address of the target register and by the value of
interface. The maximum serial clock frequency supported by this the register.
interface is 400 kHz.
The most significant seven bits of the address byte constitute
The two pins used for data transfer, SDA and SCL, are configured the address of the ADE7880 and they are equal to 0111000b.
in a wire-AND’ed format that allows arbitration in a multimaster Bit 0 of the address byte is a read/write bit. Because this is a
system. Note that the ADE7880 requires a minimum of 100 ns write operation, it has to be cleared to 0; therefore, the first byte
hold time for I2C communication. Refer to the tHD;DAT specification of the write operation is 0x70. After every byte is received, the
in Table 2. ADE7880 generates an acknowledge. As registers can have 8, 16,
The transfer sequence of an I2C system consists of a master device or 32 bits, after the last bit of the register is transmitted and the
initiating a transfer by generating a start condition while the bus ADE7880 acknowledges the transfer, the master generates a stop
is idle. The master transmits the address of the slave device and condition. The addresses and the register content are sent with
the direction of the data transfer in the initial address transfer. If the most significant bit first. See Figure 103 for details of the I2C
the slave acknowledges, the data transfer is initiated. This continues write operation.
until the master issues a stop condition, and the bus becomes idle.
START

STOP
15 8 7 0 31 24 23 16 15 8 7 0

S 0 1 1 1 0 0 0 0 S

SLAVE ADDRESS MOST SIGNIFICANT LESS SIGNIFICANT BYTE 3 (MOST BYTE 2 OF REGISTER BYTE 1 OF REGISTER BYTE 0 (LESS
8 BITS OF REGISTER 8 BITS OF REGISTER SIGNIFICANT) SIGNIFICANT) OF
ACK

ACK

ACK

ACK

ACK

ACK

ACK
ADDRESS ADDRESS OF REGISTER REGISTER

10193-075
ACK GENERATED
BY ADE7880

Figure 103. I2C Write Operation of a 32-Bit Register

Rev. C | Page 76 of 107


Data Sheet ADE7880
I2C Read Operation the master generating a new start condition followed by an
The read operation using the I2C interface of the ADE7880 is address byte. The most significant seven bits of this address byte
accomplished in two stages. The first stage sets the pointer to constitute the address of the ADE7880, and they are equal to
the address of the register. The second stage reads the content of 0111000b. Bit 0 of the address byte is a read/write bit. Because this
the register. is a read operation, it must be set to 1; thus, the first byte of the
read operation is 0x71. After this byte is received, the ADE7880
As seen in Figure 104, the first stage initiates when the master generates an acknowledge. Then, the ADE7880 sends the value
generates a start condition and consists in one byte representing of the register, and after every eight bits are received, the master
the address of the ADE7880 followed by the 16-bit address of the generates an acknowledge. All the bytes are sent with the most
target register. The ADE7880 acknowledges every byte received. significant bit first. Because registers can have 8, 16, or 32 bits,
The address byte is similar to the address byte of a write operation after the last bit of the register is received, the master does not
and is equal to 0x70 (see the I2C Write Operation section for acknowledge the transfer but generates a stop condition.
details). After the last byte of the register address is sent and
acknowledged by the ADE7880, the second stage begins with
START

15 8 7 0

S 0 1 1 1 0 0 0 0

SLAVE ADDRESS MOST SIGNIFICANT LESS SIGNIFICANT


ACK

ACK

ACK
8 BITS OF REGISTER 8 BITS OF REGISTER
ADDRESS ADDRESS

ACK GENERATED
BY ADE7880
ACKNOWLEDGE
GENERATED BY
MASTER

NOACK
START

STOP
31 24 23 16 15 8 7 0
ACK

ACK

ACK
S 0 1 1 1 0 0 0 1 S

SLAVE ADDRESS BYTE 3 BYTE 2 OF BYTE 1 OF BYTE 0


ACK

(MOST SIGNIFICANT) REGISTER REGISTER (LESS SIGNIFICANT)


OF REGISTER OF REGISTER

10193-076
ACK GENERATED
BY ADE7880

Figure 104. I2C Read Operation of a 32-Bit Register


START

15 8 7 0

S 0 1 1 1 0 0 0 0

SLAVE ADDRESS MOST SIGNIFICANT LESS SIGNIFICANT


ACK

ACK

ACK

8 BITS OF REGISTER 8 BITS OF REGISTER


ADDRESS ADDRESS

ACK GENERATED
BY ADE7880
ACKNOWLEDGE
GENERATED BY
MASTER
NOACK
START

STOP

31 24 7 0 31 24 7 0
ACK

ACK

ACK

ACK

S 0 1 1 1 0 0 0 1 S

SLAVE ADDRESS BYTE 3 BYTE 0 BYTE 3 BYTE 0


(MOST SIGNIFICANT) (LESS SIGNIFICANT) (MOST SIGNIFICANT) (LESS SIGNIFICANT)
OF REGISTER 0 OF REGISTER 0 OF REGISTER 1 OF REGISTER n
10193-077

ACK GENERATED
BY ADE7880

Figure 105. I2C Read Operation of n 32-Bit Harmonic Calculations Registers

Rev. C | Page 77 of 107


ADE7880 Data Sheet
I2C Read Operation of Harmonic Calculations Registers connection between the ADE7880 SPI and a master device
The registers containing the harmonic calculation results are containing an SPI interface.
located starting at Address 0xE880 and are all 32-bit width. They The SS logic input is the chip select input. This input is used when
can be read in two ways: one register at a time (see the I2C Read multiple devices share the serial bus. Drive the SS input low for
Operation section for details) or multiple consecutive registers the entire data transfer operation. Bringing SS high during a data
at a time in a burst mode. This burst mode is accomplished in transfer operation aborts the transfer and places the serial bus
two stages. As seen in Figure 105, the first stage sets the pointer in a high impedance state. A new transfer can then be initiated
to the address of the register and is identical to the first stage by returning the SS logic input to low. However, because aborting a
executed when only one register is read. The second stage reads data transfer before completion leaves the accessed register in a
the content of the registers. The second stage begins with the state that cannot be guaranteed, every time a register is written,
master generating a new start condition followed by an address verify its value by reading it back. The protocol is similar to the
byte equal to the address byte used when one single register is protocol used in I2C interface.
read, 0x71. After this byte is received, the ADE7880 generates
ADE7880 SPI DEVICE
an acknowledge. Then, the ADE7880 sends the value of the first
MOSI MOSI
register located at the pointer, and after every eight bits are received,
MISO MISO
the master generates an acknowledge. All the bytes are sent with
SCLK SCK
the most significant bit first. After the bytes of the first register

10193-078
SS SS
are sent, if the master acknowledges the last byte, the ADE7880
increments the pointer by one location to position it at the next Figure 106. Connecting ADE7880 SPI with an SPI Device
register and begins to send it out byte by byte, most significant SPI Read Operation
bit first. If the master acknowledges the last byte, the ADE7880
increments the pointer again and begins to send data from the The read operation using the SPI interface of the ADE7880
next register. The process continues until the master ceases to initiates when the master sets the SS/HSA pin low and begins
generate an acknowledge at the last byte of the register and then sending one byte, representing the address of the ADE7880, on
generates a stop condition. It is recommended to not allow the MOSI line. The master sets data on the MOSI line starting
locations greater than 0xE89F, the last location of the harmonic with the first high-to-low transition of SCLK. The SPI of the
calculations registers. ADE7880 samples data on the low-to-high transitions of SCLK.
The most significant seven bits of the address byte can have any
SPI-Compatible Interface
value, but as a good programming practice, it is recommended
The SPI of the ADE7880 is always a slave of the communication they be different from 0111000b, the seven bits used in the I2C
and consists of four pins (with dual functions): SCLK/SCL, protocol. Bit 0 (read/write) of the address byte must be 1 for a
MOSI/SDA, MISO/HSD, and SS/HSA. The functions used in read operation. Next, the master sends the 16-bit address of the
the SPI-compatible interface are SCLK, MOSI, MISO, and SS. register that is read. After the ADE7880 receives the last bit of
The serial clock for a data transfer is applied at the SCLK logic address of the register on a low-to-high transition of SCLK, it
input. All data transfer operations synchronize to the serial begins to transmit its contents on the MISO line when the next
clock. Data shifts into the ADE7880 at the MOSI logic input SCLK high-to-low transition occurs; thus, the master can sample
on the falling edge of SCLK and the ADE7880 samples it on the data on a low-to-high SCLK transition. After the master
the rising edge of SCLK. Data shifts out of the ADE7880 at receives the last bit, it sets the SS and SCLK lines high and the
the MISO logic output on a falling edge of SCLK and can be communication ends. The data lines, MOSI and MISO, go into
sampled by the master device on the raising edge of SCLK. The a high impedance state. See Figure 107 for details of the SPI
most significant bit of the word is shifted in and out first. The read operation.
maximum serial clock frequency supported by this interface
is 2.5 MHz. MISO stays in high impedance when no data is
transmitted from the ADE7880. See Figure 106 for details of the

Rev. C | Page 78 of 107


Data Sheet ADE7880
SS

SCLK

15 14 1 0

MOSI REGISTER ADDRESS


0 0 0 0 0 0 0 1
31 30 1 0

10193-079
MISO REGISTER VALUE

Figure 107. SPI Read Operation of a 32-Bit Register

SS

SCLK

REGISTER
MOSI ADDRESS
0 0 0 0 0 0 0 1

31 0 31 0

10193-080
MISO REGISTER 0 REGISTER n
VALUE VALUE

Figure 108. SPI Read Operation of n 32-Bit Harmonic Calculations Registers

SPI Read Operation of Harmonic Calculations Registers lines, MOSI and MISO, go into a high impedance state. See
The registers containing the harmonic calculation results are Figure 108 for details of the SPI read operation of harmonic
located starting at Address 0xE880 and are all 32-bit width. calculations registers.
They can be read in two ways: one register at a time (see the SPI SPI Write Operation
Read Operation section for details) or multiple consecutive The write operation using the SPI interface of the ADE7880
registers at a time in a burst mode. The burst mode initiates initiates when the master sets the SS/HSA pin low and begins
when the master sets the SS/HSA pin low and begins sending sending one byte representing the address of the ADE7880 on
one byte, representing the address of the ADE7880, on the the MOSI line. The master sets data on the MOSI line starting
MOSI line. The address is the same address byte used for with the first high-to-low transition of SCLK. The SPI of the
reading only one register. The master sets data on the MOSI line ADE7880 samples data on the low-to-high transitions of SCLK.
starting with the first high-to-low transition of SCLK. The SPI The most significant seven bits of the address byte can have any
of the ADE7880 samples data on the low-to-high transitions of value, but as a good programming practice, it is recommended
SCLK. Next, the master sends the 16-bit address of the first they be different from 0111000b, the seven bits used in the I2C
harmonic calculations register that is read. After the ADE7880 protocol. Bit 0 (read/write) of the address byte must be 0 for a
receives the last bit of the address of the register on a low-to-
write operation. Next, the master sends the 16-bit address of the
high transition of SCLK, it begins to transmit its contents on the
register that is written and the 32-, 16-, or 8-bit value of that
MISO line when the next SCLK high-to-low transition occurs;
register without losing any SCLK cycle. After the last bit is
thus, the master can sample the data on a low-to-high SCLK
transmitted, the master sets the SS and SCLK lines high at the
transition. After the master receives the last bit of the first
end of the SCLK cycle and the communication ends. The data
register, the ADE7880 sends the harmonic calculations register
lines, MOSI and MISO, go into a high impedance state. See
placed at the next location and so forth until the master sets the
Figure 109 for details of the SPI write operation.
SS and SCLK lines high and the communication ends. The data

Rev. C | Page 79 of 107


ADE7880 Data Sheet
SS

SCLK

15 14 1 0 31 30 1 0

10193-081
MOSI REGISTER ADDRESS REGISTER VALUE
0 0 0 0 0 0 0 0

Figure 109. SPI Write Operation of a 32-Bit Register

HSDC Interface is 1, the clock frequency is 4 MHz. A bit of data is transmitted


The high speed data capture (HSDC) interface is disabled after for every HSCLK high-to-low transition. The slave device that
default. It can be used only if the ADE7880 is configured with an receives data from HSDC samples the HSD line on the low-to-
I2C interface. The SPI interface of ADE7880 cannot be used at high transition of HSCLK.
the same time with HSDC. The words can be transmitted as 32-bit packages or as 8-bit
Bit 6 (HSDCEN) in the CONFIG register activates HSDC when packages. When Bit 1 (HSIZE) in the HSDC_CFG register is 0 (the
set to 1. If Bit HSDCEN is cleared to 0, the default value, the default value), the words are transmitted as 32-bit packages. When
HSDC interface is disabled. Setting Bit HSDCEN to 1 when SPI Bit HSIZE is 1, the registers are transmitted as 8-bit packages. The
is in use does not have any effect. HSDC is an interface for HSDC interface transmits the words MSB first.
sending to an external device (usually a microprocessor or a Bit 2 (HGAP) introduces a gap of seven HSCLK cycles between
DSP) up to sixteen 32-bit words. The words represent the packages when Bit 2 (HGAP) is set to 1. When Bit HGAP is
instantaneous values of the phase currents and voltages, neutral cleared to 0 (the default value), no gap is introduced between
current, and active, reactive, and apparent powers. The registers packages and the communication time is shortest. In this case,
being transmitted include IAWV, VAWV, IBWV, VBWV, ICWV, HSIZE does not have any influence on the communication and
VCWV, INWV, AVA, BVA, CVA, AWATT, BWATT, CWATT, a data bit is placed on the HSD line with every HSCLK high-to-
AFVAR, BFVAR, and CFVAR. All are 24-bit registers that are low transition.
sign extended to 32-bits (see Figure 45 for details).
Bits[4:3] (HXFER[1:0]) decide how many words are transmitted.
HSDC can be interfaced with SPI or similar interfaces. HSDC is When HXFER[1:0] is 00, the default value, then all 16 words are
always a master of the communication and consists of three transmitted. When HXFER[1:0] is 01, only the words representing
pins: HSA, HSD, and HSCLK. HSA represents the select signal. the instantaneous values of phase and neutral currents and phase
It stays active low or high when a word is transmitted and it is voltages are transmitted in the following order: IAWV, VAWV,
usually connected to the select pin of the slave. HSD sends data IBWV, VBWV, ICWV, VCWV, and one 32-bit word that is always
to the slave and it is usually connected to the data input pin of equal to INWV. When HXFER[1:0] is 10, only the instantaneous
the slave. HSCLK is the serial clock line that is generated by the values of phase powers are transmitted in the following order:
ADE7880 and it is usually connected to the serial clock input of AVA, BVA, CVA, AWATT, BWATT, CWATT, AFVAR, BFVAR,
the slave. Figure 110 shows the connections between the ADE7880 and CFVAR. The value, 11, for HXFER[1:0] is reserved and
HSDC and slave devices containing an SPI interface. writing it is equivalent to writing 00, the default value.
ADE7880 SPI DEVICE Bit 5 (HSAPOL) determines the polarity of HSA function of the
HSD MOSI SS/HSA pin during communication. When HSAPOL is 0 (the
HSCLK SCK
default value), HSA is active low during the communication.
This means that HSA stays high when no communication is in
10193-082

HSA SS
progress. When a communication is executed, HSA is low when
Figure 110. Connecting the ADE7880 HSDC with an SPI the 32-bit or 8-bit packages are transferred, and it is high during
the gaps. When HSAPOL is 1, the HSA function of the SS/HSA
The HSDC communication is managed by the HSDC_CFG
pin is active high during the communication. This means that
register (see Table 52). It is recommended to set the HSDC_CFG
HSA stays low when no communication is in progress. When a
register to the desired value before enabling the port using Bit 6
communication is executed, HSA is high when the 32-bit or
(HSDCEN) in the CONFIG register. In this way, the state of
8-bit packages are transferred, and it is low during the gaps.
various pins belonging to the HSDC port do not take levels incon-
sistent with the desired HSDC behavior. After a hardware reset Bits[7:6] of the HSDC_CFG register are reserved. Any value
or after power-up, the MISO/HSD and SS/HSA pins are set high. written into these bits does not have any consequence on HSDC
behavior.
Bit 0 (HCLK) in the HSDC_CFG register determines the serial
clock frequency of the HSDC communication. When HCLK is
0 (the default value), the clock frequency is 8 MHz. When HCLK

Rev. C | Page 80 of 107


Data Sheet ADE7880
Figure 111 shows the HSDC transfer protocol for HGAP = 0, See Table 52 for the HSDC_CFG register and descriptions for
HXFER[1:0] = 00 and HSAPOL = 0. Note that the HSDC the HCLK, HSIZE, HGAP, HXFER[1:0], and HSAPOL bits.
interface sets a data bit on the HSD line every HSCLK high-to- Table 25 lists the time it takes to execute an HSDC data transfer
low transition and the value of Bit HSIZE is irrelevant. for all HSDC_CFG register settings. For some settings, the
Figure 112 shows the HSDC transfer protocol for HSIZE = 0, transfer time is less than 125 μs (8 kHz), the waveform sample
HGAP = 1, HXFER[1:0] = 00, and HSAPOL = 0. Note that the registers update rate. This means the HSDC port transmits data
HSDC interface introduces a seven-HSCLK cycles gap between every sampling cycle. For settings in which the transfer time is
every 32-bit word. greater than 125 μs, the HSDC port transmits data only in the
first of two consecutive 8 kHz sampling cycles. This means it
Figure 113 shows the HSDC transfer protocol for HSIZE = 1, transmits registers at an effective rate of 4 kHz.
HGAP = 1, HXFER[1:0] = 00, and HSAPOL = 0. Note that the
HSDC interface introduces a seven-HSCLK cycles gap between
every 8-bit word.
Table 25. Communication Times for Various HSDC Settings
HXFER[1:0] HGAP HSIZE1 HCLK Communication Time (μs)
00 0 N/A 0 64
00 0 N/A 1 128
00 1 0 0 77.125
00 1 0 1 154.25
00 1 1 0 119.25
00 1 1 1 238.25
01 0 N/A 0 28
01 0 N/A 1 56
01 1 0 0 33.25
01 1 0 1 66.5
01 1 1 0 51.625
01 1 1 1 103.25
10 0 N/A 0 36
10 0 N/A 1 72
10 1 0 0 43
10 1 0 1 86
10 1 1 0 66.625
10 1 1 1 133.25
1
N/A means not applicable.

HSCLK

31 0 31 0 31 0 31 0

HSD IAVW (32-BIT) VAWV (32-BIT) IBWV (32-BIT) CFVAR (32-BIT)


10193-083

HSA

Figure 111. HSDC Communication for HGAP = 0, HXFER[1:0] = 00, and HSAPOL = 0; HSIZE Is Irrelevant

Rev. C | Page 81 of 107


ADE7880 Data Sheet
HSCLK

31 0 31 0 31 0 31 0
HSD IAVW (32-BIT) VAWV (32-BIT) IBWV (32-BIT) CFVAR (32-BIT)
7 HCLK 7 HCLK
CYCLES CYCLES

10193-084
HSA

Figure 112. HSDC Communication for HSIZE = 0, HGAP = 1, HXFER[1:0] = 00, and HSAPOL = 0

HSCLK

31 24 23 16 15 8 7 0
HSD IAVW (BYTE 3) IAVW (BYTE 2) IAVW (BYTE 1) CFVAR (BYTE 0)
7 HCLK 7 HCLK
CYCLES CYCLES

10193-085
HSA

Figure 113. HSDC Communication for HSIZE = 1, HGAP = 1, HXFER[1:0] = 00, and HSAPOL = 0

ADE7880 QUICK SETUP AS ENERGY METER 7. Enable the data memory RAM protection by writing 0xAD
to an internal 8-bit register located at Address 0xE7FE
An energy meter is usually characterized by the nominal followed by a write of 0x80 to an internal 8-bit register
current In, nominal voltage Vn, nominal frequency fn, and the located at Address 0xE7E3.
meter constant MC. 8. Read back all data memory RAM registers to ensure that
To quickly set up the ADE7880, execute the following steps: they initialized with the desired values. If one or more
1. Select the PGA gains in the phase currents, voltages and registers did not initialize correctly, disable the protection by
neutral current channels: Bits[2:0] (PGA1), Bits[5:3] writing 0xAD to an internal 8-bit register at Address 0xE7FE,
(PGA2) and Bits[8:6] (PGA3) in the Gain register. followed by a write of 0x00 to an internal 8-bit register located
at Address 0xE7E3. Reinitialize the registers, and write the
2. If Rogowski coils are used, enable the digital integrators in the
last register in the queue three times. Enable the write
phase and neutral currents: Bit 0 (INTEN)set to 1 in the protection by writing 0xAD to an internal 8-bit register
CONFIG register. Initialize the DICOEFF register to 0xFF8000
located at Address 0xE7FE, followed by a write of 0x80 to
before setting the INTEN bit in the CONFIG register.
an internal 8-bit register located at Address 0xE7E3.
3. If fn is between 55 Hz and 66 Hz, set Bit 14 (SELFREQ) in
9. Start the DSP by setting Run = 1.
the COMPMODE register.
10. Read the energy registers xWATTHR, xVAHR, xFWATTHR,
4. Initialize all the other data memory RAM registers. Write
and xFVARHR to erase their content and start energy
the last register in the queue three times to ensure that its accumulation from a known state.
value is written into the RAM.
11. Enable the CF1, CF2, and CF3 frequency converter outputs
5. Initialize the WTHR, VARTHR, VATHR, VLEVEL and
by clearing bits 9, 10, and 11 (CF1DIS, CF2DIS, and
VNOM registers based on Equation 26, Equation 37,
CF3DIS) to 0 in the CFMODE register.
Equation 44, Equation 22, and Equation 42, respectively.
For a quick setup of the ADE7880 harmonic calculations, see the
6. Initialize CF1DEN, CF2DEN, and CF3DEN based on
Recommended Approach to Managing Harmonic Calculations
Equation 49.
section.

Rev. C | Page 82 of 107


Data Sheet ADE7880
LAYOUT GUIDELINES
Figure 114 presents a basic schematic of the ADE7880 together
with its surrounding circuitry: decoupling capacitors at pins
VDD, AVDD, DVDD, and REFIN/OUT, the 16.384 MHz crystal,
and its load capacitors. The rest of the pins are dependent on
the particular application and are not shown here.

C3 C4
4.7µF 0.22µF
C1 C2 C5 C6
4.7µF 0.22µF 0.1µF 10µF

24 5 26 U1
VDD
AVDD
DVDD

2 C7 C10
PM0 0.1µF 4.7µF
3 PM1 17
4 REFIN/OUT
RESET 28
7 IAP CLKOUT
C8 Y1

16.384MHz
8 IAN
9 29 20pF R1
2
IBP IRQ0

10193-214
12 IBN 32 5MΩ
13 IRQ1 C9 1
ICP 20pF
14 ICN 33
15 CF1 Figure 115. ADE7880 Top Layer Printed Circuit Board
INP 34
16 INN CF2
18 35
VN CF3/HSCLK
23 VAP
The exposed pad of the ADE7880 is soldered to an equivalent
22 MISQ/HSD 37
19
VBP 39 pad on the PCB. The AGND and DGND traces of the ADE7880
VCP SS/HSA
27
36
CLKIN are then routed directly into the PCB pad.
SCLK/SCL
38 MOSI/SDA
25 AGND
6 DGND

The bottom layer is composed mainly of a ground plane


PAD PAD

NC
surrounding as much as possible the crystal traces.
1
10
11
21
30
31
40
20

10193-213

ADE7880ACPZ

Figure 114. ADE7880 Crystal and Capacitors Selection

Figure 115 and Figure 116 present a proposed layout of a printed


circuit board (PCB) with two layers that have the components
placed only on the top of the board. Following these layout
guidelines helps in creating a low noise design with higher
immunity to EMC influences.
The VDD, AVDD, DVDD, and REFIN/OUT pins have two decoupling
capacitors each, one of μF order and a ceramic one of 220 nF or
100 nF. These ceramic capacitors need to be placed the closest
to the ADE7880 as they decouple high frequency noises, while
the μF ones must be placed in close proximity.
The crystal load capacitors need to be placed closest to the
08510-088

ADE7880, while the crystal can be placed in close proximity.

Figure 116. ADE7880 Bottom Layer Printed Circuit Board

Rev. C | Page 83 of 107


ADE7880 Data Sheet
CRYSTAL CIRCUIT The EVAL-ADE7880EBZ evaluation board uses the crystal
A digital clock signal of 16.384 MHz can be provided to the CLKIN VM6-1D11C12-TR-16.384MHZ (maximum drive level 1 mW;
pin of the ADE7880. Alternatively, attach a crystal of the specified maximum ESR 20 Ω; load capacitance 12 pF). Select the same
frequency, as shown in Figure 117. CL1 and CL2 denote the capaci- crystal or a crystal with similar specifications. Lower values of
tances of the ceramic capacitors attached to the crystal pins, whereas ESR and load capacitance and higher values of drive level
CP1 and CP2 denote the parasitic capacitances on those pins. capability of the crystal are preferable.

The recommended typical value of total capacitance at each It is also recommended that a 5 MΩ resistor be attached in
clock pin, CLKIN and CLKOUT, is 24 pF, which means that parallel to the crystal, as shown in Figure 117.
CL2
Total Capacitance = CP1 + CL1 = CP2 + CL2 = 24 pF
CLKIN GND
Crystal manufacturer data sheets specify the load capacitance CP2
value. A total capacitance of 24 pF per clock pin is recommended; ADE7880 IC 5MΩ 16.384MHz CRYSTAL
therefore, select a crystal with a 12 pF load capacitance. In CP1
CLKOUT
addition, when selecting the ceramic capacitors, CL1 and CL2,

10193-216
GND
the parasitic capacitances, CP1 and CP2, on the crystal pins of CL1

the IC must be taken into account. Thus, the values of CL1 and Figure 117. Crystal Circuit
CL2 must be based on the following expression:
ADE7880 EVALUATION BOARD
CL1 = CL2 = 2 × Crystal Load Capacitance − CP1
An evaluation board built upon the ADE7880 configuration is
where CP1 = CP2. available. Visit www.analog.com/ADE7880 for details.
For example, if a 12 pF crystal is chosen and the parasitic capaci- DIE VERSION
tances on the clock pins are CP1 = CP2 = 2 pF, the ceramic capacitors
that must be used in the crystal circuit are CL1 = CL2 = 22 pF. The register named version identifies the version of the die. It is
an 8-bit, read-only register located at Address 0xE707.

Rev. C | Page 84 of 107


Data Sheet ADE7880

SILICON ANOMALY
This anomaly list describes the known issues with the ADE7880 silicon identified by the Version register (Address 0xE707) being equal to 1.
Analog Devices, Inc., is committed, through future silicon revisions, to continuously improve silicon functionality. Analog Devices tries
to ensure that these future silicon revisions remain compatible with your present software/systems by implementing the recommended
workarounds outlined here.

ADE7880 FUNCTIONALITY ISSUES


Silicon Revision
Identifier Chip Marking Silicon Status Anomaly Sheet No. of Reported Issues
Version = 1 ADE7880ACPZ Released Rev. B 4 (er001, er002, er003, er004)

FUNCTIONALITY ISSUES
Table 26. LAST_ADDR and LAST_RWDATA_x Registers Show Wrong Value in Burst SPI Mode [er001, Version = 1 Silicon]
Background When any ADE7880 register is read using SPI or I2C communication, the address is stored in the LAST_ADDR register and
the data is stored in the respective LAST_RWDATA_x register.
Issue When the waveform registers located between Address 0xE880 and Address 0xE89F are read using burst SPI mode, the
LAST_ADDR register contains the address of the register incremented by 1 and the LAST_RWDATA_x register contains the
data corresponding to the faulty address in the LAST_ADDR register. The issue is not present if the I2C communication is used.
Workaround After accessing the waveform registers in burst SPI mode, perform another read/write operation elsewhere before using
the communication verification registers.
Related Issues None.

Table 27. To Obtain Best Accuracy Performance, Internal Setting Must Be Changed [er002, Version = 1 Silicon]
Background Internal default settings provide best accuracy performance for ADE7880.
Issue It was found that if a different setting is used, the accuracy performance can be improved.
Workaround To enable a new setting for this internal register, execute three consecutive write operations:
The first write operation is to an 8-bit location: 0xAD is written to Address 0xE7FE.
The second write operation is to a 16-bit location: 0x3BD is written to Address 0xE90C.
The third write operation is to an 8-bit location: 0x00 is written to Address 0xE7FE.
The write operations must be executed consecutively without any other read/write operation in between. As a
verification that the value was captured correctly, a simple 16-bit read of Address 0xE90C shows the 0x3BD value.
Related Issues None.

Table 28. High-Pass Filter Cannot be Disabled in Phase C Voltage Data Path [er003, Version = 1 Silicon]
Background When Bit 0 (HPFEN) of the CONFIG3 register is 0, all high-pass filters (HPF) in the phase and neutral currents and phase
voltages data paths are disabled (see the ADE7880 data sheet for more information about the current channel HPF and
the voltage channel HPF).
Issue The HPF in the Phase C voltage data path remains enabled independent of the state of Bit HPFEN.
Workaround There is no workaround.
Related Issues None.

Rev. C | Page 85 of 107


ADE7880 Data Sheet

Table 29. No Load Condition Does Not Function as Defined [er004, Version = 1 Silicon]
Background Total active power no load uses the total active energy and the apparent energy to trigger the no load condition. If
neither total active energy nor apparent energy are accumulated for a time indicated in the respective APNOLOAD and
VANOLOAD unsigned, 16-bit registers, the no load condition is triggered, the total active energy of that phase is not
accumulated and no CF pulses are generated based on the total active energy.
Fundamental active and reactive powers no load uses the fundamental active and reactive energies to trigger the no load
condition. If neither the fundamental active energy nor the fundamental reactive energy are accumulated for a time
indicated in the respective APNOLOAD and VARNOLOAD unsigned 16-bit registers, the no load condition is triggered, the
fundamental active and reactive energies of that phase are not accumulated, and no CF pulses are generated based on
the fundamental active and reactive energies.
Issue When the total active energy on Phase x (x = A, B, or C) is lower than APNOLOAD and the apparent energy is above
VANOLOAD, the no load condition is not triggered. It was observed that although CF pulses continue to be generated, the
Bit 0 (NLOAD) and Bits[2:0] (NLPHASE) in STATUS1 and PHNOLOAD registers continue to be cleared to 0 indicating an out
of no load condition, the xWATTHR register stops accumulating energy.
It was observed that the fundamental active energy no load functions independently of the fundamental reactive energy
no load. If, for example, the fundamental active energy is below APNOLOAD and the fundamental reactive energy is
above VARNOLOAD, both energies continue to accumulate because the phase is out of no load condition. Instead, the CF
pulses, based on the phase fundamental active energy, are not generated and the FWATTHR registers are blocked, while
the CF pulses, based on the fundamental reactive energy, are generated. Thus, the FVARHR registers continue to
accumulate and the Bit 1 (FNLOAD) in the STATUS1 register and Bits[5:3] (FNLPHASE) in the PHNOLOAD register are
cleared to 0. IRQ
Workaround The workaround suggested here uses the VANOLOAD register only to determine the no-load condition.
1. Clear VARNOLOAD and APNOLOAD to 0.
2. Set VANOLOAD at desired value.
3. When the apparent energy on any one of the phases becomes less than VANOLOAD, or when it has just become
larger than VANOLOAD, Bit 2 (VANLOAD) in the STATUS1 register is set to 1. The corresponding interrupt can be
observed via the IRQ pin if the Bit 2 in MASK1 register is set to 1. The IRQ pin goes low whenever any of the phases
enters or leaves the no-load condition.
4. To find the phase that triggered the interrupt, read the PHNOLOAD register immediately. One of the bits
VANLPHASE [2:0] changes state, indicating that the particular phase has either entered or left no-load condition.
5. If the particular phase has entered no-load condition, remove the contribution of the energies of that phase to the
CFx output by clearing the appropriate TERMSEL_x bits of the COMPMODE register. If that particular phase has left
no-load condition, include the contribution of the energies of that phase to the CFx output by setting the
appropriate TERMSEL_x bits of the COMPMODE register.
6. Write 1 to the VANLOAD bit of the STATUS1 register, to clear the status bit and to bring the IRQ pin high.
7. If the phase comes out of no-load condition, read with reset all the energy registers to flush out the unnecessary
values in the signal path before taking further energy measurements. This can be done by reading the energy
registers while the RSTREAD bit (Bit 6) is set to 1 in the LCYCMODE register.
8. Whenever the IRQ pin goes low again, perform the actions starting from Step 3 to service the interrupt.
Related Issues None.

SECTION 1. ADE7880 FUNCTIONALITY ISSUES


Reference Number Description Status
er001 The LAST_ADDR and LAST_RWDATA_x registers show the wrong values in burst SPI mode. Identified
er002 To obtain the best accuracy performance, the internal setting must be changed. Identified
er003 The high-pass filter cannot be disabled in the Phase C voltage data path. Identified
er004 The no load condition does not function as defined. Identified

Rev. C | Page 86 of 107


Data Sheet ADE7880

REGISTERS LIST
Table 30. Registers Located in DSP Data Memory RAM
Register Bit Bit Length During
Address Name R/W 1 Length Communication 2 Type 3 Default Value Description
0x4380 AIGAIN R/W 24 32 ZPSE S 0x000000 Phase A current gain adjust.
0x4381 AVGAIN R/W 24 32 ZPSE S 0x000000 Phase A voltage gain adjust.
0x4382 BIGAIN R/W 24 32 ZPSE S 0x000000 Phase B current gain adjust.
0x4383 BVGAIN R/W 24 32 ZPSE S 0x000000 Phase B voltage gain adjust.
0x4384 CIGAIN R/W 24 32 ZPSE S 0x000000 Phase C current gain adjust.
0x4385 CVGAIN R/W 24 32 ZPSE S 0x000000 Phase C voltage gain adjust.
0x4386 NIGAIN R/W 24 32 ZPSE S 0x000000 Neutral current gain adjust.
0x4387 Reserved R/W 24 32 ZPSE S 0x000000 Do not write this location for proper operation.
0x4388 DICOEFF R/W 24 32 ZPSE S 0x0000000 Register used in the digital integrator algorithm.
If the integrator is turned on, it must be set at
0xFF8000. In practice, it is transmitted as 0xFFF8000.
0x4389 APGAIN R/W 24 32 ZPSE S 0x000000 Phase A power gain adjust.
0x438A AWATTOS R/W 24 32 ZPSE S 0x000000 Phase A total active power offset adjust.
0x438B BPGAIN R/W 24 32 ZPSE S 0x000000 Phase B power gain adjust.
0x438C BWATTOS R/W 24 32 ZPSE S 0x000000 Phase B total active power offset adjust.
0x438D CPGAIN R/W 24 32 ZPSE S 0x000000 Phase C power gain adjust.
0x438E CWATTOS R/W 24 32 ZPSE S 0x000000 Phase C total active power offset adjust.
0x438F AIRMSOS R/W 24 32 ZPSE S 0x000000 Phase A current rms offset.
0x4390 AVRMSOS R/W 24 32 ZPSE S 0x000000 Phase A voltage rms offset.
0x4391 BIRMSOS R/W 24 32 ZPSE S 0x000000 Phase B current rms offset.
0x4392 BVRMSOS R/W 24 32 ZPSE S 0x000000 Phase B voltage rms offset.
0x4393 CIRMSOS R/W 24 32 ZPSE S 0x000000 Phase C current rms offset.
0x4394 CVRMSOS R/W 24 32 ZPSE S 0x000000 Phase C voltage rms offset.
0x4395 NIRMSOS R/W 24 32 ZPSE S 0x000000 Neutral current rms offset.
0x4396- Reserved N/A N/A N/A N/A 0x000000 Do not write these memory locations for proper
0x4397 operation.
0x4398 HPGAIN R/W 24 32 ZPSE S 0x000000 Harmonic powers gain adjust.
0x4399 ISUMLVL R/W 24 32 ZPSE S 0x000000 Threshold used in comparison between the sum
of phase currents and the neutral current.
0x439A- Reserved N/A N/A N/A N/A 0x000000 Do not write these memory locations for proper
0x439E operation.
0x439F VLEVEL R/W 28 32 ZP S 0x0000000 Register used in the algorithm that computes the
fundamental active and reactive powers. Set this
register according to Equation 22 for proper
functioning of fundamental powers and harmonic
computations.
0x43A0- Reserved N/A N/A N/A N/A 0x000000 Do not write these memory locations for proper
0x43A1 operation.
0x43A2 AFWATTOS R/W 24 32 ZPSE S 0x000000 Phase A fundamental active power offset adjust.
0x43A3 BFWATTOS R/W 24 32 ZPSE S 0x000000 Phase B fundamental active power offset adjust.
0x43A4 CFWATTOS R/W 24 32 ZPSE S 0x000000 Phase C fundamental active power offset adjust.
0x43A5 AFVAROS R/W 24 32 ZPSE S 0x000000 Phase A fundamental reactive power offset adjust.
0x43A6 BFVAROS R/W 24 32 ZPSE S 0x000000 Phase B fundamental reactive power offset adjust.
0x43A7 CFVAROS R/W 24 32 ZPSE S 0x000000 Phase C fundamental reactive power offset adjust.
0x43A8 AFIRMSOS R/W 24 32 ZPSE S 0x000000 Phase A fundamental current rms offset.
0x43A9 BFIRMSOS R/W 24 32 ZPSE S 0x000000 Phase B fundamental current rms offset.
0x43AA CFIRMSOS R/W 24 32 ZPSE S 0x000000 Phase C fundamental current rms offset.
0x43AB AFVRMSOS R/W 24 32 ZPSE S 0x000000 Phase A fundamental voltage rms offset.
0x43AC BFVRMSOS R/W 24 32 ZPSE S 0x000000 Phase B fundamental voltage rms offset.
0x43AD CFVRMSOS R/W 24 32 ZPSE S 0x000000 Phase C fundamental voltage rms offset.
0x43AE HXWATTOS R/W 24 32 ZPSE S 0x000000 Active power offset adjust on harmonic X
(see Harmonics Calculations section for details).

Rev. C | Page 87 of 107


ADE7880 Data Sheet
Register Bit Bit Length During
Address Name R/W 1 Length Communication 2 Type 3 Default Value Description
0x43AF HYWATTOS R/W 24 32 ZPSE S 0x000000 Active power offset adjust on harmonic Y
(see Harmonics Calculations section for details).
0x43B0 HZWATTOS R/W 24 32 ZPSE S 0x000000 Active power offset adjust on harmonic Z
(see Harmonics Calculations section for details).
0x43B1 HXVAROS R/W 24 32 ZPSE S 0x000000 Active power offset adjust on harmonic X
(see Harmonics Calculations section for details).
0x43B2 HYVAROS R/W 24 32 ZPSE S 0x000000 Active power offset adjust on harmonic Y
(see Harmonics Calculations section for details).
0x43B3 HZVAROS R/W 24 32 ZPSE S 0x000000 Active power offset adjust on harmonic Z
(see Harmonics Calculations section for details).
0x43B4 HXIRMSOS R/W 24 32 ZPSE S 0x000000 Current rms offset on harmonic X
(see Harmonics Calculations section for details).
0x43B5 HYIRMSOS R/W 24 32 ZPSE S 0x000000 Current rms offset on harmonic Y
(see Harmonics Calculations section for details).
0x43B6 HZIRMSOS R/W 24 32 ZPSE S 0x000000 Current rms offset on harmonic Z
(see Harmonics Calculations section for details).
0x43B7 HXVRMSOS R/W 24 32 ZPSE S 0x000000 Voltage rms offset on harmonic X
(see Harmonics Calculations section for details).
0x43B8 HYVRMSOS R/W 24 32 ZPSE S 0x000000 Voltage rms offset on harmonic Y
(see Harmonics Calculations section for details).
0x43B9 HZVRMSOS R/W 24 32 ZPSE S 0x000000 Voltage rms offset on harmonic Z
(see Harmonics Calculations section for details).
0x43BA Reserved N/A N/A N/A N/A 0x000000 Do not write these memory locations for proper
to operation.
0x43BF
0x43C0 AIRMS R 24 32 ZP S N/A Phase A current rms value.
0x43C1 AVRMS R 24 32 ZP S N/A Phase A voltage rms value.
0x43C2 BIRMS R 24 32 ZP S N/A Phase B current rms value.
0x43C3 BVRMS R 24 32 ZP S N/A Phase B voltage rms value.
0x43C4 CIRMS R 24 32 ZP S N/A Phase C current rms value.
0x43C5 CVRMS R 24 32 ZP S N/A Phase C voltage rms value.
0x43C6 NIRMS R 24 32 ZP S N/A Neutral current rms value.
0x43C7 ISUM R 28 32 ZP S N/A Sum of IAWV, IBWV and ICWV registers.
0x43C8 Reserved N/A N/A N/A N/A N/A Do not write these memory locations for proper
to operation.
0x43FF
1
R is read, and W is write.
2
32 ZPSE = 24-bit signed register that is transmitted as a 32-bit word with four MSBs padded with 0s and sign extended to 28 bits. Whereas 32 ZP = 28- bit or 24-bit
signed or unsigned register that is transmitted as a 32-bit word with four or eight MSBs, respectively, padded with 0s.
3
U is unsigned register, and S is signed register in twos complement format.

Table 31. Internal DSP Memory RAM Registers


Bit Length
Register Bit During Default
Address Name R/W 1 Length Communication Type 2 Value Description
0xE203 Reserved R/W 16 16 U 0x0000 Do not write this memory location for proper
operation.
0xE228 Run R/W 16 16 U 0x0000 Run register starts and stops the DSP. See the
Digital Signal Processor section for more details.
1
R is read, and W is write.
2
U is unsigned register, and S is signed register in twos complement format.

Rev. C | Page 88 of 107


Data Sheet ADE7880

Table 32. Billable Registers


Bit Length
Register Bit During Default
Address Name R/W1, 2 Length2 Communication2 Type2, 3 Value Description
0xE400 AWATTHR R 32 32 S 0x00000000 Phase A total active energy accumulation.
0xE401 BWATTHR R 32 32 S 0x00000000 Phase B total active energy accumulation.
0xE402 CWATTHR R 32 32 S 0x00000000 Phase C total active energy accumulation.
0xE403 AFWATTHR R 32 32 S 0x00000000 Phase A fundamental active energy
accumulation.
0xE404 BFWATTHR R 32 32 S 0x00000000 Phase B fundamental active energy
accumulation.
0xE405 CFWATTHR R 32 32 S 0x00000000 Phase C fundamental active energy
accumulation.
0xE406 Reserved R 32 32 S 0x00000000
to
0xE408
0xE409 AFVARHR R 32 32 S 0x00000000 Phase A fundamental reactive energy
accumulation.
0xE40A BFVARHR R 32 32 S 0x00000000 Phase B fundamental reactive energy
accumulation.
0xE40B CFVARHR R 32 32 S 0x00000000 Phase C fundamental reactive energy
accumulation.
0xE40C AVAHR R 32 32 S 0x00000000 Phase A apparent energy accumulation.
0xE40D BVAHR R 32 32 S 0x00000000 Phase B apparent energy accumulation.
0xE40E CVAHR R 32 32 S 0x00000000 Phase C apparent energy accumulation.
1
R is read, and W is write.
2
N/A is not applicable.
3
U is unsigned register, and S is signed register in twos complement format.
Table 33. Configuration and Power Quality Registers
Bit Length
Bit During Default
Address Register Name R/W1 Length Communication2 Type3 Value4 Description
0xE500 IPEAK R 32 32 U N/A Current peak register. See Figure 60 and
Table 34 for details about its composition.
0xE501 VPEAK R 32 32 U N/A Voltage peak register. See Figure 60 and
Table 35 for details about its composition.
0xE502 STATUS0 R/W 32 32 U N/A Interrupt Status Register 0. See Table 36.
0xE503 STATUS1 R/W 32 32 U N/A Interrupt Status Register 1. See Table 37.
0xE504 AIMAV R 20 32 ZP U N/A Phase A current mean absolute value
computed during PSM0 and PSM1 modes.
0xE505 BIMAV R 20 32 ZP U N/A Phase B current mean absolute value
computed during PSM0 and PSM1 modes.
0xE506 CIMAV R 20 32 ZP U N/A Phase C current mean absolute value
computed during PSM0 and PSM1 modes.
0xE507 OILVL R/W 24 32 ZP U 0xFFFFFF Overcurrent threshold.
0xE508 OVLVL R/W 24 32 ZP U 0xFFFFFF Overvoltage threshold.
0xE509 SAGLVL R/W 24 32 ZP U 0x000000 Voltage SAG level threshold.
0xE50A MASK0 R/W 32 32 U 0x00000000 Interrupt Enable Register 0. See Table 38.
0xE50B MASK1 R/W 32 32 U 0x00000000 Interrupt Enable Register 1. See Table 39.
0xE50C IAWV R 24 32 SE S N/A Instantaneous value of Phase A current.
0xE50D IBWV R 24 32 SE S N/A Instantaneous value of Phase B current.
0xE50E ICWV R 24 32 SE S N/A Instantaneous value of Phase C current.
0xE50F INWV R 24 32 SE S N/A Instantaneous value of neutral current.
0xE510 VAWV R 24 32 SE S N/A Instantaneous value of Phase A voltage.
0xE511 VBWV R 24 32 SE S N/A Instantaneous value of Phase B voltage.
0xE512 VCWV R 24 32 SE S N/A Instantaneous value of Phase C voltage.
Rev. C | Page 89 of 107
ADE7880 Data Sheet
Bit Length
Bit During Default
Address Register Name R/W1 Length Communication2 Type3 Value4 Description
0xE513 AWATT R 24 32 SE S N/A Instantaneous value of Phase A total
active power.
0xE514 BWATT R 24 32 SE S N/A Instantaneous value of Phase B total
active power.
0xE515 CWATT R 24 32 SE S N/A Instantaneous value of Phase C total
active power.
0xE516 to Reserved R 24 32 SE S 0x000000
0xE518
0xE519 AVA R 24 32 SE S N/A Instantaneous value of Phase A
apparent power.
0xE51A BVA R 24 32 SE S N/A Instantaneous value of Phase B
apparent power.
0xE51B CVA R 24 32 SE S N/A Instantaneous value of Phase C
apparent power.
0xE51F CHECKSUM R 32 32 U 0xAFFA63B9 Checksum verification. See the
Checksum Register section for details.
0xE520 VNOM R/W 24 32 ZP S 0x000000 Nominal phase voltage rms used in the
alternative computation of the apparent
power. When the VNOMxEN bit is set, the
applied voltage input in the correspond-
ing phase is ignored and all corresponding
rms voltage instances are replaced by
the value in the VNOM register.
0xE521 to Reserved Do not write these addresses for proper
0xE5FE operation.
0xE5FF LAST_RWDATA32 R 32 32 U N/A Contains the data from the last successful
32-bit register communication.
0xE600 PHSTATUS R 16 16 U N/A Phase peak register. See Table 40.
0xE601 ANGLE0 R 16 16 U N/A Time Delay 0. See the Time Interval
Between Phases section for details.
0xE602 ANGLE1 R 16 16 U N/A Time Delay 1. See the Time Interval
Between Phases section for details.
0xE603 ANGLE2 R 16 16 U N/A Time Delay 2. See the Time Interval
Between Phases section for details.
0xE604 to Reserved Do not write these addresses for proper
0xE607 operation.
0xE608 PHNOLOAD R 16 16 U N/A Phase no load register. See Table 41.
0xE609 to Reserved Do not write these addresses for proper
0xE60B operation.
0xE60C LINECYC R/W 16 16 U 0xFFFF Line cycle accumulation mode count.
0xE60D ZXTOUT R/W 16 16 U 0xFFFF Zero-crossing timeout count.
0xE60E COMPMODE R/W 16 16 U 0x01FF Computation-mode register. See Table 42.
0xE60F Gain R/W 16 16 U 0x0000 PGA gains at ADC inputs. See Table 43.
0xE610 CFMODE R/W 16 16 U 0x0EA0 CFx configuration register. See Table 44.
0xE611 CF1DEN R/W 16 16 U 0x0000 CF1 denominator.
0xE612 CF2DEN R/W 16 16 U 0x0000 CF2 denominator.
0xE613 CF3DEN R/W 16 16 U 0x0000 CF3 denominator.
0xE614 APHCAL R/W 10 16 ZP S 0x0000 Phase calibration of Phase A. See Table 45.
0xE615 BPHCAL R/W 10 16 ZP S 0x0000 Phase calibration of Phase B. See Table 45.
0xE616 CPHCAL R/W 10 16 ZP S 0x0000 Phase calibration Phase of C. See Table 45.
0xE617 PHSIGN R 16 16 U N/A Power sign register. See Table 46.
0xE618 CONFIG R/W 16 16 U 0x0002 ADE7880 configuration register.
See Table 47.
0xE700 MMODE R/W 8 8 U 0x1C Measurement mode register. See Table 48.

Rev. C | Page 90 of 107


Data Sheet ADE7880
Bit Length
Bit During Default
Address Register Name R/W1 Length Communication2 Type3 Value4 Description
0xE701 ACCMODE R/W 8 8 U 0x80 Accumulation mode register.
See Table 49.
0xE702 LCYCMODE R/W 8 8 U 0x78 Line accumulation mode behavior.
See Table 51.
0xE703 PEAKCYC R/W 8 8 U 0x00 Peak detection half line cycles.
0xE704 SAGCYC R/W 8 8 U 0x00 SAG detection half line cycles.
0xE705 CFCYC R/W 8 8 U 0x01 Number of CF pulses between two
consecutive energy latches. See the
Synchronizing Energy Registers with
CFx Outputs section.
0xE706 HSDC_CFG R/W 8 8 U 0x00 HSDC configuration register. See Table 52.
0xE707 Version R 8 8 U Version of die.
0xE7E4 Reserved R 8 8 U 0x08 This register must remain at this value
for checksum functionality to work. If
this register shows a different value
while being read, reset the chip before
working with the checksum feature.
0xE7FD LAST_RWDATA8 R 8 8 U N/A Contains the data from the last
successful 8-bit register communication.
0xE880 FVRMS R 24 32 S N/A The rms value of the fundamental
component of the phase voltage.
0xE881 FIRMS R 24 32 S N/A The rms value of the fundamental
component of the phase current
0xE882 FWATT R 24 32 S N/A The active power of the fundamental
component.
0xE883 FVAR R 24 32 S N/A The reactive power of the fundamental
component.
0xE884 FVA R 24 32 S N/A The apparent power of the fundamental
component.
0xE885 FPF R 24 32 S N/A The power factor of the fundamental
component.
0xE886 VTHD R 24 32 S N/A Total harmonic distortion of the phase
voltage.
0xE887 ITHD R 24 32 S N/A Total harmonic distortion of the phase
current.
0xE888 HXVRMS R 24 32 S N/A The rms value of the phase voltage
harmonic X.
0xE889 HXIRMS R 24 32 S N/A The rms value of the phase current
harmonic X.
0xE88A HXWATT R 24 32 S N/A The active power of the harmonic X.
0xE88B HXVAR R 24 32 S N/A The reactive power of the harmonic X.
0xE88C HXVA R 24 32 S N/A The apparent power of the harmonic X.
0xE88D HXPF R 24 32 S N/A The power factor of the harmonic X.
0xE88E HXVHD R 24 32 S N/A Harmonic distortion of the phase voltage
harmonic X relative to the fundamental.
0xE88F HXIHD R 24 32 S N/A Harmonic distortion of the phase current
harmonic X relative to the fundamental.
0xE890 HYVRMS R 24 32 S N/A The rms value of the phase voltage
harmonic Y.
0xE891 HYIRMS R 24 32 S N/A The rms value of the phase current
harmonic Y.
0xE892 HYWATT R 24 32 S N/A The active power of the harmonic Y.
0xE893 HYVAR R 24 32 S N/A The reactive power of the harmonic Y.
0xE894 HYVA R 24 32 S N/A The apparent power of the harmonic Y.
0xE895 HYPF R 24 32 S N/A The power factor of the harmonic Y.

Rev. C | Page 91 of 107


ADE7880 Data Sheet
Bit Length
Bit During Default
Address Register Name R/W1 Length Communication2 Type3 Value4 Description
0xE896 HYVHD R 24 32 S N/A Harmonic distortion of the phase voltage
harmonic Y relative to the fundamental.
0xE897 HYIHD R 24 32 S N/A Harmonic distortion of the phase current
harmonic Y relative to the fundamental.
0xE898 HZVRMS R 24 32 S N/A The rms value of the phase voltage
harmonic Z.
0xE899 HZIRMS R 24 32 S N/A The rms value of the phase current
harmonic Z.
0xE89A HZWATT R 24 32 S N/A The active power of the harmonic Z.
0xE89B HZVAR R 24 32 S N/A The reactive power of the harmonic Z.
0xE89C HZVA R 24 32 S N/A The apparent power of the harmonic Z.
0xE89D HZPF R 24 32 S N/A The power factor of the harmonic Z.
0xE89E HZVHD R 24 32 S N/A Harmonic distortion of the phase voltage
harmonic Z relative to the fundamental.
0xE89F HZIHD R 24 32 S N/A Harmonic distortion of the phase current
harmonic Z relative to the fundamental.
0xE8A0 to Reserved 24 32 Reserved. These registers are always 0.
0xE8FF
0xE900 HCONFIG R/W 16 16 U 0x08 Harmonic Calculations Configuration
register. See Table 54.
0xE902 APF R 16 16 S N/A Phase A power factor.
0xE903 BPF R 16 16 S N/A Phase B power factor.
0xE904 CPF R 16 16 S N/A Phase C power factor.
0xE905 APERIOD R 16 16 U N/A Line period on Phase A voltage.
0xE906 BPERIOD R 16 16 U N/A Line period on Phase B voltage.
0xE907 CPERIOD R 16 16 U N/A Line period on Phase C voltage.
0xE908 APNOLOAD R/W 16 16 U 0x0000 No load threshold in the total/
fundamental active power data paths.
Do not write 0xFFFF to this register.
0xE909 VARNOLOAD R/W 16 16 U 0x0000 No load threshold in the total/
fundamental reactive power data path.
Do not write 0xFFFF to this register.
0xE90A VANOLOAD R/W 16 16 U 0x0000 No load threshold in the apparent
power data path. Do not write 0xFFFF to
this register.
0xE9FE LAST_ADD R 16 16 U N/A The address of the register successfully
accessed during the last read/write
operation.
0xE9FF LAST_RWDATA16 R 16 16 U N/A Contains the data from the last successful
16-bit register communication.
0xEA00 CONFIG3 R/W 8 8 U 0x01 Configuration register. See Table 53.
0xEA01 LAST_OP R 8 8 U N/A Indicates the type, read or write, of the
last successful read/write operation.
0xEA02 WTHR R/W 8 8 U 0x03 Threshold used in phase total/
fundamental active power data path.
0xEA03 VARTHR R/W 8 8 U 0x03 Threshold used in phase total/
fundamental reactive power data path.
0xEA04 VATHR R/W 8 8 U 0x03 Threshold used in phase apparent
power data path.
0xEA05 to Reserved 8 8 Reserved. These registers are always 0.
0xEA07
0xEA08 HX R/W 8 8 U 3 Selects an index of the harmonic moni-
tored by the harmonic computations.
0xEA09 HY R/W 8 8 U 5 Selects an index of the harmonic moni-
tored by the harmonic computations.

Rev. C | Page 92 of 107


Data Sheet ADE7880
Bit Length
Bit During Default
Address Register Name R/W1 Length Communication2 Type3 Value4 Description
0xEA0A HZ R/W 8 8 U 7 Selects an index of the harmonic moni-
tored by the harmonic computations.
0xEA0B to Reserved 8 8 Reserved. These registers are always 0.
0xEBFE
0xEBFF Reserved 8 8 This address can be used in manipulating
the SS/HSA pin when SPI is chosen as
the active port. See the Serial Interfaces
section for details.
0xEC00 LPOILVL R/W 8 8 U 0x07 Overcurrent threshold used during
PSM2 mode. See Table 55 in which the
register is detailed.
0xEC01 CONFIG2 R/W 8 8 U 0x00 Configuration register used during
PSM1 mode. See Table 56.

1
R is read, and W is write.
2
32 ZP = 24- or 20-bit signed or unsigned register that is transmitted as a 32-bit word with 8 or 12 MSBs, respectively, padded with 0s. 32 SE = 24-bit signed register that
is transmitted as a 32-bit word sign extended to 32 bits. 16 ZP = 10-bit unsigned register that is transmitted as a 16-bit word with six MSBs padded with 0s.
3
U is unsigned register, and S is signed register in twos complement format.
4
N/A is not applicable.

Table 34. IPEAK Register (Address 0xE500)


Bit Mnemonic Default Value Description
23:0 IPEAKVAL[23:0] 0 These bits contain the peak value determined in the current channel.
24 IPPHASE[0] 0 When this bit is set to 1, Phase A current generated IPEAKVAL[23:0] value.
25 IPPHASE[1] 0 When this bit is set to 1, Phase B current generated IPEAKVAL[23:0] value.
26 IPPHASE[2] 0 When this bit is set to 1, Phase C current generated IPEAKVAL[23:0] value.
31:27 00000 These bits are always 0.

Table 35. VPEAK Register (Address 0xE501)


Bit Mnemonic Default Value Description
23:0 VPEAKVAL[23:0] 0 These bits contain the peak value determined in the voltage channel.
24 VPPHASE[0] 0 When this bit is set to 1, Phase A voltage generated VPEAKVAL[23:0] value.
25 VPPHASE[1] 0 When this bit is set to 1, Phase B voltage generated VPEAKVAL[23:0] value.
26 VPPHASE[2] 0 When this bit is set to 1, Phase C voltage generated VPEAKVAL[23:0] value.
31:27 00000 These bits are always 0.

Table 36. STATUS0 Register (Address 0xE502)


Bit Mnemonic Default Value Description
0 AEHF 0 When this bit is set to 1, it indicates that Bit 30 of any one of the total active energy
registers (AWATTHR, BWATTHR, or CWATTHR) has changed.
1 FAEHF 0 When this bit is set to 1, it indicates that Bit 30 of any one of the fundamental active
energy registers, FWATTHR, BFWATTHR, or CFWATTHR, has changed.
2 Reserved 0 This bit is always 0.
3 FREHF 0 When this bit is set to 1, it indicates that Bit 30 of any one of the fundamental
reactive energy registers, AFVARHR, BFVARHR, or CFVARHR, has changed.
4 VAEHF 0 When this bit is set to 1, it indicates that Bit 30 of any one of the apparent energy
registers (AVAHR, BVAHR, or CVAHR) has changed.
5 LENERGY 0 When this bit is set to 1, in line energy accumulation mode, it indicates the end of an
integration over an integer number of half line cycles set in the LINECYC register.

Rev. C | Page 93 of 107


ADE7880 Data Sheet
Bit Mnemonic Default Value Description
6 REVAPA 0 When this bit is set to 1, it indicates that the Phase A active power identified by Bit 6
(REVAPSEL) in the ACCMODE register (total or fundamental) has changed sign. The
sign itself is indicated in Bit 0 (AWSIGN) of the PHSIGN register (see Table 46).
7 REVAPB 0 When this bit is set to 1, it indicates that the Phase B active power identified by Bit 6
(REVAPSEL) in the ACCMODE register (total or fundamental) has changed sign. The
sign itself is indicated in Bit 1 (BWSIGN) of the PHSIGN register (see Table 46).
8 REVAPC 0 When this bit is set to 1, it indicates that the Phase C active power identified by Bit 6
(REVAPSEL) in the ACCMODE register (total or fundamental) has changed sign. The
sign itself is indicated in Bit 2 (CWSIGN) of the PHSIGN register (see Table 46).
9 REVPSUM1 0 When this bit is set to 1, it indicates that the sum of all phase powers in the CF1 data
path has changed sign. The sign itself is indicated in Bit 3 (SUM1SIGN) of the PHSIGN
register (see Table 46).
10 REVFRPA 0 When this bit is set to 1, it indicates that the Phase A fundamental reactive power
has changed sign. The sign itself is indicated in Bit 4 (AFVARSIGN) of the PHSIGN
register (see Table 46).
11 REVFRPB 0 When this bit is set to 1, it indicates that the Phase B fundamental reactive power
has changed sign. The sign itself is indicated in Bit 5 (BFVARSIGN) of the PHSIGN
register (see Table 46).
12 REVFRPC 0 When this bit is set to 1, it indicates that the Phase C fundamental reactive power
has changed sign. The sign itself is indicated in Bit 6 (CFVARSIGN) of the PHSIGN
register (see Table 46).
13 REVPSUM2 0 When this bit is set to 1, it indicates that the sum of all phase powers in the CF2 data
path has changed sign. The sign itself is indicated in Bit 7 (SUM2SIGN) of the PHSIGN
register (see Table 46).
14 CF1 When this bit is set to 1, it indicates a high-to-low transition has occurred at CF1 pin;
that is, an active low pulse has been generated. The bit is set even if the CF1 output
is disabled by setting Bit 9 (CF1DIS) to 1 in the CFMODE register. The type of power
used at the CF1 pin is determined by Bits[2:0] (CF1SEL[2:0]) in the CFMODE register
(see Table 44).
15 CF2 When this bit is set to 1, it indicates a high-to-low transition has occurred at the CF2
pin; that is, an active low pulse has been generated. The bit is set even if the CF2
output is disabled by setting Bit 10 (CF2DIS) to 1 in the CFMODE register. The type of
power used at the CF2 pin is determined by Bits[5:3] (CF2SEL[2:0]) in the CFMODE
register (see Table 44).
16 CF3 When this bit is set to 1, it indicates a high-to-low transition has occurred at CF3 pin;
that is, an active low pulse has been generated. The bit is set even if the CF3 output
is disabled by setting Bit 11 (CF3DIS) to 1 in the CFMODE register. The type of power
used at the CF3 pin is determined by Bits[8:6] (CF3SEL[2:0]) in the CFMODE register (see
Table 44).
17 DREADY 0 When this bit is set to 1, it indicates that all periodical (at 8 kHz rate) DSP
computations have finished.
18 REVPSUM3 0 When this bit is set to 1, it indicates that the sum of all phase powers in the CF3 data
path has changed sign. The sign itself is indicated in Bit 8 (SUM3SIGN) of the PHSIGN
register (see Table 46).
19 HREADY 0 When this bit is set to 1, it indicates the harmonic block output registers are updated.
If Bit 0 (HRCFG) in the HCONFIG register is cleared to 0, this flag is set to 1 every time
the harmonic block output registers are updated at a rate identified by Bits [7:5] (HRATE)
in the HCONFIG register starting HSTIME (Bits [4:3] in the HCONFIG register) after the
harmonic block setup. If Bit HRCFG is set to 1, the HREADY flag is set to 1 every time
the harmonic block output registers are updated at a rate identified by Bits [7:5] (HRATE)
in the HCONFIG register, starting immediately after the harmonic block setup.
31:18 Reserved 0 0000 0000 0000 Reserved. These bits are always 0.

Rev. C| Page 94 of 107


Data Sheet ADE7880

Table 37. STATUS1 Register (Address 0xE503)


Bit Mnemonic Default Value Description
0 NLOAD 0 When this bit is set to 1, it indicates that at least one phase entered no load condition
determined by the total active power and apparent power. The phase is indicated in
Bits[2:0] (NLPHASE[x]) in the PHNOLOAD register (see Table 41.)
1 FNLOAD 0 When this bit is set to 1, it indicates that at least one phase entered no load condition
based on fundamental active and reactive powers. The phase is indicated in Bits[5:3]
(FNLPHASE[x]) in the PHNOLOAD register (see Table 41).
2 VANLOAD 0 When this bit is set to 1, it indicates that at least one phase entered no load
condition based on apparent power. The phase is indicated in Bits[8:6]
(VANLPHASE[x]) in the PHNOLOAD register (see Table 41).
3 ZXTOVA 0 When this bit is set to 1, it indicates a zero crossing on Phase A voltage is missing.
4 ZXTOVB 0 When this bit is set to 1, it indicates a zero crossing on Phase B voltage is missing.
5 ZXTOVC 0 When this bit is set to 1, it indicates a zero crossing on Phase C voltage is missing.
6 ZXTOIA 0 When this bit is set to 1, it indicates a zero crossing on Phase A current is missing.
7 ZXTOIB 0 When this bit is set to 1, it indicates a zero crossing on Phase B current is missing.
8 ZXTOIC 0 When this bit is set to 1, it indicates a zero crossing on Phase C current is missing.
9 ZXVA 0 When this bit is set to 1, it indicates a zero crossing has been detected on Phase A
voltage.
10 ZXVB 0 When this bit is set to 1, it indicates a zero crossing has been detected on Phase B
voltage.
11 ZXVC 0 When this bit is set to 1, it indicates a zero crossing has been detected on Phase C
voltage.
12 ZXIA 0 When this bit is set to 1, it indicates a zero crossing has been detected on Phase A
current.
13 ZXIB 0 When this bit is set to 1, it indicates a zero crossing has been detected on Phase B
current.
14 ZXIC 0 When this bit is set to 1, it indicates a zero crossing has been detected on Phase C
current.
15 RSTDONE 1 In case of a software reset command, Bit 7 (SWRST) is set to 1 in the CONFIG register,
or a transition from PSM1, PSM2, or PSM3 to PSM0, or a hardware reset, this bit is set
to 1 at the end of the transition process and after all registers change value to
default. The IRQ1 pin goes low to signal this moment because this interrupt cannot
be disabled.
16 SAG 0 When this bit is set to 1, it indicates one of phase voltages entered or exited a sag
state. The phase is indicated by Bits[14:12] (VSPHASE[x]) in the PHSTATUS register
(see Table 40).
17 OI 0 When this bit is set to 1, it indicates an overcurrent event has occurred on one of the
phases indicated by Bits[5:3] (OIPHASE[x]) in the PHSTATUS register (see Table 40).
18 OV 0 When this bit is set to 1, it indicates an overvoltage event has occurred on one of the
phases indicated by Bits[11:9] (OVPHASE[x]) in the PHSTATUS register (see Table 40).
19 SEQERR 0 When this bit is set to 1, it indicates a negative-to-positive zero crossing on Phase A
voltage was not followed by a negative-to-positive zero crossing on Phase B voltage
but by a negative-to-positive zero crossing on Phase C voltage.
20 MISMTCH 0 When this bit is set to 1, it indicates ISUM − INWV > ISUMLVL , where
ISUMLVL is indicated in the ISUMLVL register.
21 Reserved 1 Reserved. This bit is always set to 1.
22 Reserved 0 Reserved. This bit is always set to 0.
23 PKI 0 When this bit is set to 1, it indicates that the period used to detect the peak value in
the current channel has ended. The IPEAK register contains the peak value and the
phase where the peak has been detected (see Table 34).

Rev. C| Page 95 of 107


ADE7880 Data Sheet
Bit Mnemonic Default Value Description
24 PKV 0 When this bit is set to 1, it indicates that the period used to detect the peak value in
the voltage channel has ended. VPEAK register contains the peak value and the
phase where the peak has been detected (see Table 35).
25 CRC 0 When this bit is set to 1, it indicates the ADE7880 has computed a different
checksum relative to the one computed when the Run register was set to 1.
31:26 Reserved 000 0000 Reserved. These bits are always 0.

Table 38. MASK0 Register (Address 0xE50A)


Bit Mnemonic Default Value Description
0 AEHF 0 When this bit is set to 1, it enables an interrupt when Bit 30 of any one of the total
active energy registers (AWATTHR, BWATTHR, or CWATTHR) changes.
1 FAEHF 0 When this bit is set to 1, it enables an interrupt when Bit 30 of any one of the funda-
mental active energy registers (AFWATTHR, BFWATTHR, or CFWATTHR) changes.
2 Reserved 0 This bit does not manage any functionality.
3 FREHF 0 When this bit is set to 1, it enables an interrupt when Bit 30 of any one of the
fundamental reactive energy registers (AFVARHR, BFVARHR, or CFVARHR) changes.
4 VAEHF 0 When this bit is set to 1, it enables an interrupt when Bit 30 of any one of the
apparent energy registers (AVAHR, BVAHR, or CVAHR) changes.
5 LENERGY 0 When this bit is set to 1, in line energy accumulation mode, it enables an interrupt at
the end of an integration over an integer number of half line cycles set in the
LINECYC register.
6 REVAPA 0 When this bit is set to 1, it enables an interrupt when the Phase A active power
identified by Bit 6 (REVAPSEL) in the ACCMODE register (total or fundamental)
changes sign.
7 REVAPB 0 When this bit is set to 1, it enables an interrupt when the Phase B active power
identified by Bit 6 (REVAPSEL) in the ACCMODE register (total or fundamental)
changes sign.
8 REVAPC 0 When this bit is set to 1, it enables an interrupt when the Phase C active power
identified by Bit 6 (REVAPSEL) in the ACCMODE register (total or fundamental)
changes sign.
9 REVPSUM1 0 When this bit is set to 1, it enables an interrupt when the sum of all phase powers in
the CF1 data path changes sign.
10 REVFRPA 0 When this bit is set to 1, it enables an interrupt when the Phase A fundamental
reactive power changes sign.
11 REVFRPB 0 When this bit is set to 1, it enables an interrupt when the Phase B fundamental
reactive power changes sign.
12 REVFRPC 0 When this bit is set to 1, it enables an interrupt when the Phase C fundamental
reactive power changes sign.
13 REVPSUM2 0 When this bit is set to 1, it enables an interrupt when the sum of all phase powers in
the CF2 data path changes sign.
14 CF1 When this bit is set to 1, it enables an interrupt when a high-to-low transition occurs
at the CF1 pin, that is an active low pulse is generated. The interrupt can be enabled
even if the CF1 output is disabled by setting Bit 9 (CF1DIS) to 1 in the CFMODE
register. The type of power used at the CF1 pin is determined by Bits[2:0]
(CF1SEL[2:0]) in the CFMODE register (see Table 44).
15 CF2 When this bit is set to 1, it enables an interrupt when a high-to-low transition occurs
at CF2 pin, that is an active low pulse is generated. The interrupt may be enabled
even if the CF2 output is disabled by setting Bit 10 (CF2DIS) to 1 in the CFMODE
register. The type of power used at the CF2 pin is determined by Bits[5:3] (CF2SEL[2:0])
in the CFMODE register (see Table 44).
16 CF3 When this bit is set to 1, it enables an interrupt when a high to low transition occurs
at CF3 pin, that is an active low pulse is generated. The interrupt may be enabled
even if the CF3 output is disabled by setting Bit 11 (CF3DIS) to 1 in the CFMODE
register. The type of power used at the CF3 pin is determined by Bits[8:6] (CF3SEL[2:0])
in the CFMODE register (see Table 44).
17 DREADY 0 When this bit is set to 1, it enables an interrupt when all periodical (at 8 kHz rate)
DSP computations finish.

Rev. C| Page 96 of 107


Data Sheet ADE7880
Bit Mnemonic Default Value Description
18 REVPSUM3 0 When this bit is set to 1, it enables an interrupt when the sum of all phase powers in
the CF3 data path changes sign.
19 HREADY 0 When this bit is set to 1, it enables an interrupt when the harmonic block output
registers have been updated. If Bit 0 (HRCFG) in HCONFIG register is cleared to 0, the
interrupt is triggered every time the harmonic block output registers are updated at
a rate identified by Bits [7:5] (HRATE) in HCONFIG register starting HSTIME (Bits [4:3]
in HCONFIG register) after the harmonic block setup. If Bit HRCFG is set to 1, the interrupt
is triggered every time the harmonic block output registers are updated at a rate
identified by Bits [7:5] (HRATE) in HCONFIG register starting immediately after the
harmonic block setup.
31:19 Reserved 00 0000 0000 Reserved. These bits do not manage any functionality.
0000

Table 39. MASK1 Register (Address 0xE50B)


Bit Mnemonic Default Value Description
0 NLOAD 0 When this bit is set to 1, it enables an interrupt when at least one phase enters no
load condition determined by the total active power and VNOM based apparent
power.
1 FNLOAD 0 When this bit is set to 1, it enables an interrupt when at least one phase enters no
load condition based on fundamental active and reactive powers.
2 VANLOAD 0 When this bit is set to 1, it enables an interrupt when at least one phase enters no
load condition based on apparent power.
3 ZXTOVA 0 When this bit is set to 1, it enables an interrupt when a zero crossing on Phase A
voltage is missing.
4 ZXTOVB 0 When this bit is set to 1, it enables an interrupt when a zero crossing on Phase B
voltage is missing.
5 ZXTOVC 0 When this bit is set to 1, it enables an interrupt when a zero crossing on Phase C
voltage is missing.
6 ZXTOIA 0 When this bit is set to 1, it enables an interrupt when a zero crossing on Phase A
current is missing.
7 ZXTOIB 0 When this bit is set to 1, it enables an interrupt when a zero crossing on Phase B
current is missing.
8 ZXTOIC 0 When this bit is set to 1, it enables an interrupt when a zero crossing on Phase C
current is missing.
9 ZXVA 0 When this bit is set to 1, it enables an interrupt when a zero crossing is detected on
Phase A voltage.
10 ZXVB 0 When this bit is set to 1, it enables an interrupt when a zero crossing is detected on
Phase B voltage.
11 ZXVC 0 When this bit is set to 1, it enables an interrupt when a zero crossing is detected on
Phase C voltage.
12 ZXIA 0 When this bit is set to 1, it enables an interrupt when a zero crossing is detected on
Phase A current.
13 ZXIB 0 When this bit is set to 1, it enables an interrupt when a zero crossing is detected on
Phase B current.
14 ZXIC 0 When this bit is set to 1, it enables an interrupt when a zero crossing is detected on
Phase C current.
15 RSTDONE 0 Because the RSTDONE interrupt cannot be disabled, this bit does not have any
functionality attached. It can be set to 1 or cleared to 0 without having any effect.
16 SAG 0 When this bit is set to 1, it enables an interrupt when one of the phase voltages
entered or exited a sag state. The phase is indicated by Bits[14:12] (VSPHASE[x]) in
the PHSTATUS register (see Table 40).
17 OI 0 When this bit is set to 1, it enables an interrupt when an overcurrent event occurs
on one of the phases indicated by Bits[5:3] (OIPHASE[x]) in the PHSTATUS register
(see Table 40).
18 OV 0 When this bit is set to 1, it enables an interrupt when an overvoltage event occurs
on one of the phases indicated by Bits[11:9] (OVPHASE[x]) in the PHSTATUS register
(see Table 40).

Rev. C| Page 97 of 107


ADE7880 Data Sheet
Bit Mnemonic Default Value Description
19 SEQERR 0 When this bit is set to 1, it enables an interrupt when a negative-to-positive zero
crossing on Phase A voltage is not followed by a negative-to-positive zero crossing
on Phase B voltage, but by a negative-to-positive zero crossing on Phase C voltage.
20 MISMTCH 0 When this bit is set to 1, it enables an interrupt when ISUM − INWV > ISUMLVL
is greater than the value indicated in ISUMLVL register.
22:21 Reserved 00 Reserved. These bits do not manage any functionality.
23 PKI 0 When this bit is set to 1, it enables an interrupt when the period used to detect the
peak value in the current channel has ended.
24 PKV 0 When this bit is set to 1, it enables an interrupt when the period used to detect the
peak value in the voltage channel has ended.
25 CRC 0 When this bit is set to 1, it enables an interrupt when the latest checksum value is
different from the checksum value computed when Run register was set to 1.
31:26 Reserved 000 0000 Reserved. These bits do not manage any functionality.

Table 40. PHSTATUS Register (Address 0xE600)


Bit Mnemonic Default Value Description
2:0 Reserved 000 Reserved. These bits are always 0.
3 OIPHASE[0] 0 When this bit is set to 1, Phase A current generates Bit 17 (OI) in the STATUS1 register.
4 OIPHASE[1] 0 When this bit is set to 1, Phase B current generates Bit 17 (OI) in the STATUS1 register.
5 OIPHASE[2] 0 When this bit is set to 1, Phase C current generates Bit 17 (OI) in the STATUS1 register.
8:6 Reserved 000 Reserved. These bits are always 0.
9 OVPHASE[0] 0 When this bit is set to 1, Phase A voltage generates Bit 18 (OV) in the STATUS1 register.
10 OVPHASE[1] 0 When this bit is set to 1, Phase B voltage generates Bit 18 (OV) in the STATUS1 register.
11 OVPHASE[2] 0 When this bit is set to 1, Phase C voltage generates Bit 18 (OV) in the STATUS1 register.
12 VSPHASE[0] 0 0: Phase A voltage is above SAGLVL level for SAGCYC half line cycles.
1: Phase A voltage is below SAGLVL level for SAGCYC half line cycles.
When this bit is switches from 0 to 1 or from 1 to 0, the Phase A voltage generates Bit 16
(SAG) in the STATUS1 register.
13 VSPHASE[1] 0 0: Phase B voltage is above SAGLVL level for SAGCYC half line cycles.
1: Phase B voltage is below SAGLVL level for SAGCYC half line cycles.
When this bit is switches from 0 to 1 or from 1 to 0, the Phase B voltage generates Bit 16
(SAG) in the STATUS1 register.
14 VSPHASE[2] 0 0: Phase C voltage is above SAGLVL level for SAGCYC half line cycles
1: Phase C voltage is below SAGLVL level for SAGCYC half line cycles
When this bit is switches from 0 to 1 or from 1 to 0, the Phase C voltage generates Bit 16
(SAG) in the STATUS1 register.
15 Reserved 0 Reserved. This bit is always 0.

Table 41. PHNOLOAD Register (Address 0xE608)


Bit Mnemonic Default Value Description
0 NLPHASE[0] 0 0: Phase A is out of no load condition determined by the Phase A total active power and
apparent power.
1: Phase A is in no load condition determined by phase A total active power and apparent
power. Bit set together with Bit 0 (NLOAD) in the STATUS1 register.
1 NLPHASE[1] 0 0: Phase B is out of no load condition determined by the Phase B total active power and
apparent power.
1: Phase B is in no load condition determined by the Phase B total active power and
apparent power. Bit set together with Bit 0 (NLOAD) in the STATUS1 register.
2 NLPHASE[2] 0 0: Phase C is out of no load condition determined by the Phase C total active power and
apparent power.
1: Phase C is in no load condition determined by the Phase C total active power and
apparent power. Bit set together with Bit 0 (NLOAD) in the STATUS1 register.
3 FNLPHASE[0] 0 0: Phase A is out of no load condition based on fundamental active/reactive powers.
1: Phase A is in no load condition based on fundamental active/reactive powers. This bit is
set together with Bit 1 (FNLOAD) in STATUS1.
Rev. C| Page 98 of 107
Data Sheet ADE7880
Bit Mnemonic Default Value Description
4 FNLPHASE[1] 0 0: Phase B is out of no load condition based on fundamental active/reactive powers.
1: Phase B is in no load condition based on fundamental active/reactive powers. This bit is
set together with Bit 1 (FNLOAD) in STATUS1.
5 FNLPHASE[2] 0 0: Phase C is out of no load condition based on fundamental active/reactive powers.
1: Phase C is in no load condition based on fundamental active/reactive powers. This bit is
set together with Bit 1 (FNLOAD) in STATUS1.
6 VANLPHASE[0] 0 0: Phase A is out of no load condition based on apparent power.
1: Phase A is in no load condition based on apparent power. Bit set together with Bit 2
(VANLOAD) in the STATUS1 register.
7 VANLPHASE[1] 0 0: Phase B is out of no load condition based on apparent power.
1: Phase B is in no load condition based on apparent power. Bit set together with Bit 2
(VANLOAD) in the STATUS1 register.
8 VANLPHASE[2] 0 0: Phase C is out of no load condition based on apparent power.
1: Phase C is in no load condition based on apparent power. Bit set together with Bit 2
(VANLOAD) in the STATUS1 register.
15:9 Reserved 000 0000 Reserved. These bits are always 0.

Table 42. COMPMODE Register (Address 0xE60E)


Bit Mnemonic Default Value Description
0 TERMSEL1[0] 1 Setting all TERMSEL1[2:0] to 1 signifies the sum of all three phases is included in the CF1
output. Phase A is included in the CF1 outputs calculations.
1 TERMSEL1[1] 1 Phase B is included in the CF1 outputs calculations.
2 TERMSEL1[2] 1 Phase C is included in the CF1 outputs calculations.
3 TERMSEL2[0] 1 Setting all TERMSEL2[2:0] to 1 signifies the sum of all three phases is included in the CF2
output. Phase A is included in the CF2 outputs calculations.
4 TERMSEL2[1] 1 Phase B is included in the CF2 outputs calculations.
5 TERMSEL2[2] 1 Phase C is included in the CF2 outputs calculations.
6 TERMSEL3[0] 1 Setting all TERMSEL3[2:0] to 1 signifies the sum of all three phases is included in the CF3
output. Phase A is included in the CF3 outputs calculations.
7 TERMSEL3[1] 1 Phase B is included in the CF3 outputs calculations.
8 TERMSEL3[2] 1 Phase C is included in the CF3 outputs calculations.
10:9 ANGLESEL[1:0] 00 00: the angles between phase voltages and phase currents are measured.
01: the angles between phase voltages are measured.
10: the angles between phase currents are measured.
11: no angles are measured.
11 VNOMAEN 0 When this bit is 0, the apparent power on Phase A is computed regularly.
When this bit is 1, the apparent power on Phase A is computed using the VNOM register instead
of regular measured rms phase voltage. The applied Phase A voltage input is ignored, and all
Phase A rms voltage instances are replaced by the value in the VNOM register.
12 VNOMBEN 0 When this bit is 0, the apparent power on Phase B is computed regularly.
When this bit is 1, the apparent power on Phase B is computed using VNOM register instead of
regular measured rms phase voltage. The applied Phase B voltage input is ignored, and all
Phase B rms voltage instances are replaced by the value in the VNOM register.
13 VNOMCEN 0 When this bit is 0, the apparent power on Phase C is computed regularly.
When this bit is 1, the apparent power on Phase C is computed using VNOM register instead of
regular measured rms phase voltage. The applied Phase C voltage input is ignored, and all
Phase C rms voltage instances are replaced by the value in the VNOM register.
14 SELFREQ 0 When the ADE7880 is connected to networks with fundamental frequencies between 45 Hz
and 55 Hz, clear this bit to 0 (default value). When the ADE7880 is connected to networks with
fundamental frequencies between 55 Hz and 66 Hz, set this bit to 1.
15 Reserved 0 This bit is 0 by default and it does not manage any functionality.

Rev. C| Page 99 of 107


ADE7880 Data Sheet

Table 43. Gain Register (Address 0xE60F)


Bit Mnemonic Default Value Description
2:0 PGA1[2:0] 000 Phase currents gain selection.
000: gain = 1.
001: gain = 2.
010: gain = 4.
011: gain = 8.
100: gain = 16.
101, 110, 111: reserved. When set, the ADE7880 behaves like PGA1[2:0] = 000.
5:3 PGA2[2:0] 000 Neutral current gain selection.
000: gain = 1.
001: gain = 2.
010: gain = 4.
011: gain = 8.
100: gain = 16.
101, 110, 111: reserved. When set, the ADE7880 behaves like PGA2[2:0] = 000.
8:6 PGA3[2:0] 000 Phase voltages gain selection.
000: gain = 1.
001: gain = 2.
010: gain = 4.
011: gain = 8.
100: gain = 16.
101, 110, 111: reserved. When set, the ADE7880 behaves like PGA3[2:0] = 000.
15:9 Reserved 000 0000 Reserved. These bits do not manage any functionality.

Table 44. CFMODE Register (Address 0xE610)


Bit Mnemonic Default Value Description
2:0 CF1SEL[2:0] 000 000: the CF1 frequency is proportional to the sum of total active powers on
each phase identified by Bits[2:0] (TERMSEL1[x]) in the COMPMODE register.
010: the CF1 frequency is proportional to the sum of apparent powers on
each phase identified by Bits[2:0] (TERMSEL1[x]) in the COMPMODE register.
011: the CF1 frequency is proportional to the sum of fundamental active
powers on each phase identified by Bits[2:0] (TERMSEL1[x]) in the
COMPMODE register.
100: the CF1 frequency is proportional to the sum of fundamental reactive
powers on each phase identified by Bits[2:0] (TERMSEL1[x]) in the
COMPMODE register.
001, 101, 110, 111: reserved.
5:3 CF2SEL[2:0] 100 000: the CF2 frequency is proportional to the sum of total active powers on
each phase identified by Bits[5:3] (TERMSEL2[x]) in the COMPMODE register.
010: the CF2 frequency is proportional to the sum of apparent powers on
each phase identified by Bits[5:3] (TERMSEL2[x]) in the COMPMODE register.
011: the CF2 frequency is proportional to the sum of fundamental active
powers on each phase identified by Bits[5:3] (TERMSEL2[x]) in the
COMPMODE register.
100: the CF2 frequency is proportional to the sum of fundamental reactive
powers on each phase identified by Bits[5:3] (TERMSEL2[x]) in the
COMPMODE register.
001, 101,110,111: reserved.

Rev. C| Page 100 of 107


Data Sheet ADE7880
Bit Mnemonic Default Value Description
8:6 CF3SEL[2:0] 010 000: the CF3 frequency is proportional to the sum of total active powers on
each phase identified by Bits[8:6] (TERMSEL3[x]) in the COMPMODE register.
010: the CF3 frequency is proportional to the sum of apparent powers on
each phase identified by Bits[8:6] (TERMSEL3[x]) in the COMPMODE register.
011: CF3 frequency is proportional to the sum of fundamental active powers
on each phase identified by Bits[8:6] (TERMSEL3[x]) in the COMPMODE
register.
100: CF3 frequency is proportional to the sum of fundamental reactive
powers on each phase identified by Bits[8:6] (TERMSEL3[x]) in the
COMPMODE register.
001, 101,110,111: reserved.
9 CF1DIS 1 When this bit is set to 1, the CF1 output is disabled. The respective digital to
frequency converter remains enabled even if CF1DIS = 1.
When this bit is set to 0, the CF1 output is enabled.
10 CF2DIS 1 When this bit is set to 1, the CF2 output is disabled. The respective digital to
frequency converter remains enabled even if CF2DIS = 1.
When this bit is set to 0, the CF2 output is enabled.
11 CF3DIS 1 When this bit is set to 1, the CF3 output is disabled. The respective digital to
frequency converter remains enabled even if CF3DIS = 1.
When this bit is set to 0, the CF3 output is enabled.
12 CF1LATCH 0 When this bit is set to 1, the content of the corresponding energy registers is
latched when a CF1 pulse is generated. See the Synchronizing Energy
Registers with CFx Outputs section.
13 CF2LATCH 0 When this bit is set to 1, the content of the corresponding energy registers is
latched when a CF2 pulse is generated. See the Synchronizing Energy
Registers with CFx Outputs section.
14 CF3LATCH 0 When this bit is set to 1, the content of the corresponding energy registers is
latched when a CF3 pulse is generated. See the Synchronizing Energy
Registers with CFx Outputs section.
15 Reserved 0 Reserved. This bit does not manage any functionality.

Table 45. APHCAL, BPHCAL, CPHCAL Registers (Address 0xE614, Address 0xE615, Address 0xE616)
Bit Mnemonic Default Value Description
9:0 PHCALVAL 0000000000 If the current leads the voltage, these bits can vary between 0 and 383.
If the current lags the voltage, these bits can vary between 512 and 575.
If the PHCALVAL bits are set with numbers between 384 and 511, the compensation behaves
like PHCALVAL set between 256 and 383.
If the PHCALVAL bits are set with numbers between 576 and 1023, the compensation
behaves like PHCALVAL bits set between 384 and 511.
15:10 Reserved 000000 Reserved. These bits do not manage any functionality.

Table 46. PHSIGN Register (Address 0xE617)


Bit Mnemonic Default Value Description
0 AWSIGN 0 0: if the active power identified by Bit 6 (REVAPSEL) in the ACCMODE register (total of
fundamental) on Phase A is positive.
1: if the active power identified by Bit 6 (REVAPSEL) in the ACCMODE register (total of
fundamental) on Phase A is negative.
1 BWSIGN 0 0: if the active power identified by Bit 6 (REVAPSEL) in the ACCMODE register (total of
fundamental) on Phase B is positive.
1: if the active power identified by Bit 6 (REVAPSEL) in the ACCMODE register (total of
fundamental) on Phase B is negative.
2 CWSIGN 0 0: if the active power identified by Bit 6 (REVAPSEL) in the ACCMODE register (total of
fundamental) on Phase C is positive.
1: if the active power identified by Bit 6 (REVAPSEL) bit in the ACCMODE register (total of
fundamental) on Phase C is negative.

Rev. C| Page 101 of 107


ADE7880 Data Sheet
Bit Mnemonic Default Value Description
3 SUM1SIGN 0 0: if the sum of all phase powers in the CF1 data path is positive.
1: if the sum of all phase powers in the CF1 data path is negative. Phase powers in the CF1
data path are identified by Bits[2:0] (TERMSEL1[x]) of the COMPMODE register and by
Bits[2:0] (CF1SEL[x]) of the CFMODE register.
4 AFVARSIGN 0 0: if the fundamental reactive power on Phase A is positive.
1: if the fundamental reactive power on Phase A is negative.
5 BFVARSIGN 0 0: if the fundamental reactive power on Phase B is positive.
1: if the fundamental reactive power on Phase B is negative.
6 CFVARSIGN 0 0: if the fundamental reactive power on Phase C is positive.
1: if the fundamental reactive power on Phase C is negative.
7 SUM2SIGN 0 0: if the sum of all phase powers in the CF2 data path is positive.
1: if the sum of all phase powers in the CF2 data path is negative. Phase powers in the CF2
data path are identified by Bits[5:3] (TERMSEL2[x]) of the COMPMODE register and by
Bits[5:3] (CF2SEL[x]) of the CFMODE register.
8 SUM3SIGN 0 0: if the sum of all phase powers in the CF3 data path is positive.
1: if the sum of all phase powers in the CF3 data path is negative. Phase powers in the CF3
data path are identified by Bits[8:6] (TERMSEL3[x]) of the COMPMODE register and by
Bits[8:6] (CF3SEL[x]) of the CFMODE register.
15:9 Reserved 000 0000 Reserved. These bits are always 0.

Table 47. CONFIG Register (Address 0xE618)


Bit Mnemonic Default Value Description
0 INTEN 0 This bit manages the integrators in the phase current channels.
If INTEN = 0, then the integrators in the phase current channels are always disabled.
If INTEN = 1, then the integrators in the phase currents channels are enabled.
The neutral current channel integrator is managed by Bit 3 (ININTEN ) of CONFIG3 register.
1 Reserved 1 Reserved. Maintain this bit at 1 for proper operation.
2 CF2DIS 0 When this bit is cleared to 0, the CF2 functionality is chosen at CF2/HREADY pin.
When this bit is set to 1, the HREADY functionality is chosen at CF2/HREADY pin.
3 SWAP 0 When this bit is set to 1, the voltage channel outputs are swapped with the current channel
outputs. Thus, the current channel information is present in the voltage channel registers
and vice versa.
4 MOD1SHORT 0 When this bit is set to 1, the voltage channel ADCs behave as if the voltage inputs were put
to ground.
5 MOD2SHORT 0 When this bit is set to 1, the current channel ADCs behave as if the voltage inputs were put
to ground.
6 HSDCEN 0 When this bit is set to 1, the HSDC serial port is enabled and HSCLK functionality is chosen at
CF3/HSCLK pin.
When this bit is cleared to 0, HSDC is disabled and CF3 functionality is chosen at CF3/HSCLK pin.
7 SWRST 0 When this bit is set to 1, a software reset is initiated.
9:8 VTOIA[1:0] 00 These bits decide what phase voltage is considered together with Phase A current in the
power path.
00 = Phase A voltage.
01 = Phase B voltage.
10 = Phase C voltage.
11 = reserved. When set, the ADE7880 behaves like VTOIA[1:0] = 00.
11:10 VTOIB[1:0] 00 These bits decide what phase voltage is considered together with Phase B current in the
power path.
00 = Phase B voltage.
01 = Phase C voltage.
10 = Phase A voltage.
11 = reserved. When set, the ADE7880 behaves like VTOIB[1:0] = 00.

Rev. C| Page 102 of 107


Data Sheet ADE7880
Bit Mnemonic Default Value Description
13:12 VTOIC[1:0] 00 These bits decide what phase voltage is considered together with Phase C current in the
power path.
00 = Phase C voltage.
01 = Phase A voltage.
10 = Phase B voltage.
11 = reserved. When set, the ADE7880 behaves like VTOIC[1:0] = 00.
15:14 Reserved Reserved.

Table 48. MMODE Register (Address 0xE700)


Bit Mnemonic Default Value Description
1:0 Reserved Reserved.
2 PEAKSEL[0] 1 PEAKSEL[2:0] bits can all be set to 1 simultaneously to allow peak detection on all three phases
simultaneously. If more than one PEAKSEL[2:0] bits are set to 1, then the peak measurement
period indicated in the PEAKCYC register decreases accordingly because zero crossings are
detected on more than one phase.
When this bit is set to 1, Phase A is selected for the voltage and current peak registers.
3 PEAKSEL[1] 1 When this bit is set to 1, Phase B is selected for the voltage and current peak registers.
4 PEAKSEL[2] 1 When this bit is set to 1, Phase C is selected for the voltage and current peak registers.
7:5 Reserved 000 Reserved. These bits do not manage any functionality.

Table 49. ACCMODE Register (Address 0xE701)


Bit Mnemonic Default Value Description
1:0 WATTACC[1:0] 00 00: signed accumulation mode of the total and fundamental active powers. The total and
fundamental active energy registers and the CFx pulses are generated in the same way.
01: positive only accumulation mode of the total and fundamental active powers. In this
mode, although the total and fundamental active energy registers are accumulated in
positive only mode, the CFx pulses are generated in signed accumulation mode.
10: reserved. When set, the device behaves like WATTACC[1:0] = 00.
11: absolute accumulation mode of the total and fundamental active powers. The total and
fundamental energy registers and the CFx pulses are generated in the same way.
3:2 VARACC[1:0] 00 00: signed accumulation of the fundamental reactive powers. The fundamental reactive
energy registers and the CFx pulses are generated in the same way.
01: reserved. When set, the device behaves like VARACC[1:0] = 00.
10: the fundamental reactive power is accumulated, depending on the sign of the
fundamental active power: if the active power is positive, the reactive power is accumulated
as is, whereas if the active power is negative, the reactive power is accumulated with reversed
sign. In this mode, although the total and fundamental reactive energy registers are
accumulated in absolute mode, the CFx pulses are generated in signed accumulation mode.
11: absolute accumulation mode of the fundamental reactive powers. In this mode,
although the total and fundamental reactive energy registers are accumulated in absolute
mode, the CFx pulses are generated in signed accumulation mode.
5:4 CONSEL[1:0] 00 These bits select the inputs to the energy accumulation registers. IA’, IB’, and IC’ are IA, IB, and
IC shifted respectively by −90°. See Table 50.
00: 3-phase four wires with three voltage sensors.
01: 3-phase three wires delta connection. In this mode, BVRMS register contains the rms
value of VA-VC.
10: 3-phase four wires with two voltage sensors.
11: 3-phase four wires delta connection.

Rev. C| Page 103 of 107


ADE7880 Data Sheet
Bit Mnemonic Default Value Description
6 REVAPSEL 0 0: The total active power on each phase is used to trigger a bit in the STATUS0 register as
follows: on Phase A triggers Bit 6 (REVAPA), on Phase B triggers Bit 7 (REVAPB), and on
Phase C triggers Bit 8 (REVAPC).
1: The fundamental active power on each phase is used to trigger a bit in the STATUS0
register as follows: on Phase A triggers Bit 6 (REVAPA), on Phase B triggers Bit 7 (REVAPB),
and on Phase C triggers Bit 8 (REVAPC).
7 Reserved 1 Reserved. This bit does not manage any functionality.

Table 50. CONSEL[1:0] Bits in Energy Registers1


Energy Registers CONSEL[1:0] = 00 CONSEL[1:0] = 01 CONSEL[1:0] = 10 CONSEL[1:0] = 11
AWATTHR, AFWATTHR VA × IA VA × IA VA × IA VA × IA
BWATTHR, BFWATTHR VB × IB VB = VA – VC VB = −VA – VC VB = −VA
VB ×IB1 VB × IB VB × IB
CWATTHR, CFWATTHR VC × IC VC × IC VC × IC VC × IC
AVARHR, AFVARHR VA × IA’ VA × IA’ VA × IA’ VA × IA’
BVARHR, BFVARHR VB × IB’ VB = VA – VC VB = −VA – VC VB = −VA
VB × IB’1 VB × IB’ VB × IB’
CVARHR, CFVARHR VC ×IC’ VC × IC’ VC × IC’ VC × IC’
AVAHR VA rms × IA rms VA rms × IA rms VA rms × IA rms VA rms × IA rms
BVAHR VB rms × IB rms VB rms × IB rms VB rms × IB rms VB rms × IB rms
VB = VA – VC1 VB = −VA − VC VB = −VA
CVAHR VC rms × IC rms VC rms × IC rms VC rms × IC rms VC rms × IC rms
1
In a 3-phase three wire case (CONSEL[1:0] = 01), the ADE7880 computes the rms value of the line voltage between Phase A and and Phase C and stores the result into
BVRMS register (see the Voltage RMS in 3-Phase, 3-Wire Delta Configurations section). Consequently, the ADE7880 computes powers associated with Phase B that do
not have physical meaning. To avoid any errors in the frequency output pins CF1, CF2 or CF3 related to the powers associated with Phase B, disable the contribution of
Phase B to the energy to frequency converters by setting bits TERMSEL1[1], or TERMSEL2[1], or TERMSEL3[1] to 0 in the COMPMODE register (see the Energy-to-
Frequency Conversion section).

Table 51. LCYCMODE Register (Address 0xE702)


Bit Mnemonic Default Value Description
0 LWATT 0 0: the watt-hour accumulation registers (AWATTHR, BWATTHR, CWATTHR, AFWATTHR,
BFWATTHR, and CFWATTHR) are placed in regular accumulation mode.
1: the watt-hour accumulation registers (AWATTHR, BWATTHR, CWATTHR, AFWATTHR,
BFWATTHR, and CFWATTHR) are placed into line cycle accumulation mode.
1 LVAR 0 0: the var-hour accumulation registers (AFVARHR, BFVARHR, and CFVARHR) are placed in regular
accumulation mode.
1: the var-hour accumulation registers (AFVARHR, BFVARHR, and CFVARHR) are placed into
line-cycle accumulation mode.
2 LVA 0 0: the VA-hour accumulation registers (AVAHR, BVAHR, and CVAHR) are placed in regular
accumulation mode.
1: the VA-hour accumulation registers (AVAHR, BVAHR, and CVAHR) are placed into line-cycle
accumulation mode.
3 ZXSEL[0] 1 0: Phase A is not selected for zero-crossings counts in the line cycle accumulation mode.
1: Phase A is selected for zero-crossings counts in the line cycle accumulation mode. If more
than one phase is selected for zero-crossing detection, the accumulation time is shortened
accordingly.
4 ZXSEL[1] 1 0: Phase B is not selected for zero-crossings counts in the line cycle accumulation mode.
1: Phase B is selected for zero-crossings counts in the line cycle accumulation mode.
5 ZXSEL[2] 1 0: Phase C is not selected for zero-crossings counts in the line cycle accumulation mode.
1: Phase C is selected for zero-crossings counts in the line cycle accumulation mode.
6 RSTREAD 1 0: read-with-reset of all energy registers is disabled. Clear this bit to 0 when Bits[2:0] (LWATT,
LVAR, and LVA) are set to 1.
1: enables read-with-reset of all xWATTHR, xVARHR, xVAHR, xFWATTHR, and xFVARHR registers.
This means a read of those registers resets them to 0.

Rev. C| Page 104 of 107


Data Sheet ADE7880
Bit Mnemonic Default Value Description
7 PFMODE 0 0: power factor calculation uses instantaneous values of various phase powers used in its expression.
1: power factor calculation uses phase energies values calculated using line cycle accumulation
mode. Bits LWATT and LVA in LCYCMODE register must be enabled for the power factors to be
computed correctly. The update rate of the power factor measurement in this case is the integral
number of half line cycles that are programmed into the LINECYC register.

Table 52. HSDC_CFG Register (Address 0xE706)


Bit Mnemonic Default Value Description
0 HCLK 0 0: HSCLK is 8 MHz.
1: HSCLK is 4 MHz.
1 HSIZE 0 0: HSDC transmits the 32-bit registers in 32-bit packages, most significant bit first.
1: HSDC transmits the 32-bit registers in 8-bit packages, most significant bit first.
2 HGAP 0 0: no gap is introduced between packages.
1: a gap of seven HCLK cycles is introduced between packages.
4:3 HXFER[1:0] 00 00 = HSDC transmits sixteen 32-bit words in the following order: IAWV, VAWV, IBWV, VBWV, ICWV,
VCWV, INWV, AVA, BVA, CVA, AWATT, BWATT, CWATT, AFVAR, BFVAR, and CFVAR.
01 = HSDC transmits seven instantaneous values of currents and voltages: IAWV, VAWV,
IBWV, VBWV, ICWV, VCWV, and INWV.
10 = HSDC transmits nine instantaneous values of phase powers: AVA, BVA, CVA, AWATT,
BWATT, CWATT, AFVAR, BFVAR, and CFVAR.
11 = reserved. If set, the ADE7880 behaves as if HXFER[1:0] = 00.
5 HSAPOL 0 0: SS/has output pin is active low.
1: SS/HSA output pin is active high.
7:6 Reserved 00 Reserved. These bits do not manage any functionality.

Table 53. CONFIG3 Register (Address 0xEA00)


Bit Mnemonic Default Value Description
0 HPFEN 1 When HPFEN = 1, then all high-pass filters in voltage and current channels are enabled.
When HPFEN = 0, then all high-pass filters are disabled.
1 LPFSEL 0 When LPFSEL = 0, the LPF in the total active power data path introduces a settling time of
650 ms.
When LPFSEL = 1, the LPF in the total active power data path introduces a settling time of
1300 ms.
2 INSEL 0 When INSEL = 0, the register NIRMS contains the rms value of the neutral current.
When INSEL = 1, the register NIRMS contains the rms value of ISUM, the instantaneous value
of the sum of all 3 phase currents, IA, IB, and IC.
3 ININTEN 0 This bit manages the integrator in the neutral current channel.
If ININTEN = 0, then the integrator in the neutral current channel is disabled.
If ININTDIS = 1, then the integrator in the neutral channel is enabled.
The integrators in the phase currents channels are managed by Bit 0 (INTEN) of CONFIG register.
4 Reserved 0 Reserved. Maintain this bit at 0 for proper operation.
7:5 Reserved 000 Reserved. These bits do not manage any functionality.

Rev. C| Page 105 of 107


ADE7880 Data Sheet

Table 54. HCONFIG Register (Address 0xE900)


Bit Mnemonic Default Value Description
0 HRCFG 0 When this bit is cleared to 0, the Bit 19 (HREADY) interrupt in MASK0 register is triggered
after a certain delay period. The delay period is set by bits HSTIME. The update frequency
after the settling time is determined by bits HRATE.
When this bit is set to 1, the Bit 19 (HREADY) interrupt in MASK0 register is triggered starting
immediately after the harmonic calculations block has been setup. The update frequency is
determined by Bits HRATE.
2:1 HPHASE 00 These bits decide what phase or neutral is analyzed by the harmonic calculations block.
00 = Phase A voltage and current.
01 = Phase B voltage and current.
10 = Phase C voltage and current.
11 = neutral current.
4:3 HSTIME 01 These bits decide the delay period after which, if HRCFG bit is set to 0, Bit 19 (HREADY) in the
STATUS0 register is set to 1.
00 = 500 ms.
01 = 750 ms.
10 = 1000 ms.
11 = 1250 ms.
7:5 HRATE 000 These bits manage the update rate of the harmonic registers.
000 = 125 µs (8 kHz rate).
001 = 250 µs (4 kHz rate).
010 = 1 ms (1 kHz rate).
011 = 16 ms (62.5 Hz rate).
100 = 128 ms (7.8125 Hz rate).
101 = 512 ms (1.953125 Hz rate).
110 = 1.024 sec (0.9765625 Hz rate).
111 = harmonic calculations disabled.
9:8 ACTPHSEL 00 These bits select the phase voltage used as time base for harmonic calculations.
00 = Phase A voltage.
01 = Phase B voltage.
10 = Phase C voltage.
11 = reserved. If selected, phase C voltage is used.
15:10 Reserved 0 Reserved. These bits do not manage any functionality.

Table 55. LPOILVL Register (Address 0xEC00)


Bit Mnemonic Default Value Description
2:0 LPOIL[2:0] 111 Threshold is put at a value corresponding to full scale multiplied by LPOIL/8.
7:3 LPLINE[4:0] 00000 The measurement period is (LPLINE + 1)/50 seconds.

Table 56. CONFIG2 Register (Address 0xEC01)


Bit Mnemonic Default Value Description
0 EXTREFEN 0 When this bit is 0, it signifies that the internal voltage reference is used in the ADCs.
When this bit is 1, an external reference is connected to the Pin 17 REFIN/OUT.
1 I2C_LOCK 0 When this bit is 0, the SS/HSA pin can be toggled three times to activate the SPI port. If I2C is the
active serial port, this bit must be set to 1 to lock it in. From this moment on, toggling of the SS/HSA
pin and an eventual switch into using the SPI port is no longer possible. If SPI is the active serial port,
any write to CONFIG2 register locks the port. From this moment on, a switch into using I2C port is
no longer possible. Once locked, the serial port choice is maintained when the ADE7880 changes
PSMx power modes.
7:2 Reserved 0 Reserved. These bits do not manage any functionality.

Rev. C| Page 106 of 107


Data Sheet ADE7880

OUTLINE DIMENSIONS
6.10 0.30
6.00 SQ 0.23
PIN 1 5.90 0.18
INDICATOR PIN 1
31 40
INDICATOR
30 1

0.50
BSC 4.45
EXPOSED
PAD 4.30 SQ
4.25

21 10
11
0.45 20
0.25 MIN
TOP VIEW 0.40 BOTTOM VIEW
0.35 FOR PROPER CONNECTION OF
0.80 THE EXPOSED PAD, REFER TO
0.75 THE PIN CONFIGURATION AND
0.05 MAX FUNCTION DESCRIPTIONS
0.70 SECTION OF THIS DATA SHEET.
0.02 NOM
COPLANARITY
0.08
SEATING 0.20 REF
PLANE

05-06-2011-A
COMPLIANT TO JEDEC STANDARDS MO-220-WJJD.

Figure 118. 40-Lead Lead Frame Chip Scale Package [LFCSP_WQ]


6 mm × 6 mm Body, Very Very Thin Quad
(CP-40-10)
Dimensions shown in millimeters

ORDERING GUIDE
Model 1 Temperature Range Package Description Package Option
ADE7880ACPZ −40°C to +85°C 40-Lead LFCSP_WQ CP-40-10
ADE7880ACPZ-RL −40°C to +85°C 40-Lead LFCSP_WQ, 13” Tape and Reel CP-40-10
EVAL-ADE7880EBZ Evaluation Board
1
Z = RoHS Compliant Part.

I2C refers to a communications protocol originally developed by Philips Semiconductors (now NXP Semiconductors).

©2011–2014 Analog Devices, Inc. All rights reserved. Trademarks and


registered trademarks are the property of their respective owners.
D10193-0-12/14(C)

Rev. C| Page 107 of 107

You might also like