2 gain calibration, 3 calibration order, 2 phase compensation – Cirrus Logic CS5480 User Manual

Page 64: Cs5480

Advertising
background image

CS5480

64

DS980F3

The AC offset register for the channel being calibrated
should first be cleared prior to performing the
calibration. The high-pass filter should be enabled if AC
offset calibration is used. It is recommended that
T

SETTLE

be set to 2000ms before performing an AC

offset calibration. Note that the AC offset register holds
the square of RMS value measured during calibration.
Therefore, it can hold a maximum RMS noise
of

. This is the maximum RMS noise that AC

offset correction can remove.

7.1.2 Gain Calibration

Prior to executing the gain calibration command, gain
registers for any path to be calibrated (Vx

GAIN

, Ix

GAIN

)

should be set to 1.0, and T

SETTLE

should be set to

2000 ms. For gain calibration, a reference signal must
be applied to the meter. During gain calibration, the
voltage RMS result register (Vx

RMS

) is divided into 0.6,

and the current RMS result register (Ix

RMS

) is divided

into the Scale register. The quotient is put into the
associated gain register. The gain calibration algorithm
attempts to adjust the gain register (Vx

GAIN

, Ix

GAIN

)

such that the voltage RMS result register (Vx

RMS

)

equals 0.6, and the current RMS result register (Ix

RMS

)

equal the Scale register.
Note that for the gain calibration, there are some
limitations on choosing the reference level and the
Scale register value. Using a reference or a scale that is
too large or too small can cause register overflow during
calibration or later during normal operation. Either
condition can set Status register bits I1OR (I2OR), or
VOR. The maximum value that the gain register can
attain is four. Using inappropriate reference levels or
scale values may also cause the CS5480 to attempt to
set the gain register higher than four, therefore the gain
calibration result will be invalid.
The Scale register is 0.6 by default. The maximum
voltage (U

MAX

Volts) and current (I

MAX

Amps) of the

meter should be used as the reference signal level if the
Scale register is 0.6. After gain calibration, 0.6 of the
Vx

RMS

(Ix

RMS

) register represents U

MAX

Volts (I

MAX

Amps) for the line voltage (load current); 0.36 of the
P

AVG

, Q

AVG

, or Sx register represents U

MAX

×I

MAX

Watts, Vars, or VAs for the active, reactive, or apparent
power.
If the calibration is performed with U

MAX

Volts and I

CAL

Amps and I

CAL

<I

MAX

, the Scale register needs to be

scaled down to 0.6×I

CAL

/I

MAX

before performing gain

calibration. After gain calibration, 0.6 of the Vx

RMS

register represents U

MAX

Volts, 0.6 x I

CAL

/I

MAX

of the

Ix

RMS

register represents I

CAL

Amps, and

0.36 × I

CAL

/I

MAX

of the Px

AVG

, Qx

AVG

, or Sx register

represents U

MAX

x I

CAL

Watts, Vars, or VAs.

7.1.3 Calibration Order

1) If the HPF option is enabled, then any DC compo-

nent that may be present in the selected signal chan-
nel will be removed, and a DC offset calibration is not
required. However, if the HPF option is disabled, the
DC offset calibration should be performed.

When using high-pass filters, it is recommended that

the DC offset register for the corresponding channel
be set to 0. Before performing DC offset calibration,
the DC offset register should be set to zero, and the
corresponding gain register should be set to one.

2) If there is an AC offset in the Ix

RMS

calculation, the

AC offset calibration should be performed on the cur-
rent channel. Before performing AC offset calibra-
tion, the AC offset register should be set to zero. It is
recommended that T

SETTLE

be set to 2000ms before

performing an AC offset calibration.

3) Perform the gain calibration.
4) If an AC offset calibration was performed (step 2),

then the AC offset may need to be adjusted to com-
pensate for the change in gain (step 3). This can be
accomplished by restoring zero to the AC offset reg-
ister and then perform an AC offset calibration. The
adjustment could also be done by multiplying the AC
offset register value that was calculated in step 2 by
the gain calculated in step 3 and updating the AC off-
set register with the product.

7.2 Phase Compensation

A phase compensation mechanism is provided to adjust
for meter-to-meter variation in signal path delays.
Phase offset between a voltage channel and its
corresponding current channel can be calculated by
using the power factor (PF1, PF2) register after a
conversion.
1) Apply a reference voltage and current with a lagging

power factor to the meter. The reference current
waveform should lag the voltage with a 60° phase
shift.

2) Start continuous conversion.
3) Accumulate multiple readings of the PF1 or PF2

register.

4) Calculate the average power factor, PF

avg

.

5) Calculate phase offset = arccos(PF

avg

) - 60°.

0xFFFFFF

Advertising