System calibration, 1 channel offset and gain calibration, 1 calibration sequence – Cirrus Logic CS5463 User Manual
Page 37: 1 duration of calibration sequence, 2 offset calibration sequence, 1 dc offset calibration sequence, Figure 12. calibration data flow, Figure 13. system calibration of offset, See section 7, B. see section 7.1.2.1

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
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