CS5464
40 DS682F3
9.1.2 Gain Calibration
During gain calibration, a full-scale reference signal
must be applied to the meter or optionally, scaled to the
VIN
,IIN1 (IIN2pins of the CS5464. A DC reference
must be used for DC gain calibration. Either an AC or
DC reference can be used for RMS AC calibrations. If
DC is used, the associated high-pass filter (HPF) must
be off.
Figure 12 shows the basic setup for gain calibration.
Using a reference that is too large or too small can
cause an over-range condition during calibration. Either
condition can set
Status register bits I1OR (I2OR)
V1OR (V2OR) for DC and I1ROR (I2ROR) V1ROR
(V2ROR) for AC calibration.
Full scale (FS) for the voltage input is ±250mV peak and
for the current inputs is ±250mV or ±50mV peak de-
pending on selected gain range. The normal peak volt-
age applied to these pins should not exceed these
levels during calibration or normal operation.
The range of the gain registers limits the gain calibration
range and subsequently the range of the reference level
that can be applied. The reference should not exceed
FS or be lower than FS/4.
9.1.2.1 AC Gain Calibration
Full scale for AC RMS gain calibrations is 60% of the in-
put’s full-scale range, which is either 250mV or 50mV
depending on the gain range selected. That’s 150mV or
30mV, again depending on range. So the normal refer-
ence input level should be either 150 or 30 mV
RMS
, AC
or DC.
Prior to executing an AC Gain Calibration command,
gain registers for any channel to be calibrated should be
set to 1.0 if the reference level mentioned above is
used, or to that level divided by the actual reference lev-
el used.
During AC gain calibration the RMS level of the applied
reference is measured with the preset gain, then divided
into 0.6 and the quotient stored back into the corre-
sponding gain register.
9.1.2.2 DC Gain Calibration
With a DC reference applied, the DC Gain Calibration
command measures and averages DC values read on
the specified voltage or current channels and stores the
reciprocal result in the associated gain registers, con-
verting measured voltage into needed gain. Subse-
quent conversions will use the new gain value.
9.1.3 Calibration Order
1. DC offset.
2. DC or AC gain.
3. AC offset (if needed).
If both AC gain and offset calibrations were performed,
it is possible to repeat both to obtain additional accuracy
as AC gain and offset may interact.
9.1.4 Temperature Sensor Calibration
Temperature sensor calibration involves the adjustment
of two parameters -
VBE and VBE0. These values must
be known in order to calibrate the temperature sensor.
See Section 6.13
Temperature Measurement on page
21 for an explanation of
VBE and VBE0 and how to cal-
culate
T
GAIN
and T
OFF
register values from them.
9.1.4.1 Temperature Offset Calibration
Offset calibration can be done at any temperature, but
should be done mid-scale if any gain error exists.
Subtract the measured
T register temperature from the
actual temperature to determine the offset error. Multi-
ply this error by
VBE and add it to VBE0 to yield a new
V
BE0 value. Recalculate T
OFF
using this new value.
9.1.4.2 Temperature Gain Calibration
Two temperature points far enough apart to give rea-
sonable accuracy, for example 25°C and 85°C, are re-
quired to calibrate temperature gain.
Divide the actual temperature difference by the mea-
sured (
T register) difference for the two temperatures.
This gives a gain correction factor. Update the
T
GAIN
register by multiplying it’s value by this correction factor.
Update
VBE by dividing its old value by the gain cor-
rection factor. It will be needed for subsequent offset
calibrations.
+
-
+
-
External
Connections
IN+
IN-
CM
+
-
+
-
XGAIN
Reference
Signal
Figure 12. System Calibration of Gain.
CS5464
DS682F3 41
10.E
2
PROM OPERATION
The CS5464 can accept commands from a serial
E
2
PROM connected to the serial interface instead of a
host microcontroller. A high level (logic 1) on the MODE
input indicates that an E
2
PROM is connected. This
makes the CS
and SCLK pins become driven outputs.
After reset and after running the initialization program,
the CS5464 begins reading commands from the con-
nected E
2
PROM.
10.1 E
2
PROM Configuration
A typical connection between the CS5464 and a
E
2
PROM is shown in Figure 13.
The CS5464 asserts CS
(logic 0), clocks SCLK, and
sends Read commands to the E
2
PROM on SDO.
Command format is identical to microcontroller mode,
except the CS5464 will not attempt to write to the EE de-
vice. The command sequence stops when the STOP bit
in the Control register (
Ctrl) is written by the command
sequence.
Figure 13 also shows the external connections that
would be made to a calibration device, such as a note-
book computer, handheld calibrator, or tester during
meter assembly, The calibrator or tester can be used to
control the CS5464 during calibration and program the
required values into the E
2
PROM.
10.2 E
2
PROM Code
The EEPROM code should do the following:
1. Set any Configuration or Control register bits, such as
HPF enables and phase compensation settings.
2. Write any calibration data to gain and offset registers.
3. Set energy output pulse width, rate, and formats.
4. Execute a Continuous Conversion command.
5. Set the STOP bit in the Control register (last).
Below is an example E
2
PROM code set.
-7E 00 00 01
Change to page 1.
-60 00 01 E0
Write
Modes Register, turn high-pass filters on.
-42 7F C4 A9
Write value of 0x7FC4A9 to
I1
GAIN
register.
-46 FF B2 53
Write value of 0xFFB253 to
V1
GAIN
register.
-50 7F C4 A9
Write value of 0x7FC4A9 to
I2
GAIN
register.
-54 FF B2 53
Write value of 0xFFB253 to
V2
GAIN
register.
-7E 00 00 00
Change to page 0.
-74 00 00 04
Set LSD bit to 1 in the
Mask register.
-E8
Start continuous conversions
-78 00 01 00
Write STOP bit to the Control register (
Ctrl) to
terminate E
2
PROM command sequence.
10.3 Which E
2
PROMs Can Be Used?
Several industry-standard serial E
2
PROMs can be used
with the CS5464. Some are listed below:
Atmel AT25010, AT25020 or AT25040
National Semiconductor NM25C040M8 or NM25020M8
Xicor X25040SI
These serial E
2
PROMs expect a specific 8-bit com-
mand (00000011) in order to perform a memory read.
The CS5464 has been hardware programmed to trans-
mit this 8-bit command to the E
2
PROM after reset.
CS5464
EEPROM
E1
E2
MODE
SCLK
SDI
SDO
CS
SCK
SO
SI
CS
Connector to Calibrator
VD
+
5 K
5 K
Pulse Output
Counter
Figure 13. Typical Interface of E
2
PROM to CS5464
CS5464
42 DS682F3
11. BASIC APPLICATION CIRCUITS
Figure 14 shows the CS5464 configured to measure
power in a single-phase, 2-wire system while operating
in a single-supply configuration. In this diagram, a shunt
resistor is used to sense the line current and a voltage
divider is used to sense the line voltage. In this type of
shunt-resistor configuration, the common-mode level of
the CS5464 must be referenced to the line side of the
power line. This means that the common-mode poten-
tial of the CS5464 will track the high-voltage levels, as
well as low-voltage levels, with respect to earth ground.
Isolation circuitry is required when an earth-ground-ref-
erenced communication interface is connected. A cur-
rent transformer (CT) is connected to the return line
current, which implements the tamper detection circuit.
VA+ VD+
CS5464
0.1µF470µF
500
W
1uF
500
L2
R
1
R
2
10
W
9
IIN-
10
19
20
IIN+
PFMON
CPUCLK
XOUT
XIN
Optional
Clock
Source
Serial
Data
Interface
RESET
2
1
CS
7
SDI
27
SDO
6
SCLK
5
INT
24
E1
0.1µF
VREFIN
12
VREFOUT
11
AGND DGND
17 4
3
4.096 MHz
0.1 µF
10 k
W
5k
W
L1
R
Shunt
R
V-
R
I-
R
I+
ISOLATION
(Optional)
Pulse Output
Counter
26
25
C
I-
C
I+
C
Idiff
C
V+
C
V-
C
Vdiff
E2
IIN2-
IIN2+
½ R
R
I-
R
I+
C
Burden
Idiff
15
16
18
21
28
23
VIN-
VIN+
TEST2
13
14
TEST1
LOAD
LINE
VOLTAGE
CT
½ R
Burden
C
I-
C
I+
W
Figure 14. Typical Connection Diagram (Single-phase, 2-wire Direct Connect to Power Line)

CS5464-ISZ

Mfr. #:
Manufacturer:
Cirrus Logic
Description:
Current & Power Monitors & Regulators 3-Ch Single Phase Power/Energy IC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet