CS5463
DS678F3 37
7. SYSTEM CALIBRATION
7.1 Channel Offset and Gain Calibration
The CS5463 provides digital DC offset and gain com-
pensation that can be applied to the instantaneous volt-
age and current measurements, and AC offset
compensation to the voltage and current RMS calcula-
tions.
Since the voltage and current channels have indepen-
dent offset and gain registers, system offset and/or
gain can be performed on either channel without the
calibration results from one channel affecting the oth-
er.
The computational flow of the calibration sequences are
illustrated in Figure 12. The flow applies to both the volt-
age channel and current channel.
7.1.1 Calibration Sequence
The CS5463 must be operating in its active state and
ready to accept valid commands. Refer to Section 5.16
Commands on page 23. The calibration algorithms are
dependent on the value N in the
Cycle Count Register
(see Figure 12). Upon completion, the results of the cal-
ibration are available in their corresponding register.
The DRDY bit in the
Status Register will be set. If the
DRDY bit is to be output on the INT
pin, then DRDY bit
in the Mask Register must be set. The initial values in
the AC gain and offset registers do affect the results of
the calibration results.
7.1.1.1 Duration of Calibration Sequence
The value of the Cycle Count Register (N) determines
the number of conversions performed by the CS5463
during a given calibration sequence. For DC offset and
gain calibrations, the calibration sequence takes at least
N + 30 conversion cycles to complete. For AC offset cal-
ibrations, the sequence takes at least 6N + 30 ADC cy-
cles to complete, (about 6 computation cycles). As N is
increased, the accuracy of calibration results will in-
crease.
7.1.2 Offset Calibration Sequence
For DC and AC offset calibrations, the VIN pins of the
voltage and IIN
pins of the current channels should be
connected to their ground reference level. (see Figure
13.)
The AC offset registers must be set to the default
(0x000000).
7.1.2.1 DC Offset Calibration Sequence
Channel gain should be set to 1.0 when performing DC
offset calibration. Initiate a DC offset calibration. The DC
offset registers are updated with the negative of the av-
erage of the instantaneous samples collected over a
computational cycle. Upon completion of the DC offset
calibration the DC offset is stored in the corresponding
DC offset register. The DC offset value will be added to
Figure 12. Calibration Data Flow
In
Modulator
+
X
to V*, I* Registers
Filter
N
V
RMS
*, I
RMS
*
Registers
DC Offset*
Gain*
0.6
+
+
+
* Denotes readable/writable register
N
+
X
N
Inverse
X
-1
RMS
AC Offset*
N
X
-1
+
+
-
XGAIN
+
-
External
Connections
0V
+
-
AIN+
AIN-
CM
+
-
Figure 13. System Calibration of Offset
CS5463
38 DS678F3
each instantaneous measurement to nullify the DC
component present in the system during conversion
commands.
7.1.2.2 AC Offset Calibration Sequence
Corresponding offset registers I
ACoff
and/or V
ACoff
should be cleared prior to initiating AC offset calibra-
tions. Initiate an AC offset calibration.The AC offset reg-
isters are updated with an offset value that reflects the
RMS output level. Upon completion of the AC offset cal-
ibration the AC offset is stored in the corresponding AC
offset register. The AC offset register value is subtract-
ed from each successive V
RMS
and I
RMS
calculation.
7.1.3 Gain Calibration Sequence
When performing gain calibrations, a reference signal
should be applied to the VIN
pins of the voltage and
IIN
pins of the current channels that represents the de-
sired maximum signal level. Figure 14 shows the basic
setup for gain calibration.
For gain calibrations, there is an absolute limit on the
RMS voltage levels that are selected for the gain cali-
bration input signals. The maximum value that the gain
registers can attain is 4. Therefore, if the signal level of
the applied input is low enough that it causes the
CS5463 to attempt to set either gain register higher than
4, the gain calibration result will be invalid and all
CS5463 results obtained while performing measure-
ments will be invalid.
If the channel gain registers are initially set to a gain oth-
er then 1.0, AC gain calibration should be used.
7.1.3.1 AC Gain Calibration Sequence
The corresponding gain register should be set to 1.0,
unless a different initial gain value is desired. Initiate an
AC gain calibration. The AC gain calibration algorithm
computes the RMS value of the reference signal applied
to the channel inputs. The RMS register value is then di-
vided into 0.6 and the quotient is stored in the corre-
sponding gain register. Each instantaneous
measurement will be multiplied by its corresponding AC
gain value.
A typical rms calibration value which allows for reason-
able over-range margin would be 0.6 or 60% of the volt-
age and current channel’s maximum input voltage level.
Two examples of AC gain calibration and the updated
digital output codes of the channel’s instantaneous data
registers are shown in Figures 15 and 16. Figure 16
shows that a positive (or negative) DC-level signal can
be used even though an AC gain calibration is being ex-
ecuted.
+
-
+
-
External
Connections
IN+
IN-
CM
+
-
+
-
XGAIN
Reference
Signal
Figure 14. System Calibration of Gain.
V
RMS
Register =
230
/

x
1
/
250
0.65054
250 mV
230 mV
0 V
-230 mV
-250 mV
0.9999...
0.92
-0.92
-1.0000...
V
RMS
Register =0.600000
250 mV
230 mV
0 V
-230 mV
-250 mV
0.84853
-0.84853
Before AC Gain Calibration (Vgn Register = 1)
After AC Gain Calibration (Vgn Register changed to approx. 0.9223)
Instantaneous Voltage
Register Values
Instantaneous Voltage
Register Values
Sinewave
Sinewave
0.92231
-0.92231
INPUT
SIGNAL
INPUT
SIGNAL
Figure 15. Example of AC Gain Calibration
V
RMS
Register =
230
=0.92
250 mV
230 mV
0 V
-250 mV
0.9999...
0.92
-1.0000...
V
RMS
Register =0.600000
250 mV
230 mV
0 V
-250 mV
0.6000
Before AC Gain Calibration (Vgain Register = 1)
After AC Gain Calibration (Vgain Register changed to approx. 0.65217)
Instantaneous Voltage
Register Values
Instantaneous Voltage
Register Values
DC Signal
DC Signal
0.65217
-0.65217
INPUT
SIGNAL
INPUT
SIGNAL
250
Figure 16. Example of AC Gain Calibration
CS5463
DS678F3 39
However, an AC signal cannot be used for DC gain cal-
ibration.
7.1.3.2 DC Gain Calibration Sequence
Initiate a DC gain calibration. The corresponding gain
register is restored to default (1.0). The DC gain calibra-
tion averages the channel’s instantaneous measure-
ments over one computation cycle (N samples). The
average is then divided into 1.0 and the quotient is
stored in the corresponding gain register
After the DC gain calibration, the instantaneous register
will read at full-scale whenever the DC level of the input
signal is equal to the level of the DC calibration signal
applied to the inputs during the DC gain calibration.The
HPF option should not be enabled if DC gain calibration
is utilized.
7.1.4 Order of Calibration Sequences
1. If the HPF option is enabled, then any DC component
that may be present in the selected signal path will be
removed and a DC offset calibration is not required.
However, if the HPF option is disabled the DC offset
calibration sequence should be performed.
When using high-pass filters, it is recommended that
the DC Offset register for the corresponding channel
be set to zero. When performing DC offset calibra-
tion, the corresponding gain channel should be set to
one.
2. If there is an AC offset in the V
RMS
or I
RMS
calcula-
tion, then the AC offset calibration sequence should
be performed.
3. Perform the gain calibration sequence.
4. Finally, if an AC offset calibration was performed
(step 2), then the AC offset may need to be adjusted
to compensate for the change in gain (step 3). This
can be accomplished by restoring zero to the AC off-
set register and then perform an AC offset calibration
sequence. The adjustment could also be done by
multiplying the AC offset register value that was cal-
culated in step 2 by the gain calculated in step 3 and
updating the AC offset register with the product.
7.2 Phase Compensation
The CS5463 is equipped with phase compensation to
cancel out phase shifts introduced by the measurement
element. Phase Compensation is set by bits PC[6:0] in
the
Configuration Register and bits XVDEL and XIDEL
in the
Operational Mode Register
The default value of PC[6:0], XVDEL, and XIDEL is ze-
ro. With MCLK = 4.096 MHz and K = 1, the phase com-
pensation has a range of
8.1 degrees when the input
signals are 60 Hz. Under these conditions, each step of
the phase compensation register (value of one LSB) is
approximately 0.04 degrees. For values of MCLK other
than 4.096 MHz, the range and step size should be
scaled by 4.096 MHz/(MCLK/K). For power line fre-
quencies other than 60Hz, the values of the range and
step size of the PC[6:0] bits can be determined by con-
verting the above values from angular measurement
into the time domain (seconds), and then computing the
new range and step size (in degrees) with respect to the
new line frequency. To calculate the phase shift induced
between the voltage and the current channel use the
equation:
7.3 Active Power Offset
The Power Offset Register can be used to offset system
power sources that may be resident in the system, but
do not originate from the power line signal. These sourc-
es of extra energy in the system contribute undesirable
and false offsets to the power and energy measurement
results. After determining the amount of stray power, the
Power Offset Register can be set to cancel the effects
of this unwanted energy.
Freq = Line Frequency [Hz]
XDEL = XVDEL or -XIDEL
Phase
Freq 360
o
PC 5:0 PC 6 64 XDEL 128+
MCLK K8
---------------------------------------------------------------------------------------------------------------------------------
=

CS5463-ISZR

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

Products related to this Datasheet