ADE7759ARSZ [ROCHESTER]
SPECIALTY ANALOG CIRCUIT, PDSO20, SSOP-20;型号: | ADE7759ARSZ |
厂家: | Rochester Electronics |
描述: | SPECIALTY ANALOG CIRCUIT, PDSO20, SSOP-20 光电二极管 |
文件: | 总37页 (文件大小:1441K) |
中文: | 中文翻译 | 下载: | 下载PDF数据表文档文件 |
Active Energy Metering IC with
di/dt Sensor Interface
a
ADE7759*
FEATURES
High Accuracy, Supports IEC 687/1036
can be switched off if the ADE7759 is used with conventional
current sensors.
On-Chip Digital Integrator Allows Direct Interface with
Current Sensors with di/dt Output Such as Rogowski Coil
Less Than 0.1% Error over a Dynamic Range of 1000 to 1
On-Chip User-Programmable Threshold for Line Voltage
SAG Detection and PSU Supervisory
The ADE7759 contains a sampled waveform register and an
active energy register capable of holding at least 11.53 seconds
of accumulated power at full ac load. Data is read from the
ADE7759 via the serial interface. The ADE7759 also provides a
pulse output (CF) with frequency that is proportional to the
active power.
Supplies Sampled Waveform Data and Active Energy
(40 Bits)
In addition to active power information, the ADE7759 also
provides various system calibration features, i.e., channel offset
correction, phase calibration, and power offset correction. The
part also incorporates a detection circuit for short duration
voltage drop (SAG). The voltage threshold and the duration (in
number of half-line cycles) of the drop are user programmable.
An open-drain logic output (SAG) goes active low when a sag
event occurs.
Digital Power, Phase, and Input DC Offset Calibration
On-Chip Temperature Sensor (Typical 1 LSB/ꢀC Resolution)
SPI Compatible Serial Interface
Pulse Output with Programmable Frequency
Interrupt Request Pin (IRQ) and IRQ Status Register
Proprietary ADCs and DSP provide High Accuracy over
Large Variations in Environmental Conditions and Time
Reference 2.4 V ꢁ 8% (20 ppm/ꢀC Typical) with External
Overdrive Capability
A zero crossing output (ZX) produces an output that is synchro-
nized to the zero crossing point of the line voltage. This output
can be used to extract timing or frequency information from the
line. The signal is also used internally to the chip in the line
cycle energy accumulation mode; i.e., the number of half-line
cycles in which the energy accumulation occurs can be con-
trolled. Line cycle energy accumulation enables a faster and
more precise energy accumulation and is especially useful dur-
ing calibration. This signal is also useful for synchronization of
relay switching with a voltage zero crossing.
Single 5 V Supply, Low Power Consumption (25 mW
Typical)
GENERAL DESCRIPTION
The ADE7759 is an accurate active power and energy measure-
ment IC with a serial interface and a pulse output. The ADE7759
incorporates two second-order Σ-∆ ADCs, a digital integrator
(on CH1), reference circuitry, temperature sensor, and all the
signal processing required to perform active power and energy
measurement.
The interrupt request output is an open drain, active low logic
output. The interrupt status register indicates the nature of the
interrupt, and the interrupt enable register controls which event
produces an output on the IRQ pin. The ADE7759 is available
in a 20-lead SSOP package.
An on-chip digital integrator allows direct interface to di/dt
current sensors such as a Rogowski coil. The digital integrator
eliminates the need for an external analog integrator and pro-
vides excellent long-term stability and precise phase matching
between the current and the voltage channels. The integrator
FUNCTIONAL BLOCK DIAGRAM
AV
DV
DD
DGND
DD
RESET
ADE7759
ZX
INTEGRATOR
dt
MULTIPLIER
MULTIPLIER
V1P
V1N
ADC
LPF2
SAG
HPF1
APGAIN[11:0]
TEMP
SENSOR
APOS[15:0]
DFC
PHCAL[7:0]
V2P
V2N
ꢂ
ADC
CFNUM[11:0]
CFDEN[11:0]
CF
4kꢃ
REGISTERS AND
SERIAL INTERFACE
2.4V
REFERENCE
LPF1
AGND
REF
DIN DOUT SCLK
CLKIN CLKOUT
CS IRQ
IN/OUT
*U.S. Patents 5,745,323; 5,760,617; 5,862,069; 5,872,469; others pending.
REV. A
Information furnished by Analog Devices is believed to be accurate and
reliable. However, no responsibility is assumed by Analog Devices for its
use, norforanyinfringementsofpatentsorotherrightsofthirdpartiesthat
may result from its use. No license is granted by implication or otherwise
under any patent or patent rights of Analog Devices. Trademarks and
registered trademarks are the property of their respective companies.
One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A.
Tel: 781/329-4700
Fax: 781/326-8703
www.analog.com
© 2002 Analog Devices, Inc. All rights reserved.
ADE7759
TABLE OF CONTENTS
CHANNEL 1 ADC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Channel 1 ADC Gain Adjust . . . . . . . . . . . . . . . . . . . . . . 18
Channel 1 Sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
CHANNEL 1 AND CHANNEL 2 WAVEFORM
SAMPLING MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . 1
FUNCTIONAL BLOCK DIAGRAM . . . . . . . . . . . . . . . . . 1
SPECIFICATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
TIMING CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . 5
ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . 6
ORDERING GUIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
PIN CONFIGURATION . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
PIN FUNCTION DESCRIPTIONS . . . . . . . . . . . . . . . . . . 7
TERMINOLOGY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
MEASUREMENT ERROR . . . . . . . . . . . . . . . . . . . . . . . . . 8
PHASE ERROR BETWEEN CHANNELS . . . . . . . . . . . . . 8
POWER SUPPLY REJECTION . . . . . . . . . . . . . . . . . . . . . . 8
ADC OFFSET ERROR . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
GAIN ERROR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
GAIN ERROR MATCH . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
TYPICAL PERFORMANCE CHARACTERISTICS (TPC) . . 9
TEST CIRCUITS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
ANALOG INPUTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
CHANNEL 2 ADC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Channel 2 Sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
PHASE COMPENSATION . . . . . . . . . . . . . . . . . . . . . . . . 19
ACTIVE POWER CALCULATION . . . . . . . . . . . . . . . . . 20
ENERGY CALCULATION . . . . . . . . . . . . . . . . . . . . . . . . 21
Integration Time under Steady Load . . . . . . . . . . . . . . . . 22
POWER OFFSET CALIBRATION . . . . . . . . . . . . . . . . . . 22
ENERGY-TO-FREQUENCY CONVERSION . . . . . . . . . 22
LINE CYCLE ENERGY ACCUMULATION MODE . . . 24
CALIBRATING THE ENERGY METER . . . . . . . . . . . . . 24
Calculating the Average Active Power . . . . . . . . . . . . . . . 24
Calibrating the Frequency at CF . . . . . . . . . . . . . . . . . . . 25
Energy Meter Display . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
CLKIN FREQUENCY . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
SUSPENDING THE ADE7759 FUNCTIONALITY . . . . 26
APPLICATION INFORMATION . . . . . . . . . . . . . . . . . . . 26
SERIAL INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Serial Write Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Serial Read Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
CHECKSUM REGISTER . . . . . . . . . . . . . . . . . . . . . . . . . 28
REGISTER DESCRIPTIONS . . . . . . . . . . . . . . . . . . . . . . 30
Communications Register . . . . . . . . . . . . . . . . . . . . . . . . 30
Mode Register (06H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Interrupt Status Register (04H) . . . . . . . . . . . . . . . . . . . . 32
Reset Interrupt Status Register (05H) . . . . . . . . . . . . . . . 32
CH1OS Register (08H) . . . . . . . . . . . . . . . . . . . . . . . . . . 33
OUTLINE DIMENSIONS . . . . . . . . . . . . . . . . . . . . . . . . . 34
REVISION HISTORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
di/dt CURRENT SENSOR AND DIGITAL
INTEGRATOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
ZERO CROSSING DETECTION . . . . . . . . . . . . . . . . . . . 13
LINE VOLTAGE SAG DETECTION . . . . . . . . . . . . . . . . 14
Sag Level Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
POWER SUPPLY MONITOR . . . . . . . . . . . . . . . . . . . . . . 14
INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Using the ADE7759 Interrupts with an MCU . . . . . . . . . 15
Interrupt Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
TEMPERATURE MEASUREMENT . . . . . . . . . . . . . . . . 16
ANALOG-TO-DIGITAL CONVERSION . . . . . . . . . . . . . 16
Antialias Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
ADC Transfer Function . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Reference Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
–2–
REV. A
ADE7759
(AVDD = DVDD = 5 V ꢀ 5%, AGND = DGND = 0 V, On-Chip Reference, CLKIN = 3.579545 MHz XTAL,
TMIN to TMAX = –40ꢁC to +85ꢁC, unless otherwise noted.)
SPECIFICATIONS1
Parameter
Spec
Unit
Test Conditions/Comments
ENERGY MEASUREMENT ACCURACY
Measurement Bandwidth
14
kHz
CLKIN = 3.579545 MHz
Channel 2 = 300 mV rms/60 Hz, Gain = 1
Measurement Error1 on Channel 1
Channel 1 Range = 0.5 V Full-Scale
Gain = 1
Gain = 2
Gain = 4
Gain = 8
0.1
0.1
0.1
0.1
0.2
% typ
% typ
% typ
% typ
% typ
Over a Dynamic Range 1000 to 1
Over a Dynamic Range 1000 to 1
Over a Dynamic Range 1000 to 1
Over a Dynamic Range 1000 to 1
Over a Dynamic Range 1000 to 1
Gain = 16
Channel 1 Range = 0.25 V Full-Scale
Gain = 1
Gain = 2
Gain = 4
Gain = 8
0.1
0.1
0.1
0.2
0.2
% typ
% typ
% typ
% typ
% typ
Over a Dynamic Range 1000 to 1
Over a Dynamic Range 1000 to 1
Over a Dynamic Range 1000 to 1
Over a Dynamic Range 1000 to 1
Over a Dynamic Range 1000 to 1
Gain = 16
Channel 1 Range = 0.125 V Full-Scale
Gain = 1
Gain = 2
Gain = 4
Gain = 8
0.1
0.1
0.2
0.2
0.4
% typ
% typ
% typ
% typ
% typ
Over a Dynamic Range 1000 to 1
Over a Dynamic Range 1000 to 1
Over a Dynamic Range 1000 to 1
Over a Dynamic Range 1000 to 1
Gain = 16
Over a Dynamic Range 1000 to 1
Phase Error1 between Channels
AC Power Supply Rejection1
Output Frequency Variation (CF)
±0.05 ∞ max
Line Frequency = 45 Hz to 65 Hz, HPF on
AVDD = DVDD = 5 V + 175 mV rms/120 Hz
Channel 1 = 20 mV rms/60 Hz, Gain = 16, Range = 0.5 V
Channel 2 = 300 mV rms/60 Hz, Gain = 1
AVDD = DVDD = 5 V ± 250 mV dc
0.2
% typ
% typ
DC Power Supply Rejection1
Output Frequency Variation (CF)
±0.3
Channel 1 = 20 mV rms/60 Hz, Gain = 16, Range = 0.5 V
Channel 2 = 300 mV rms/60 Hz, Gain = 1
ANALOG INPUTS3
Maximum Signal Levels
Input Impedance (DC)
Bandwidth
±0.5
390
14
V max
kW min
kHz
V1P, V1N, V2N, and V2P to AGND
CLKIN/256, CLKIN = 3.579545 MHz
External 2.5 V Reference, Gain = 1 on Channels 1 and 2
Gain Error1, 3
Channel 1
Range = 0.5 V Full-Scale
Range = 0.25 V Full-Scale
Range = 0.125 V Full-Scale
Channel 2
±4
±4
±4
±4
% typ
% typ
% typ
% typ
V1 = 0.5 V dc
V1 = 0.25 V dc
V1 = 0.125 V dc
V2 = 0.5 V dc
Gain Error Match1
Channel 1
External 2.5 V Reference
Range = 0.5 V Full-Scale
Range = 0.25 V Full-Scale
Range = 0.125 V Full-Scale
Channel 2
±0.3
±0.3
±0.3
±0.3
% typ
% typ
% typ
% typ
Gain = 1, 2, 4, 8, 16
Gain = 1, 2, 4, 8, 16
Gain = 1, 2, 4, 8, 16
Gain = 1, 2, 4, 8, 16
Offset Error1
Channel 1
Channel 2
±20
±20
mV max
mV max
Gain = 1
Gain = 1
WAVEFORM SAMPLING
Channel 1
Sampling CLKIN/128, 3.579545 MHz/128 = 27.9 kSPS
See Channel 1 Sampling
Signal-to-Noise plus Distortion
Bandwidth (–3 dB)
Channel 2
62
14
dB typ
kHz
150 mV rms/60 Hz, Range = 0.5 V, Gain = 2
CLKIN = 3.579545 MHz
See Channel 2 Sampling
Signal-to-Noise plus Distortion
Bandwidth (–3 dB)
52
156
dB typ
Hz
150 mV rms/60 Hz, Gain = 2
CLKIN = 3.579545 MHz
–3–
REV. A
(continued)
ADE7759–SPECIFICATIONS
Parameter
Spec
Unit
Test Conditions/Comments
REFERENCE INPUT
REFIN/OUT Input Voltage Range
2.6
2.2
10
V max
V min
pF max
2.4 V + 8%
2.4 V – 8%
Input Capacitance
ON-CHIP REFERENCE
Reference Error
Current Source
Output Impedance
Temperature Coefficient
Nominal 2.4 V at REFIN/OUT Pin
±200
10
4
mV max
mA max
kW min
20
ppm/∞C typ
CLKIN
Note All Specifications CLKIN of 3.579545 MHz
Input Clock Frequency
4
1
MHz max
MHz min
LOGIC INPUTS
RESET, DIN, SCLK, CLKIN, and CS
Input High Voltage, VINH
Input Low Voltage, VINL
Input Current, IIN
2.4
0.8
±3
10
V min
DVDD = 5 V ± 5%
V max
mA max
pF max
DVDD = 5 V ± 5%
Typically 10 nA, VIN = 0 V to DVDD
Input Capacitance, CIN
LOGIC OUTPUTS
SAG and IRQ
Output High Voltage, VOH
Output Low Voltage, VOL
ZX and DOUT
Open Drain Outputs, 10 kW pull-up resistor
ISOURCE = 5 mA
ISINK = 0.8 mA
4
0.4
V min
V max
Output High Voltage, VOH
Output Low Voltage, VOL
CF
4
0.4
V min
V max
ISOURCE = 5 mA
ISINK = 0.8 mA
Output High Voltage, VOH
Output Low Voltage, VOL
4
1
V min
V max
ISOURCE = 5 mA
ISINK = 7 mA
POWER SUPPLY
AVDD
For Specified Performance
5 V – 5%
5 V + 5%
5 V – 5%
5 V + 5%
4.75
5.25
4.75
5.25
3
V min
V max
V min
V max
mA max
mA max
DVDD
AIDD
DIDD
Typically 2.0 mA
Typically 3.0 mA
4
NOTES
1See Terminology section for explanation of specifications.
2See plots in Typical Performance Characteristics.
3See Analog Inputs section.
Specifications subject to change without notice.
–4–
REV. A
ADE7759
(AV = DV = 5 V ꢀ 5%, AGND = DGND = 0 V, On-Chip Reference, CLKIN = 3.579545 MHz
XTAL, TMIN to TMAX = –40ꢁC to +85ꢁC, unless otherwise noted.)
DD
DD
TIMING CHARACTERISTICS1, 2
Parameter
A, B Versions
Unit
Test Conditions/Comments
Write Timing
t1
t2
t3
t4
t5
t6
t7
t8
20
150
150
10
5
6.4
4
ns (min)
ns (min)
ns (min)
ns (min)
ns (min)
ms (min)
ms (min)
ns (min)
CS Falling Edge to First SCLK Falling Edge
SCLK Logic High Pulsewidth
SCLK Logic Low Pulsewidth
Valid Data Setup Time before Falling Edge of SCLK
Data Hold Time after SCLK Falling Edge
Minimum Time between the End of Data Byte Transfers
Minimum Time between Byte Transfers during a Serial Write
CS Hold Time after SCLK Falling Edge
100
Read Timing
t9
4
ms (min)
Minimum Time between Read Command (i.e., a Write to Communications
Register) and Data Read
t10
t11
4
30
ms (min)
Minimum Time between Data Byte Transfers during a Multibyte Read
Data Access Time after SCLK Rising Edge following a Write to the Communica-
tions Register
3
ns (min)
4
t12
100
10
100
ns (max)
ns (min)
ns (max)
ns (min)
Bus Relinquish Time after Falling Edge of SCLK
4
t13
Bus Relinquish Time after Rising Edge of CS
10
NOTES
1Sample tested during initial release and after any redesign or process change that may affect this parameter. All input signals are specified with tr = tf = 5 ns
(10% to 90%) and timed from a voltage level of 1.6 V.
2See Figures 2 and 3 and Serial Interface section of this data sheet.
3Measured with the load circuit in Figure 1 and defined as the time required for the output to cross 0.8 V or 2.4 V.
4Derived from the measured time taken by the data outputs to change 0.5 V when loaded with the circuit in Figure 1. The measured number is then extrapolated back
to remove the effects of charging or discharging the 50 pF capacitor. This means that the time quoted in the timing characteristics is the true bus relinquish time of
the part and is independent of the bus loading.
I
200ꢂA
OL
TO
OUTPUT
PIN
2.1V
C
L
50pF
1.6mA
I
OH
Figure 1. Load Circuit for Timing Specifications
t8
CS
t2
t6
t1
t3
t7
t7
SCLK
t4
t5
DIN
1
0
0
A4
A3
A2 A1
A0
DB7
DB0
DB7
DB0
COMMAND BYTE
MOST SIGNIFICANT BYTE
LEAST SIGNIFICANT BYTE
Figure 2. Serial Write Timing
CS
t1
t13
t9
t10
SCLK
DIN
0
0
0
A4
A3
A2 A1
A0
t12
t11
t11
DOUT
DB0
DB7
DB0
DB7
COMMAND BYTE
MOST SIGNIFICANT BYTE
LEAST SIGNIFICANT BYTE
Figure 3. Serial Read Timing
–5–
REV. A
ADE7759
ABSOLUTE MAXIMUM RATINGS*
(TA = 25∞C unless otherwise noted)
ORDERING GUIDE
Package Option*
Model
AVDD to AGND . . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
DVDD to DGND . . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
DVDD to AVDD . . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +0.3 V
Analog Input Voltage to AGND
ADE7759ARS
RS-20
RS-20
ADE7759ARSRL
EVAL-ADE7759EB
ADE7759 Evaluation Board
V1P, V1N, V2P, and V2N . . . . . . . . . . . . . . . . –6 V to +6 V
*RS = Shrink Small Outline Package in tubes; RSRL = Shrink Small
Outline Package in reel.
Reference Input Voltage to AGND . . –0.3 V to AVDD + 0.3 V
Digital Input Voltage to DGND . . . . –0.3 V to DVDD + 0.3 V
Digital Output Voltage to DGND . . . –0.3 V to DVDD + 0.3 V
Operating Temperature Range
Industrial (A, B Versions) . . . . . . . . . . . . . –40∞C to +85∞C
Storage Temperature Range . . . . . . . . . . . . –65∞C to +150∞C
Junction Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . 150∞C
20-Lead SSOP, Power Dissipation . . . . . . . . . . . . . . . 450 mW
q
JA Thermal Impedance . . . . . . . . . . . . . . . . . . . . . 112∞C/W
Lead Temperature, Soldering
Vapor Phase (60 sec) . . . . . . . . . . . . . . . . . . . . . . . 215∞C
Infrared (15 sec) . . . . . . . . . . . . . . . . . . . . . . . . . . 220∞C
*Stresses above those listed under Absolute Maximum Ratings may cause perma-
nent damage to the device. This is a stress rating only; functional operation of the
device at these or any other conditions above those listed in the operational
sections of this specification is not implied. Exposure to absolute maximum rating
conditions for extended periods may affect device reliability.
CAUTION
ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily
accumulate on the human body and test equipment and can discharge without detection. Although
the ADE7759 features proprietary ESD protection circuitry, permanent damage may occur on
devices subjected to high energy electrostatic discharges. Therefore, proper ESD precautions are
recommended to avoid performance degradation or loss of functionality.
WARNING!
ESD SENSITIVE DEVICE
–6–
REV. A
ADE7759
PIN CONFIGURATION
1
2
20
19
18
17
16
15
14
13
12
RESET
DIN
DV
AV
DOUT
SCLK
CS
DD
DD
3
4
V1P
V1N
5
ADE7759
CLKOUT
CLKIN
IRQ
TOP VIEW
6
V2N
(Not to Scale)
7
V2P
8
AGND
SAG
ZX
9
REF
IN/OUT
10
DGND
11 CF
PIN FUNCTION DESCRIPTIONS
Pin No.
Mnemonic
Description
1
RESET
Reset Pin for the ADE7759. A logic low on this pin will hold the ADCs and digital circuitry
(including the serial interface) in a reset condition.
2
3
DVDD
AVDD
Digital Power Supply. This pin provides the supply voltage for the digital circuitry in the ADE7759.
The supply voltage should be maintained at 5 V ± 5% for specified operation. This pin should be
decoupled to DGND with a 10 mF capacitor in parallel with a ceramic 100 nF capacitor.
Analog Power Supply. This pin provides the supply voltage for the analog circuitry in the ADE7759.
The supply should be maintained at 5 V ± 5% for specified operation. Every effort should be made
to minimize power supply ripple and noise at this pin by the use of proper decoupling method.
This pin should be decoupled to AGND with a 10 mF capacitor in parallel with a ceramic 100 nF
capacitor.
4, 5
V1P, V1N
Analog Inputs for Channel 1. This channel is intended for use with the di/dt current transducers
such as Rogowski coil, or other current sensors such as shunt or current transformer (CT). These
inputs are fully differential voltage inputs with maximum differential input signal levels of ±0.5 V,
±0.25 V, and ± 0.125 V, depending on the full-scale selection—see Analog Inputs section.
Channel 1 also has a PGA with gain selections of 1, 2, 4, 8, or 16. The maximum signal level at these
pins with respect to AGND is ±0.5 V. Both inputs have internal ESD protection circuitry. In addi-
tion, an overvoltage of ±6 V can be sustained on these inputs without risk of permanent damage.
6, 7
V2N, V2P
AGND
Analog Inputs for Channel 2. This channel is intended for use with the voltage transducer. These inputs
are fully differential voltage inputs with a maximum differential signal level of ±0.5 V. Channel 2
also has a PGA with gain selections of 1, 2, 4, 8, or 16. The maximum signal level at these pins
with respect to AGND is ±0.5 V. Both inputs have internal ESD protection circuitry, and an over-
voltage of ±6 V can be sustained on these inputs without risk of permanent damage.
This pin provides the ground reference for the analog circuitry in the ADE7759, i.e., ADCs and
reference. This pin should be tied to the analog ground plane or the quietest ground reference in
the system. This quiet ground reference should be used for all analog circuitry, e.g., antialiasing
filters, current and voltage transducers. To keep ground noise around the ADE7759 to a minimum,
the quiet ground plane should be connected to the digital ground plane at only one point. It is
acceptable to place the entire device on the analog ground plane—see Application Information section.
8
9
REFIN/OUT
DGND
This pin provides access to the on-chip voltage reference. The on-chip reference has a nominal
value of 2.4 V ± 8% and a typical temperature coefficient of 20 ppm/∞C. An external reference
source may be connected at this pin. In either case, this pin should be decoupled to AGND with
a 1 mF capacitor in parallel with a 100 nF capacitor.
This provides the ground reference for the digital circuitry in the ADE7759, i.e., multiplier, filters,
and frequency output (CF). Because the digital return currents in the ADE7759 are small, it is
acceptable to connect this pin to the analog ground plane of the system—see Application Information
section. However, high bus capacitance on the DOUT pin may result in noisy digital current that
affects performance.
10
11
CF
Calibration Frequency Logic Output. The CF logic output gives Active Power information. This
output is intended to be used for operational and calibration purposes. The full-scale output fre-
quency can be adjusted by writing to the APGAIN, CFNUM, and CFDEN registers—see Energy
to Frequency Conversion section.
–7–
REV. A
ADE7759
PIN FUNCTION DESCRIPTIONS (continued)
Description
Pin No.
Mnemonic
12
ZX
Voltage Waveform (Channel 2) Zero Crossing Output. This output toggles logic high and low at
the zero crossing of the differential signal on Channel 2—see Zero Crossing Detection section.
13
14
15
SAG
This open-drain logic output goes active low when either no zero crossings are detected or a low
voltage threshold (Channel 2) is crossed for a specified duration—see Line Voltage Sag Detec-
tion section.
IRQ
Interrupt Request Output. This is an active low open-drain logic output. Maskable interrupts
include active energy register rollover, active energy register at half-full, zero crossing, SAG, and
arrivals of new waveform samples—see Interrupts section.
CLKIN
Master Clock for ADCs and Digital Signal Processing. An external clock can be provided at this
logic input. Alternatively, a parallel resonant AT crystal can be connected across CLKIN and
CLKOUT to provide a clock source for the ADE7759. The clock frequency for specified opera-
tion is 3.579545 MHz. Ceramic load capacitors of between 10 pF and 30 pF should be used with
the gate oscillator circuit. Refer to crystal manufacturer’s data sheet for load capacitance requirements.
16
CLKOUT
A crystal can be connected across this pin and CLKIN as described above to provide a clock source
for the ADE7759. The CLKOUT pin can drive one CMOS load when either an external clock is
supplied at CLKIN or a crystal is being used.
17
18
CS
Chip Select. Part of the 4-wire SPI serial interface. This active low logic input allows the ADE7759 to
share the serial bus with several other devices—see Serial Interface section.
SCLK
Serial Clock Input for the Synchronous serial interface. All serial data transfers are synchronized to
this clock—see Serial Interface section. The SCLK has a Schmitt-trigger input for use with a clock
source that has a slow edge transition time, e.g., opto-isolator outputs.
19
20
DOUT
DIN
Data Output for the Serial Interface. Data is shifted out at this pin on the rising edge of SCLK.
This logic output is normally in a high impedance state unless it is driving data onto the serial data
bus—see Serial Interface section.
Data Input for the Serial Interface. Data is shifted in at this pin on the falling edge of SCLK—see
Serial Interface section.
TERMINOLOGY
nominal supplies (5 V) is taken. A second reading is obtained
with the same input signal levels when the supplies are varied ±5%.
Any error introduced is again expressed as a percentage of reading.
MEASUREMENT ERROR
The error associated with the energy measurement made by the
ADE7759 is defined by the following formula:
ADC OFFSET ERROR
This refers to the dc offset associated with the analog inputs to
the ADCs. It means that with the analog inputs connected to
AGND, the ADCs still see a dc analog input signal. The magni-
tude of the offset depends on the gain and input range selection—see
Typical Performance Characteristics. However, when HPF1 is
switched on, the offset is removed from Channel 1 (current) and
the power calculation is not affected by this offset. The offsets
may be removed by performing an offset calibration—see Analog
Inputs section.
Percentage Error =
Energy registered by the ADE7759 –True Energy
True Energy
PHASE ERROR BETWEEN CHANNELS
The digital integrator and the HPF1 (High-Pass Filter) in
Channel 1 have nonideal phase response. To offset this phase
response and equalize the phase response between channels, two
phase correction networks are placed in Channel 1: one for the
digital integrator and the other for the HPF1. Each phase cor-
rection network corrects the phase response of the corresponding
component and ensures a phase match between Channel 1
(current) and Channel 2 (voltage) to within ±0.1∞ over a range
of 45 Hz to 65 Hz and ±0.2∞ over a range 40 Hz to 1 kHz.
GAIN ERROR
The gain error in the ADE7759 ADCs is defined as the difference
between the measured ADC output code (minus the offset)
and the ideal output code—see Channel 1 ADC and Channel
2 ADC. It is measured for each of the input ranges on Channel
1 (0.5 V, 0.25 V, and 0.125 V). The difference is expressed as a
percentage of the ideal code.
POWER SUPPLY REJECTION
This quantifies the ADE7759 measurement error as a percent-
age of reading when the power supplies are varied.
GAIN ERROR MATCH
The Gain Error Match is defined as the gain error (minus the
offset) obtained when switching between a gain of 1 (for each of
the input ranges) and a gain of 2, 4, 8, or 16. It is expressed as a
percentage of the output ADC code obtained under a gain of 1.
This gives the gain error observed when the gain selection is
changed from 1 to 2, 4, 8, or 16.
For the ac PSR measurement, a reading at nominal supplies
(5 V) is taken. A second reading is obtained with the same input
signal levels when an ac (175 mV rms/120 Hz) signal is intro-
duced onto the supplies. Any error introduced by this ac signal
is expressed as a percentage of reading—see Measurement Error
definition above. For the dc PSR measurement a reading at
–8–
REV. A
Typical Performance Characteristics–ADE7759
0.5
0.4
0.5
FULL SCALE = 0.5V
0.4
GAIN = 1
INTEGRATOR OFF
INTERNAL REFERENCE
–40ꢀC, PF = 1
0.3
0.2
0.3
+85ꢀC, PF = 1
+85ꢀC, PF = 0.5
0.2
0.1
–40ꢀC, PF = 0.5
0.1
0.0
0.0
–0.1
–0.2
–0.3
–0.4
–0.5
–0.1
–0.2
–0.3
–0.4
–0.5
+25ꢀC, PF = 1
+25ꢀC, PF = 0.5
+25ꢀC, PF = 1
FULL SCALE = 0.5V
GAIN = 1
INTEGRATOR OFF
INTERNAL REFERENCE
0.01
0.1
1
10
100
100
100
0.01
0.1
1
10
100
CURRENT – A
CURRENT – A
TPC 1. Error as a % of Reading
TPC 4. Error as a % of Reading
0.5
0.4
0.5
0.4
FULL SCALE = 0.5V
GAIN = 1
INTEGRATOR OFF
EXTERNAL REFERENCE
–40ꢀC, PF = 1
+25ꢀC, PF = 1
–40ꢀC, PF = 0.5
0.3
0.2
0.3
0.2
+25ꢀC, PF = 1
0.1
0.1
0.0
0.0
–0.1
–0.2
–0.3
–0.4
–0.5
–0.1
–0.2
–0.3
–0.4
–0.5
+25ꢀC, PF = 0.5
+85ꢀC, PF = 1
+85ꢀC, PF = 0.5
FULL SCALE = 0.5V
GAIN = 1
INTEGRATOR OFF
EXTERNAL REFERENCE
0.01
0.1
1
10
100
0.01
0.1
1
10
CURRENT – A
CURRENT – A
TPC 2. Error as a % of Reading
TPC 5. Error as a % of Reading
0.5
0.4
0.5
0.4
+85ꢀC, PF = 0.5
–40ꢀC, PF = 1
0.3
0.2
0.3
0.2
–40ꢀC, PF = 0.5
+25ꢀC, PF = 1
0.1
0.1
+85ꢀC, PF = 1
0.0
0.0
–0.1
–0.2
–0.3
–0.4
–0.5
–0.1
–0.2
–0.3
–0.4
–0.5
+25ꢀC, PF = 1
FULL SCALE = 0.5V
GAIN = 4
INTEGRATOR OFF
INTERNAL REFERENCE
FULL SCALE = 0.5V
GAIN = 4
INTEGRATOR OFF
+25ꢀC, PF = 0.5
INTERNAL REFERENCE
0.01
0.1
1
10
100
0.01
0.1
1
10
CURRENT – A
CURRENT – A
TPC 3. Error as a % of Reading
TPC 6. Error as a % of Reading
–9–
REV. A
ADE7759
0.5
0.5
0.4
FULL SCALE = 0.5V
GAIN = 4
0.4
+85ꢀC, PF = 0.5
INTEGRATOR OFF
EXTERNAL REFERENCE
0.3
0.2
0.3
0.2
–40ꢀC, PF = 1
+25ꢀC, PF = 1
+25ꢀC, PF = 1
0.1
0.1
0.0
0.0
–40ꢀC, PF = 0.5
–0.1
–0.2
–0.1
–0.2
–0.3
–0.4
–0.5
+85ꢀC, PF = 1
+25ꢀC, PF = 0.5
FULL SCALE = 0.5V
GAIN = 4
INTEGRATOR OFF
EXTERNAL REFERENCE
–0.3
–0.4
–0.5
0.01
0.1
1
10
100
0.01
0.1
1
10
100
CURRENT – A
CURRENT – A
TPC 7. Error as a % of Reading
TPC 10. Error as a % of Reading
1.5
1.3
1.1
0.9
0.7
0.5
0.4
FULL SCALE = 0.5V
GAIN = 4
INTEGRATOR ON
INTERNAL REFERENCE
0.3
0.2
–40ꢀC, PF = 1
+25ꢀC, PF = 1
0.1
–40ꢀC, PF = 0.5
0.5
0.3
0.0
+85ꢀC, PF = 0.5
+25ꢀC, PF = 1
–0.1
–0.2
–0.3
–0.4
–0.5
+85ꢀC, PF = 1
0.1
FULL SCALE = 0.5V
GAIN = 4
INTEGRATOR ON
–0.1
–0.3
–0.5
+25ꢀC, PF = 0.5
INTERNAL REFERENCE
0.01
0.1
1
10
100
0.01
0.1
1
10
100
CURRENT – A
CURRENT – A
TPC 8. Error as a % of Reading
TPC 11. Error as a % of Reading
0.5
0.4
1.5
1.3
1.1
0.9
0.7
FULL SCALE = 0.5V
GAIN = 4
INTEGRATOR ON
FULL SCALE = 0.5V
GAIN = 4
INTEGRATOR ON
EXTERNAL REFERENCE
0.3
0.2
EXTERNAL REFERENCE
–40ꢀC, PF = 1
+85ꢀC, PF = 0.5
+25ꢀC, PF = 1
0.1
0.0
0.5
0.3
–40ꢀC, PF = 0.5
–0.1
–0.2
+25ꢀC, PF = 1
0.1
+85ꢀC, PF = 1
–0.3
–0.4
–0.5
–0.1
–0.3
–0.5
+25ꢀC, PF = 0.5
0.01
0.1
1
10
100
0.01
0.1
1
10
100
CURRENT – A
CURRENT – A
TPC 9. Error as a % of Reading
TPC 12. Error as a % of Reading
–10–
REV. A
ADE7759
Test Circuits
V
V
DD
DD
I
100nF
100nF
RESET
DD
10ꢄF
10ꢄF
100nF
AV
100nF
RESET
DD
10ꢄF
10ꢄF
I
di/dt CURRENT
SENSOR
AV
DV
DV
DD
DD
DIN
DIN
1kꢃ
100ꢃ 1kꢃ
33nF 33nF
100ꢃ 1kꢃ
V1P
V1P
TO SPI BUS
(USED ONLY FOR
CALIBRATION)
33nF
DOUT
SCLK
CS
TO SPI BUS
(USED ONLY FOR
CALIBRATION)
DOUT
SCLK
CS
RB
1kꢃ
V1N
V1N
U1
U1
33nF
33nF
33nF
ADE7759
ADE7759
CLKOUT
CLKOUT
Y1
22pF
22pF
Y1
V2N
V2N
3.58MHz
3.58MHz
1kꢃ 33nF
600kꢃ
1kꢃ
33nF
33nF
CLKIN
CLKIN
22pF
22pF
600kꢃ
1kꢃ
V2P
V2P
IRQ
SAG
ZX
IRQ
SAG
ZX
33nF
110V
1kꢃ
110V
NOT CONNECTED
NOT CONNECTED
REF
REF
IN/OUT
IN/OUT
U3
CF
100nF
U3
10ꢄF
CF
100nF
10ꢄF
AGND DGND
AGND DGND
TO
FREQUENCY
COUNTER
TO
FREQUENCY
COUNTER
CT TURN RATIO = 1800:1
CHANNEL 2 GAIN = 1
CHANNEL 1 GAIN = 4
CHANNEL 2 GAIN = 1
GAIN (CH1)
RB
1
4
10ꢃ
2.5ꢃ
PS2501-1
PS2501-1
Test Circuit 1. Performance Curve (Integrator OFF)
Test Circuit 2. Performance Curve (Integrator ON)
ANALOG INPUTS
In addition to the PGA, Channel 1 also has a full-scale input
range selection for the ADC. The ADC analog input range
selection is also made using the gain register—see Figure 5. As
mentioned previously the maximum differential input voltage is
0.5 V. However, by using Bits 3 and 4 in the gain register, the
maximum ADC input voltage can be set to 0.5 V, 0.25 V, or
0.125 V. This is achieved by adjusting the ADC reference—see
Reference Circuit section. Table I summarizes the maximum
differential input signal level on Channel 1 for the various ADC
range and gain selections.
The ADE7759 has two fully differential voltage input channels.
The maximum differential input voltage for input pairs V1P/V1N
and V2P/V2N are 0.5 V. In addition, the maximum signal
level on analog inputs for V1P/V1N and V2P/V2N are 0.5 V
with respect to AGND.
Each analog input channel has a PGA (Programmable Gain
Amplifier) with possible gain selections of 1, 2, 4, 8, and 16. The
gain selections are made by writing to the gain register—see
Figure 5. Bits 0 to 2 select the gain for the PGA in Channel 1 and
the gain selection for the PGA in Channel 2 is made via Bits 5
to 7. Figure 4 shows how a gain selection for Channel 1
is made using the gain register.
Table I. Maximum Input Signal Levels for Channel 1
Max Signal
Channel 1
ADC Input Range Selection
0.5 V
0.25 V
0.125 V
GAIN[7:0]
0.5 V
0.25 V
Gain = 1
Gain = 2
Gain = 4
Gain = 8
Gain = 16
Gain = 1
Gain = 2
Gain = 4
Gain = 8
Gain = 16
0.125 V
0.0625 V
0.0313 V
0.0156 V
0.00781 V
Gain = 1
Gain = 2
Gain = 4
Gain = 8
Gain = 16
GAIN (K)
SELECTION
V1P
V
IN
K ꢅ V
IN
GAIN REGISTER*
CHANNEL 1 AND CHANNEL 2 PGA CONTROL
V1N
7
6
5
4
3
2
1
0
+
0
0
0
0
0
0
0
0
ADDR:
0AH
OFFSET ADJUST
(ꢁ50mV)
PGA 2 GAIN SELECT
000 = ꢅ1
PGA 1 GAIN SELECT
000 = ꢅ1
001 = ꢅ2
001 = ꢅ2
010 = ꢅ4
010 = ꢅ4
CH1OS[7:0]
011 = ꢅ8
011 = ꢅ8
BIT 0 to 5: SIGN MAGNITUDE CODED OFFSET CORRECTION
BIT 6: NOT USED
BIT 7: DIGITAL INTEGRATOR (ON = 1, OFF = 0; DEFAULT ON)
100 = ꢅ16
100 = ꢅ16
CHANNEL 1 FULL-SCALE SELECT
00 = 0.5V
01 = 0.25V
10 = 0.125V
*REGISTER CONTENTS
SHOW POWER-ON DEFAULTS
Figure 4. PGA in Channel 1
Figure 5. Analog Gain Register
REV. A
–11–
ADE7759
CH1OS[5:0]
It is also possible to adjust offset errors on Channel 1 and
Channel 2 by writing to the offset correction registers (CH1OS
and CH2OS, respectively). These registers allow channel
offsets in the range 24 mV to 50 mV (depending on the
gain setting) to be removed. Note that it is not necessary to
perform an offset correction in an energy measurement applica-
tion if HPF1 Channel 1 is switched on. Figure 6 shows the
effect of offsets on the real power calculation; an offset on
Channel 1 and Channel 2 will contribute a dc component
after multiplication. Since this dc component is extracted by
LPF2 to generate the active (real) power information, the
offsets will have contributed an error to the active power
calculation. This problem is easily avoided by enabling HPF1
in Channel 1. By removing the offset from at least one channel,
no error component is generated at dc by the multiplication.
Error terms at cos(ω t) are removed by LPF2 and by integra-
tion of the active power signal in the active energy register
(AENERGY[39:0])—see Energy Calculation section.
SIGN + 5 BITS
01,1111b
1Fh
00h
0mV
–50mV
+50mV
OFFSET
ADJUST
11,1111b
SIGN + 5 BITS
3Fh
Figure 7. Channel Offset Correction Range (Gain = 1)
di/dt CURRENT SENSOR AND DIGITAL INTEGRATOR
The di/dt sensor detects changes in magnetic field caused by ac
current. Figure 8 shows the principle of a di/dt current sensor.
DC COMPONENT (INCLUDING ERROR TERM)
IS EXTRACTED BY THE LPF FOR REAL
POWER CALCULATION
MAGNETIC FIELD CREATED BY CURRENT
(DIRECTLY PROPORTIONALTO CURRENT)
V
ꢅ I
OS
OS
V ꢅ I
2
EMF (ELECTROMOTIVE FORCE)
+
I
ꢅ V
ꢅ I
OS
INDUCED BY CHANGES IN
–
MAGNETIC FLUX DENSITY (di/dt)
V
OS
ꢆ
2ꢆ
0
Figure 8. Principle of a di/dt Current Sensor
Figure 6. Effect of Channel Offsets on the Real
Power Calculation
The flux density of a magnetic field induced by a current is directly
proportional to the magnitude of the current. The changes in the
magnetic flux density passing through a conductor loop generate
an electromotive force (EMF) between the two ends of the loop.
The EMF is a voltage signal that is proportional to the di/dt of
the current. The voltage output from the di/dt current sensor
is determined by the mutual inductance between the current-
carrying conductor and the di/dt sensor. Figure 9 shows that
the mutual inductance produces a di/dt signal at the output
of the sensor.
The contents of the offset correction registers are 6-bit, sign and
magnitude coded. The weighting of the LSB size depends on
the gain setting, i.e., 1, 2, 4, 8, or 16. Table II shows the
correctable offset span for each of the gain settings and the LSB
weight (mV) for the offset correction registers. The maximum
value that can be written to the offset correction registers is 31
decimal—see Figure 7.
Table II. Offset Correction Range
MUTUAL INDUCTANCE M
Gain
Correctable Span
LSB Size
1
2
4
8
50 mV
37 mV
30 mV
26 mV
24 mV
1.61 mV/LSB
1.19 mV/LSB
0.97 mV/LSB
0.84 mV/LSB
0.77 mV/LSB
+
di(t)
dt
i(t)
v = M ꢅ
–
16
Figure 9. Mutual Inductance Between the di/dt
Sensor and the Current Carrying Conductor
Figure 7 shows the relationship between the offset correction
register contents and the offset (mV) on the analog inputs for a
gain setting of one. To perform an offset adjustment, the analog
inputs should be first connected to AGND, and there should be
no signal on either Channel 1 or Channel 2. A read from
Channel 1 or Channel 2 using the waveform register will give an
indication of the offset in the channel. This offset can be
canceled by writing an equal but opposite offset value to the
relevant offset register. The offset correction can be confirmed
by performing another read. Note that when adjusting the offset of
Channel 1, the digital integrator and the HPF1 should be disabled.
The current signal needs to be recovered from the di/dt signal
before it can be used for active power calculation. An integrator
is therefore necessary to restore the signal to its original form.
The ADE7759 has a built-in digital integrator to recover the
current signal from the di/dt sensor. The digital integrator on
Channel 1 is switched on by default when the ADE7759 is
powered up. Setting the MSB of the CH1OS register to 0 will
turn off the integrator. Figures 10 to 13 show the magnitude
and phase response of the digital integrator.
–12–
REV. A
ADE7759
30
20
–89.980
–89.985
–89.990
–89.995
–90.000
–90.005
–90.010
10
0
–10
–20
–30
–40
–50
–60
–90.015
–90.020
1
2
3
4
10
40
45
50
55
60
65
70
10
10
10
FREQUENCY – Hz
FREQUENCY – Hz
Figure 10. Gain Response of the Digital Integrator
Figure 13. Phase Response of the Digital Integrator
(40 Hz to 70 Hz)
–88.0
–88.5
Note that the integrator has a –20 dB/dec attenuation and
approximately –90° phase shift. When combined with a di/dt
sensor, the resulting magnitude and phase response should be a
flat gain over the frequency band of interest. However, the di/dt
sensor has a 20 dB/dec gain associated with it, and generates
significant high frequency noise. A more effective antialiasing
filter is needed to avoid noise due to aliasing—see Antialias
Filter section.
–89.0
–89.5
–90.0
–90.5
When the digital integrator is switched off, the ADE7759 can be
used directly with a conventional current sensor such as current
transformer (CT) or a low resistance current shunt.
–91.0
–91.5
–92.0
ZERO CROSSING DETECTION
1
2
3
4
10
10
10
10
FREQUENCY – Hz
The ADE7759 has a zero crossing detection circuit on Channel 2.
This zero crossing is used to produce an external zero cross
signal (ZX), and it is also used in the calibration mode—see
Energy Calibration section. The zero crossing signal is also used
to initiate a temperature measurement on the ADE7759—see
Temperature Measurement section. Figure 14 shows how the
zero cross signal is generated from the output of LPF1.
Figure 11. Phase Response of the Digital Integrator
0
–1
–2
–3
–4
–5
–6
ꢅ1, ꢅ2, ꢅ4,
ꢅ8, ꢅ16
REFERENCE
V2P
V2N
{GAIN [7:5]}
–63%TO +63% FS
1
TO
PGA2
ADC 2
V2
MULTIPLIER
ZERO
CROSS
ZX
LPF1
f–3dB = 156Hz
21.04ꢀ @ 60Hz
40
45
50
55
60
65
70
1.0
0.93
FREQUENCY – Hz
ZX
Figure 12. Gain Response of the Digital Integrator
(40 Hz to 70 Hz)
LPF1
V2
Figure 14. Zero Cross Detection on Channel 2
REV. A
–13–
ADE7759
The ZX signal will go logic high on a positive going zero crossing
and logic low on a negative going zero crossing on Channel 2.
The zero crossing signal ZX is generated from the output of
LPF1. LPF1 has a single pole at 156 Hz (CLKIN = 3.579545 MHz).
As a result, there will be a phase lag between the analog input
signal V2 and the output of LPF1. The phase response of this
filter is shown in the Channel 2 Sampling section. The phase
lag response of LPF1 results in a time delay of approximately
0.97 ms (@ 60 Hz) between the zero crossing on the analog
inputs of Channel 2 and the rising or falling edge of ZX.
The SAG pin will go logic high again when the absolute value of
the signal on Channel 2 exceeds the sag level set in the Sag
Level register. This is shown in Figure 15 when the SAG pin
goes high during the tenth half cycle from the time when the
signal on Channel 2 first dropped below the threshold level.
Sag Level Set
The contents of the sag level register (1 byte) are compared to
the absolute value of the most significant byte output from
LPF1, after it is shifted left by one bit. For example, the nomi-
nal maximum code from LPF1 with a full-scale signal on
Channel 2 is 257F6h or (0010, 0101, 0111, 1111, 0110b)—see
Channel 2 Sampling section. Shifting one bit left will give 0100,
1010, 1111, 1110, 1100b, or 4AFECh. Therefore, writing 4Ah
to the sag level register will put the sag detection level at full
scale. Writing 00h will put the sag detection level at zero. The
sag level register is compared to the most significant byte of a
waveform sample after the shift left, and detection is made when
the contents of the sag level register are greater.
The zero crossing detection also has an associated timeout reg-
ister, ZXTOUT. This unsigned, 12-bit register is decremented
1 LSB every 128/CLKIN seconds. The register is reset to its
user-programmed full-scale value every time a zero crossing on
Channel 2 is detected. The default power-on value in this regis-
ter is FFFh. If the register decrements to zero before a zero
crossing is detected and the DISSAG bit in the mode register is
logic zero, the SAG pin will go active low. The absence of a zero
crossing is also indicated on the IRQ output if the SAG Enable
bit in the interrupt enable register is set to Logic 1. Irrespective
of the enable bit setting, the SAG flag in the interrupt status
register is always set when the ZXTOUT register is decremented
to zero—see Interrupts section. The zero cross timeout register
can be written/read by the user and has an address of 0Eh—see
Serial Interface section. The resolution of the register is 128/CLKIN
seconds per LSB. Thus the maximum delay for an interrupt
is 0.15 second (128/CLKIN × 212 ).
POWER SUPPLY MONITOR
The ADE7759 also contains an on-chip power supply monitor.
The analog supply (AVDD) is continuously monitored by the
ADE7759. If the supply is less than 4 V 5%, the ADE7759
will go into an inactive state, i.e., no energy will be accumulated
when the supply voltage is below 4 V. This is useful to ensure
correct device operation at power-up and during power-down.
The power supply monitor has built-in hysteresis and filtering.
This gives a high degree of immunity to false triggering due to
noisy supplies.
LINE VOLTAGE SAG DETECTION
In addition to the detection of the loss of the line voltage signal
(zero crossing), the ADE7759 can also be programmed to detect
when the absolute value of the line voltage drops below a certain
peak value, for a number of half cycles. This condition is illus-
trated in Figure 15.
AV
DD
5V
4V
CHANNEL 2
FULL SCALE
0V
TIME
SAGLVL [7:0]
ADE7759
POWER-ON
RESET
INACTIVE
ACTIVE
INACTIVE
SAG RESET HIGH
WHEN CHANNEL 2
EXCEEDS SAGLVL [7:0]
SAG
SAGCYC [7:0] = 06H
6 HALF CYCLES
SAG
Figure 16. On-Chip Power Supply Monitor
As seen in Figure 16, the trigger level is nominally set at 4 V.
The tolerance on this trigger level is about 5%. The SAG pin
can also be used as a power supply monitor input to the MCU.
The SAG pin will go logic low when the ADE7759 is reset. The
power supply and decoupling for the part should be such that
the ripple at AVDD does not exceed 5 V 5% as specified for
normal operation.
Figure 15. Sag Detection
Figure 15 shows the line voltage fall below a threshold that is set
in the sag level register (SAGLVL[7:0]) for nine half cycles.
Since the sag cycle register (SAGCYC[7:0]) contains 06h, the
SAG pin will go active low at the end of the sixth half cycle for
which the line voltage falls below the threshold, if the DISSAG
bit in the mode register is Logic 0. As is the case when zero
crossings are no longer detected, the sag event is also recorded
by setting the SAG flag in the interrupt status register. If the
SAG enable bit is set to Logic 1, the IRQ logic output will go
active low—see Interrupts section.
Bit 6 of the interrupt status register (STATUS[7:0]) will be set
to logic high upon power-up or every time the analog supply
(AVDD) dips below the power supply monitor threshold (4 V 5%)
and recovers. However, no interrupt can be generated because
the corresponding bit (Bit 6) in the interrupt enable register
(IRQEN[7:0]) is not active—see Interrupts section.
–14–
REV. A
ADE7759
INTERRUPTS
MCU should be configured to start executing its Interrupt Ser-
vice Routine (ISR). On entering the ISR, all interrupts should
be disabled using the global interrupt enable bit. At this point,
the MCU external interrupt flag can be cleared to capture inter-
rupt events that occur during the current ISR.
ADE7759 interrupts are managed through the interrupt status
register (STATUS[7:0]) and the interrupt enable register
(IRQEN[7:0]). When an interrupt event occurs in the ADE7759,
the corresponding flag in the status register is set to a Logic 1—see
Interrupt Status Register section. If the enable bit for this
interrupt in the interrupt enable register is Logic 1, then the
IRQ logic output goes active low. The flag bits in the status
register are set irrespective of the state of the enable bits.
When the MCU interrupt flag is cleared, a read from the status
register with reset is carried out. This will cause the IRQ line to
be reset logic high (t2)—see Interrupt Timing section. The
status register contents are used to determine the source of
the interrupt(s), and thus the appropriate action will be taken. If
a subsequent interrupt event occurs during the ISR, that event
will be recorded by the MCU external interrupt flag being set
again (t3). On returning from the ISR, the global interrupt mask
will be cleared (same instruction cycle) and the external inter-
rupt flag will cause the MCU to jump to its ISR once again. This
will ensure that the MCU does not miss any external interrupts.
To determine the source of the interrupt, the system master
(MCU) should perform a read from the status register with
reset (RSTATUS[7:0]). This is achieved by carrying out a
read from address 05h. The IRQ output will go logic high on
completion of the interrupt status register read command—
see Interrupt Timing section. When carrying out a read with
reset, the ADE7759 is designed to ensure that no interrupt
events are missed. If an interrupt event occurs just as the status
register is being read, the event will not be lost and the IRQ
logic output is guaranteed to go high for the duration of the
interrupt status register data transfer before going logic low
again to indicate the pending interrupt. See the following
section for a more detailed description.
Interrupt Timing
The Serial Interface section should be reviewed first, before the
Interrupt Timing section. As previously described, when the
IRQ output goes low, the MCU ISR must read the interrupt
status register to determine the source of the interrupt. When
reading the status register contents, the IRQ output is set high
on the last falling edge of SCLK of the first byte transfer (read
interrupt status register command). The IRQ output is held
high until the last bit of the next 8-bit transfer is shifted out
(interrupt status register contents)—see Figure 18. If an inter-
rupt is pending at this time, the IRQ output will go low again. If
no interrupt is pending, the IRQ output will stay high.
Using the ADE7759 Interrupts with an MCU
Figure 17 shows a timing diagram with a suggested implementa-
tion of ADE7759 interrupt management using an MCU. At
time t1, the IRQ line will go active low, indicating that one or
more interrupt events have occurred in the ADE7759. The IRQ
logic output should be tied to a negative edge-triggered external
interrupt on the MCU. On detection of the negative edge, the
MCU
INTERRUPT
FLAG SET
t1
t2
t3
IRQ
ISR ACTION
(BASED ON
STATUS CONTENTS)
ISR RETURN
GLOBAL INTERRUPT
MASK RESET
JUMP
TO
ISR
GLOBAL
INTERRUPT
MASK SET
CLEAR MCU
INTERRUPT
FLAG
READ
STATUS WITH
RESET (05h)
JUMP
TO
ISR
MCU
PROGRAM
SEQUENCE
Figure 17. Interrupt Management
CS
t1
SCLK
t9
0
0
0
0
0
1
0
1
DIN
t11
t11
DB7
DB0
DOUT
READ STATUS REGISTER COMMAND
STATUS REGISTER CONTENTS
IRQ
Figure 18. Interrupt Timing
REV. A
–15–
ADE7759
TEMPERATURE MEASUREMENT
the signal is sampled at a rate (frequency) that is many times
higher than the bandwidth of interest. For example, the sam-
pling rate in the ADE7759 is CLKIN/4 (894 kHz) and the band
of interest is 40 Hz to 2 kHz. Oversampling has the effect of
spreading the quantization noise (noise due to sampling) over a
wider bandwidth. With the noise spread more thinly over a
wider bandwidth, the quantization noise in the band of interest
is lowered—see Figure 20. However, oversampling alone is not
an efficient enough method to improve the signal-to-noise ratio
(SNR) in the band of interest. For example, an oversampling
ratio of 4 is required just to increase the SNR by only 6 dB (one
bit). To keep the oversampling ratio at a reasonable level, it is
possible to shape the quantization noise so that the majority of
the noise lies at the higher frequencies. This is what happens in
the sigma-delta modulator: the noise is shaped by the integrator,
which has a high-pass type response for the quantization noise.
The result is that most of the noise is at the higher frequencies,
where it can be removed by the digital low-pass filter. This noise
shaping is also shown in Figure 20.
ADE7759 also includes an on-chip temperature sensor. A
temperature measurement can be made by setting Bit 5 in the
mode register. When Bit 5 is set logic high in the mode register, the
ADE7759 will initiate a temperature measurement on the next
zero crossing. When the zero crossing on Channel 2 is de-
tected, the voltage output from the temperature sensing
circuit is connected to ADC1 (Channel 1) for digitizing. The
resultant code is processed and placed in the temperature
register (TEMP[7:0]) approximately 26 µs later (24 CLKIN
cycles). If enabled in the interrupt enable register (Bit 5), the
IRQ output will go active low when the temperature conversion
is finished. Note that temperature conversion will introduce a
small amount of noise in the energy calculation. If temperature
conversion is performed frequently (i.e., multiple times per sec-
ond), a noticeable error will accumulate in the resulting energy
calculation over time.
The contents of the temperature register are signed (twos
complement) with a resolution of approximately 1 LSB/°C. The
temperature register will produce a code of 00h when the ambient
temperature is approximately 70°C. The temperature mea-
surement is uncalibrated in the ADE7759 and has an offset
tolerance that could be as high as 20°C.
ANTIALIAS
FILTER (RC)
DIGITAL
FILTER
SAMPLING
FREQUENCY
SIGNAL
SHAPED
NOISE
NOISE
ANALOG-TO-DIGITAL CONVERSION
The analog-to-digital conversion in the ADE7759 is carried out
using two second-order sigma-delta ADCs. The block diagram in
Figure 19 shows a first-order (for simplicity) sigma-delta ADC.
The converter is made up of two parts, first the sigma-delta modu-
lator and second the digital low-pass filter.
0
2
447
FREQUENCY – kHz
894
HIGH RESOLUTION
SIGNAL
OUTPUT FROM DIGITAL
LPF
A sigma-delta modulator converts the input signal into a con-
tinuous serial stream of 1s and 0s at a rate determined by the
sampling clock. In the ADE7759, the sampling clock is equal to
CLKIN/4. The 1-bit DAC in the feedback loop is driven by the
serial data stream. The DAC output is subtracted from the input
signal. If the loop gain is high enough, the average value of the
DAC output (and therefore the bit stream) will approach that
of the input signal level. For any given input value in a single
sampling interval, the data from the 1-bit ADC is virtually
meaningless. Only when a large number of samples are averaged
will a meaningful result be obtained. This averaging is carried
out in the second part of the ADC, the digital low-pass filter. By
averaging a large number of bits from the modulator, the low-
pass filter can produce 20-bit datawords that are proportional to
the input signal level.
NOISE
0
2
447
894
FREQUENCY – kHz
Figure 20. Noise Reduction Due to Oversampling
and Noise Shaping in the Analog Modulator
Antialias Filter
Figure 19 also shows an analog low-pass filter (RC) on the input
to the modulator. This filter is present to prevent aliasing.
Aliasing is an artifact of all sampled systems. Basically, it means
that frequency components in the input signal to the ADC that
are higher than half the sampling rate of the ADC will appear in
the sampled signal at a frequency below half the sampling rate.
Figure 21 illustrates the effect. Frequency components above
half the sampling frequency (also known as the Nyquist frequency,
i.e., 447 kHz) get imaged or folded back down below 447 kHz.
This will happen with all ADCs regardless of the architecture.
In the example shown, it can be seen that only frequencies near
the sampling frequency (894 kHz) will move into the band of
interest for metering, i.e., 40 Hz–2 kHz. This allows us to use a
very simple LPF (low-pass filter) to attenuate these high fre-
quencies (near 900 kHz) and to prevent distortion in the band
of interest. For a conventional current sensor, a simple RC filter
(single pole) with a corner frequency of 10 kHz will produce an
attenuation of approximately 40 dB at 894 kHz—see Figure 20.
The 20 dB per decade attenuation is usually sufficient to elimi-
nate the effects of aliasing for a conventional current sensor.
MCLK/4
ANALOG
DIGITAL
LOW-PASS FILTER
LOW-PASS
LATCHED
COMPARATOR
FILTER
+
R
+
–
1
20
∫
–
C
V
REF
.....10100101.....
1-BIT DAC
Figure 19. First Order Sigma-Delta (Σ-∆) ADC
The sigma-delta converter uses two techniques to achieve high
resolution from what is essentially a one-bit conversion tech-
nique. The first is oversampling. By oversampling we mean that
–16–
REV. A
ADE7759
OUTPUT
IMPEDANCE
6kꢃ
ALIASING EFFECTS
MAXIMUM
LOAD = 10ꢄA
REF
SAMPLING
FREQUENCY
IN/OUT
2.42V
IMAGE
FREQUENCIES
PTAT
60ꢄA
2.5V
1.7kꢃ
12.5kꢃ
12.5kꢃ
0
2
447
894
FREQUENCY – kHz
REFERENCE INPUT
12.5kꢃ
12.5kꢃ
Figure 21. ADC and Signal Processing in Channel 1
TO ADC CHANNEL 1
(RANGE SELECT)
2.42V, 1.21V, 0.6V
For a di/dt sensor such as a Rogowski coil, however, the sensor
has 20 dB per decade gain. This will neutralize the –20 dB per
decade attenuation produced by this simple LPF and nullifies
the antialias filter. Therefore, when using a di/dt sensor, mea-
sures should be taken to offset the 20 dB per decade gain coming
from the di/dt sensor and produce sufficient attenuation to
eliminate any aliasing effect. One simple approach is to cascade
two RC filters to produce –40 dB per decade attenuation. The
transfer function for a cascaded filter is the following:
Figure 22. ADC and Reference Circuit Output
The REFIN/OUT pin can be overdriven by an external source,
e.g., an external 2.5 V reference. Note that the nominal refer-
ence value supplied to the ADCs is now 2.5 V not 2.42 V. This
has the effect of increasing the nominal analog input signal
range by 2.5/2.42 ϫ 100% = 3%, or from 0.5 V to 0.5165 V.
The internal voltage reference on the ADE7759 has a tempera-
ture drift associated with it—see ADE7759 Specifications section
for the temperature coefficient specification (in ppm°C). The
value of the temperature drift varies slightly from part to part.
Since the reference is used for the ADCs in both Channel 1 and 2,
any x% drift in the reference will result in 2x% deviation of the
meter reading. The reference drift resulting from temperature
changes is usually very small, and it is typically much smaller
than the drift of other components on a meter. However, if
guaranteed temperature performance is needed, one needs to
use an external voltage reference. Alternatively, the meter can be
calibrated at multiple temperatures. Real-time compensation
can be achieved easily using the on-chip temperature sensor.
1
H(s) =
1+ sR1C1+ sR2C2 + sR1C2 + s2R1C1R2C2
where R1C1 represents the RC used in the first stage of the
cascade and R2C2 in that of the second stage. The s2 term in the
transfer function produces a –40 dB/decade attenuation. Note
that to minimize the measurement error, especially at low power
factor, it is important to match the phase angle between the
voltage and the current channel. The small phase mismatch in
the external antialias filter can be corrected using the phase calibra-
tion register (PHCAL[7:0])—see Phase Compensation section.
ADC Transfer Function
Below is an expression which relates the output of the LPF in
the sigma-delta ADC to the analog input signal level. Both ADCs
in the ADE7759 are designed to produce the same output code
for the same input signal level.
CHANNEL 1 ADC
Figure 23 shows the ADC and signal processing chain for Chan-
nel 1. In waveform sampling mode, the ADC outputs a signed
twos complement 20-bit dataword at a maximum of 27.9 kSPS
(CLKIN/128). The output of the ADC can be scaled by 50%
to perform an overall power calibration or to calibrate the ADC
output. While the ADC outputs a 20-bit twos complement
value, the maximum full-scale positive value from the ADC is
limited to 40,000h (+262,144 decimal). The maximum full-
scale negative value is limited to C0000h (–262,144 decimal). If
the analog inputs are overranged, the ADC output code will
clamp at these values. With the specified full-scale analog input
signal of 0.5 V (or 0.25 V or 0.125 V—see Analog Inputs sec-
tion), the ADC will produce an output code that is approximately
63% of its full-scale value. This is illustrated in Figure 23. The
diagram in Figure 23 shows a full-scale voltage signal being
applied to the differential inputs V1P and V1N. The ADC
output swings between D7AE1h (–165,151) and 2851Fh
(+165,151). This is approximately 63% of the full-scale value
40,000h (262,144). Overranging the analog inputs with more
than 0.5 V differential (0.25 V or 0.125 V, depending on
Channel 1 full-scale selection) will cause the ADC output to
increase towards its full-scale value. However, for specified
operation, the differential signal on the analog inputs should
not exceed the recommended value of 0.5 V.
VIN
VREF
Code(ADC) = 3.0492×
× 262,144
Therefore, with a full-scale signal on the input of 0.5 V and an
internal reference of 2.42 V, the ADC output code is nominally
165,151 or 2851Fh. The maximum code from the ADC is
262,144, which is equivalent to an input signal level of 0.794 V.
However, for specified performance it is not recommended that the
full-scale input signal level of 0.5 V be exceeded.
Reference Circuit
Shown in Figure 22 is a simplified version of the reference out-
put circuitry. The nominal reference voltage at the REFIN/OUT
pin is 2.42 V. This is the reference voltage used for the ADCs in
the ADE7759. However, Channel 1 has three input range selec-
tions, which are selected by dividing down the reference value
used for the ADC in Channel 1. The reference value used for
Channel 1 is divided down to 1/2 and 1/4 of the nominal value
by using an internal resistor divider, as shown in Figure 22.
REV. A
–17–
ADE7759
2.42V, 1.21V, 0.6V
{GAIN[4:3]}
ꢅ1, ꢅ2, ꢅ4,
ꢅ8, ꢅ16
REFERENCE
{GAIN[2:0]}
DIGITAL
TO WAVEFORM
V1P
V1N
DIGITAL LPF
HPF
INTEGRATOR*
MULTIPLIER
SAMPLE REGISTER
3
PGA1
ADC 1
V1
Sinc
TO MULTIPLIER
∫
CHANNEL 1 (ACTIVE POWER)
DATA RANGE AFTER
INTEGRATOR (50Hz)
50Hz
801HEX–7FFHEX
APGAIN[11:0]
2E72Eh
+94.5% FS
+63% FS
1EF74h
F7BAh
00000h
F0846h
V1
0.5V, 0.25V,
+31.5% FS
0.125V, 62.5mV,
31.3mV, 15.6mV,
+FS
40000h
2851Fh
CHANNEL 1 (ACTIVE POWER)
DATA RANGE
–31.5% FS
–63% FS
+63% FS
0V
3C7AEh
2851Fh
+94.5% FS
E108Ch
D18D2h
+63% FS
–94.5% FS
00000h
000h
7FFh
801h
1428Fh
00000h
EBD71h
+31.5% FS
ANALOG
INPUT
60Hz
APGAIN[11:0]
–63% FS
–FS
D7AE1h
C0000h
RANGE
–31.5% FS
–63% FS
CHANNEL 1 (ACTIVE POWER)
DATA RANGE AFTER
INTEGRATOR (60Hz)
D7AE1h
C3852h
ADC OUTPUT
WORD RANGE
–94.5% FS
000h
APGAIN[11:0]
7FFh
801h
+94.5% FS
26B50h
+63% FS
+31.5% FS
19CE0h
0CE70h
00000h
F3190h
E6320h
D94B0h
– 31.5% FS
– 63% FS
*WHEN DIGITAL INTEGRATOR IS ENABLED, FULL-SCALE OUTPUT DATA VARIES DEPENDING
ON THE SIGNAL FREQUENCY BECAUSE OF –20dB/DECADE FREQUENCY RESPONSE.
– 94.5% FS
000h
7FFh
801h
APGAIN[11:0]
Figure 23. ADC and Signal Processing in Channel 1
Channel 1 ADC Gain Adjust
wave form samples are transferred from the ADE7759 one byte
(eight bits) at a time, with the most significant byte shifted out
first. The 20-bit dataword is right justified and sign extended to
24 bits (three bytes)—see Serial Interface section.
The ADC gain in Channel 1 can be adjusted by using the multi-
plier and active power gain register (APGAIN[11:0]). The gain of
the ADC is adjusted by writing a twos complement 12-bit word
to the active power gain register. Below is the expression that
shows how the gain adjustment is related to the contents of the
active power gain register.
SAMPLING RATE (27.9kSPS, 14kSPS, 7kSPS, OR 3.5kSPS)
IRQ
16ꢄs
SCLK
APGAIN
Code = ADC × 1+
212
READ FROMWAVEFORM
0 0 0 01 HEX
DIN
For example, when 7FFh is written to the active power gain
register, the ADC output is scaled up by 50%. 7FFh = 2047
decimal, 2047/212 = 0.5. Similarly, 801h = 2047 decimal
(signed twos complement) and ADC output is scaled by –50%.
These two examples are illustrated in Figure 23.
DOUT
SIGN
CHANNEL 1 DATA
– 20 BITS
Figure 24. Waveform Sampling Channel 1
CHANNEL 1 AND CHANNEL 2 WAVEFORM SAMPLING
MODE
Channel 1 Sampling
The waveform samples may also be routed to the waveform
register (MODE[14:13] = 1, 0) to be read by the system master
(MCU). In waveform sampling mode, the WSMP bit (Bit 3) in
the interrupt enable register must also be set to Logic 1. The
active power and energy calculation will remain uninterrupted
during waveform sampling.
In Channel 1 and Channel 2 waveform sampling mode
(MODE[14:13] = 01), the output is a 40-bit waveform sample
data that contains the waveform samples from both Channel 1
and Channel 2 ADCs. Figure 25 shows the format of the 40-bit
waveform output.
When in waveform sample mode, one of four output sample
rates may be chosen by using Bits 11 and 12 of the mode regis-
ter DTRT(1, 0). The output sample rate may be 27.9 kSPS,
14 kSPS, 7 kSPS, or 3.5 kSPS—see Mode Register section. The
interrupt request output IRQ signals a new sample availability
by going active low. The timing is shown in Figure 24. The 20-bit
1 BYTE
2 BYTES
2 BYTES
BIT 39
BIT 0
CH2[19:16] CH1[19:16]
CH1[15:0]
CH2[15:0]
Figure 25. 40-Bit Combined Channel 1 and Channel 2
Waveform Sample Data Format
–18–
REV. A
ADE7759
2.42V
CHANNEL 2 ADC
Channel 2 Sampling
ꢅ1, ꢅ2, ꢅ4,
ꢅ8, ꢅ16
REFERENCE
V2P
V2N
{GAIN [7:5]}
In Channel 2 waveform sampling mode (MODE[14:13] = 1, 1
and WSMP = 1), the ADC output code scaling for Channel 2 is
the same as Channel 1, i.e., the output swings between D7AE1h
(–165,151) and 2851Fh (+165,151)—see ADC Channel 1
section. However, before being passed to the waveform register,
the ADC output is passed through a single-pole, low-pass filter
with a cutoff frequency of 156 Hz. The plots in Figure 26 show
the magnitude and phase response of this filter.
–63%TO +63% FS
LPF1
1
TO
PGA2
ADC 2
V2
MULTIPLIER
TO
20
WAVEFORM
REGISTER
V1
0.5V, 0.25V, 0.125V,
62.5mV, 31.25mV
LPF OUTPUT
WORD RANGE
0V
40000h
2851Fh
257F6h
+FS
+63% FS
+59% FS
0
–20
–40
–60
–80
0
ANALOG
00000h
INPUT RANGE
DA80Ah
D7AE1h
C0000h
–59% FS
–63% FS
–FS
60Hz, –0.6dB
Figure 27. ADC and Signal Processing in Channel 2
60Hz, –21.04ꢀ
–10
PHASE COMPENSATION
When the HPF is disabled, the phase error between Channel 1 and
Channel 2 is zero from dc to 3.5 kHz. When HPF1 is enabled,
Channel 1 has a phase response illustrated in Figures 29 and 30.
Also shown in Figure 31 is the magnitude response of the filter.
As can be seen from the plots, the phase response is almost zero
from 45 Hz to 1 kHz. This is all that is required in typical energy
measurement applications.
–20
1
2
3
10
10
10
FREQUENCY – Hz
However, despite being internally phase compensated, the
ADE7759 must work with transducers that may have inherent
phase errors. For example, a phase error of 0.1° to 0.3° is not
uncommon for a CT (Current Transformer). These phase
errors can vary from part to part, and they must be corrected in
order to perform accurate power calculations. The errors associ-
ated with phase mismatch are particularly noticeable at low
power factors. The ADE7759 provides a means of digitally
calibrating these small phase errors. The ADE7759 allows a
small time delay or time advance to be introduced into the signal
processing chain in order to compensate for small phase errors.
Because the compensation is in time, this technique should only be
used for small phase errors in the range of 0.1° to 0.5°. Correcting
large phase errors using a time shift technique can introduce signifi-
cant phase errors at higher harmonics.
Figure 26. Magnitude and Phase Response of LPF1
The LPF1 has the effect of attenuating the signal. For example,
if the line frequency is 60 Hz, the signal at the output of LPF1
will be attenuated by 7%.
1
H( f ) =
= 0.93 = –0.6 dB
2
60 Hz
156 Hz
1+
Note that LPF1 does not affect the power calculation. The
signal processing chain in Channel 2 is illustrated in Figure 27.
Unlike Channel 1, Channel 2 has only one analog input range
(0.5 V differential). However, like Channel 1, Channel 2 does
have a PGA with gain selections of 1, 2, 4, 8, and 16. For energy
measurement, the output of the ADC is passed directly to the
multiplier and is not filtered. An HPF is not required to remove
any dc offset since it is only required to remove the offset from
one channel to eliminate errors due to offsets in the power cal-
culation. When in waveform sample mode, one of four output
sample rates can be chosen by using Bits 11 and 12 of the
mode register. The available output sample rates are 27.9 kSPS,
14 kSPS, 7 kSPS, or 3.5 kSPS—see Mode Register section. The
interrupt request output IRQ signals a new sample availability
by going active low. The timing is the same as that for
The phase calibration register (PHCAL[7:0]) is a twos comple-
ment signed single-byte register that has values ranging from 9Eh
(–98 in decimal) to 5Ch (92 in decimal). By changing the PHCAL
register, the time delay in the Channel 2 signal path can change
from –110 µs to +103 µs (CLKIN = 3.579545 MHz). One LSB is
equivalent to 1.12 µs time delay or advance. With a line frequency
of 60 Hz, this gives a phase resolution of 0.024° at the fundamental
(i.e., 360° × 1.12 µs × 60 Hz). Figure 28 illustrates how the phase
compensation is used to remove a 0.1° phase lead in Channel 1
due to the external transducer. To cancel the lead (0.1°) in
Channel 1, a phase lead must also be introduced into Channel 2.
The resolution of the phase adjustment allows the introduction of a
phase lead in increments of 0.024°. The phase lead is achieved by
introducing a time advance into Channel 2. A time advance of
4.48 µs is made by writing –4 (FCh) to the time delay block, thus
reducing the amount of time delay by 4.48 µs, or equivalently, a
phase lead of approximately 0.1° at line frequency of 60 Hz.
Channel 1 and is shown in Figure 24.
REV. A
–19–
ADE7759
V1P
0.4
0.3
HPF
20
PGA1
V1
ADC 1
V1N
V2P
LPF2
20
0.2
0.1
CHANNEL 2 DELAY
REDUCED BY 4.48ꢄs
(0.1ꢀ LEAD AT 60Hz)
FCH IN PHCAL [7:0]
1
DELAY BLOCK
PGA2
V2
ADC 2
1.12ꢄs/LSB
0.0
V2N
7
0
–0.1
–0.2
–0.3
–0.4
V2
V1
1
1 1 1 1 1 0 0
V2
PHCAL [7:0]
–110ꢄsTO +103ꢄs
0.1ꢀ
V1
60Hz
54
56
58
60
62
64
66
60Hz
FREQUENCY – Hz
Figure 31. Combined Gain Response of the HPF and Phase
Compensation (Deviation of Gain in % from Gain at 60 Hz)
Figure 28. Phase Calibration
0.30
0.25
0.20
0.15
0.10
0.05
0.00
–0.05
–0.10
ACTIVE POWER CALCULATION
Electrical power is defined as the rate of energy flow from source to
load. It is given by the product of the voltage and current wave-
forms. The resulting waveform is called the instantaneous power
signal, and it is equal to the rate of energy flow at every instant
of time. The unit of power is the watt or joules/second. Equa-
tion 3 gives an expression for the instantaneous power signal in
an ac system.
(1)
(2)
v(t) = 2 V(ωt)
i(t) = 2 I sin(ωt)
100 200 300 400 500 600 700 800 900 1000
FREQUENCY – Hz
where:
V = rms voltage
I = rms current
Figure 29. Combined Phase Response of the HPF and
Phase Compensation (100 Hz to 1 kHz)
p(t) = v(t) × i(t)
(3)
p(t) =VI –VI cos(2ωt)
The average power over an integral number of line cycles (n) is
given by the expression in Equation 4.
0.30
0.25
0.20
0.15
0.10
0.05
0.00
–0.05
–0.10
1
nT
P =
nT p (t)dt =VI
∫
(4)
0
where T is the line cycle period. P is referred to as the active or
real power. Note that the active power is equal to the dc compo-
nent of the instantaneous power signal p(t) in Equation 3, i.e.,
VI. This is the relationship used to calculate active power in the
ADE7759. The instantaneous power signal p(t) is generated by
multiplying the current and voltage signals. The dc component
of the instantaneous power signal is then extracted by LPF2 (low-
pass filter) to obtain the active power information. This process
is illustrated in Figure 32. Since LPF2 does not have an ideal
“brick wall” frequency response (see Figure 33), the active power
signal will have some ripple due to the instantaneous power
signal. This ripple is sinusoidal and has a frequency equal to twice
the line frequency. Since the ripple is sinusoidal in nature, it will
be removed when the active power signal is integrated to calcu-
late energy—see Energy Calculation section.
40
45
50
55
60
65
70
FREQUENCY – Hz
Figure 30. Combined Phase Response of the HPF and
Phase Compensation (40 Hz to 70 Hz)
–20–
REV. A
ADE7759
INSTANTANEOUS
POWER SIGNAL
p(t) =V ꢅ I –V ꢅ I ꢅ cos(2ꢆt)
1999Ah
ACTIVE REAL POWER
SIGNAL =V ꢅ I
13333h
CCCDh
6666h
+30% FS
POSITIVE
POWER
+20% FS
+10% FS
VI
CCCDh
00000h
F999Ah
F3333h
ECCCDh
–10% FS
–20% FS
–30% FS
NEGATIVE
POWER
00000h
000h
7FFh
800h
{APGAIN [11:0]}
CURRENT
i(t) = 2 ꢅ I ꢅ sin(ꢆt)
CHANNEL 1 (ACTIVE POWER)
CALIBRATION RANGE
VOLTAGE
v(t) = 2 ꢅ V ꢅ sin(ꢆt)
Figure 35. Active Power Calculation Output Range
Figure 32. Active Power Calculation
ENERGY CALCULATION
0
As stated earlier, power is defined as the rate of energy flow.
This relationship can be expressed mathematically as:
–4
–8
dE
P =
(5)
(6)
dt
where P = power and E = energy.
Conversely, energy is given as the integral of power:
–12
–16
–20
E = ∫ Pdt
The AD7759 achieves the integration of the active power signal
by continuously accumulating the active power signal in the
40-bit active energy register (ASENERGY[39:0]). This discrete
time accumulation or summation is equivalent to integration in
continuous time. Equation 7 expresses this relationship:
–24
1
3
10
30
100
FREQUENCY – Hz
∞
E = ∫ P(t)dt = Lim
p(nT) × T
∑
Figure 33. Frequency Response of LPF2
T→0
(7)
n = 0
Figure 34 shows the signal processing chain for the active power
calculation in the ADE7759. As explained, the active power is
calculated by low pass filtering the instantaneous power signal.
where n is the discrete time sample number and T is the
sample period.
The discrete time sample period (T) for the accumulation regis-
ter in the ADE7759 is 1.1 µs (4/CLKIN). As well as calculating
the energy, this integration removes any sinusodial components
which may be in the active power signal.
ACTIVE POWER
HPF
SIGNAL – P
I
CCCDh
CURRENT SIGNAL – i(t)
MULTIPLIER
LPF2
20
Figure 36 shows a graphical representation of this discrete time
integration or accumulation. The active power signal in the wave-
form register is continuously added to the active energy register.
This addition is a signed addition; therefore negative energy will be
subtracted from the active energy contents.
INSTANTANEOUS POWER SIGNAL – p(t)
–40%TO +40% FS
1
V
VOLTAGE SIGNAL – v(t)
1999Ah
As shown in Figure 36, the active power signal is accumulated
in a 40-bit signed register (AENERGY[39:0]). The active
power signal can be read from the waveform register by setting
MODE[14:13] = 0, 0 and setting the WSMP bit (Bit 3) in
the interrupt enable register to 1. Like Channel 1 and Channel 2
waveform sampling modes, the waveform data is available at
sample rates of 27.9 kSPS, 14 kSPS, 7 kSPS, or 3.5 kSPS—see
Figure 24. Figure 37 shows this energy accumulation for full-scale
signals (sinusodial) on analog inputs. The three curves displayed
illustrate the minimum period of time it takes the energy register to
roll over when the active power gain register contents are 7FFh,
000h, and 800h. The active power gain register is used to carry out
power calibration in the ADE7759. As shown, the fastest
integration time will occur when the active power gain register is
set to maximum full scale, i.e., 7FFh.
00h
Figure 34. Active Power Signal Processing
Shown in Figure 35 is the maximum code (hexadecimal) output
range for the active power signal (LPF2) when the digital inte-
grator is disabled. Note that when the integrator is enabled, the
output range changes depending on the input signal frequency.
Furthermore, the output range can also be changed by the
active power gain register—see Channel 1 ADC section. The
minimum output range is given when the active power gain
register contents are equal to 800h, and the maximum range is
given by writing 7FFh to the active power gain register. This
can be used to calibrate the active power (or energy) calculation
in the ADE7759.
REV. A
–21–
ADE7759
APOS [15:0]
15
SIGN
0
6
5
4
3
2
1
0
–1
–2
–3
–4
–5
–6
–7
–8
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
CURRENT CHANNEL
LPF2
WAVEFORM [24:0]
AENERGY [39:0]
+
23
39
0
0
20
+
+
+
VOLTAGE CHANNEL
ACTIVE POWER
SIGNAL = P
4
T
CLKIN
WAVEFORM
REGISTER
VALUES
WAVEFORM REGISTERVALUES ARE
ACCUMULATED (INTEGRATED) IN
THE ACTIVE ENERGY REGISTER
TIME – nT
Figure 36. Energy Calculation
AENERGY [39:0]
7F,FFFF,FFFFh. Therefore, the integration time under these
conditions is calculated as follows:
7F,FFFF,FFFFh
3F,FFFF,FFFFh
00,0000,0000h
APGAIN = 7FFh
APGAIN = 000h
APGAIN = 800h
7F , FFFF , FFFFh
Time =
×1.1µs = 11.53 seconds
CCCDh
POWER OFFSET CALIBRATION
TIME – sec
The ADE7759 also incorporates an active power offset regis-
ter (APOS[15:0]). This is a signed twos complement 16-bit
register that can be used to remove offsets in the active power
calculation—see Figure 36. An offset may exist in the power
calculation due to crosstalk between channels on the PCB or in
the IC itself. The offset calibration will allow the contents of the
active power register to be maintained at zero when no power is
being consumed.
23s
5.8s
11.5s
40,0000,0000
80,0000,0000h
Figure 37. Energy Register Rollover Time for Full-Scale
Power (Minimum and Maximum Power Gain)
The 256 LSBs (APOS = 0100h) written to the active power
offset register are equivalent to 1 LSB in the waveform sample
register, assuming the average value output from LPF2 to
store in the waveform register is CCCDh (52,429 in decimal)
when inputs on Channels 1 and 2 are both at full scale and
the digital integrator is turned off. At –60 dB down on Chan-
nel 1 (1/1000 of the Channel 1 full-scale input), the average
word value output from LPF2 is 52.429 (52,429/1,000). One
LSB in the waveform register has a measurement error of
1/52.429 × 100% = 1.9% of the average value. The active
power offset register has a resolution equal to 1/256 LSB of
the waveform register, thus the power offset correction reso-
lution is 0.007%/LSB (1.9%/256) at –60 dB. When the digital
integrator is turned on, the resolution of the LSB varies slightly
with the line frequency.
Note that the energy register contents will roll over to full-scale
negative (80,0000,0000h) and continue increasing in value when
the power or energy flow is positive—see Figure 37. Conversely, if
the power is negative, the energy register would underflow to full-
scale positive (7F, FFFF, FFFFh) and continue decreasing in
value. By using the interrupt enable register, the ADE7759
can be configured to issue an interrupt (IRQ) when the active
energy register is half-full (positive or negative) or when an
over/underflow occurs.
Integration Time under Steady Load
As mentioned in the last section, the discrete time sample
period (T) for the accumulation register is 1.1 µs (4/CLKIN).
With full-scale sinusoidal signals on the analog inputs, digital
integrator turned off, and the active power gain register set to
000h, the average word value from LPF2 is CCCD—see
Figures 34 and 35. The maximum value that can be stored in
the active energy register before it overflows is 239 or
ENERGY-TO-FREQUENCY CONVERSION
ADE7759 also provides energy-to-frequency conversion for
calibration purposes. After initial calibration at manufacturing,
the manufacturer or end customer will often verify the energy
meter calibration. One convenient way to verify the meter cali-
bration is for the manufacturer to provide an output frequency
that is proportional to the energy or active power under steady
–22–
REV. A
ADE7759
load conditions. This output frequency can provide a simple,
single-wire, optically isolated interface to external calibration
equipment. Figure 38 illustrates the energy-to-frequency con-
version in the ADE7759.
output. Therefore, the content of CFDEN should always be set
no less than that of the CFNUM register, i.e., the maximum
output frequency from CF pin will never exceed that of the ETF
output. The power-up default value for CFDEN is 3Fh and
CFNUM is 0h.
The energy-to-frequency conversion is accomplished by accu-
mulating the active power signal in a 24-bit register. An output
pulse is generated when there is a zero to one transition on the
MSB (most significant bit) of the register. Under steady load con-
ditions the output frequency is proportional to the active power.
The output frequency at CF, with full-scale ac signals on
Channel 1 and Channel 2 and CFDEN = 000h, CFNUM = 000h,
and APGAIN = 000h, is approximately 5.593 kHz. This can be
calculated as follows:
The output frequency will have a slight ripple at a frequency
equal to twice the line frequency. This is due to imperfect filter-
ing of the instantaneous power signal to generate the active
power signal—see Active Power Calculation section. Equation 3
gives an expression for the instantaneous power signal. This is
filtered by LPF2, which has a magnitude response given by
Equation 10:
1
H( f ) =
With the active power gain register set to 000h, the average
value of the instantaneous power signal (output of LPF2) is
CCCDh or 52,429 decimal. An output frequency is generated
on CF when the MSB in the energy-to-frequency register (24 bits)
toggles, i.e., when the register accumulates 223. This means the
register is updated 223/CCCDh times (or 159.999 times). Since
the update rate is 4/CLKIN or 1.1175 µs, the time between
MSB toggles (CF pulses) is given as:
(10)
1+ f /8.9 Hz
The active power signal (output of LPF2) can be rewritten as:
VI
p(t) =VI −
cos 4πf t
(
)
l
(11)
1+ 2fl /8.9 Hz
where fl is the line frequency (e.g., 60 Hz).
159.999 ·1.1175 ms =1.78799·10–4 s(5592.86 Hz)
From Equation 6:
Equation 8 gives an expression for the output frequency at the
Energy-to-Frequency (ETF) output with the contents of CFDEN
and CFNUM registers are both zero.
VI
E(t) =VIt −
sin 4πf t
(
)
l
(12)
4πf 1+ 2f /8.9 Hz
(
)
l
l
Average LPF2 Output × CLKIN
ETF Output (Hz) =
(8)
From Equation 12 it can be seen that there is a small ripple in
the energy calculation due to a sin(2ωt) component. This is
shown in Figure 39. The active energy calculation is shown by
the dashed straight line and is equal to V × I × t. The sinusoidal
ripple in the active energy calculation is also shown. Since the
average value of a sinusoid is zero, this ripple will not contribute
to the energy calculation over time. However, the ripple can be
observed in the frequency output, especially at higher output
frequencies. The ripple will get larger as a percentage of the
frequency at larger loads and higher output frequencies. The rea-
son is that at higher output frequencies the integration or averaging
time in the energy-to-frequency conversion process is shorter. As
a consequence, some of the sinusoidal ripple is observable in the
frequency output. Choosing a lower output frequency at CF for
calibration can significantly reduce the ripple. Also, averaging the
output frequency by using a longer gate time for the counter will
achieve the same results.
225
This output frequency is easily scaled by a pair of calibration
frequency divider registers (CFDEN[11:0] and CFNUM[11:0]).
These frequency scaling registers are 12-bit registers that can
scale the output frequency by 1 to 212. The output frequency is
given by the expression below:
CFNUM [11:0]+1
CFDEN [11:0]+1
CF(Hz) = ETF Output (Hz)×
(9)
For example, if the CF output frequency is 5.59286 kHz while
the contents of CFNUM and CFDEN are zero, the CF output
frequency can be set to 25 Hz by writing 8 BDh (2237 in deci-
mal) to the CFDEN register and 00Ah (10 in decimal) to the
CFNUM register. Note that the CFNUM and CFDEN regis-
ters are meant only to scale down the frequency from the ETF
APOS [15:0]
15
0
6
5
4
3
2
1
0
–1
–2
–3
–4
–5
–6
–7
–8
2
SIGN
2
2
2
2
2
2
2
2
2
2
2
2
2
2
LPF2
WAVEFORM [23:0]
+
23
0
ACTIVE POWER OFFSET
CALIBRATION
20
+
ENERGY-TO-FREQUENCY
+
23
0
ACTIVE POWER
SIGNAL – P
+
MSB
TRANSITION
CFNUM [11:0]
CFDEN [11:0]
11
11
0
0
CF
Figure 38. Energy-to-Frequency Conversion
–23–
REV. A
ADE7759
E(t)
From Equations 5 and 11:
Vlt
E(t) = nTVIdt –
nT cos (2 wt)dt
VI
(13)
∫
∫
4 ꢀf 1+ 2f / 8.9 Hz
0
(
)
0
l
l
where n is an integer and T is the line cycle period.
Since the sinusoidal component is integrated over an integer
number of line cycles, its value is always zero. Therefore:
VI
4ƒ (1 + 2ƒ /8.9Hz)
–
sin(4ƒ t)
l
l
l
E(t) = nTVIdt + 0
∫
(14)
(15)
0
Figure 39. Output Frequency Ripple
E(t) =VInT
LINE CYCLE ENERGY ACCUMULATION MODE
Note that in this mode, the 14-bit LINECYC register can hold a
maximum value of 16,383. In other words, the line cycle
energy accumulation mode can be used to accumulate active
energy for a maximum duration over 16,383 half-line cycles. At
60 Hz line frequency, it translates to a total duration of 16,383/
120 Hz = 136.5 seconds. The 40-bit signed LENERGY register
can overflow if large signals are present at the inputs. The
LENERGY register can only hold up to 11.53 seconds of active
energy when both its input channels are at ac full-scale—see
Integration Time Under Steady Load section. Large LINECYC
content is meant to be used only when the input signal is low
and extensive averaging is required to reduce the noise.
In line cycle energy accumulation mode, the energy accumula-
tion of the ADE7759 can be synchronized to the Channel 2 zero
crossing so that active energy can be accumulated over an inte-
gral number of half line cycles. The advantage of summing the
active energy over an integer number of half-line cycles is that
the sinusoidal component in the active energy is reduced to zero.
This eliminates any ripple in the energy calculation. Energy is
calculated more accurately and in a shorter time because the
integration period can be shortened. By using the line cycle
energy accumulation mode, the energy calibration can be greatly
simplified and the time required to calibrate the meter can be sig-
nificantly reduced. The ADE7759 is placed in line cycle energy
accumulation mode by setting Bit 7 (CYCMODE) in the mode
register. In line cycle energy accumulation mode the ADE7759
accumulates the active power signal in the LENERGY register
(Address 14h) for an integral number of half cycles, as shown in
Figure 40. The number of half-line cycles is specified in the
LINECYC register (Address 14h). The ADE7759 can accumu-
late active power for up to 16,383 half cycles. Because the active
power is integrated on an integral number of half-line cycles, at
the end of a line cycle energy accumulation cycle, the CYCEND
flag in the interrupt status register is set (Bit 2). If the CYCEND
enable bit in the interrupt enable register is enabled, the IRQ
output will also go active low. Thus the IRQ line can also be
used to signal the completion of the line cycle energy accumula-
tion. Another calibration cycle will start as long as the CYCMODE
bit in the mode register is set. Note that the result of the first
calibration is invalid and should be ignored. The result of all
subsequent line cycle accumulation is correct.
CALIBRATING THE ENERGY METER
Calculating the Average Active Power
When calibrating the ADE7759, the first step is to calibrate the
frequency on CF to some required meter constant, e.g.,
3200 imp/kWh.
To determine the output frequency on CF, the average value of
the active power signal (output of LPF2) must first be deter-
mined. One convenient way to do this is to use the line cycle
energy accumulation mode. When the CYCMODE (Bit 7) bit
in the mode register is set to a Logic 1, energy is accumulated
over an integer number of half-line cycles as described in the
last section. Since the line frequency is fixed at, say, 60 Hz, and
the number of half cycles of integration is specified, the total
integration time is given as:
1
× number of half cycles
2 × 60 Hz
APOS [15:0]
15
0
6
5
4
3
2
1
0
–1
–2
–3
–4
–5
–6
–7
–8
2
SIGN
2
2
2
2
2
2
2
2
2
2
2
2
2
2
LPF2
WAVEFORM [23:0]
+
23
39
0
0
+
FROM
MULTIPLIER
ACTIVE POWER
SIGNAL – P
LENERGY [39:0]
+
+
CCCDh
00h
LPF1
ZERO CROSS
DETECT
CALIBRATION
CONTROL
CHANNEL 2
ADC
LINECYC [13:0]
Figure 40. Energy Calculation in Line Cycle Energy Accumulation Mode
–24–
REV. A
ADE7759
For 255 half cycles this would give a total integration time of 2.125
seconds. This would mean that the energy register was
updated 2.125/1.1175 µs (4/CLKIN) times. The average output
value of LPF2 is given as:
frequency is accurately known during calibration. Using line
cycle energy accumulation mode, the calibration time can be
reduced by synchronizing energy accumulation to the zero
crossing of the voltage channel—see the Line Cycle Energy
Accumulation Mode section. However, this requires the line
frequency to be precisely known. As shown in Equation 16, the
average value of LPF2 is directly proportional to the line fre-
quency. Any deviation from the nominal frequency will directly
affect the calibration result. The line frequency could be mea-
sured using the ZX output of the ADE7759. Alternatively, the
average value of LPF2 can be calculated from the output frequency
from CF—see the Energy to Frequency Conversion section.
Contents of LENERGY[39:0]at the end
Number of times LENERGY[39:0]was updated
Or, equivalently, in terms of contents of various ADE7759
registers and CLKIN and line frequencies (fl):
LENERGY[39:0]× 8 × fl
LINECYC[13:0]× CLKIN
AverageWord (LPF2) =
(16)
Note that besides CFNUM and CFDEN registers, changing
APGAIN[11:0] register will also affect the output frequency
from CF. The APGAIN register has a resolution of 0.0244%/LSB.
where fl is the line frequency.
Energy Meter Display
Calibrating the Frequency at CF
Besides the pulse output, which is used to verify calibration, a
solid state energy meter will very often require some form of
display. The display should show the amount of energy con-
sumed in kWh (kilowatthours). One convenient and simple way
to interface the ADE7759 to a display or energy register (e.g.,
MCU with nonvolatile memory) is to use CF. For example, the
CF frequency could be calibrated to 1,000 imp/kWhr. The
MCU would count pulses from CF. Every pulse would be
equivalent to 1 watt-hour. If more resolution is required, the CF
frequency could be set to, say, 10,000 imp/kWh.
Once the average active power signal is calculated, it can be
used to determine the frequency at CF before calibration. When
the frequency before calibration is known, the pair of CF fre-
quency divider registers (CFNUM and CFDEN) can be adjusted
so as to produce the required frequency on CF. In this example,
a meter constant of 3200 imp/kWh is chosen as an appropriate
constant. This means that under a steady load of 1 kW, the
output frequency on CF would be:
3200 imp/kWh
60 min · 60 sec 3600
3200
Frequency (CF) =
=
= 0.8888 Hz
If more flexibility is required when monitoring energy usage, the
active energy register (AENERGY) can be used to calculate
energy. A full description of this register can be found in the
Energy Calculation section. The AENERGY register gives the
user both sign and magnitude information regarding energy
consumption. On completion of the CF frequency output cali-
bration, i.e., after the active power gain (APGAIN) register has
been adjusted, a second calibration sequence can be initiated.
The purpose of this second calibration routine is to determine a
kWh/LSB coefficient for the AENERGY register. Once the
coefficient has been calculated, the MCU can determine the
energy consumption at any time by reading the AENERGY
contents and multiplying by the coefficient to calculate kWh.
Assuming the meter is set up with a test current (basic current)
of 20 A and a line voltage of 220 V for calibration, the load is
calculated as 220 V × 20 A = 4.4 kW. Therefore, the expected
output frequency on CF under this steady load condition would
be 4.4 × 0.8888 Hz = 3.9111 Hz. Under these load conditions,
the transducers on Channel 1 and Channel 2 should be selected
such that the signal on the voltage channel should see approxi-
mately half scale and the signal on the current channel about 1/8
of full scale (assuming a maximum current of 80 A). The aver-
age value from LPF2 is calculated as 3,276.81 decimal using the
calibration mode as described above. Then using Equation 8
(energy-to-frequency conversion), the frequency under this
load is calculated as:
CLKIN FREQUENCY
In this data sheet, the characteristics of the ADE7759 are
shown with the CLKIN frequency equal to 3.579545 MHz.
However, the ADE7759 is designed to have the same accu-
racy at any CLKIN frequency within the specified range. If
the CLKIN frequency is not 3.579545 MHz, various timing
and filter characteristics will need to be redefined with the
new CLKIN frequency. For example, the cutoff frequencies
of all digital filters (LPF1, LPF2, HPF1, etc.) will shift in
proportion to the change in CLKIN frequency according to
the following equation:
3276.81× 3.579545 MHz
Frequency (CF ) =
= 349.566 Hz
225
This is the frequency with the contents of the CFNUM and
CFDEN registers equal to 000h. The desired frequency out is
3.9111 Hz. Therefore, the CF frequency must be divided by
349.566/3.9111 Hz or 89.3779 decimal. This is achieved by
loading the pair of CF divider registers with the closest rational
number. In this case, the closest rational number is found to be
25/2234 (or 19h/8BAh). Therefore, 18h and 8B9h should be
written to the CFNUM and CFDEN registers, respectively.
Note that the CF frequency is divided by the contents of
(CFNUM + 1)/(CFDEN + 1). With the CF divide registers
contents equal to 18h/8B9h, the output frequency is given as
349.566 Hz/89.36 = 3.91188 Hz. Note that this setting has an
error of +0.02%.
CLKIN Frequency
3.579545 MHz
New Frequency = Original Frequency ×
(17)
The change of CLKIN frequency does not affect the timing
characteristics of the serial interface because the data transfer is
synchronized with serial clock signal (SCLK). But one needs to
observe the read/write timing of the serial data transfer—see
Timing Characteristics. Table III lists various timing changes
that are affected by CLKIN frequency.
Calibrating CF is made easy by using the line cycle energy
accumulation mode on the ADE7759, provided that the line
REV. A
–25–
ADE7759
Table III. Frequency Dependencies of the ADE7759 Parameters
The communications register is an 8-bit wide register. The
MSB determines whether the next data transfer operation is a
read or a write. The five LSBs contain the address of the register
to be accessed. See Communications Register section for a more
detailed description. Figures 42 and 43 show the data transfer
sequences for a read and write operation, respectively.
Parameter
Nyquist frequency for CH 1 and 2 ADCs CLKIN/8
PHCAL resolution (seconds per LSB) 4/CLKIN
CLKIN Dependency
Active Energy register update rate (Hz) CLKIN/4
Waveform sampling rate (Number of
samples per second)
On completion of a data transfer (read or write), the ADE7759
once again enters communications mode.
WAVSEL 1, 0 = 0
0
1
0
1
CLKIN/128
CLKIN/256
CLKIN/512
CLKIN/1024
524,288/CLKIN
0
1
1
CS
SCLK
COMMUNICATIONS REGISTERWRITE
Maximum ZXTOUT period
DIN
0
0 0 ADDRESS
SUSPENDING THE ADE7759 FUNCTIONALITY
The analog and the digital circuit can be suspended separately.
The analog portion of the ADE7759 can be suspended by set-
ting the ASUSPEND bit (Bit 4) of the mode register to logic
high—see Mode Register section. In suspend mode, all waveform
samples from the ADCs will be set to zeros. The digital circuitry
can be halted by stopping the CLKIN input and maintaining
a logic high or low on CLKIN pin. The ADE7759 can be reacti-
vated by restoring the CLKIN input and setting the ASUSPEND
bit to logic low.
DOUT
MULTIBYTE READ DATA
Figure 42. Reading Data from the ADE7759 via the
Serial Interface
CS
SCLK
COMMUNICATIONS REGISTERWRITE
ADDRESS
DIN
1
0
0
MULTIBYTE WRITE DATA
APPLICATION INFORMATION
Figure 43. Writing Data to the ADE7759 via the Serial
Interface
Application Note AN-564 contains detailed information on how
to design an ANSI Class 100 watt-hour meter based on the
ADE7756, a pin-to-pin compatible product with the ADE7759.
Application Note AN-578 describes an algorithm on how to
calculate the voltage and current rms values using an external
MCU. It is available from the ADE7756 product homepage
under the Application Note link on the energy metering home-
page, www.analog.com/energymeter.
A data transfer is complete when the LSB of the ADE7759
register being addressed (for a write or a read) is transferred to
or from the ADE7759.
The serial interface of the ADE7759 is made up of four signals:
SCLK, DIN, DOUT, and CS. The serial clock for a data trans-
fer is applied at the SCLK logic input. This logic input has a
Schmitt-trigger input structure, which allows slow rising (and
falling) clock edges to be used. All data transfer operations are
synchronized to the serial clock. Data is shifted into the ADE7759
at the DIN logic input on the falling edge of SCLK. Data is
shifted out of the ADE7759 at the DOUT logic output on a
rising edge of SCLK. The CS logic input is the chip select
input. This input is used when multiple devices share the serial
bus. A falling edge on CS also resets the serial interface and
places the ADE7759 into communications mode. The CS
input should be driven low for the entire data transfer opera-
tion. Bringing CS high during a data transfer operation will
abort the transfer and place the serial bus in a high impedance
state. The CS logic input may be tied low if the ADE7759 is the
only device on the serial bus. However, with CS tied low, all
initiated data transfer operations must be fully completed, i.e.,
the LSB of each register must be transferred as there is no other
way of bringing the ADE7759 back into communications mode
without resetting the entire device, i.e., using RESET.
SERIAL INTERFACE
All ADE7759 functionality is accessible via several on-chip regis-
ters—see Figure 41. The contents of these registers can be updated
or read using the on-chip serial interface. After power-on, or tog-
gling the RESET pin low, or a falling edge on CS, the ADE7759 is
placed in communications mode. In communications mode the
ADE7759 expects a write to its communications register. The
data written to the communications register determines whether
the next data transfer operation will be a read or a write and also
which register is accessed. Therefore, all data transfer operations
with the ADE7759, whether a read or a write, must begin with a
write to the communications register.
COMMUNICATIONS
REGISTER
DIN
IN
OUT
REGISTER #1
DOUT
IN
OUT
REGISTER #2
REGISTER #3
REGISTER
ADDRESS
DECODE
IN
OUT
Serial Write Operation
The serial write sequence takes place as follows. With the
ADE7759 in communications mode (i.e., the CS input logic
low), a write to the communications register first takes place.
The MSB of this byte transfer is a 1, indicating that the data
transfer operation is a write. The first five LSBs of this byte
contain the address of the register to be written to. The ADE7759
starts shifting in the register data on the next falling edge of
SCLK. All remaining bits of register data are shifted in on the
falling edge of subsequent SCLK pulses—see Figure 44.
IN
OUT
REGISTER #n –1
REGISTER #n
IN
OUT
Figure 41. Addressing ADE7759 Registers via the
Communications Register
–26–
REV. A
ADE7759
As explained earlier, the data write is initiated by a write to
the communications register followed by the data. During a
data write operation to the ADE7759, data is transferred to
all on-chip registers one byte at a time. After a byte is trans-
ferred into the serial port, there is a finite time before it is
transferred to one of the ADE7759 on-chip registers. Although
another byte transfer to the serial port can start while the
previous byte is being transferred to an on-chip register, this
second byte transfer should not finish until at least 4 µs after
the end of the previous byte transfer. This functionality is
expressed in the timing specification t6—see Figure 44. If a
write operation is aborted during a byte transfer (CS brought
high), then that byte will not be written to the destination
register.
was the case with the data write operation, a data read must be
preceded by a write to the communications register.
With the ADE7759 in communications mode (i.e., CS logic
low), an 8-bit write to the communications register first takes
place. The MSB of this byte transfer is a 0, indicating that the
next data transfer operation is a read. The first five LSBs of this
byte contain the address of the register that is to be read. The
ADE7759 starts shifting out of the register data on the next
rising edge of SCLK—see Figure 46. At this point, the DOUT
logic output leaves its high impedance state and starts driving
the data bus. All remaining bits of register data are shifted out
on subsequent SCLK rising edges. The serial interface also
enters communications mode again as soon as the read has been
completed. At this point, the DOUT logic output enters a high
impedance state on the falling edge of the last SCLK pulse. The
read operation may be aborted by bringing the CS logic input
high before the data transfer is complete. The DOUT output
enters a high impedance state on the rising edge of CS.
Destination registers may be up to 3 bytes wide—see the Regis-
ter Description section. Therefore, the first byte shifted into
the serial port at DIN is transferred to the MSB (Most Signifi-
cant Byte) of the destination register. If the addressed register
is 12 bits wide, for example, a two-byte data transfer must
take place. The data is always assumed to be right justified:
therefore, in this case, the four MSBs of the first byte would be
ignored and the four LSBs of the first byte written to the
ADE7759 would be the four MSBs of the 12-bit word. Figure 45
illustrates this example.
When an ADE7759 register is addressed for a read operation,
the entire contents of that register are transferred to the serial
port. This allows the ADE7759 to modify its on-chip registers
without the risk of corrupting data during a multibyte transfer.
Note that when a read operation follows a write operation, the
read command (i.e., write to communications register) should
not happen for at least 4 µs after the end of the write operation.
If the read command is sent within 4 µs of the write operation,
the last byte of the write operation may be lost. This timing
constraint is given as timing specification t9.
Serial Read Operation
During a data read operation from the ADE7759, data is shifted
out at the DOUT logic output on the rising edge of SCLK. As
t8
CS
t1
t6
t3
t7
t7
SCLK
t4
t2
t5
A2
A4
A3
1
0
0
A0
DB7
DB0
A1
DB0
DB7
DIN
MOST SIGNIFICANT BYTE
LEAST SIGNIFICANT BYTE
COMMAND BYTE
Figure 44. Serial Interface Write Timing Diagram
SCLK
DIN
X
X
X
X
DB11 DB10 DB9
DB8
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
MOST SIGNIFICANT BYTE
LEAST SIGNIFICANT BYTE
Figure 45. 12-Bit Serial Write Operation
CS
t1
t13
t9
t10
SCLK
DIN
0
0
0
A2
A4
A3
A0
A1
t12
t11
t11
DB0
DOUT
DB7
DB7
DB0
MOST SIGNIFICANT BYTE
LEAST SIGNIFICANT BYTE
COMMAND BYTE
Figure 46. Serial Interface Read Timing Diagram
–27–
REV. A
ADE7759
CHECKSUM REGISTER
Note that a read to the CHKSUM register will also generate a
checksum of the CHKSUM register itself.
The ADE7759 has a checksum register (CHKSUM[5:0]) to
ensure that the data bits received in the last serial read operation
are not corrupted. The 6-bit checksum register is reset before
the first bit (MSB of the register to be read) is put on the DOUT
pin. During a serial read operation, when each data bit becomes
available on the rising edge of SCLK, the bit will be added to
the checksum register. In the end of the serial read operation,
the content of the checksum register will be the sum of all the
ones contained in the register previously read. Using the checksum
register, the user can determine if an error has occurred during
the last read operation.
CONTENT OF REGISTER (n-bytes)
DOUT
+
CHECKSUM REGISTER ADDR: 1Eh
+
Figure 47. Checksum Register for Serial Interface Read
Table IV. Register List
Address Name
R/W No. of Bits Default
Description
01h
WAVEFORM
R
24/40
0h
The Waveform Register is a read-only register. This register con-
tains the sampled waveform data from Channel 1, Channel 2, or the
active power signal. The data source and the length of the waveform
registers are selected by data bits 14 and 13 in the mode register—
see Channel 1 and 2 Sampling section.
02h
AENERGY
R
40
0h
Active Energy Register. Active power is accumulated (Integrated)
over time in this 40-bit, read-only register. The energy register
can hold a minimum of 11.53 seconds of active energy information
with full-scale analog inputs before it overflows—see Energy Calcu-
lation section.
03h
04h
RSTENERGY
STATUS
R
R
40
8
0h
Same as the active energy register except that the register is reset to
0 following a read operation.
40h
Interrupt Status Register. This is an 8-bit read-only register. The
status register contains information regarding the source of
ADE7759 interrupts—see Interrupts section.
05h
06h
RSTSTATUS
MODE
R
8
0h
Same as the interrupt status register except that the register con-
tents are reset to 0 (all flags cleared) after a read operation.
R/W 16
000Ch
Mode Register. This is a 16-bit register through which most of
the ADE7759 functionality is accessed. Signal sample rates, filter
enabling, and calibration modes are selected by writing to this
register. The contents may be read at any time—see Mode Register
section.
07h
08h
CFDEN
CH1OS
R/W 12
3Fh
80h
CF Frequency Divider Denominator Register. The output fre-
quency on the CF pin is adjusted by writing to this 12-bit read/write
register—see Energy-to-Frequency Conversion section.
R/W
8
Channel 1 Offset Adjust. The MSB is used to enable the digital inte-
grator. Bit 6 is not used. Writing to Bits 0 to 5 allows offsets on
Channel 1 to be removed—see Analog Inputs section and CH1OS
Register section.
09h
0Ah
CH2OS
GAIN
R/W
R/W
6
8
0h
0h
Channel 2 Offset Adjust. Writing to this 6-bit register allows any offsets
on Channel 2 to be removed—see Analog Inputs section.
PGA Gain Adjust. This 8-bit register is used to adjust the gain selec-
tion for the PGA in Channel 1 and 2—see Analog Inputs section.
–28–
REV. A
ADE7759
Address Name
R/W No. of Bits Default Description
R/W 12 0h
0Bh
APGAIN
Active Power Gain Adjust. This is a 12-bit register. The active power
calculation can be calibrated by writing to this register. The calibration
range is ±50% of the nominal full-scale active power. The resolution of the
gain adjust is 0.0244%/LSB—see Channel 1 ADC Gain Adjust section.
0Ch
PHCAL
R/W
8
0h
Phase Calibration Register. The phase relationship between Channel 1
and Channel 2 can be adjusted by writing to this 8-bit register. The
valid content of this twos complement register is between 9Eh and
5Ch, which is a phase difference of –2.365∞ to +2.221∞ at 60 Hz in
0.0241∞ steps—see Phase Compensation section.
0Dh
0Eh
APOS
R/W 16
R/W 12
0h
Active Power Offset Correction. This 16-bit register allows small off-
sets in the Active Power calculation to be removed—see Active Power
Calculation section.
ZXTOUT
FFFh
Zero Cross Timeout. If no zero crossings are detected on Channel 2
within a time period specified by this 12-bit register, the interrupt
request line (IRQ) will be activated. The maximum timeout period is
0.15 seconds—see Zero Crossing Detection section.
0Fh
10h
SAGCYC
IRQEN
R/W
R/W
8
8
FFh
40h
Sag Line Cycle Register. This 8-bit register specifies the number of
consecutive half-line cycles the signal on Channel 2 must be below
SAGLVL before the SAG output is activated—see Voltage Sag
Detection section.
Interrupt Enable Register. ADE7759 interrupts may be deactivated at
any time by setting the corresponding bit in this 8-bit enable register to
Logic 0. The status register will continue to register an interrupt event
even if disabled. However, the IRQ output will not be activated—see
Interrupts section.
11h
SAGLVL
R/W
8
0h
Sag Voltage Level. An 8-bit write to this register determines at what
peak signal level on Channel 2 the SAG pin will become active. The
signal must remain low for the number of cycles specified in the
SAGCYC register before the SAG pin is activated—see Line Voltage
Sag Detection section.
12h
13h
TEMP
R
8
4
0h
Temperature Register. This is an 8-bit register which contains the
result of the latest temperature conversion—see Temperature
Measurement section.
LINECYC
R/W
3FFFh
Line Cycle Energy Accumulation Mode Half-Cycle Register. This
14-bit register is used during line cycle energy accumulation mode to
set the number of half-line cycles active energy is accumulated—see
Line Cycle Energy Accumulation Mode section.
14h
15h
LENERGY
CFNUM
R
40
2
0h
0h
Line Cycle Energy Accumulation Mode Active Energy Register. This
40-bit register accumulates active energy during line cycle energy
accumulation mode. The number of half-line cycles is set by the
LINECYC register—see Line Cycle Energy Accumulation Mode section.
R/W
CF Frequency Divider Numerator Register. The output frequency on
the CF pin is adjusted by writing to this 12-bit read/write register—see
Energy to Frequency Conversion section.
1Eh
1Fh
CHKSUM
DIEREV
R
R
6
8
0h
Checksum Register. This 6-bit read-only register is equal to the sum of
all the ones in the previous read—see Serial Read Operation section.
01h
Die Revision Register. This 8-bit read-only register contains the revision
number of the silicon.
REV. A
–29–
ADE7759
REGISTER DESCRIPTIONS
Communications Register
All ADE7759 functionality is accessed via the on-chip registers.
Each register is accessed by first writing to the communications
register and then transferring the register data. A full description
of the serial interface protocol is given in the Serial Interface
section.
The communications register is an 8-bit, write-only register
that controls the serial data transfer between the ADE7759 and
the host processor. All data transfer operations must begin with
a write to the communications register. The data written to the
communications register determines whether the next operation
is a read or a write and which register is being accessed. Table V
outlines the bit designations for the communications register.
Table V. Communications Register
DB7
DB6
0
DB5
0
DB4
A4
DB3
A3
DB2
A2
DB1
A1
DB0
A0
W/R
Bit
Location
Bit
Mnemonic
Description
0 to 4
A0 to A4
The five LSBs of the communications register specify the register for the data transfer opera-
tion. Table III lists the address of each ADE7759 on-chip register.
5 to 6
7
RESERVED
These bits are unused and should be set to zero.
W/R
When this bit is a Logic 1, the data transfer operation immediately following the write to the
Communications register will be interpreted as a write to the ADE7759. When this bit is a
Logic 0, the data transfer operation immediately following the write to the communications
register will be interpreted as a read operation.
–30–
REV. A
ADE7759
Mode Register (06H)
The ADE7759 functionality is configured by writing to the mode register—see Figure 45. Table VI summarizes the functionality of
each bit in the mode register.
Table VI. Mode Register
Bit
Location
Bit
Mnemonic
Description
0
1
2
3
4
DISHPF
DISLPF2
DISCF
The HFP (high-pass filter) in Channel 1 is disabled when this bit is set.
The LPF (low-pass filter) after the multiplier (LPF2) is disabled when this bit is set.
The frequency output CF is disabled when this bit is set.
DISSAG
ASUSPEND
The line voltage sag detection is disabled when this bit is set.
By setting this bit to Logic 1, both ADE7759s’ A/D converters can be turned off. In normal
operation, this bit should be left at Logic 0. All digital functionality can be stopped by suspending
the clock signal at CLKIN pin.
5
6
TEMPSEL
SWRST
The temperature conversion starts when this bit is set to 1. This bit is automatically reset to
0 when the temperature conversion is finished.
Software Chip Reset. A data transfer should not take place to the ADE7759 for at least 18 µs after
a software reset.
7
CYCMODE
DISCH1
DISCH2
SWAP
Setting this bit to Logic 1 places the chip in line cycle energy accumulation mode.
ADC 1 (Channel 1) inputs are internally shorted together.
8
9
ADC 2 (Channel 2) inputs are internally shorted together.
10
By setting this bit to Logic 1 the analog inputs V2P and V2N are connected to ADC 1 and the
analog inputs V1P and V1N are connected to ADC 2.
12, 11
14, 13
15
DTRT1, 0
WAVSEL1, 0
TEST1
These bits are used to select the waveform register update rate.
DTRT1
DTRT0
Update Rate
0
0
1
1
0
1
0
1
27.9 kSPS (CLKIN/128)
14 kSPS (CLKIN/256)
7 kSPS (CLKIN/512)
3.5 kSPS (CLKIN/1024)
These bits are used to select the source of the sampled data for the waveform register.
WAVSEL1, 0
Length
24 bits
40 bits
24 bits
24 bits
Source
0
0
1
1
0
1
0
1
Active Power Signal (output of LPF2)
Channel 1 and Channel 2
Channel 1
Channel 2
Writing a Logic 1 to this bit position places the ADE7759 in test mode. This is intended for fac-
tory testing only and should be left at 0.
REV. A
–31–
ADE7759
15 14 13 12 11 10
9
0
8
0
7
0
6
0
5
0
4
0
3
1
2
1
1
0
0
0
0
0
0
0
0
0
ADDR: 06H
DISHPF
TEST1
(TEST MODE SELECTION SHOULD BE SET TO 0)
(DISABLE HPF1 IN CHANNEL 1)
WAVSEL
DISLPF2
(WAVEFORM SELECTION FOR SAMPLE MODE)
(DISABLE LPF2 AFTER MULTIPLIER)
00 = LPF2
DISCF
01 = CH1 + CH2 (40-BIT WAVEFORM SAMPLES)
(DISABLE FREQUENCY OUTPUT CF)
10 = CH1
11 = CH2
DISSAG
(DISABLE SAG OUTPUT)
DTRT
(WAVEFORM SAMPLES OUTPUT DATA RATE)
00 = 27.9kSPS (CLKIN/128)
ASUSPEND
(SUSPEND CH1 AND CH2 ADCs)
01 = 14.4kSPS (CLKIN/256)
10 = 7.2kSPS (CLKIN/512)
11 = 3.6kSPS (CLKIN/1024)
STEMP
(START TEMPERATURE SENSING)
SWRST
(SOFTWARE CHIP RESET)
SWAP
CYCMODE
(SWAP CH1 AND CH2 ADCs)
(LINE CYCLE ENERGY ACCUMULATION MODE)
DISCH2
(SHORT THE ANALOG INPUTS ON CHANNEL 2)
DISCH1
(SHORT THE ANALOG INPUTS ON CHANNEL 1)
NOTE: REGISTER CONTENTS SHOW POWER-ON DEFAULTS
Figure 48. Mode Register
Interrupt Status Register (04H)/Reset Interrupt Status Register (05H)
The status register is used by the MCU to determine the source of an interrupt request (IRQ). When an interrupt event occurs in the
ADE7759, the corresponding flag in the interrupt status register is set logic high. If the enable bit for this flag is Logic 1 in the inter-
rupt enable register, the IRQ logic output goes active low. When the MCU services the interrupt, it must first carry out a read from
the interrupt status register to determine the source of the interrupt.
Table VII. Interrupt Status Register, Reset Interrupt Status Register, and Interrupt Enable Register
Bit
Location
Interrupt
Flag
Description
0
1
2
AEHF
Indicates that an interrupt was caused by the 0 to 1 transition of the MSB of the active energy register.
Indicates that an interrupt was caused by a SAG on the line voltage or no zero crossings were detected.
SAG
CYCEND
Indicates the end of energy accumulation over an integer number of half line cycles as defined by
the content of the LINECYC register—see Line Cycle Energy Accumulation Mode section.
3
4
5
6
WSMP
ZX
Indicates that new data is present in the waveform register.
This status bit reflects the status of the ZX logic output—see Zero Crossing Detection section.
Indicates that a temperature conversion result is available in the temperature register.
TEMP
RESET
Indicates the end of a reset (for both software or hardware reset). The corresponding enable bit has
no function in the interrupt enable register, i.e., this status bit is set at the end of a reset, but it
cannot be enabled to cause an interrupt.
7
AEOF
Indicates that the active energy register has overflowed.
–32–
REV. A
ADE7759
7
0
6
1
5
0
4
0
3
0
2
0
1
0
0
0
ADDR: 04H/RESET: 05H
AEOF
AEHF
(ACTIVE ENERGY REGISTER OVERFLOW)
(ACTIVE ENERGY REGISTER HALF FULL)
SAG
RESET
(LINE VOLTAGE SAG DETECT)
(END OF A HARDWARE OR SOFTWARE RESET)
TEMP
CYCEND
(TEMPERATURE REGISTER READY)
(LINE CYCLE ENERGY ACCUMULATION END)
ZX
WSMP
(ZERO CROSSING DETECTED)
(WAVEFORM SAMPLING)
NOTE: REGISTER CONTENTS SHOW POWER ON DEFAULTS
Figure 49. Interrupt Status Register
7
0
6
0
5
0
4
0
3
0
2
0
1
0
0
0
ADDR: 10H
AEHF
AEOF
(ACTIVE ENERGY REGISTER OVERFLOW)
(ACTIVE ENERGY REGISTER HALF FULL)
NOT USED
SAG
(LINE VOLTAGE SAG DETECT)
TEMP
CYCEND
(TEMPERATURE REGISTER READY)
(END OF LINE CYCLE ENERGY ACCUMULATION)
ZX
WSMP
(ZERO CROSSING DETECTED)
(WAVEFORM SAMPLING)
NOTE: REGISTER CONTENTS SHOW POWER ON DEFAULTS
Figure 50. Interrupt Enable Register
CH1OS Register (08H)
The CH1OS register is an 8-bit, read/write enabled register. The MSB of this register is used to switch on/off the digital integrator in Chan-
nel 1, and Bits 0 to 5 indicate the amount of the offset correction in Channel 1. Table VIII summarizes the function of this register.
Table VIII. CH1OS Register
Bit Location
Bit Mnemonic
Description
0 to 5
OFFSET
The six LSBs of the CH1OS register control the amount of dc offset correction in Channel 1
ADC. The 6-bit offset correction is sign and magnitude coded. Bits 0 to 4 indicate the magnitude
of the offset correction. Bit 5 shows the sign of the offset correction. A 0 in Bit 5 means the offset
correction is positive and a 1 indicates the offset correction is negative.
6
7
Not Used
This bit is unused.
INTEGRATOR
This bit is used to activate the digital integrator on Channel 1. The digital integrator is switched
on by setting this bit. This bit is set to be 1 on default.
CH1OS REGISTER*
7
1
6
0
5
0
4
0
3
0
2
0
1
0
0
0
ADDR: 08H
SIGN AND MAGNITUDE CODED
DIGITAL INTEGRATOR SELECTION
1 = ENABLE
0 = DISABLE
OFFSET CORRECTION BITS
NOT USED
*REGISTER CONTENTS SHOW POWER-ON DEFAULT
Figure 51. CH1OS Register
REV. A
–33–
ADE7759
OUTLINE DIMENSIONS
20-Lead Shrink Small Outline Package [SSOP]
(RS-20)
Dimensions shown in millimeters
7.50
7.20
6.90
20
11
10
8.20
7.80
7.40
5.60
5.30
5.00
1
1.85
1.75
1.65
2.00 MAX
0.25
0.09
8ꢀ
4ꢀ
0ꢀ
0.65
BSC
0.95
0.75
0.55
0.38
0.22 SEATING
PLANE
0.05 MIN
COPLANARITY
0.10
COMPLIANT TO JEDEC STANDARDS MO-150AE
–34–
REV. A
ADE7759
Revision History
Location
Page
12/02—Data Sheet changed from REV. 0 to REV. A.
Changes to SPECIFICATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Changes to ORDERING GUIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Changes to Figure 23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Updated OUTLINE DIMENSIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
REV. A
–35–
–36–
相关型号:
©2020 ICPDF网 联系我们和版权申明