Energy Metering IC with On-Chip Fault and Missing Neutral Detection ADE7761A FEATURES GENERAL DESCRIPTION High accuracy, active energy measurement IC supports IEC 62053-21 Less than 0.1% error over a dynamic range of 500 to 1 Supplies active power on the frequency outputs, F1 and F2 High frequency output CF is intended for calibration and supplies instantaneous active power Continuous monitoring of the phase and neutral current allows fault detection in 2-wire distribution systems Current channels input level best suited for shunt and current transformer sensors Uses the larger of the two currents (phase or neutral) to bill—even during a fault condition Continuous monitoring of the voltage and current inputs allows missing neutral detection Uses one current input (phase or neutral) to bill when missing neutral is detected Two logic outputs (FAULT and REVP) can be used to indicate a potential miswiring, fault, or missing neutral condition Direct drive for electromechanical counters and 2-phase stepper motors (F1 and F2) Proprietary ADCs and DSP provide high accuracy over large variations in environmental conditions and time Reference 2.5 V ± 8% (drift 30 ppm/°C typical) with external overdrive capability Single 5 V supply, low power The ADE7761A is a high accuracy, fault-tolerant, electrical energy measurement IC intended for use with 2-wire distribution systems. The part specifications surpass the accuracy requirements as quoted in the IEC 62053-21 standard. The only analog circuitry used on the ADE7761A is in the ADCs and reference circuit. All other signal processing (such as multiplication and filtering) is carried out in the digital domain. This approach provides superior stability and accuracy over extremes in environmental conditions and over time. The ADE7761A incorporates a fault detection scheme similar to the ADE7751 by continuously monitoring both phase and neutral currents. A fault is indicated when the currents differ by more than 6.25%. The ADE7761A incorporates a missing neutral detection scheme by continuously monitoring the input voltage. When a missing neutral condition is detected—no voltage input—the ADE7761A continues billing based on the active current signal (see the Missing Neutral Mode section). The missing neutral condition is indicated when the FAULT pin goes high. The ADE7761A supplies average active power information on the low frequency outputs, F1 and F2. The CF logic output gives instantaneous active power information. The ADE7761A includes a power-supply monitoring circuit on the VDD supply pin. Internal phase matching circuitry ensures that the voltage and current channels are matched. An internal no-load threshold ensures that the ADE7761A does not exhibit any creep when there is no load. FUNCTIONAL BLOCK DIAGRAM PGA AGND FAULT 13 8 15 VDD 1 POWER SUPPLY MONITOR ADC ADE7761A HPF A>B SIGNAL PROCESSING BLOCK V1N 4 ADC V1B 3 MISCAL 7 B>A A<>B MISSING NEUTRAL GAIN ADJUST ADC V2P 6 ADC V2N 5 2.5V REFERENCE 3kΩ LPF ZERO CROSSING DETECTION MISSING NEUTRAL DETECTION INTERNAL OSCILLATOR DIGITAL-TO-FREQUENCY CONVERTER 9 14 17 10 11 12 18 19 20 REFIN/OUT RCLKIN DGND SCF S1 S0 REVP CF 16 F2 F1 05040-0-001 V1A 2 Figure 1. Rev. 0 Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. Specifications subject to change without notice. No license is granted by implication or otherwise under any patent or patent rights of Analog Devices. Trademarks and registered trademarks are the property of their respective owners. One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. Tel: 781.329.4700 www.analog.com Fax: 781.461.3113 ©2006 Analog Devices, Inc. All rights reserved. ADE7761A TABLE OF CONTENTS Features .............................................................................................. 1 Analog Inputs ............................................................................. 11 General Description ......................................................................... 1 Internal Oscillator ...................................................................... 12 Functional Block Diagram .............................................................. 1 Analog-to-Digital Conversion.................................................. 13 Revision History ............................................................................... 2 Active Power Calculation .......................................................... 14 Specifications..................................................................................... 3 Digital-to-Frequency Conversion ............................................ 16 Timing Characteristics ................................................................ 4 Transfer Function....................................................................... 16 Absolute Maximum Ratings............................................................ 5 Fault Detection ........................................................................... 17 Performance Issues That May Affect Billing Accuracy........... 5 Missing Neutral Mode ............................................................... 18 ESD Caution.................................................................................. 5 Applications..................................................................................... 21 Pin Configuration and Function Descriptions............................. 6 Interfacing to a Microcontroller for Energy Measurement .. 21 Terminology ...................................................................................... 8 Selecting a Frequency for an Energy Meter Application ...... 21 Typical Performance Characteristics ............................................. 9 Negative Power Information..................................................... 22 Test Circuit ...................................................................................... 10 Outline Dimensions ....................................................................... 23 Operation......................................................................................... 11 Ordering Guide .......................................................................... 23 Power Supply Monitor ............................................................... 11 REVISION HISTORY 7/06—Revision 0: Initial Version Rev. 0 | Page 2 of 24 ADE7761A SPECIFICATIONS VDD = 5 V ± 5%, AGND = DGND = 0 V, on-chip reference, on-chip oscillator, TMIN to TMAX = −40°C to +85°C. Table 1. Parameter ACCURACY 1 Measurement Error 2 Phase Error Between Channels PF = 0.8 Capacitive PF = 0.5 Inductive AC Power Supply Rejection2 Output Frequency Variation DC Power Supply Rejection2 Output Frequency Variation FAULT DETECTION2, 3 Fault Detection Threshold Inactive Input <> Active Input Input Swap Threshold Inactive Input <> Active Input Accuracy Fault Mode Operation V1A Active, V1B = AGND V1B Active, V1A = AGND Fault Detection Delay Swap Delay MISSING NEUTRAL MODE2, 4 Missing Neutral Detection Threshold V2P − V2N Accuracy Missing Neutral Mode V1A Active, V1B = V2P = AGND V1B Active, V1A = V2P = AGND Missing Neutral Detection Delay ANALOG INPUTS Maximum Signal Levels Input Impedance (DC) Bandwidth (−3 dB) ADC Offset Error2 Gain Error Gain Error Match2 REFERENCE INPUT REFIN/OUT Input Voltage Range Input Impedance Input Capacitance ON-CHIP REFERENCE Reference Error Temperature Coefficient Current Source ON-CHIP OSCILLATOR Oscillator Frequency Oscillator Frequency Tolerance Temperature Coefficient Value Unit Test Conditions/Comments 0.1 % of reading, typ Over a dynamic range of 500 to 1 ±0.05 ±0.05 Degrees, max Degrees, max Phase lead 37° Phase lag 60° 0.01 %, typ V1A = V1B = V2P = ±100 mV rms 0.01 %, typ V1A = V1B = V2P = ±100 mV rms See the Fault Detection section 6.25 %, typ V1A or V1B active 6.25 % of larger, typ V1A or V1B active 0.1 0.1 3 3 % of reading, typ % of reading, typ Seconds, typ Seconds, typ Over a dynamic range of 500 to 1 Over a dynamic range of 500 to 1 See the Missing Neutral Detection section 59.4 mV peak, min 0.1 0.1 3 % of reading, typ % of reading, typ Seconds, typ ±660 660 400 7 15 ±4 ±3 mV peak, max mV peak, max kΩ, min kHz, typ mV, typ %, typ %, typ 2.7 2.3 3 10 V, max V, min kΩ, min pF, max ±200 30 20 mV, max ppm/°C, typ μA, min 450 ±12 30 kHz % of reading, typ ppm/°C, typ Over a dynamic range of 500 to 1 Over a dynamic range of 500 to 1 V1A − V1N, V1B − V1N, V2P − V2N Differential input Differential input MISCAL − V2N Uncalibrated error, see the Terminology section for details External 2.5 V reference External 2.5 V reference 2.5 V + 8% 2.5 V − 8% Rev. 0 | Page 3 of 24 ADE7761A Parameter LOGIC INPUTS 5 PGA, SCF, S1, and S0 Input High Voltage, VINH Input Low Voltage, VINL Input Current, IIN Input Capacitance, CIN LOGIC OUTPUTS5 CF, REVP, and FAULT Output High Voltage, VOH Output Low Voltage, VOH F1 and F2 Output High Voltage, VOH Output Low Voltage, VOH POWER SUPPLY VDD VDD Value Unit Test Conditions/Comments 2.4 0.8 ±3 10 V, min V, max μA, max pF, max VDD = 5 V ± 5% VDD = 5 V ± 5% Typical 10 nA, VIN = 0 V to VDD 4 1 V, min V, max VDD = 5 V ± 5% VDD = 5 V ± 5% 4 1 V, min V, max 4.75 5.25 3 V, min V, max mA, max VDD = 5 V ± 5%, ISOURCE = 10 mA VDD = 5 V ± 5%, ISINK = 10 mA For specified performance 5 V − 5% 5 V + 5% 1 See plots in the Typical Performance Characteristics section. See the Terminology section for explanation of specifications. 3 See the Fault Detection section for explanation of fault detection functionality. 4 See the Missing Neutral Detection section for explanation of missing neutral detection functionality. 5 Sample tested during initial release and after any redesign or process change that might affect this parameter. 2 TIMING CHARACTERISTICS VDD = 5 V ± 5%, AGND = DGND = 0 V, on-chip reference, on-chip oscillator, TMIN to TMAX = −40°C to +85°C. Sample tested during initial release and after any redesign or process change that might affect this parameter. See Figure 2. Table 2. Parameter t1 1 t2 t3 t41 t5 t6 Unit ms s s ms s s Test Conditions/Comments F1 and F2 Pulse Width (Logic High). Output Pulse Period. See the Transfer Function section. Time Between F1 Falling Edge and F2 Falling Edge. CF Pulse Width (Logic High). CF Pulse Period. See the Transfer Function section. Minimum Time Between F1 and F2 Pulse. The pulse widths of F1, F2, and CF are not fixed for higher output frequencies. See the Transfer Function section. t1 F1 t6 t2 t3 F2 t4 t5 05040-002 1 Value 120 See Table 7 1/2 t2 90 See Table 8 CLKIN/4 CF Figure 2. Timing Diagram for Frequency Outputs Rev. 0 | Page 4 of 24 ADE7761A ABSOLUTE MAXIMUM RATINGS TA = 25°C, unless otherwise noted. Table 3. Parameter VDD to AGND Analog Input Voltage to AGND V1A, V1B, V1N, V2N, V2P, MISCAL Reference Input Voltage to AGND Digital Input Voltage to DGND Digital Output Voltage to DGND Operating Temperature Range Industrial Storage Temperature Range Junction Temperature 20-Lead SSOP, Power Dissipation θJA Thermal Impedance Lead Temperature, Soldering Vapor Phase (60 sec) Infrared (15 sec) PERFORMANCE ISSUES THAT MAY AFFECT BILLING ACCURACY Rating −0.3 V to +7 V −6 V to +6 V The ADE7761A provides pulse outputs—CF, F1, and F2— intended to be used for the billing of active energy. Pulses are generated at these outputs in two different situations. −0.3 V to VDD + 0.3 V −0.3 V to VDD + 0.3 V −0.3 V to VDD + 0.3 V Case 1: When the analog input V2P – V2N complies with the conditions described in Figure 34, CF, F1, and F2 frequencies are proportional to active power and can be used to bill active energy. −40°C to +85°C −65°C to +150°C 150°C 450 mW 112°C/W Case 2: When the analog input V2P – V2N does not comply with the conditions described in Figure 34, the ADE7761A does not measure active energy but a quantity proportional to kAh. This quantity is used to generate pulses on the same CF, F1, and F2. This situation is indicated when the FAULT pin is high. 215°C 220°C Stresses above those listed under Absolute Maximum Ratings may cause permanent 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. Analog Devices, Inc. cautions users of the ADE7761A about the following: • Billing active energy in Case 1 is consistent with the understanding of the quantity represented by pulses on CF, F1, and F2 outputs (watt-hour). • Billing active energy while the ADE7761A is in Case 2 must be decided knowing that the entity measured by the ADE7761A in this case is ampere-hour and not watt-hour. Users should be aware of this limitation and decide if the ADE7761A is appropriate for their application. ESD 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 this product 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. Rev. 0 | Page 5 of 24 ADE7761A PIN CONFIGURATION AND FUNCTION DESCRIPTIONS VDD 1 20 F1 V1A 2 19 F2 V1B 3 18 CF V1N 4 17 DGND V2N 5 ADE7761A 16 REVP V2P 6 TOP VIEW (Not to Scale) 15 FAULT MISCAL 7 AGND 8 REFIN/OUT 9 14 RCLKIN 12 S0 SCF 10 11 S1 05040-003 13 PGA Figure 3. Pin Configuration (SSOP) Table 4. Pin Function Descriptions Pin No. 1 Mnemonic VDD 2, 3 V1A, V1B 4 V1N 5 V2N 6 V2P 7 MISCAL 8 AGND 9 REFIN/OUT 10 SCF 11, 12 S1, S0 13 14 PGA RCLKIN Description Power Supply. This pin provides the supply voltage for the digital circuitry in the ADE7761A. The supply voltage should be maintained at 5 V ± 5% for specified operation. This pin should be decoupled with a 10 μF capacitor in parallel with a ceramic 100 nF capacitor. Analog Inputs for Channel 1 (Current Channel). These inputs are fully differential voltage inputs with maximum differential input signal levels of ±660 mV with respect to V1N for specified operation. The maximum signal level at these pins is ±1 V with respect to AGND. Both inputs have internal ESD protection circuitry, and an overvoltage of ±6 V can also be sustained on these inputs without risk of permanent damage. Negative Input for Differential Voltage Inputs, V1A and V1B. The maximum signal level at this pin is ±1 V with respect to AGND. The input has internal ESD protection circuitry, and an overvoltage of ±6 V can also be sustained on this input without risk of permanent damage. The input should be directly connected to the burden resistor and held at a fixed potential, that is, AGND. See the Analog Inputs section. Negative Input for Differential Voltage Inputs, V2P and MISCAL. The maximum signal level at this pin is ±1 V with respect to AGND. The input has internal ESD protection circuitry, and an overvoltage of ±6 V can also be sustained on this input without risk of permanent damage. The input should be held at a fixed potential, that is, AGND. See the Analog Inputs section. Analog Input for Channel 2 (Voltage Channel). This input is a fully differential voltage input with maximum differential input signal levels of ±660 mV with respect to V2N for specified operation. The maximum signal level at this pin is ±1 V with respect to AGND. This input has internal ESD protection circuitry, and an overvoltage of ±6 V can also be sustained on this input without risk of permanent damage. Analog Input for Missing Neutral Calibration. This pin can be used to calibrate the CF-F1-F2 frequencies in the missing neutral condition. This input is a fully differential voltage input with maximum differential input signal levels of 660 mV with respect to V2N for specified operation. The maximum signal level at this pin is ±1 V with respect to AGND. This input has internal ESD protection circuitry, and an overvoltage of ±6 V can also be sustained on this input without risk of permanent damage. This pin provides the ground reference for the analog circuitry in the ADE7761A, that is, ADCs and reference. This pin should be tied to the analog ground plane of the PCB. The analog ground plane is the ground reference for all analog circuitry, such as antialiasing filters, and current and voltage transducers. For good noise suppression, the analog ground plane should be connected only to the digital ground plane at the DGND pin. This pin provides access to the on-chip voltage reference. The on-chip reference has a nominal value of 2.5 V ± 8% and a typical temperature coefficient of 30 ppm/°C. An external reference source can also be connected at this pin. In either case, this pin should be decoupled to AGND with a 1 μF ceramic capacitor and 100 nF ceramic capacitor. Select Calibration Frequency. This logic input is used to select the frequency on the calibration output CF. Table 7 shows how the calibration frequencies are selected. These logic inputs are used to select one of four possible frequencies for the digital-to-frequency conversion. This offers the designer greater flexibility when designing the energy meter. See the Selecting a Frequency for an Energy Meter Application section. This logic input is used to select the gain for the analog inputs, V1A and V1B. The possible gains are 1 and 16. To enable the internal oscillator as a clock source on the chip, a precise low temperature drift resistor at nominal value of 6.2 kΩ must be connected from this pin to DGND. Rev. 0 | Page 6 of 24 ADE7761A Pin No. 15 Mnemonic FAULT 16 REVP 17 DGND 18 CF 19, 20 F2, F1 Description This logic output goes active high when a fault or missing neutral condition occurs. A fault is defined as a condition under which the signals on V1A and V1B differ by more than 6.25%. A missing neutral condition is defined when the chip is powered up with no voltage at the input. The logic output is reset to zero when a fault or missing neutral condition is no longer detected. See the Fault Detection section and the Missing Neutral Mode section. This logic output goes logic high when negative power is detected, that is, when the phase angle between the voltage and current signals is greater than 90°. This output is not latched and is reset when positive power is once again detected. The output goes high or low at the same time as a pulse is issued on CF. This pin provides the ground reference for the digital circuitry in the ADE7761A, that is, multiplier, filters, and digital-to-frequency converters. This pin should be tied to the digital ground plane of the PCB. The digital ground plane is the ground reference for all digital circuitry, such as counters (mechanical and digital), MCUs, and indicator LEDs. For good noise suppression, the analog ground plane should be connected only to the digital ground plane at the DGND pin. Calibration Frequency Logic Output. The CF logic output, active high, gives instantaneous active power information. This output is used for operational and calibration purposes. See the Digital-to-Frequency Conversion section. Low Frequency Logic Outputs. F1 and F2 supply average active power information. The logic outputs can be used to directly drive electromechanical counters and 2-phase stepper motors. Rev. 0 | Page 7 of 24 ADE7761A TERMINOLOGY Measurement Error The error associated with the energy measurement made by the ADE7761A is defined by Percentage Error = ⎛ Energy registered by ADE7761A − True Energy ⎞ ⎜ × 100% ⎟ ⎜ ⎟ True Energy ⎝ ⎠ Phase Error Between Channels The high-pass filter (HPF) in the current channel has a phase lead response. To offset this phase response and equalize the phase response among channels, a phase correction network is also placed in the current channel. The phase correction network ensures a phase match between the current channels and voltage channels to within ±0.1° over a range of 45 Hz to 65 Hz and ±0.2° over a range of 40 Hz to 1 kHz. Power Supply Rejection (PSR) PSR quantifies the ADE7761A measurement error as a percentage of reading when the power supplies are varied. 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/100 Hz) signal is introduced onto the supplies. Any error introduced by this ac signal is expressed as a percentage of reading (see the Measurement Error definition). For the dc PSR measurement, a reading at nominal supplies (5 V) is taken. A second reading is obtained with the same input signal levels when the power supplies are varied ±5%. Any error introduced is again expressed as a percentage of reading. ADC Offset Error The dc offset associated with the analog inputs to the ADCs. With the analog inputs connected to AGND, the ADCs still see a dc analog input signal. The magnitude of the offset depends on the input gain and range selection (see the Typical Performance Characteristics section). However, when HPFs are switched on, the offset is removed from the current channels and the power calculation is not affected by this offset. Gain Error The gain error in the ADE7761A ADCs is defined as the difference between the measured output frequency (minus the offset) and the ideal output frequency. It is measured with a gain of 1 in Channel V1A. The difference is expressed as a percentage of the ideal frequency, which is obtained from the transfer function (see the Transfer Function section). Gain Error Match The gain error match is defined as the gain error (minus the offset) obtained when switching between a gain of 1 or 16. It is expressed as a percentage of the output ADC code obtained under a gain of 1. Rev. 0 | Page 8 of 24 ADE7761A TYPICAL PERFORMANCE CHARACTERISTICS 0.8 1.0 PF = 1 ON-CHIP REFERENCE 0.6 0.6 0.4 0.4 +25°C % ERROR 0 +85°C 0.2 –0.4 –0.6 –0.8 –0.8 1.0 10.0 CURRENT (% of Full Scale) 100.0 –1.0 0.10 10 100 Figure 7. Active Power Error as a Percentage of Reading over Power Factor with Gain = 16 and Internal Reference 1.0 PF = DIFFERENT VALUES ON-CHIP REFERENCE 0.8 PF = 1 ON-CHIP REFERENCE 5.25V 0.6 1.0 –40°C; PF = 0.5 0.4 0.2 % ERROR 0.5 % ERROR 1 CURRENT (% Full Scale) Figure 4. Active Power Error as a Percentage of Reading with Gain = 1 and Internal Reference 1.5 PF = +1 PF = +0.5 –0.2 –0.6 –1.0 0.1 PF = –0.5 0 –0.4 05040-004 +25°C; PF = 1 0 +85°C; PF = 0.5 +25°C; PF = 0.5 0 5.00V –0.2 4.75V –0.4 –0.6 –0.5 1.0 10 CURRENT (% of Full Scale) 100 –1.0 0.1 05040-005 –1.0 0.1 0.8 100.0 Figure 8. Active Power Error as a Percentage of Reading over Power Supply with Gain = 1 and Internal Reference Figure 5. Active Power Error as a Percentage of Reading over Power Factor with Gain = 1 and Internal Reference 1.0 1.0 10.0 CURRENT (% of Full Scale) 05040-006 –0.8 2.0 PF = 1. GAIN = 16 ON-CHIP REFERENCE ON-CHIP REFERENCE 1.5 0.6 1.0 % ERROR 0 +25°C –0.2 0 –0.5 –0.4 –1.0 0.10 +25°C –40°C –1.0 –0.6 –0.8 +85°C 0.5 0.2 +85°C –1.5 –40°C 1 10 CURRENT (% Full Scale) 100 05040-034 % ERROR 0.4 Figure 6. Active Power Error as a Percentage of Reading with Gain = 16 and Internal Reference –2.0 0.1 1.0 10.0 CURRENT (% of Full Scale) 100.0 Figure 9. Ampere Hour Error as a Percentage of Reading in Missing Neutral Mode with Gain = 1 and Internal Reference Rev. 0 | Page 9 of 24 05040-007 % ERROR 0.2 –0.2 GAIN = 16 ON-CHIP REFERENCE 0.8 –40°C 05040-035 1.0 ADE7761A TEST CIRCUIT VDD 10µF + 40A TO 80mA I 100nF 1kΩ RB 1 CF 18 VDD 2 PS2501-1 2kΩ 1 V1A 33nF TO FREQ. COUNTER 2 1kΩ RB RB = 18Ω 3 V1B FAULT 15 33nF 1kΩ RCLKIN 14 4 V1N 5 V2N 3 2kΩ 6.2kΩ 33nF 1kΩ 4 ADE7761A 10kΩ S0 12 33nF S1 11 SCF 10 1MΩ 1kΩ 6 REFIN/OUT 9 V2P 33nF 100nF 560kΩ 100kΩ 7 33nF + 10µF MISCAL PGA 13 AGND DGND 8 17 05040-008 220V Figure 10. Test Circuit for Performance Curves Rev. 0 | Page 10 of 24 ADE7761A OPERATION The ADE7761A continuously monitors the power supply (VDD) with its on-chip, power supply monitor. If the supply is less than 4 V ± 5%, the ADE7761A goes into an inactive state, that is, no energy is accumulated and the CF, F1, and F2 outputs are disabled. 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, which provides a high degree of immunity to false triggering due to noisy supplies. The power supply and decoupling for the part should be such that the ripple at VDD does not exceed 5 V ± 5% as specified for normal operation. VDD V1A, V1B +660mV + VCM GAIN COMMON MODE ±100mV MAX VCM V1A V1 V1N VCM AGND –660mV + VCM GAIN V1 DIFFERENTIAL INPUT B ±660mV MAX PEAK V1B Figure 12. Maximum Signal Levels, Channel 1 Channel V2 (Voltage Channel) The output of the line voltage transducer is connected to the ADE7761A at this analog input. Channel V2 is a single-ended, voltage input. The maximum peak differential signal on Channel 2 is ±660 mV with respect to V2N. Figure 13 shows the maximum signal levels that can be connected to Channel 2. 5V 4V V2 V2P +660mV + V CM DIFFERENTIAL INPUT ±660mV MAX PEAK VCM 0V ACTIVE INACTIVE Figure 11. On-Chip, Power Supply Monitoring VCM Figure 13. Maximum Signal Levels, Channel 2 ANALOG INPUTS Channel V1 (Current Channel) The voltage outputs from the current transducers are connected to the ADE7761A at Channel V1. It has two voltage inputs, V1A and V1B. These inputs are fully differential with respect to V1N. However, at any one time, only one is selected to perform the power calculation (see the Fault Detection section). The maximum peak differential signal on V1A − V1N and V1B − V1N is ±660 mV. However, Channel 1 has a programmable gain amplifier (PGA) with user-selectable gains of 1 or 16 (see Table 5). This gain facilitates easy transducer interfacing. Table 5. Channel 1 Dynamic Range Gain 1 16 V2N Maximum Differential Signal (mV) 660 41 The differential voltage V2P − V2N must be referenced to a common mode (usually AGND). The analog inputs of the ADE7761A can be driven with common-mode voltages of up to 100 mV with respect to AGND. However, the best results are achieved using a common mode equal to AGND. MISCAL Input The input for the power calibration in missing neutral mode is connected to the ADE7761A at this analog input. MISCAL is a single-ended, voltage input. It is recommended to use a dc signal derived from the voltage reference to drive this pin. The maximum peak differential signal on MISCAL is 660 mV with respect to V2N. Figure 14 shows the maximum signal levels that can be connected to the MISCAL pin. MISCAL +660mV + V CM MISCAL DIFFERENTIAL INPUT ±660mV MAX PEAK V2N VCM Figure 12 shows the maximum signal levels on V1A, V1B, and V1N. The maximum differential voltage is ±660 mV divided by the gain selection. The differential voltage signal on the inputs must be referenced to a common mode (usually AGND). MISCAL COMMON MODE ±100mV MAX VCM AGND Figure 14. Maximum Signal Levels, MISCAL Rev. 0 | Page 11 of 24 05040-012 REVP - FAULT - CF - INACTIVE F1 - F2 OUTPUTS COMMON MODE ±100mV MAX –660mV + V CM V2 05040-011 05040-009 TIME ADE7761A PGA 0 1 DIFFERENTIAL INPUT A ±660mV MAX PEAK 05040-010 POWER SUPPLY MONITOR ADE7761A Typical Connection Diagrams Figure 15 shows a typical connection diagram for Channel V1. The analog inputs are used to monitor both the phase and neutral currents. Because of the large potential difference between the phase and neutral, two current transformers (CTs) must be used to provide the isolation. Note that both CTs are referenced to analog ground (AGND); therefore, the commonmode voltage is 0 V. The CT turns ratio and burden resistor (RB) are selected to give a peak differential voltage of ±660 mV/gain. RF IN RB ±660mV GAIN RB ±660mV GAIN CF CF 05040-013 NEUTRAL PHASE V1N RF V1B Figure 15. Typical Connection for Channel 1 Figure 16 shows two typical connections for Channel V2. The first option uses a potential transformer (PT) to provide complete isolation from the main voltage. In the second option, the ADE7761A is biased around the neutral wire, and a resistor divider is used to provide a voltage signal that is proportional to the line voltage. Adjusting the ratio of RA and RB + VR is a convenient way to carry out a gain calibration on the meter. NEUTRAL PHASE ±660mV RF CF RD CF Figure 17. Typical Connection for MISCAL INTERNAL OSCILLATOR The internal oscillator frequency is inversely proportional to the value of this resistor. Although the internal oscillator operates when used with an ROSC resistor value between 5 kΩ and 12 kΩ, it is recommended to choose a value within the range of the nominal value. The output frequencies on CF, F1, and F2 are directly proportional to the internal oscillator frequency; therefore, the resistor ROSC must have a low tolerance and low temperature drift. A low tolerance resistor limits the variation of the internal oscillator frequency. A small variation of the clock frequency and consequently of the output frequencies from meter to meter contributes to a smaller calibration range of the meter. V2N ADE7761A 3kΩ 2.5V REFERENCE CF INTERNAL OSCILLATOR V2P VR1 9 CT 1RB + VR = RF. 14 REFIN/OUT V2N RF 17 RCLKIN DGND ROSC 05040-014 NEUTRAL PHASE V2N RF RA1 RB1 MISCAL VR1 CF AGND CF A low temperature drift resistor directly limits the variation of the internal clock frequency over temperature. The stability of the meter to external variation is then better ensured by design. V2P RF RC The nominal internal oscillator frequency is 450 kHz when used with the recommended ROSC resistor value of 6.2 kΩ between RCLKIN and DGND (see Figure 18). AGND CT REFIN/OUT Figure 16. Typical Connection for Channel 2 Figure 18. Internal Oscillator Connection Figure 17 shows a typical connection for the MISCAL input. The voltage reference input (REFIN/OUT) is used as a dc reference to set the MISCAL voltage. Rev. 0 | Page 12 of 24 05040-016 CT IP V1A Adjusting the level of MISCAL to calibrate the meter in missing neutral mode can be done by changing the ratio of RC and RD + VR1. When the internal reference is used, the values of RC, RD, and VR1 must be chosen to limit the current sourced by the internal reference sourcing current to below the specified 20 μA. Therefore, because VREF internal = 2.5 V, RC + RD + VR1 > 600 kΩ. 05040-015 The differential voltage MISCAL − V2N must be referenced to a common mode (usually AGND). The analog inputs of the ADE7761A can be driven with common-mode voltages of up to 100 mV with respect to AGND. However, best results are achieved using a common mode equal to AGND. ADE7761A ANTIALIAS FILTER (RC) ANALOG-TO-DIGITAL CONVERSION DIGITAL FILTER SHAPED NOISE NOISE 0 MCLK 1 225 450 FREQUENCY (kHz) INTEGRATOR R LATCHED COMPARATOR VREF DIGITAL LOW-PASS FILTER 1 C HIGH RESOLUTION OUTPUT FROM DIGITAL LFP SIGNAL 24 0 1 225 450 FREQUENCY (kHz) Figure 19. First-Order, Σ-Δ ADC A Σ-Δ modulator converts the input signal into a continuous serial stream of 1s and 0s at a rate determined by the sampling clock. In the ADE7761A, the sampling clock is equal to CLKIN. 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) approaches 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 is a meaningful result 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 24-bit data-words that are proportional to the input signal level. The Σ-Δ converter uses two techniques to achieve high resolution from what is essentially a 1-bit conversion technique. The first is oversampling, which means that the signal is sampled at a rate (frequency) that is many times higher than the bandwidth of interest. For example, the sampling rate in the ADE7761A is CLKIN (450 kHz) and the band of interest is 40 Hz to 1 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 (1 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 Σ-Δ 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 lowpass filter. This noise shaping is also shown in Figure 20. Figure 20. Noise Reduction due to Oversampling and Noise Shaping in the Analog Modulator Antialias Filter Figure 20 also shows an analog low-pass filter (RC) on input to the modulator. This filter is present to prevent aliasing. Aliasing is an artifact of all sampled systems, which means that frequency components in the input signal to the ADC that are higher than half the sampling rate of the ADC appear in the sampled signal frequency below half the sampling rate. Figure 21 illustrates the effect. In Figure 21, frequency components (arrows shown in black) above half the sampling frequency (also known as the Nyquist frequency), that is, 225 kHz, are imaged or folded back down below 225 kHz (arrows shown in gray). This happens with all ADCs no matter what the architecture. In the example shown, only frequencies near the sampling frequency (450 kHz) move into the band of interest for metering (40 Hz to 1 kHz). This fact allows the use of a very simple low-pass filter to attenuate these frequencies (near 250 kHz) and thereby prevent distortion in the band of interest. A simple RC filter (single pole) with a corner frequency of 10 kHz produces an attenuation of approximately 33 dB at 450 kHz (see Figure 21). This is sufficient to eliminate the effects of aliasing. ANTIALIASING EFFECTS SAMPLING FREQUENCY IMAGE FREQUENCIES 0 1 225 FREQUENCY (kHz) 450 05040-019 ....10100101.... 1-BIT DAC 05040-018 NOISE 04407-017 ANALOG LOW-PASS FILTER SAMPLING FREQUENCY SIGNAL The analog-to-digital conversion in the ADE7761A is carried out using second-order, Σ-Δ ADCs. Figure 19 shows a firstorder, Σ-Δ ADC (for simplicity). The converter is made up of two parts: the Σ-Δ modulator and the digital low-pass filter. Figure 21. ADC and Signal Processing in Current Channel or Voltage Channel Rev. 0 | Page 13 of 24 ADE7761A ACTIVE POWER CALCULATION Power Factor Considerations The ADCs digitize the voltage signals from the current and voltage transducers. A high-pass filter in the current channel removes any dc component from the current signal. This eliminates any inaccuracies in the active power calculation due to offsets in the voltage or current signals (see the HPF and Offset Effects section). The method used to extract the active power information from the instantaneous power signal (by low-pass filtering) is still valid even when the voltage and current signals are not in phase. Figure 23 displays the unity power factor condition and a displacement power factor (DPF = 0.5), that is, current signal lagging the voltage by 60°. The active power calculation is derived from the instantaneous power signal. The instantaneous power signal is generated by a direct multiplication of the current and voltage signals. To extract the active power component (dc component), the instantaneous power signal is low-pass filtered. Figure 22 illustrates the instantaneous active power signal and shows how the active power information can be extracted by low-pass filtering the instantaneous power signal. This scheme correctly calculates active power for nonsinusoidal current and voltage waveforms at all power factors. All signal processing is carried out in the digital domain for superior stability over temperature and time. PGA ADC V×I 2 0V CURRENT VOLTAGE INSTANTANEOUS POWER SIGNAL V×I 2 MULTIPLIER LPF INSTANTANEOUS ACTIVE POWER SIGNAL × cos(60°) 0V HPF ADC CH2 INSTANTANEOUS ACTIVE POWER SIGNAL DIGITAL-TOFREQUENCY VOLTAGE CURRENT 60° CF 05040-021 CH1 DIGITAL-TOFREQUENCY F1 F2 INSTANTANEOUS POWER SIGNAL Figure 23. Active Power Calculation over PF V×I INSTANTANEOUS ACTIVE POWER SIGNAL p(t) = i(t).v(t) WHERE: V×I v(t) = V × cos(ωt) 2 i(t) = I × cos(ωt) p(t) = V × I {1 + cos (2ωt)} 2 TIME If one assumes that the voltage and current waveforms are sinusoidal, the active power component of the instantaneous power signal (dc term) is given by (V × I/2) × cos(60°) 05040-020 INSTANTANEOUS POWER SIGNAL –p(t) Figure 22. Signal Processing Block Diagram This is the correct active power calculation. Nonsinusoidal Voltage and Current The low frequency output of the ADE7761A is generated by accumulating this active power information. This low frequency inherently means a long accumulation time between output pulses. The output frequency is, therefore, proportional to the average active power. This average active power information can, in turn, be accumulated (for example, by a counter) to generate active energy information. Because of its high output frequency and, therefore, shorter integration time, the CF output is proportional to the instantaneous active power. This is useful for system calibration purposes that take place under steady load conditions. The active power calculation method also holds true for nonsinusoidal current and voltage waveforms. All voltage and current waveforms in practical applications have some harmonic content. Using the Fourier transform, instantaneous voltage and current waveforms can be expressed in terms of their harmonic content ∞ v(t ) = VO + 2 × ∑ Vh × sin(hωt + αh ) h≠0 where: v(t) is the instantaneous voltage. VO is the average value. Vh is the rms value of voltage harmonic h. αh is the phase angle of the voltage harmonic. Rev. 0 | Page 14 of 24 (1) ADE7761A ∞ i(t ) = I O + 2 × ∑ I h × sin(hωt + β h ) (2) h≠0 where: i(t) is the instantaneous current. IO is the dc component. The HPF in Channel 1 has an associated phase response that is compensated for on-chip. Figure 25 and Figure 26 show the phase error between channels with the compensation network activated. The ADE7761A is phase compensated up to 1 kHz as shown, which ensures a correct active harmonic power calculation even at low power factors. Ih is the rms value of current harmonic h. DC COMPONENT (INCLUDING ERROR TERM) IS EXTRACTED BY THE LPF FOR ACTIVE POWER CALCULATION βh is the phase angle of the current harmonic. Using Equation 1 and Equation 2, the active power P can be expressed in terms of its fundamental active power (P1) and harmonic active power (PH). V1 × I1 2 P = P1 + PH V1 × I0 2ω 0ϖ P1 = V1 × I1 cos(Φ1) Φ1 = α1 − β1 05040-022 V0 × I1 where: FREQUENCY (RAD/S) (3) Figure 24. Effect of Channel Offsets on the Active Power Calculation and 0.30 ∞ ∑Vh × I h × cos(Φ h ) 0.25 h =2 (4) As can be seen in Equation 4, a harmonic active power component is generated for every harmonic provided that the harmonic is present in both the voltage and current waveforms. The power factor calculation was previously shown to be accurate in the case of a pure sinusoid; therefore, the harmonic active power must also correctly account for the power factor because it is made up of a series of pure sinusoids. 0.20 0.15 0.10 0.05 0 –0.05 –0.10 Note that the input bandwidth of the analog inputs is 7 kHz with an internal oscillator frequency of 450 kHz. 0 100 200 300 400 500 600 700 FREQUENCY (Hz) 800 900 1000 05040-023 Φ h = α h − βh PHASE (Degrees) PH = Figure 25. Phase Error Between Channels (0 Hz to 1 kHz) HPF and Offset Effects Equation 5 shows the effect of offsets on the active power calculation. Figure 24 shows the effect of offsets on the active power calculation in the frequency domain. 0.30 V (t ) × I (t ) = 0.20 V1 × I 1 2 + V0 × I 1 × cos(ωt ) + V1 × I 0 × cos(ωt ) As can be seen in Equation 5 and Figure 24, an offset on Channel 1 and Channel 2 contributes a dc component after multiplication. Because this dc component is extracted by the LPF and used to generate the active power information, the offsets contribute a constant error to the active power calculation. This problem is easily avoided in the ADE7761A with the HPF in Channel 1. By removing the offset from at least one channel, no error component can be generated at dc by the multiplication. Error terms at cos(ωt) are removed by the LPF and the digital-to-frequency conversion (see the Digital-to-Frequency Conversion section). Rev. 0 | Page 15 of 24 0.15 0.10 0.05 0 –0.05 –0.10 40 45 50 55 60 FREQUENCY (Hz) 65 Figure 26. Phase Error Between Channels (40 Hz to 70 Hz) 70 05040-024 V0 × I 1 + (5) PHASE (Degrees) (V0 + V1 × cos(ωt )) × (I 0 + I 1 × cos(ωt )) = 0.25 ADE7761A DIGITAL-TO-FREQUENCY CONVERSION As previously described, the digital output of the low-pass filter after multiplication contains the active power information. However, because this LPF is not an ideal brick wall filter implementation, the output signal also contains attenuated components at the line frequency and its harmonics, that is, cos(hωt), where h = 1, 2, 3, …, and so on. The magnitude response of the filter is given by H( f ) = 1 (6) 1 = ( f / 4.5 Hz)2 For a line frequency of 50 Hz, this gives an attenuation of the 2ω (100 Hz) component of approximately −26.9 dB. The dominating harmonic is at twice the line frequency, cos(2ωt), due to the instantaneous power signal. DIGITAL-TOFREQUENCY F1 F2 V FREQUENCY F1 Frequency Outputs F1 and F2 I LPF TO EXTRACT ACTIVE POWER (DC TERM) DIGITAL-TOFREQUENCY CF FOUT FREQUENCY LPF ω 2ω FREQUENCY (Rad/s) INSTANTANEOUS ACTIVE POWER SIGNAL (FREQUENCY DOMAIN) 05040-025 TIME 0 Where CF is used for calibration purposes, the frequency should be averaged by the frequency counter, which removes any ripple. If CF is being used to measure energy, such as in a microprocessor-based application, the CF output should also be averaged to calculate power. Because the outputs, F1 and F2, operate at a much lower frequency, a lot more averaging of the instantaneous active power signal is carried out. The result is a greatly attenuated sinusoidal content and a virtually ripple-free frequency output. TRANSFER FUNCTION TIME MULTIPLIER The output frequency on CF can be up to 2048 times higher than the frequency on F1 and F2. This higher output frequency is generated by accumulating the instantaneous active power signal over a much shorter time while converting it to a frequency. This shorter accumulation period means less averaging of the cos(2ωt) component. As a consequence, some of this instantaneous power signal passes through the digital-to-frequency conversion. This is not a problem in the application. Figure 27. Active Power to Frequency Conversion Figure 27 shows the instantaneous active power signal output of the LPF, which still contains a significant amount of instantaneous power information, cos(2ωt). This signal is then passed to the digital-to-frequency converter, where it is integrated (accumulated) over time to produce an output frequency. This accumulation of the signal suppresses or averages out any non-dc components in the instantaneous active power signal. The average value of a sinusoidal signal is zero. Therefore, the frequency generated by the ADE7761A is proportional to the average active power. Figure 27 also shows the digital-to-frequency conversion for steady load conditions: constant voltage and current. As can be seen in Figure 27, the frequency output CF varies over time, even under steady load conditions. This frequency variation is primarily due to the cos(2ωt) component in the instantaneous active power signal. The ADE7761A calculates the product of two voltage signals (on Channel 1 and Channel 2) and then low-pass filters this product to extract active power information. This active power information is then converted to a frequency. The frequency information is output on F1 and F2 in the form of active high pulses. The pulse rate at these outputs is relatively low, for example, 0.34 Hz maximum for ac signals with S0 = S1 = 0 (see Table 8). This means that the frequency at these outputs is generated from active power information accumulated over a relatively long period. The result is an output frequency that is proportional to the average active power. The averaging of the active power signal is implicit to the digital-to-frequency conversion. The output frequency or pulse rate is related to the input voltage signals by F1 − F2 Frequency = 5.70 × Gain × V1rms × V2rms × F1− 4 VREF 2 where: F1 − F2 Frequency is the output frequency on F1 and F2 (Hz). V1rms is the differential rms voltage signal on Channel 1 (V). V2rms is the differential rms voltage signal on Channel 2 (V). Gain is 1 or 16, depending on the PGA gain selection made using the logic input PGA. VREF is the reference voltage (2.5 V ± 8%) (V). F1–4 is one of four possible frequencies selected by using the logic inputs S0 and S1 (see Table 6). Rev. 0 | Page 16 of 24 (7) ADE7761A Table 6. F1–4 Frequency Selection S1 0 0 1 1 1 2 F1–4 (Hz)1 1.72 3.44 6.86 13.7 S0 0 1 0 1 Note that if the on-chip reference is used, actual output frequencies can vary from device to device due to a reference tolerance of ±8%. F1−4 = OSC/2n 2 OSC/218 OSC/217 OSC/216 OSC/215 F1 − F2 Frequency = Values are generated using the nominal frequency of 450 kHz. F1–4 are a binary fraction of the master clock and, therefore, vary with the internal oscillator frequency (OSC). Frequency Output CF The pulse output calibration frequency (CF) is intended for use during calibration. The output pulse rate on CF can be up to 2048 times the pulse rate on F1 and F2. The lower the F1–4 frequency selected, the higher the CF scaling. Table 7 shows how the two frequencies are related, depending on the states of the logic inputs S0, S1, and SCF. Because of its relatively high pulse rate, the frequency at this logic output is proportional to the instantaneous active power. As with F1 and F2, the frequency is derived from the output of the low-pass filter after multiplication. However, because the output frequency is high, this active power information is accumulated over a much shorter time. Therefore, less averaging is carried out in the digital-to-frequency conversion. With much less averaging of the active power signal, the CF output is much more responsive to power fluctuations (see Figure 22). Table 7. Relationship Between CF and F1, F2 Frequency Outputs SCF 1 0 1 0 1 0 1 0 S1 0 0 0 0 1 1 1 1 S0 0 0 1 1 0 0 1 1 F1–4 (Hz) 1.72 1.72 3.44 3.44 6.86 6.86 13.7 13.7 Example In this example, if ac voltages of ±660 mV peak are applied to V1 and V2, then the expected output frequency on CF, F1, and F2 is calculated as F1–4 = 1.7 Hz, SCF = S1 = S0 = 0 2 × 2 × 2.52 = 0.34 Hz CF Frequency = F1 − F2 × 64 = 22.0 Hz As can be seen from these two example calculations, the maximum output frequency for ac inputs is always half of that for dc input signals. Table 8 shows a complete listing of all maximum output frequencies for ac signals. Table 8. Maximum Output Frequencies on CF, F1, and F2 for AC Inputs SCF 1 0 1 0 1 0 1 0 S1 0 0 0 0 1 1 1 1 S0 0 0 1 1 0 0 1 1 F1, F2 Maximum Frequency (Hz) 0.34 0.34 0.68 0.68 1.36 1.36 2.72 2.72 CF Maximum Frequency (Hz) 43.52 21.76 43.52 21.76 43.52 21.76 43.52 5570 CF-toF1 Ratio 128 64 64 32 32 16 16 2048 FAULT DETECTION The ADE7761A incorporates a novel fault detection scheme that warns of fault conditions and allows the ADE7761A to continue accurate billing during a fault event. The ADE7761A does this by continuously monitoring both the phase and neutral (return) currents. A fault is indicated when these currents differ by more than 6.25%. However, even during a fault, the output pulse rate on F1 and F2 is generated using the larger of the two currents. Because the ADE7761A looks for a difference between the voltage signals on V1A and V1B, it is important that both current transducers be closely matched. CF Frequency Output 128 × F1, F2 64 × F1, F2 64 × F1, F2 32 × F1, F2 32 × F1, F2 16 × F1, F2 16 × F1, F2 2048 × F1, F2 Gain = 1, PGA = 0 5.70 × 0.66 × 0.66 × 1.72 Hz On power-up, the output pulse rate of the ADE7761A is proportional to the product of the voltage signals on V1A and Channel 2. If the difference between V1A and V1B on power-up is greater than 6.25%, the fault indicator (FAULT) becomes active after about 1 sec. In addition, if V1B is greater than V1A, the ADE7761A selects V1B as the input. The fault detection is automatically disabled when the voltage signal on Channel 1 is less than 0.3% of the full-scale input range. This eliminates false detection of a fault due to noise at light loads. V1rms = rms of 660 mV peak ac = 0.66/√2 V V2rms = rms of 660 mV peak ac = 0.66/√2 V VREF = 2.5 V (nominal reference value) Rev. 0 | Page 17 of 24 ADE7761A Fault with Active Input Greater than Inactive Input Calibration Concerns If V1A is the active current input (that is, being used for billing), and the voltage signal on V1B (inactive input) falls below 93.75% of V1A, the fault indicator becomes active. Both analog inputs are filtered and averaged to prevent false triggering of this logic output. As a consequence of the filtering, there is a time delay of approximately 3 sec on the logic output FAULT after the fault event. The FAULT logic output is independent of any activity on outputs F1 or F2. Figure 28 shows one condition under which FAULT becomes active. Because V1A is the active input and it is still greater than V1B, billing is maintained on V1A, that is, no swap to the V1B input occurs. V1A remains the active input. Typically, when a meter is being calibrated, the voltage and current circuits are separated, as shown in Figure 30. This means that current passes through only the phase or neutral circuit. Figure 30 shows current being passed through the phase circuit. This is the preferred option because the ADE7761A starts billing on the input V1A on power-up. The phase circuit CT is connected to V1A in Figure 30. Because there is no current in the neutral circuit, the FAULT indicator comes on under these conditions. However, this does not affect the accuracy of the calibration and can be used as a means to test the functionality of the fault detection. V1A V1B A V1A 0V IB TO MULTIPLIER TEST CURRENT V1B IB ACTIVE POINT – INACTIVE INPUT 6.25% OF ACTIVE INPUT V1A A V1B V1A < 93.75% OF V1B FILTER FAULT AND COMPARE V2P VR1 V2N CT 1RB + VR = RF. Figure 30. Conditions for Calibration of Channel B If the neutral circuit is chosen for the current circuit in the arrangement shown in Figure 30, this may have implications for the calibration accuracy. The ADE7761A powers up with the V1A input active as normal. However, because there is no current in the phase circuit, the signal on V1A is zero. This causes a fault to be flagged and the active input to be swapped to V1B (neutral). The meter can be calibrated in this mode, but the phase and neutral CTs may differ slightly. Because under no-fault conditions all billing is carried out using the phase CT, the meter should be calibrated using the phase circuit. Of course, both phase and neutral circuits can be calibrated. The ADE7761A integrates a novel fault detection that warns and allows the ADE7761A to continue to bill in case a meter is connected to only one wire (see Figure 31). For correct operation of the ADE7761A in this mode, the VDD pin of the ADE7761A must be maintained within the specified range (5 V ± 5%). The missing neutral detection algorithm is designed to work over a line frequency of 45 Hz to 55 Hz. V1N B V1B 05040-027 >0 CF MISSING NEUTRAL MODE FAULT + SWAP <0 V1B 240V rms TO MULTIPLIER V1A RF RF Figure 29 illustrates another fault condition. If the difference between V1B, the inactive input, and V1A, the active input (that is, being used for billing), becomes greater than 6.25% of V1B, the FAULT indicator becomes active and a swap over to the V1B input occurs. The analog input V1B becomes the active input. Again, a time constant of about 3 sec is associated with this swap. V1A does not swap back to the active channel until V1A is greater than V1B and the difference between V1A and V1B—in this order—becomes greater than 6.25% of V1A. However, the FAULT indicator becomes inactive as soon as V1A is within 6.25% of V1B. This threshold eliminates potential chatter between V1A and V1B. V1B CF V Fault with Inactive Input Greater than Active Input AGND 0V CT RB1 Figure 28. Fault Conditions for Active Input Greater than Inactive Input 0V RB RA1 05040-026 >0 V1A CF V1N FAULT <0 V1A B NEUTRAL V1B < 93.75% OF V1A RB AGND V1N V1B V1A RF CT PHASE AGND FAULT FILTER AND COMPARE 05040-028 V1A ACTIVE POINT – INACTIVE INPUT 6.25% OF INACTIVE INPUT Figure 29. Fault Conditions for Inactive Input Greater than Active Input Rev. 0 | Page 18 of 24 ADE7761A RB 244V rms POWER GENERATOR CT RB1 • Billing active energy in Case 1 is consistent with the understanding of the quantity represented by pulses on CF, F1, and F2 outputs (watt-hour). V1N 0V CF RF RA1 Analog Devices, Inc. cautions users of the ADE7761A about the following: CF V1A RB LOAD V1A RF CT IB • Billing active energy while the ADE7761A is in Case 2 must be decided knowing that the entity measured by the ADE7761A in this case is ampere-hour and not watt-hour. Users should be aware of this limitation and decide if the ADE7761A is appropriate for their application. V1B CF V2P VR1 RF V2N 1RB 05040-029 CT + VR = RF. Figure 31. Missing Neutral System Diagram The ADE7761A detects a missing neutral condition by continuously monitoring the voltage channel input (V2P − V2N). The FAULT pin is held high when a missing neutral condition is detected. In this mode, the ADE7761A continues to bill the energy based on the signal level on the current channel (see Figure 32). The billing rate or frequency outputs can be adjusted by changing the dc level on the MISCAL pin. ADC MISCAL V2P V2 ADC MISSING NEUTRAL V2N AGND |V2|PEAK < 9% OF FULL SCALE V2P – V2N HPF ADC ADC FILTER AND THRESHOLD OR NO ZERO CROSSING ON V2 A>B V1N V1B The ADE7761A continuously monitors the voltage input and detects a missing neutral condition when the voltage input peak value is smaller than 9% of the analog full scale or when no zero crossings are detected on this input (see Figure 33). B>A B <> A ZERO CROSSING DETECTION MISSING NEUTRAL GAIN ADJUSMTENT LPF V2P – V2N V2P – V2N FS FS FS 9% OF FS 0V 0V 0V 05040-031 V1A Missing Neutral Detection DIGITAL-TOFREQUENCY CONVERTERS 05040-030 Figure 33. Missing Neutral Detection CF F1 F2 Figure 32. Energy Calculation in Missing Neutral Mode Important Note for Billing of Active Energy The ADE7761A leaves the missing neutral mode for normal operation when both conditions are no longer valid, that is, a voltage peak value of greater than 9% of full scale and zero crossing on the voltage channel is detected (see Figure 34). The ADE7761A provides pulse outputs—CF, F1, and F2— intended to be used for the billing of active energy. Pulses are generated at these outputs in two different situations. V2P V2 Case 1: When the analog input V2P – V2N complies with the conditions described in Figure 34, CF, F1, and F2 frequencies are proportional to active power and can be used to bill active energy. AGND ADC FILTER AND THRESHOLD MISSING NEUTRAL V2N |V2|PEAK > 9% OF FULL SCALE AND ZERO CROSSING ON V2 V2P – V2N FS +9% OF FS –9% OF FS 05040-032 Case 2: When the analog input V2P – V2N does not comply with the conditions described in Figure 34, the ADE7761A does not measure active energy but a quantity proportional to kAh. This quantity is used to generate pulses on the same CF, F1, and F2. This situation is indicated when the FAULT pin is high. Figure 34. Return to Normal Mode after Missing Neutral Detection Rev. 0 | Page 19 of 24 ADE7761A Missing Neutral Gain Calibration Example When the ADE7761A is in missing neutral mode, the energy is bill based on the active current input signal level. The frequency outputs in this mode can be calibrated with the MISCAL analog input pin. In this mode, applying a dc voltage of 330 mV on MISCAL is equivalent to applying, in normal mode, a pure sine wave on the voltage input with a peak value of 330 mV. The MISCAL input can vary from 0 V to 660 mV (see the Analog Inputs section). When set to 0 V, the frequency outputs are close to zero. When set to 660 mV dc, the frequency outputs are twice that when MISCAL is at 330 mV dc. In other words, Equation 7 can be used in missing neutral mode by replacing V2rms by MISCALrms /√2. In normal mode, ac voltages of ±330 mV peak are applied to V1 and V2, and then the expected output frequency on F1 and F2 is calculated as: Gain =1 ; PGA =0 F1–4 = 1.7 Hz, SCF = S1 = S0 = 0 V1 = rms of 330 mV peak ac = 0.33/√2 V V2 = rms of 330 mV peak ac = 0.33/√2 V VREF = 2.5 V (nominal reference value) F1 , F2 Frequency = 5.70 × Gain × V 1rms × MISCALrms / 2 × F1−4 VREF 2 F1 , F2 Frequency = (8) 5.70 × 0.33 × 0.33 × 1.7 Hz 2 × 2 × 2.5 2 = 0.084 Hz CF Frequency = F1 − F2 Frequency × 64 = 5.4 Hz where: F1, F2 Frequency is the output frequency on F1 and F2 (Hz). V1rms is the differential rms voltage signal on Channel 1 (V). MISCALrms is the differential rms voltage signal on the MISCAL pin (V). In missing neutral mode, the ac voltage of ±330 mV peak is applied to V1, no signal is connected on V2, and a 330 mV dc input is applied to MISCAL. With the ADE7761A in the same configuration as the previous example, the expected output frequencies on CF, F1, and F2 are Gain is 1 or 16, depending on the PGA gain selection made using logic input PGA. F1 , F2 Frequency = 5.70 × 0.33 × 0.33 / 2 × 1.7 Hz 2 × 2.5 2 CF Frequency = F1, F2 Frequency × 64 = 5.4 Hz VREF is the reference voltage (2.5 V ± 8%) (V). F1-4 is one of four possible frequencies selected by using the logic inputs S0 and S1 (see Table 6). Rev. 0 | Page 20 of 24 = 0.084 Hz ADE7761A APPLICATIONS INTERFACING TO A MICROCONTROLLER FOR ENERGY MEASUREMENT SELECTING A FREQUENCY FOR AN ENERGY METER APPLICATION The easiest way to interface the ADE7761A to a microcontroller is to use the CF high frequency output with the output frequency scaling set to 2048 × F1, F2. This is done by setting SCF = 0 and S0 = S1 = 1 (see Table 8). With full-scale ac signals on the analog inputs, the output frequency on CF is approximately 5.5 kHz. Figure 35 illustrates one scheme that could be used to digitize the output frequency and carry out the necessary averaging mentioned in the Frequency Output CF section. As shown in Table 6, the user can select one of four frequencies. This frequency selection determines the maximum frequency on F1 and F2. These outputs are intended to be used to drive the energy register (electromechanical or other). Because only four different output frequencies can be selected, the available frequency selection was optimized for a meter constant of 100 impulses/kWh with a maximum current of between 10 A and 120 A. Table 9 shows the output frequency for several maximum currents (IMAX) with a line voltage of 240 V. In all cases, the meter constant is 100 impulses/kWh. CF FREQUENCY RIPPLE Table 9. F1 and F2 Frequency at 100 Impulses/kWh AVERAGE FREQUENCY ±10% IMAX (A) 12.5 25 40 60 80 120 TIME MCU ADE7761A COUNTER F1 and F2 (Hz) 0.083 0.166 0.266 0.4 0.533 0.8 CF FAULT2 UP/DOWN LOGIC 1REVP MUST BE USED IF THE METER IS BIDIRECTIONAL OR DIRECTION OF ENERGY FLOW IS NEEDED. MUST BE USED TO RECORD ENERGY IN FAULT CONDITION. 2FAULT 05040-033 REVP1 Figure 35. Interfacing the ADE7761A to an MCU As shown in Figure 35 the frequency output CF is connected to an MCU counter or port, which counts the number of pulses in a given integration time, determined by an MCU internal timer. The average power, proportional to the average frequency, is Average Frequency = Average Active Power = Counter Timer The energy consumed during an integration period is Energy = Average Power × Time = Counter × Time = Counter Time For the purpose of calibration, this integration time could be 10 sec to 20 sec to accumulate enough pulses to ensure correct averaging of the frequency. In normal operation, the integration time could be reduced to 1 sec or 2 sec depending on, for example, the required update rate of a display. With shorter integration times on the MCU, the amount of energy in each update may still have a small amount of ripple, even under steady load conditions. However, over a minute or more, the measured energy has no ripple. The F1–4 frequencies allow complete coverage of this range of output frequencies on F1 and F2. When designing an energy meter, the nominal design voltage on Channel 2 (voltage) should be set to half-scale to allow for calibration of the meter constant. The current channel should also be no more than halfscale when the meter sees maximum load, which accommodates overcurrent signals and signals with high crest factors. Table 10 shows the output frequency on F1 and F2 when both analog inputs are half-scale. The frequencies listed in Table 10 align well with those listed in Table 9 for maximum load. Table 10. F1 and F2 Frequency with Half-Scale AC Inputs S0 0 0 1 1 S1 0 1 0 1 F1–4 (Hz) 1.72 3.44 6.86 13.5 Frequency on F1 and F2, Ch 1 and Ch 2, Half-Scale AC Inputs (Hz) 0.085 0.17 0.34 0.68 When selecting a suitable F1–4 frequency for a meter design, the frequency output at IMAX (maximum load) with a meter constant of 100 impulses/kWh should be compared with Column 4 of Table 10. The frequency that is closest in Table 10 determines the best choice of frequency (F1-4). For example, if a meter with a maximum current of 40 A is being designed, the output frequency on F1 and F2 with a meter constant of 100 impulses per kWh is 0.266 Hz at 40 A and 240 V (see Table 9). Rev. 0 | Page 21 of 24 ADE7761A Looking at Table 10, the closest frequency to 0.266 Hz in Column 4 is 0.17 Hz. Therefore, F2 (3.4 Hz; see Table 6) is selected for this design. Frequency Outputs Figure 2 is a timing diagram for the various frequency outputs. The high frequency CF output is intended for communication and calibration purposes. CF produces a 90 ms wide, active high pulse (t4) at a frequency that is proportional to active power. The CF output frequencies are given in Table 8. As with F1 and F2, if the period of CF (t5) falls below 180 ms, the CF pulse width is set to half the period. For example, if the CF frequency is 20 Hz, the CF pulse width is 25 ms. No-Load Threshold The ADE7761A includes a no-load threshold and start-up current feature that eliminates creep effects in the meter. The ADE7761A is designed to issue a minimum output frequency. Any load generating a frequency lower than this minimum frequency does not cause a pulse to be issued on F1, F2, or CF. The minimum output frequency is given as 0.0045% of the fullscale output frequency. (See Table 8 for maximum output frequencies for ac signals). For example, an energy meter with a meter constant of 100 impulses per kWh on F1, F2 using SCF = 1, S1 = 0, and S0 = 1, the maximum output frequency at F1 or F2 is 0.68 Hz and 43.52 Hz on CF. The minimum output frequency at F1 or F2 is 0.0045% of 0.68 Hz or 3.06 × 10–5 Hz. This is 1.96 × 10–3 Hz at CF (64 × F1 Hz). In this example, the no-load threshold is equivalent to 1.1 W of load or a startup current of 4.6 mA at 240 V. Compare this value to the IEC 32053-21 specification, which states that the meter must start up with a load equal to or less than 0.4% of IB. For a 5 A (IB) meter, 0.4% of IB is equivalent to 20 mA. B B B Note that the no-load threshold is not enabled when using the high CF frequency mode: SCF = 0, S1 = S0 = 1. NEGATIVE POWER INFORMATION The ADE7761A detects when the current and voltage channels have a phase shift greater than 90°. This mechanism can detect a wrong connection of the meter or the generation of negative power. The REVP pin output goes active high when negative power is detected and active low when positive power is detected. The REVP pin output changes state as a pulse is issued on CF. Rev. 0 | Page 22 of 24 ADE7761A OUTLINE DIMENSIONS 7.50 7.20 6.90 11 20 5.60 5.30 5.00 1 8.20 7.80 7.40 10 0.65 BSC SEATING PLANE 8° 4° 0° 0.95 0.75 0.55 COMPLIANT TO JEDEC STANDARDS MO-150-AE 060106-A 0.38 0.22 0.05 MIN COPLANARITY 0.10 0.25 0.09 1.85 1.75 1.65 2.00 MAX Figure 36. 20-Lead Shrink Small Outline Package [SSOP] (RS-20) Dimensions shown in millimeters ORDERING GUIDE Model ADE7761AARS ADE7761AARS-RL ADE7761AARSZ 1 ADE7761AARSZ-RL1 ADE7761AARS-REF 1 Temperature Range –40°C to +85°C –40°C to +85°C –40°C to +85°C –40°C to +85°C Package Description 20-Lead Shrink Small Outline Package (SSOP) 20-Lead Shrink Small Outline Package (SSOP) 20-Lead Shrink Small Outline Package (SSOP) 20-Lead Shrink Small Outline Package (SSOP) Reference Board Z = Pb-free part. Rev. 0 | Page 23 of 24 Package Option RS-20 RS-20 RS-20 RS-20 ADE7761A NOTES ©2006 Analog Devices, Inc. All rights reserved. Trademarks and registered trademarks are the property of their respective owners. D05040-0-7/06(0) Rev. 0 | Page 24 of 24