ADE7759PIN FUNCTION DESCRIPTIONS (continued)Pin No.MnemonicDescription 12 ZX Voltage Waveform (Channel 2) Zero Crossing Output. This output toggles logic high and low at the zero crossing of the differential signal on Channel 2—see Zero Crossing Detection section. 13 SAG This open-drain logic output goes active low when either no zero crossings are detected or a low voltage threshold (Channel 2) is crossed for a specified duration—see Line Voltage Sag Detec- tion section. 14 IRQ Interrupt Request Output. This is an active low open-drain logic output. Maskable interrupts include active energy register rollover, active energy register at half-full, zero crossing, SAG, and arrivals of new waveform samples—see Interrupts section. 15 CLKIN Master Clock for ADCs and Digital Signal Processing. An external clock can be provided at this logic input. Alternatively, a parallel resonant AT crystal can be connected across CLKIN and CLKOUT to provide a clock source for the ADE7759. The clock frequency for specified opera- tion is 3.579545 MHz. Ceramic load capacitors of between 10 pF and 30 pF should be used with the gate oscillator circuit. Refer to crystal manufacturer’s data sheet for load capacitance requirements. 16 CLKOUT A crystal can be connected across this pin and CLKIN as described above to provide a clock source for the ADE7759. The CLKOUT pin can drive one CMOS load when either an external clock is supplied at CLKIN or a crystal is being used. 17 CS Chip Select. Part of the 4-wire SPI serial interface. This active low logic input allows the ADE7759 to share the serial bus with several other devices—see Serial Interface section. 18 SCLK Serial Clock Input for the Synchronous serial interface. All serial data transfers are synchronized to this clock—see Serial Interface section. The SCLK has a Schmitt-trigger input for use with a clock source that has a slow edge transition time, e.g., opto-isolator outputs. 19 DOUT Data Output for the Serial Interface. Data is shifted out at this pin on the rising edge of SCLK. This logic output is normally in a high impedance state unless it is driving data onto the serial data bus—see Serial Interface section. 20 DIN Data Input for the Serial Interface. Data is shifted in at this pin on the falling edge of SCLK—see Serial Interface section. TERMINOLOGY nominal supplies (5 V) is taken. A second reading is obtained with the same input signal levels when the supplies are varied ± 5%. MEASUREMENT ERROR Any error introduced is again expressed as a percentage of reading. The error associated with the energy measurement made by the ADE7759 is defined by the following formula: ADC OFFSET ERROR This refers to the dc offset associated with the analog inputs to Percentage Error = the ADCs. It means that with the analog inputs connected to Energy registered by the ADE7759 – True Energy AGND, the ADCs still see a dc analog input signal. The magni- tude of the offset depends on the gain and input range selection—see True Energy Typical Performance Characteristics. However, when HPF1 is switched on, the offset is removed from Channel 1 (current) and PHASE ERROR BETWEEN CHANNELS the power calculation is not affected by this offset. The offsets The digital integrator and the HPF1 (High-Pass Filter) in may be removed by performing an offset calibration—see Analog Channel 1 have nonideal phase response. To offset this phase Inputs section. response and equalize the phase response between channels, two phase correction networks are placed in Channel 1: one for the GAIN ERROR digital integrator and the other for the HPF1. Each phase cor- The gain error in the ADE7759 ADCs is defined as the difference rection network corrects the phase response of the corresponding between the measured ADC output code (minus the offset) component and ensures a phase match between Channel 1 and the ideal output code—see Channel 1 ADC and Channel (current) and Channel 2 (voltage) to within ±0.1∞ over a range 2 ADC. It is measured for each of the input ranges on Channel of 45 Hz to 65 Hz and ±0.2∞ over a range 40 Hz to 1 kHz. 1 (0.5 V, 0.25 V, and 0.125 V). The difference is expressed as a percentage of the ideal code. POWER SUPPLY REJECTION This quantifies the ADE7759 measurement error as a percent- GAIN ERROR MATCH age of reading when the power supplies are varied. The Gain Error Match is defined as the gain error (minus the For the ac PSR measurement, a reading at nominal supplies offset) obtained when switching between a gain of 1 (for each of (5 V) is taken. A second reading is obtained with the same input the input ranges) and a gain of 2, 4, 8, or 16. It is expressed as a signal levels when an ac (175 mV rms/120 Hz) signal is intro- percentage of the output ADC code obtained under a gain of 1. duced onto the supplies. Any error introduced by this ac signal This gives the gain error observed when the gain selection is is expressed as a percentage of reading—see Measurement Error changed from 1 to 2, 4, 8, or 16. definition above. For the dc PSR measurement a reading at –8– REV. A Document Outline FEATURES GENERAL DESCRIPTION FUNCTIONAL BLOCK DIAGRAM TABLE OF CONTENTS SPECIFICATIONS TIMING CHARACTERISTICS ABSOLUTE MAXIMUM RATINGS ORDERING GUIDE PIN CONFIGURATION PIN FUNCTION DESCRIPTIONS TERMINOLOGY MEASUREMENT ERROR PHASE ERROR BETWEEN CHANNELS POWER SUPPLY REJECTION ADC OFFSET ERROR GAIN ERROR GAIN ERROR MATCH Typical Performance Characteristics Test Circuits ANALOG INPUTS di/dt CURRENT SENSOR AND DIGITAL INTEGRATOR ZERO CROSSING DETECTION LINE VOLTAGE SAG DETECTION Sag Level Set POWER SUPPLY MONITOR INTERRUPTS Using the ADE7759 Interrupts with an MCU Interrupt Timing TEMPERATURE MEASUREMENT ANALOG-TO-DIGITAL CONVERSION Antialias Filter ADC Transfer Function Reference Circuit CHANNEL 1 ADC Channel 1 ADC Gain Adjust Channel 1 Sampling CHANNEL 1 AND CHANNEL 2 WAVEFORM SAMPLING MODE CHANNEL 2 ADC Channel 2 Sampling PHASE COMPENSATION ACTIVE POWER CALCULATION ENERGY CALCULATION Integration Time under Steady Load POWER OFFSET CALIBRATION ENERGY-TO-FREQUENCY CONVERSION LINE CYCLE ENERGY ACCUMULATION MODE CALIBRATING THE ENERGY METER Calculating the Average Active Power Calibrating the Frequency at CF Energy Meter Display CLKIN FREQUENCY SUSPENDING THE ADE7759 FUNCTIONALITY APPLICATION INFORMATION SERIAL INTERFACE Serial Write Operation Serial Read Operation CHECKSUM REGISTER REGISTER DESCRIPTIONS Communications Register Mode Register (06H) Interrupt Status Register (04H) Reset Interrupt Status Register (05H) CH1OS Register (08H) OUTLINE DIMENSIONS Revision History