CS5460A
EXAMPLE #2: The required number of pulses per
unit energy present at EOUT is specified to be
500 pulses/kW-hr; given that the maximum
line-voltage is 250 V (RMS) and the maximum
line-current is 20 A (RMS). In such a situation, the
nominal line voltage and current do not determine
the appropriate pulse-rate setting. Instead, the
maximum line levels must be considered. As be-
fore, the given maximum line-voltage and line-cur-
rent levels are used to determine KV and KI:
of the other two formats, the time duration and/or
the relative timing of the EOUT and EDIR pulses is
increased/varied such that the pulses can drive ei-
ther an electro-mechanical counter or a stepper
motor. The EOUT and EDIR output pins are capa-
ble of driving certain low-voltage/low-power
counters/stepper motors directly. This depends on
the drive current and voltage level requirements of
the counter/motor. The ability to set the pulse out-
put format to one of the three available formats is
controlled by setting certain bits in the Control Reg-
ister.
KV = 150 mV / 250 V = 0.0006
KI = 150 mV / 20 A = 0.0075 Ω
3.2.1 Normal Format
Again the sensor gains are calculated such that the
maximum line-voltage and line-current levels will
measure as 0.6 in the RMS Voltage Register and
RMS Current Register.
Referring to the description of the Control Register
in Section 5., REGISTER DESCRIPTION, if both
the MECH and STEP bits are set to ‘0’, the pulse
output format at the EOUT and EDIR pins is illus-
trated in Figure 10. These are active-low pulses
with very short duration. The pulse duration is an
integer multiple of MCLK cycles, approximately
equal to 1/16 of the period of the contents of the
Pulse-Rate Register. However for Pulse-Rate
Register settings less than the sampling rate
(which is [MCLK/8]/1024), the pulse duration will
remain at a constant duration, which is equal to the
duration of the pulses when the Pulse-Rate Regis-
ter is set to [MCLK/K]/1024. The maximum pulse
frequency from the EOUT pin is therefore
[MCLK/K]/16. When energy is positive, EDIR is al-
ways high. When energy is negative, EDIR has the
same output as EOUT. When MCLK/K is not equal
to 4.096 MHz, the true pulse-rate can be found by
first calculating what the pulse-rate would be if a
4.096 MHz crystal is used (with K = 1) and then
The required Pulse-Rate Register setting is now
determined by using the following equation:
pulses 1hr
kW ⋅ hr 3600s 1000W
1kW 250mV 250mV
------------------ -------------- ----------------- ------------------ ------------------
PR = 500
⋅
⋅
⋅
⋅
KV
KI
Therefore PR = ~1.929 Hz.
Note that the Pulse-Rate Register cannot be set to
a frequency of exactly 1.929 Hz. The closest set-
ting that the Pulse-Rate Register can obtain is
0x00003E = 1.9375 Hz. To improve the accuracy,
either gain register can be programmed to correct
for the round-off error in PR. This value would be
calculated as
PR
1.929
------------
Ign or Vgn =
≅ 1.00441 = 0x404830
In the last example, suppose a value for MCLK/K
of 3.05856 MHz. When MCLK/K is not equal to
4.096 MHz, the result for ‘PR’ that is calculated for
the Pulse-Rate Register must be scaled by a cor-
rection factor of: 4.096 MHz / (MCLK/K). In this
case the result is scaled by 4.096/3.05856 to get a
final PR result of ~2.583 Hz.
scaling
the
result
by
a
factor
of
(MCLK/K) / 4.096 MHz.
When set to run in Normal pulse output format, the
pulses may be sent out in “bursts” depending on
both the value of the Pulse-Rate Register as well
as the amount of billable energy that was regis-
tered by the CS5460A over the most recent A/D
sampling period, which is (in Hz): 1 / [(MCLK/K) /
1024]. A running total of the energy accumulation
is maintained in an internal register (not accessible
to the user) inside the CS5460A. If the amount of
energy that has accumulated in this register over
the most recent A/D sampling period is equal to or
greater than the amount of energy that is repre-
3.2 Pulse Output for Normal Format,
Stepper Motor Format and Mechanical
Counter Format
The duration and shape of the pulse outputs at the
EOUT and EDIR pins can be set for three different
output formats. The default setting is for Normal
output pulse format. When the pulse is set to either
22