Energy Metering IC with Integrated Oscillator and Reverse Polarity Indication AD71056 FEATURES The AD71056 specifications surpass the accuracy requirements as quoted in the IEC62053-21 standard. On-chip oscillator as clock source High accuracy, supports 50 Hz/60 Hz IEC62053-21 Less than 0.1% error over a dynamic range of 500 to 1 Supplies average real power on frequency outputs (F1, F2) High frequency output (CF) calibrates and supplies instantaneous real power Logic output (REVP) indicates potential miswiring or negative power Direct drive for electromechanical counters and 2-phase stepper motors (F1, F2) Proprietary ADCs and DSP provide high accuracy over large variations in environmental conditions and time On-chip power supply monitoring On-chip creep protection (no load threshold) On-chip reference 2.45 V (20 ppm/°C typical) with external overdrive capability Single 5 V supply, low power (20 mW typical) Low cost CMOS process The only analog circuitry used in the AD71056 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 time and in extreme environmental conditions. The AD71056 supplies average real power information on F1 and F2, the low frequency outputs. These outputs either directly drive an electromechanical counter or interface with an MCU. The high frequency CF logic output, ideal for calibration purposes, provides instantaneous real power information. The AD71056 includes a power supply monitoring circuit on the VDD supply pin. The AD71056 remains inactive until the supply voltage on VDD reaches approximately 4 V. If the supply falls below 4 V, the AD71056 also remains inactive and the F1, F2, and CF outputs are in their nonactive modes. GENERAL DESCRIPTION Internal phase matching circuitry ensures that the voltage and current channels are phase matched, and the HPF in the current channel eliminates dc offsets. An internal no load threshold ensures that the AD71056 does not exhibit creep when no load is present. 1 The AD71056 is a high accuracy, electrical energy metering IC with a precise oscillator circuit that serves as a clock source to the chip. The AD71056 eliminates the need for an external crystal or resonator, thus reducing the overall cost of building a meter with this IC. The chip directly interfaces with the shunt resistor. The part is available in a 16-lead, narrow body SOIC package. FUNCTIONAL BLOCK DIAGRAM VDD AGND 1 6 DGND 13 AD71056 POWER SUPPLY MONITOR + Σ-Δ ADC ...110101... MULTIPLIER PHASE CORRECTION V1N 4 V1P 5 + 2.5V REFERENCE Σ-Δ ADC ...11011001... Ф HPF DIGITAL-TO-FREQUENCY CONVERTER INTERNAL OSCILLATOR 4kΩ 7 REFIN/OUT 11 RCLKIN LPF 8 10 SCF S0 14 16 15 S1 REVP CF 9 12 F1 F2 05636-001 V2P 2 V2N 3 SIGNAL PROCESSING BLOCK Figure 1. 1 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, 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. AD71056 TABLE OF CONTENTS Features .............................................................................................. 1 Power Factor Considerations.................................................... 10 General Description ......................................................................... 1 Nonsinusoidal Voltage and Current........................................ 10 Functional Block Diagram .............................................................. 1 Applications..................................................................................... 12 Revision History ............................................................................... 2 Analog Inputs ............................................................................. 12 Specifications..................................................................................... 3 Power Supply Monitor............................................................... 13 Timing Characteristics ................................................................ 4 Internal Oscillator (OSC).......................................................... 15 Absolute Maximum Ratings............................................................ 5 Transfer Function....................................................................... 15 ESD Caution.................................................................................. 5 Selecting a Frequency for an Energy Meter Application...... 16 Terminology ...................................................................................... 6 No Load Threshold .................................................................... 17 Pin Configuration and Function Descriptions............................. 7 Negative Power Information..................................................... 17 Typical Performance Characteristics ............................................. 8 Outline Dimensions ....................................................................... 18 Theory of Operation ...................................................................... 10 Ordering Guide .......................................................................... 18 REVISION HISTORY 8/06—Revision A: Initial Version Rev. A | Page 2 of 20 AD71056 SPECIFICATIONS VDD = 5 V ± 5%, AGND = DGND = 0 V, on-chip reference, RCLKIN = 6.2 kΩ, 0.5% ± 50 ppm/°C, TMIN to TMAX = −40°C to +85°C, unless otherwise noted. Table 1. Parameter ACCURACY 1 , 2 Measurement Error1 on Channel V1 Value Unit Test Conditions/Comments 0.1 % reading typ Channel V2 with full-scale signal (±165 mV), 25°C over a dynamic range 500 to 1, line frequency = 45 Hz to 65 Hz Phase Error1 Between Channels V1 Phase Lead 37° V1 Phase Lag 60° AC Power Supply Rejection1 Output Frequency Variation (CF) ±0.1 ±0.1 degrees max degrees max Power factor (PF) = 0.8 capacitive PF = 0.5 inductive 0.2 % reading typ S0 = S1 = 1, V1 = 21.2 mV rms, V2 = 116.7 mV rms @ 50 Hz, ripple on VDD of 200 mV rms @ 100 Hz DC Power Supply Rejection1 Output Frequency Variation (CF) ±0.3 % reading typ S0 = S1 = 1, V1 = 21.2 mV rms, V2 = 116.7 mV rms, VDD = 5 V ± 250 mV ±30 ±165 320 7 ±18 ±4 mV max mV max kΩ min kHz nominal mV max % ideal typ V1P and V1N to AGND V2P and V2N to AGND OSC = 450 kHz, RCLKIN = 6.2 kΩ, 0.5% ± 50 ppm/°C OSC = 450 kHz, RCLKIN = 6.2 kΩ, 0.5% ± 50 ppm/°C 450 ±12 ±30 kHz nominal % reading typ ppm/°C typ 2.65 2.25 10 V max V min pF max ±200 ±20 mV max ppm/°C typ 2.4 0.8 ±1 10 V min V max μA max pF max VDD = 5 V ± 5% VDD = 5 V ± 5% Typically 10 nA, VIN = 0 V to VDD 4.5 0.5 V min V max ISOURCE = 10 mA, VDD = 5 V, ISINK = 10 mA, VDD = 5 V 4 0.5 ±10 V min V max % ideal typ ISOURCE = 5 mA, VDD = 5 V, ISINK = 5 mA, VDD = 5 V ANALOG INPUTS 3 Channel V1 Maximum Signal Level Channel V2 Maximum Signal Level Input Impedance (DC) Bandwidth (–3 dB) ADC Offset Error1, 2 Gain Error1 OSCILLATOR FREQUENCY (OSC) Oscillator Frequency Tolerance1 Oscillator Frequency Stability1 REFERENCE INPUT REFIN/OUT Input Voltage Range Input Capacitance ON-CHIP REFERENCE Reference Error Temperature Coefficient LOGIC INPUTS 4 SCF, S0, S1 Input High Voltage, VINH Input Low Voltage, VINL Input Current, IIN Input Capacitance, CIN LOGIC OUTPUTS4 F1 and F2 Output High Voltage, VOH Output Low Voltage, VOL CF Output High Voltage, VOH Output Low Voltage, VOL Frequency Output Error1, 2(CF) External 2.5 V reference, V1 = 21.2 mV rms, V2 = 116.7 mV rms RCLKIN = 6.2 kΩ, 0.5% ± 50 ppm/°C 2.45 V nominal 2.45 V nominal 2.45 V nominal Rev. A | Page 3 of 20 External 2.5 V reference, V1 = 21.2 mV rms, V2 = 116.7 mV rms AD71056 Parameter POWER SUPPLY VDD IDD Value Unit 4.75 5.25 5 V min V max mA max Test Conditions/Comments For specified performance 5 V − 5% 5 V + 5% Typically 4 mA 1 See the Terminology section for an explanation of specifications. See plots in the Typical Performance Characteristics section. See the Analog Inputs section. 4 Sample tested during initial release and after any redesign or process change that may affect this parameter. 2 3 TIMING CHARACTERISTICS VDD = 5 V ± 5%, AGND = DGND = 0 V, on-chip reference, RCLKIN = 6.2 kΩ, 0.5% ± 50 ppm/°C, TMIN to TMAX = −40°C to +85°C, unless otherwise noted. Sample tested during initial release and after any redesign or process change that may affect this parameter. See Figure 2. Table 2. Parameter t1 1 t2 t3 t41, 2 t5 t6 1 2 Specifications Unit Test Conditions/Comments 120 ms F1 and F2 pulse width (logic low). See Table 6 1/2 t2 90 See Table 7 2 sec sec ms sec μs 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 pulses. The pulse widths of F1, F2, and CF are not fixed for higher output frequencies. See the Frequency Outputs section. The CF pulse is always 35 μs in high frequency mode. See the Frequency Outputs section and Table 7. Timing Diagram t1 F1 t6 F2 t2 t3 t5 05636-002 t4 CF Figure 2. Timing Diagram for Frequency Outputs Rev. A | Page 4 of 20 AD71056 ABSOLUTE MAXIMUM RATINGS TA = 25°C, unless otherwise noted. Table 3. Parameter VDD to AGND VDD to DGND Analog Input Voltage to AGND V1P, V1N, V2P, and V2N Reference Input Voltage to AGND Digital Input Voltage to DGND Digital Output Voltage to DGND Operating Temperature Range Storage Temperature Range Junction Temperature 16-Lead Plastic SOIC, Power Dissipation θJA Thermal Impedance 1 Package Temperature Soldering 1 Rating −0.3 V to +7 V −0.3 V to +7 V −6 V to +6 V −0.3 V to VDD + 0.3 V −0.3 V to VDD + 0.3 V −0.3 V to VDD + 0.3 V −40°C to +85°C −65°C to +150°C 150°C 350 mW 124.9°C/W See J-STD-20 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 indicated in the operational section of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. JEDEC 1S standard (2-layer) board data. 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. A | Page 5 of 20 AD71056 TERMINOLOGY Measurement Error The error associated with the energy measurement made by the AD71056 is defined by the following formula: % Error = Energy Registered by AD71056 − True Energy True Energy × 100% Phase Error Between Channels The high-pass filter (HPF) in the current channel (Channel V1) has a phase-lead response. To offset this phase response and equalize the phase response between channels, a phase correction network is also placed in Channel V1. The phase correction network matches the phase to within 0.1° over a range of 45 Hz to 65 Hz, and 0.2° over a range 40 Hz to 1 kHz (see Figure 23 and Figure 24). Power Supply Rejection (PSR) This quantifies the AD71056 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 200 mV rms/100 Hz signal is then introduced onto the supplies and a second reading is obtained under the same input signal levels. Any error introduced 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. The supplies are then varied 5% and a second reading is obtained with the same input signal levels. Any error introduced is, again, expressed as a percentage of reading. ADC Offset Error This refers to the small dc signal (offset) associated with the analog inputs to the ADCs. However, the HPF in Channel V1 eliminates the offset in the circuitry. Therefore, the power calculation is not affected by this offset. Frequency Output Error (CF) The frequency output error of the AD71056 is defined as the difference between the measured output frequency (minus the offset) and the ideal output frequency. The difference is expressed as a percentage of the ideal frequency. The ideal frequency is obtained from the AD71056 transfer function. See Figure 14 for a typical distribution of part-to-part variation of CF frequency. Gain Error The gain error of the AD71056 is defined as the difference between the measured output of the ADCs (minus the offset) and the ideal output of the ADCs. The difference is expressed as a percentage of the ideal output of the ADCs. Oscillator Frequency Tolerance The oscillator frequency tolerance of the AD71056 is defined as the part-to-part frequency variation in terms of percentage at room temperature (25°C). It is measured by taking the difference between the measured oscillator frequency and the nominal frequency as defined in the Specifications section. Oscillator Frequency Stability Oscillator frequency stability is defined as the frequency variation in terms of the parts-per-million drift over the operating temperature range. In a metering application, the temperature range is −40°C to +85°C. Oscillator frequency stability is measured by taking the difference between the measured oscillator frequency at −40°C and +85°C and the measured oscillator frequency at +25°C. Rev. A | Page 6 of 20 AD71056 PIN CONFIGURATION AND FUNCTION DESCRIPTIONS VDD 1 16 F1 V2P 2 15 F2 V2N 3 14 CF AD71056 TOP VIEW 13 DGND V1P 5 (Not to Scale) 12 REVP AGND 6 11 RCLKIN REFIN/OUT 7 10 S0 SCF 8 9 S1 05636-003 V1N 4 Figure 3. Pin Configuration Table 4. Pin Function Descriptions Pin No. 1 Mnemonic VDD 2, 3 V2P, V2N 4, 5 V1N, V1P 6 AGND 7 REFIN/OUT 8 SCF 9, 10 S1, S0 11 RCLKIN 12 REVP 13 DGND 14 CF 15, 16 F2, F1 Description Power Supply. This pin provides the supply voltage for the circuitry in the AD71056. Maintain the supply voltage at 5 V ± 5% for specified operation. Decouple this pin with a 10 μF capacitor in parallel with a ceramic 100 nF capacitor. Analog Inputs for Channel V2 (Voltage Channel). These inputs provide a fully differential input pair. The maximum differential input voltage is ±165 mV for specified operation. Both inputs have internal ESD protection circuitry; an overvoltage of ±6 V can be sustained on these inputs without risk of permanent damage. Analog Inputs for Channel V1 (Current Channel). These inputs are fully differential voltage inputs with a maximum signal level of ±30 mV with respect to the V1N pin for specified operation. Both inputs have internal ESD protection circuitry and, in addition, an overvoltage of ±6 V can be sustained on these inputs without risk of permanent damage. Analog Ground. This pin provides the ground reference for the analog circuitry in the AD71056, that is, the ADCs and reference. Tie this pin to the analog ground plane of the PCB. The analog ground plane is the ground reference for all analog circuitry, such as antialiasing filters, current and voltage sensors, and so forth. For accurate noise suppression, connect the analog ground plane to the digital ground plane at only one point. A star ground configuration helps to keep noisy digital currents away from the analog circuits. Reference Voltage. The on-chip reference has a nominal value of 2.45 V and a typical temperature coefficient of 20 ppm/°C. An external reference source can also be connected at this pin. In either case, decouple this pin to AGND with a 1 μF tantalum capacitor and a 100 nF ceramic capacitor. The internal reference cannot be used to drive an external load. Select Calibration Frequency. This logic input selects the frequency on the Calibration Output CF. Table 7 shows calibration frequency selections. Conversion Frequency Logic Input Selection. These logic inputs select one of four possible frequencies for the digital-to-frequency conversion. With this logic input, designers have greater flexibility when designing an energy meter. Table 5 shows conversion frequency selections. On-Chip Clock Enabler. To enable the internal oscillator as a clock source to the chip, a precise low temperature drift resistor at a nominal value of 6.2 kΩ must be connected from this pin to DGND. Negative Power Indicator. This logic output goes high when negative power is detected, such as 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 that a pulse is issued on CF. Digital Ground. This pin provides the ground reference for the digital circuitry in the AD71056, that is, the multiplier, filters, and digital-to-frequency converter. Tie this pin to the digital ground plane of the PCB. The digital ground plane is the ground reference for all digital circuitry, for example, counters (mechanical and digital), MCUs, and indicator LEDs. For accurate noise suppression, connect the analog ground plane to the digital ground plane at one point only—a star ground. Calibration Frequency Logic Output. The CF logic output provides instantaneous real power information. This output is for calibration purposes (also see the SCF pin description). Low Frequency Logic Outputs. F1 and F2 supply average real power information. The logic outputs can be used to directly drive electromechanical counters and 2-phase stepper motors. See the Transfer Function section. Rev. A | Page 7 of 20 AD71056 TYPICAL PERFORMANCE CHARACTERISTICS VDD + 100nF 10µF 1 VDD 220V 200Ω 150nF 200Ω CF 14 REVP 12 + V1P 5 150nF 350µΩ 200Ω RCLKIN 11 + 3 K8 820Ω 6.2kΩ VDD V1N 4 10kΩ 150nF 1µF 2 PS2501-1 150nF 200Ω 4 V2N 3 K7 1 F2 15 U1 AD71056 40A TO 40mA U3 F1 16 V2P 2 S0 10 S1 9 REFIN/OUT 7 100nF SCF 8 10nF AGND DGND 6 10nF 13 10nF 05636-004 602kΩ Figure 4. Test Circuit for Performance Curves 1.0 0.8 0.6 +85°C 0.4 0.2 ERROR (% of Reading) +25°C 0 –0.2 –40°C –0.4 –0.8 –1.0 0.1 0.2 –0.2 1 10 –0.8 –1.0 0.1 100 1 100 Figure 7. Error as a % of Reading over Temperature with External Reference (PF = 1) 1.0 1.0 PF = 0.5 IND ON-CHIP REFERENCE 0.6 0.8 ERROR (% of Reading) 0.2 +25°C, PF = 1 0 –0.2 –40°C, PF = 0.5 IND –0.4 PF = 0.5 IND EXTERNAL REFERENCE 0.6 +85°C, PF = 0.5 IND 0.4 –40°C, PF = 0.5 IND 0.4 0.2 +25°C, PF = 1 0 –0.2 +25°C, PF = 0.5 IND –0.4 +25°C, PF = 0.5 IND +85°C, PF = 0.5 IND –0.6 05636-006 –0.6 –0.8 –1.0 0.1 10 CURRENT CHANNE L (% of Full Scale) Figure 5. Error as a % of Reading over Temperature with On-Chip Reference (PF = 1) ERROR (% of Reading) +85°C –0.4 CURRENT CHANNE L (% of Full Scale) 0.8 +25°C 0 –0.6 05636-005 –0.6 –40°C 0.4 1 10 05636-008 ERROR (% of Reading) 0.6 PF = 1 EXTERNAL REFERENCE 05636-007 0.8 1.0 PF = 1 ON-CHIP REFERENCE –0.8 –1.0 0.1 100 CURRENT CHANNE L (% of Full Scale) 1 10 CURRENT CHANNE L (% of Full Scale) Figure 6. Error as a % of Reading over Temperature with On-Chip Reference (PF = 0.5 IND) Figure 8. Error as a % of Reading over Temperature with External Reference (PF = 0.5 IND) Rev. A | Page 8 of 20 100 AD71056 0.5 40 0.4 30 0.2 PF = 0.5 IND PF = 1 0.1 FREQUENCY ERROR (% of Reading) 0.3 DISTRIBUTION CHARACTERISTICS MEAN = 2.247828 EXTERNAL REFERENCE SDs = 1.367176 TEMPERATURE = 25°C MIN = –2.09932 MAX = +5.28288 NO. OF POINTS = 100 0 –0.1 –0.2 PF = 0.5 CAP 20 10 –0.4 –0.5 45 50 55 60 0 65 05636-012 05636-009 –0.3 –5 –4 –3 –2 –1 1.0 40 0.4 3 4 5 6 7 8 9 DISTRIBUTION CHARACTERISTICS MEAN = –1.563484 SDs = 2.040699 EXTERNAL REFERENCE MIN = –6.82969 TEMPERATURE = 25°C MAX = +2.6119 NO. OF POINTS = 100 5.25V 0.2 FREQUENCY 5V 0 4.75V –0.2 30 20 –0.4 –0.6 05636-010 10 –0.8 –1.0 0.1 1 10 0 100 05636-013 ERROR (% of Reading) 2 50 PF = 1 ON-CHIP REFERENCE 0.6 –12 –10 –8 –6 CURRENT CHANNE L (% of Full Scale) –2 0 2 4 6 8 10 12 Figure 13. Channel V2 Offset Distribution 1.0 0.8 –4 CHANNEL V2 OFFSET (mV) Figure 10. PSR with On-Chip Reference, PF = 1 1000 PF = 1 EXTERNAL REFERENCE 0.6 800 0.4 5.25V FREQUENCY 0.2 5V 0 –0.2 4.75V DISTRIBUTION CHARACTERISTICS MEAN = 0% EXTERNAL REFERENCE SDs = 1.55% TEMPERATURE = 25°C MIN = –11.79% MAX = +6.08% NO. OF POINTS = 3387 600 400 –0.4 –0.6 –0.8 –1.0 0.1 1 10 0 100 05636-014 200 05636-011 ERROR (% of Reading) 1 Figure 12. Channel V1 Offset Distribution Figure 9. Error as a % of Reading over Input Frequency 0.8 0 CHANNEL V1 OFFSET (mV) FREQUENCY (Hz) –10 –8 –6 –4 –2 0 2 4 6 8 10 DEVIATION FROM MEAN (%) CURRENT CHANNE L (% of Full Scale) Figure 11. PSR with External Reference, PF = 1 Figure 14. Part-to-Part CF Distribution from Mean of CF Rev. A | Page 9 of 20 12 AD71056 THEORY OF OPERATION The two ADCs in the AD71056 digitize the voltage signals from the current and voltage sensors. These ADCs are 16-bit, Σ-Δ with an oversampling rate of 450 kHz. This analog input structure greatly simplifies sensor interfacing by providing a wide dynamic range for direct connection to the sensor and also simplifies the antialiasing filter design. A high-pass filter in the current channel removes any dc component from the current signal. This eliminates any inaccuracies in the real power calculation due to offsets in the voltage or current signals. The real 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 real power component (that is, the dc component), the instantaneous power signal is low-pass filtered. Figure 15 illustrates the instantaneous real power signal and shows how the real power information is extracted by low-pass filtering the instantaneous power signal. This scheme correctly calculates real power for sinusoidal 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. POWER FACTOR CONSIDERATIONS The method used to extract the real power information from the instantaneous power signal (that is, by low-pass filtering) is valid even when the voltage and current signals are not in phase. Figure 16 displays the unity power factor condition and a displacement power factor (DPF) = 0.5; that is, the current signal lagging the voltage by 60°. Assuming the voltage and current waveforms are sinusoidal, the real power component of the instantaneous power signal (the dc term) is given by ⎛V × I ⎞ ⎜ ⎟ × cos (60°) ⎝ 2 ⎠ This is the correct real power calculation. ADC V×I 2 0V POWER INSTANTANEOUS POWER SIGNAL DIGITAL-TOFREQUENCY LPF ADC CH2 TIME CURRENT AND VOLTAGE F2 HPF MULTIPLIER INSTANTANEOUS REAL POWER SIGNAL INSTANTANEOUS POWER SIGNAL POWER DIGITAL-TOFREQUENCY F1 CH1 (1) INSTANTANEOUS REAL POWER SIGNAL CF V×I COS (60°) 2 INSTANTANEOUS REAL POWER SIGNAL TIME 0V VOLTAGE 05636-016 INSTANTANEOUS POWER SIGNAL – p(t) CURRENT 60° TIME 05636-015 TIME Figure 16. DC Component of Instantaneous Power Signal Conveys Real Power Information, PF < 1 NONSINUSOIDAL VOLTAGE AND CURRENT Figure 15. Signal Processing Block Diagram The low frequency outputs (F1, F2) of the AD71056 are generated by accumulating this real power information. This low frequency inherently means a long accumulation time between output pulses. Consequently, the resulting output frequency is proportional to the average real power. This average real power information is then accumulated (for example, by a counter) to generate real energy information. Conversely, due to its high output frequency and, hence, shorter integration time, the CF output frequency is proportional to the instantaneous real power. This is useful for system calibration that can be done faster under steady load conditions. The real 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 ) = V0 + 2 × ∑Vh × sin (hω t + α h ) h ≠0 where: v(t) is the instantaneous voltage. V0 is the average value. Vh is the rms value of Voltage Harmonic h. α h is the phase angle of the voltage harmonic. Rev. A | Page 10 of 20 (2) AD71056 ( ∞ i(t ) = I 0 + 2 × ∑ I × sin hω t + β h h h≠o ) (3) where: i(t) is the instantaneous current. I0 is the dc component. Ih is the rms value of Current Harmonic h. βh is the phase angle of the current harmonic. In Equation 5, a harmonic real power component is generated for every harmonic, provided that harmonic is present in both the voltage and current waveforms. The power factor calculation has previously been shown to be accurate in the case of a pure sinusoid. Therefore, the harmonic real power must also correctly account for the power factor because it is made up of a series of pure sinusoids. Note that the input bandwidth of the analog inputs is 7 kHz at the nominal internal oscillator frequency of 450 kHz. Using Equation 2 and Equation 3, the real power, P, can be expressed in terms of its fundamental real power (P1) and harmonic real power (PH) as P = P1 + PH where: P1 = V1 × I1 cos ϕ1 (4) ϕ1 = α1 − β1 and PH ∞ PH = ∑ Vh × Ih cos ϕh h ≠1 (5) ϕh = αh − βh Rev. A | Page 11 of 20 AD71056 APPLICATIONS ANALOG INPUTS Channel V1 (Current Channel) The voltage output from the current sensor is connected to the AD71056 at Channel V1. Channel V1 is a fully differential voltage input. V1P is the positive input with respect to V1N. The maximum peak differential signal on Channel V1 should be less than ±30 mV (21 mV rms for a pure sinusoidal signal) for specified operation. V1 +30mV Channel V2 is usually driven from a common-mode voltage, that is, the differential voltage signal on the input is referenced to a common mode (usually AGND). The analog inputs of the AD71056 can be driven with common-mode voltages of up to 25 mV with respect to AGND. However, best results are achieved using a common mode equal to AGND. Typical Connection Diagrams Figure 19 shows a typical connection diagram for Channel V1. A shunt is the current sensor selected for this example because of its low cost compared to other current sensors, such as the current transformer (CT). This IC is ideal for low current meters. V1P RF DIFFERENTIAL INPUT ±30mV MAX PEAK V1 VCM SHUNT COMMON MODE ±6.25mV MAX ±30mV V1N CF 05636-019 05636-017 RF AGND PHASE Figure 17. Maximum Signal Levels, Channel V1 NEUTRAL Figure 19. Typical Connection for Channel V1 Figure 20 shows a typical connection for Channel V2. Typically, the AD71056 is biased around the phase wire and a resistor divider is used to provide a voltage signal that is proportional to the line voltage. Adjusting the ratio of RA, RB, and RF is also a convenient way of carrying out a gain calibration on a meter. Channel V2 (Voltage Channel) RA 1 The output of the line voltage sensor is connected to the AD71056 at Channel V2. Channel V2 is a fully differential voltage input with a maximum peak differential signal of ±165 mV. Figure 18 illustrates the maximum signal levels that can be connected to the AD71056 Channel V2. RB V2P RF CF ±165mV V2N RF CF NEUTRAL PHASE 1R A V2 >> RB + RF. Figure 20. Typical Connections for Channel V2 +165mV V2P V2 VCM COMMON MODE ±25mV MAX V2N VCM AGND 05636-018 DIFFERENTIAL INPUT ±165mV MAX PEAK Figure 18. Maximum Signal Levels, Channel V2 Rev. A | Page 12 of 20 05636-020 Figure 17 illustrates the maximum signal levels on V1P and V1N. The maximum differential voltage is ±30 mV. The differential voltage signal on the inputs must be referenced to a common mode, such as AGND. The maximum common-mode signal is ±6.25 mV, as shown in Figure 17. –165mV CF VCM AGND –30mV V1P V1N AD71056 POWER SUPPLY MONITOR The AD71056 contains an on-chip power supply monitor. The power supply (VDD) is continuously monitored by the AD71056. If the supply is less than 4 V, the AD71056 becomes inactive. This is useful to ensure proper device operation at power-up and power-down. The power supply monitor has built-in hysteresis and filtering that provide a high degree of immunity to false triggering from noisy supplies. In Figure 21, the trigger level is nominally set at 4 V. The tolerance on this trigger level is within ±5%. 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 Equation 6 shows how the power calculation is affected by the dc offsets in the current and voltage channels. {V cos (ωt ) + VOS }× {I cos (ωt ) + IOS } = + (6) V ×I + VOS × IOS + VOS × I cos (ωt ) + IOS × V cos (ωt ) 2 V×I 2 × cos (2ωt ) The HPF in Channel V1 has an associated phase response that is compensated for on chip. Figure 23 and Figure 24 show the phase error between channels with the compensation network activated. The AD71056 is phase compensated up to 1 kHz as shown. This ensures correct active harmonic power calculation even at low power factors. 5V 4V 0.30 0.25 0.20 PHASE (Degrees) 0V TIME INACTIVE 0.05 0 Figure 21. On-Chip Power Supply Monitor –0.05 HPF and Offset Effects –0.10 0 100 200 300 400 500 600 700 800 900 1000 FREQUENCY (Hz) Figure 23. Phase Error Between Channels (0 Hz to 1 kHz) 0.30 0.25 0.20 PHASE (Degrees) Figure 22 illustrates the effect of offsets on the real power calculation. As can be seen, offsets on Channel V1 and Channel V2 contribute a dc component after multiplication. Because this dc component is extracted by the LPF and used to generate the real power information, the offsets contribute a constant error to the real power calculation. This problem is easily avoided by the built-in HPF in Channel V1. By removing the offsets from at least one channel, no error component can be generated at dc by the multiplication. Error terms at the line frequency (ω) are removed by the LPF and the digital-tofrequency conversion (see the Digital-to-Frequency Conversion section). 05636-023 ACTIVE 0.10 0.15 0.10 0.05 0 DC COMPONENT (INCLUDING ERROR TERM) IS EXTRACTED BY THE LPF FOR REAL POWER CALCULATION –0.05 VOS × IOS –0.10 V×I 2 05636-024 INACTIVE 05636-021 INTERNAL ACTIVATION 0.15 40 45 50 55 60 65 FREQUENCY (Hz) Figure 24. Phase Error Between Channels (40 Hz to 70 Hz) VOS × I 0 FREQUENCY (RAD/s) 05636-022 IOS × V Figure 22. Effect of Channel Offset on the Real Power Calculation Rev. A | Page 13 of 20 70 AD71056 Digital-to-Frequency Conversion As previously described, the digital output of the low-pass filter after multiplication contains the real 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 1 (7) f2 1+ 4.452 Because the F1 and F2 outputs operate at a much lower frequency, a lot more averaging of the instantaneous real power signal is carried out. The result is a greatly attenuated sinusoidal content and a virtually ripple free frequency output. For a line frequency of 50 Hz, this gives an attenuation of the 2ω (100 Hz) component of approximately 22 dB. The dominating harmonic is twice the line frequency (2ω) due to the instantaneous power calculation. Connecting to a Microcontroller for Energy Measurement V MULTIPLIER F2 LPF DIGITAL-TOFREQUENCY CF I LPF TO EXTRACT REAL POWER (DC TERM) V×I 2 The easiest way to interface the AD71056 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 7). With full-scale ac signals on the analog inputs, the output frequency on CF is approximately 2.867 kHz. Figure 26 illustrates one scheme to digitize the output frequency and carry out the necessary averaging mentioned in the Digitalto-Frequency Conversion section. CF FREQUENCY RIPPLE AVERAGE FREQUENCY ±10% F1 TIME TIME AD71056 CF FREQUENCY DIGITAL-TOFREQUENCY F1 FREQUENCY Figure 25 shows the instantaneous real power signal at the output of the LPF that still contains a significant amount of instantaneous power information, that is, 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. The accumulation of the signal suppresses or averages out any non-dc components in the instantaneous real power signal. The average value of a sinusoidal signal is zero. Thus, the frequency generated by the AD71056 is proportional to the average real power. Figure 25 shows the digital-tofrequency conversion for steady load conditions, that is, constant voltage and current. COUNTER CF TIMER TIME COS (2ω) ATTENUATED BY LPF ω 2ω FREQUENCY (RAD/s) INSTANTANEOUS REAL POWER SIGNAL (FREQUENCY DOMAIN) MCU 05636-026 H( f ) = This higher output frequency is generated by accumulating the instantaneous real 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. Consequently, some of this instantaneous power signal passes through the digital-to-frequency conversion. This is not a problem in the application. Where CF is used for calibration purposes, the frequency should be averaged by the frequency counter to remove any ripple. If CF is being used to measure energy, for example in a microprocessor-based application, the CF output should also be averaged to calculate power. Figure 26. Interfacing the AD71056 to an MCU 05636-025 0 Figure 25. Real Power-to-Frequency Conversion As shown, the frequency output CF is connected to an MCU counter or port. This counts the number of pulses in a given integration time that is determined by an MCU internal timer. The average power proportional to the average frequency is given by Figure 25 shows that 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 real power signal. The output frequency on CF can be up to 2048 times higher than the frequency on F1 and F2. Rev. A | Page 14 of 20 Average Frequency = Average Power = Counter Time (8) AD71056 The energy consumed during an integration period is given by Frequency Outputs F1 and F2 Counter Energy = Average Power × Time = × Time = Counter Time (9) For the purpose of calibration, this integration time can be as long as 10 seconds to 20 seconds to accumulate enough pulses to ensure correct averaging of the frequency. In normal operation, the integration time can be reduced to one or two seconds, depending, for example, on the required update rate of a display. With shorter integration times on the MCU, the amount of energy in each update can still have some small amount of ripple, even under steady load conditions. However, over a minute or more the measured energy has no ripple. Power Measurement Considerations Calculating and displaying power information always has some associated ripple that depends on the load as well as the integration period used in the MCU to determine average power. For example, at light loads, the output frequency may be 10 Hz. With an integration period of two seconds, only about 20 pulses are counted. The possibility of missing one pulse always exists, because the output frequency of the AD71056 is running asynchronously to the MCU timer. This results in a 1-in-20, or 5%, error in the power measurement. INTERNAL OSCILLATOR (OSC) The nominal internal oscillator frequency is 450 kHz when used with RCLKIN, with a nominal value of 6.2 kΩ. The frequency outputs are directly proportional to the oscillator frequency, thus RCLKIN must have low tolerance and low temperature drift to ensure stability and linearity of the chip. The oscillator frequency is inversely proportional to the RCLKIN, as shown in Figure 27. Although the internal oscillator operates when used with RCLKIN values between 5.5 kΩ and 20 kΩ, choosing a value within the range of the nominal value, as shown in Figure 27, is recommended. 490 The AD71056 calculates the product of two voltage signals (on Channel V1 and Channel V2) and then low-pass filters this product to extract real power information. This real power information is then converted to a frequency. The frequency information is output on F1 and F2 in the form of active low pulses. The pulse rate at these outputs is relatively low, for example, 0.175 Hz maximum for ac signals with S0 = S1 = 0 (see Table 6). This means that the frequency at these outputs is generated from real power information accumulated over a relatively long period of time. The result is an output frequency that is proportional to the average real power. The averaging of the real power signal is implicit to the digital-to-frequency conversion. The output frequency or pulse rate is related to the input voltage signals by the following equation: Freq = 494.75 × V1rms × V2rms × f1...4 (10) VREF 2 where: Freq = output frequency on F1 and F2 (Hz). V1rms = differential rms voltage signal on Channel V1 (V). V2rms = differential rms voltage signal on Channel V2 (V). VREF = the reference voltage (2.45 V ±200 mV) (V). f1…4 = one of four possible frequencies selected by using Logic Input S0 and Logic Input S1 (see Table 5). Table 5. f1…4 Frequency Selection S1 0 0 1 1 1 2 S0 0 1 0 1 OSC Relation1 OSC/219 OSC/218 OSC/217 OSC/216 f1…4 at Nominal OSC (Hz)2 0.86 1.72 3.43 6.86 f1…4 is a binary fraction of the internal oscillator frequency (OSC). Values are generated using the nominal frequency of 450 kHz. Example In this example, with ac voltages of ±30 mV peak applied to V1 and ±165 mV peak applied to V2, the expected output frequency is calculated as 480 470 FREQUENCY (kHz) TRANSFER FUNCTION f1…4 = OSC/219 Hz, S0 = S1 = 0 V1rms = 0.03/√2 V V2rms = 0.165/√2 V VREF = 2.45 V (nominal reference value) 460 450 440 430 420 400 5.8 05636-027 410 5.9 6.0 6.1 6.2 6.3 6.4 6.5 6.6 6.7 RESISTANCE (kΩ) Note that if the on-chip reference is used, actual output frequencies can vary from device to device due to the reference tolerance of ±200 mV. Freq = Figure 27. Effect of RCLKIN on Internal Oscillator Frequency (OSC) Rev. A | Page 15 of 20 494.75 × 0.03 × 0.165 × f1 = 0.204 × f1 = 0.175 2 × 2 × 2.452 (11) AD71056 Table 6. Maximum Output Frequency on the F1 and F2 Pins S1 0 0 1 1 1 S0 0 1 0 1 OSC Relation 0.204 × f1 0.204 × f2 0.204 × f3 0.204 × f4 1 Max Frequency or AC Inputs (Hz) 0.175 0.35 0.70 1.40 Values are generated using the nominal frequency of 450 kHz. Frequency Output CF The Pulse Output CF (calibration frequency) is intended for calibration purposes. The output pulse rate on CF can be up to 2048 times the pulse rate on the F1 and F2 pins. The lower the f1…4 frequency selected, the higher the CF scaling (except for the high frequency mode where SCF = 0, S1 = S0 = 1). Table 7 shows how the two frequencies are related, depending on the states of the logic inputs (S0, S1, and SCF). Due to its relatively high pulse rate, the frequency at the CF logic output is proportional to the instantaneous real power. As with F1 and F2, CF is derived from the output of the low-pass filter after multiplication. However, because the output frequency is high, this real power information is accumulated over a much shorter time. Therefore, less averaging is carried out in the digital-tofrequency conversion. With much less averaging of the real power signal, the CF output is much more responsive to power fluctuations (see the signal processing block in Figure 15). Table 7. Maximum Output Frequency on CF SCF 1 0 1 0 1 0 1 0 1 S1 0 0 0 0 1 1 1 1 S0 0 0 1 1 0 0 1 1 CF Max for AC Signals (Hz)1 128 × F1, F2 = 22.4 64 × F1, F2 = 11.2 64 × F1, F2 = 22.4 32 × F1, F2 = 11.2 32 × F1, F2 = 22.4 16 × F1, F2 = 11.2 16 × F1, F2 = 22.4 2048 × F1, F2 = 2.867 kHz Values are generated using the nominal frequency of 450 kHz. SELECTING A FREQUENCY FOR AN ENERGY METER APPLICATION As listed in Table 5, the user can select one of four frequencies. This frequency selection determines the maximum frequency on the F1 and F2 pins. These outputs are intended for driving an energy register (electromechanical or other). Because only four different output frequencies can be selected, the available frequency selection is optimized for a meter constant of 100 imp/kWh with a maximum current between 10 A and 120 A. Table 8 shows the output frequency for several maximum currents (IMAX) with a line voltage of 220 V. In all cases, the meter constant is 100 imp/kWh. Table 8. F1 and F2 Frequency at 100 imp/kWh IMAX (A) 12.5 25.0 40.0 60.0 80.0 120.0 F1 and F2 (Hz) 0.076 0.153 0.244 0.367 0.489 0.733 The f1…4 frequencies allow complete coverage of this range of output frequencies (F1, F2). When designing an energy meter, the nominal design voltage on Channel V2 (voltage) should be set to half-scale to allow for calibration of the meter constant. The current channel should also be no more than half-scale when the meter sees maximum load. This allows overcurrent signals and signals with high crest factors to be accommodated. Table 9 lists the output frequency on the F1 and F2 pins when both analog inputs are half-scale. The frequencies listed in Table 9 align very well with those listed in Table 8 for maximum load. Table 9. F1 and F2 Frequency with Half-Scale AC Inputs S1 S0 f1…4 (Hz) Frequency on F1 and F2— CH1 and CH2 Half-Scale AC Input1 0 0 1 1 0 1 0 1 0.86 1.72 3.43 6.86 0.051 × f1 0.051 × f2 0.051 × f3 0.051 × f4 1 0.044 Hz 0.088 Hz 0.176 Hz 0.352 Hz Values are generated using the nominal frequency of 450 kHz. When selecting a suitable f1…4 frequency for a meter design, compare the frequency output at IMAX (maximum load) based on a meter constant of 100 imp/kWh against the last column of Table 9. The closest frequency in Table 9 determines the best choice of frequency (f1…4). For example, if a meter with a maximum current of 25 A is being designed, the output frequency on the F1 and F2 pins with a meter constant of 100 imp/kWh is 0.153 Hz at 25 A and 220 V (from Table 8). In the last column of Table 9, the closest frequency to 0.153 Hz is 0.176 Hz. Therefore, f3 (3.43 Hz) is selected for this design (see Table 5). Frequency Outputs Figure 2 shows a timing diagram for the various frequency outputs. The outputs (F1 and F2) are the low frequency outputs that can be used to directly drive a stepper motor or electromechanical impulse counter. The F1 and F2 outputs provide two alternating low frequency pulses. The F1 and F2 pulse widths (t1) are set such that if they fall below 240 ms (0.24 Hz), they are set to half of their period. The maximum output frequencies for F1 and F2 are shown in Table 6. The high frequency CF output is intended to be used for communications and calibration purposes. CF produces a 90-ms-wide active high pulse (t4) at a frequency proportional Rev. A | Page 16 of 20 AD71056 to active power. The CF output frequencies are given in Table 7. 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. If the CF frequency, for example, is 20 Hz, the CF pulse width is 25 ms. When the high frequency mode is selected (that is, SCF = 0, S1 = S0 = 1), the CF pulse width is fixed at 35 μs. Therefore, t4 is always 35 μs, regardless of the output frequency on CF. output frequency at F1 or F2 equals 0.00244% of 3.43 Hz or 8.38 × 10–5 Hz. This is 2.68 × 10–3 Hz at CF (32 × F1 Hz) when SCF = S0 = 1, S1 = 0. In this example, the no load threshold is equivalent to 3 W of load or a start-up current of 13.72 mA at 220 V. Compare this value to the IEC62053-21 specification that states the meter must start up with a load equal to or less than 0.4% Ib. For a 5 A (Ib) meter, 0.4% of Ib is equivalent to 20 mA. NEGATIVE POWER INFORMATION NO LOAD THRESHOLD The AD71056 also includes a no load threshold and start-up current feature that eliminates any creep effects in the meter. The AD71056 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.00244% for each of the f1…4 frequency selections (see Table 5). The AD71056 detects when the current and voltage channels have a phase shift greater than 90°. This mechanism can detect wrong connection of the meter or 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. For example, for an energy meter with a meter constant of 100 imp/kWh on F1, F2 using f3 (3.43 Hz), the minimum Rev. A | Page 17 of 20 AD71056 OUTLINE DIMENSIONS 10.00 (0.3937) 9.80 (0.3858) 4.00 (0.1575) 3.80 (0.1496) 9 16 1 8 1.27 (0.0500) BSC 0.25 (0.0098) 0.10 (0.0039) COPLANARITY 0.10 0.51 (0.0201) 0.31 (0.0122) 6.20 (0.2441) 5.80 (0.2283) 1.75 (0.0689) 1.35 (0.0531) SEATING PLANE 0.50 (0.0197) 0.25 (0.0098) 45° 8° 0° 0.25 (0.0098) 0.17 (0.0067) 1.27 (0.0500) 0.40 (0.0157) 060606-A COMPLIANT TO JEDEC STANDARDS MS-012-AC CONTROLLING DIMENSIONS ARE IN MILLIMETERS; INCH DIMENSIONS (IN PARENTHESES) ARE ROUNDED-OFF MILLIMETER EQUIVALENTS FOR REFERENCE ONLY AND ARE NOT APPROPRIATE FOR USE IN DESIGN. Figure 28. 16-Lead Standard Small Outline Package [SOIC_N] Narrow Body (R-16) Dimensions shown in millimeters and (inches) ORDERING GUIDE Model AD71056AR AD71056AR-RL AD71056ARZ 1 AD71056ARZ-RL1 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 16-Lead SOIC_N 16-Lead SOIC_N, Reel 16-Lead SOIC_N 16-Lead SOIC_N, Reel Z = Pb-free part. Rev. A | Page 18 of 20 Package Option R-16 R-16 R-16 R-16 AD71056 NOTES Rev. A | Page 19 of 20 AD71056 NOTES ©2006 Analog Devices, Inc. All rights reserved. Trademarks and registered trademarks are the property of their respective owners. D05636-0-8/06(A) Rev. A | Page 20 of 20