CS5461A
DS661F3 19
EXAMPLE #2:
The required number of pulses per unit energy present
on E1
is specified to be 500 pulses per kWhr, given that
the line voltage is 250 Vrms and the line current is
20 Arms. In such a situation, the stated line voltage and
current do not determine the appropriate PulseRateE
1,2
setting. To achieve full-scale readings in the instanta-
neous voltage and current registers, a 250 mV, DC-lev-
el signal is applied to the channel inputs.
As in example #1, the voltage and current channel gains
are 10x, and the voltage level at the channel inputs will
be 150 mV rms when the levels on the power lines are
250 V rms and 20 A rms. In order to achieve
500 pulse-per-kW Hr per unit-energy, the
PulseRateE
1,2
Register setting is determined using the
following equation:
Therefor, the PulseRateE
1,2
Register is approximately
1.929 Hz. The PulseRateE
1,2
Register cannot be set to
a frequency of exactly 1.929 Hz. The closest setting is
0x00003E = 1.9375 Hz.
To improve the accuracy, either gain register can be
programmed to correct for the round-off error. This val-
ue would be calculated as
If (MCLK/K) is not equal to 4.096 MHz, the
PulseRateE
1,2
Register must be scaled by a correction
factor of:
Therefore if (MCLK/K) = 3.05856 MHz the value of
PulseRateE
1,2
Register is
5.5 Voltage Sag-detect Feature
Status bit VSAG in the Status Register, indicates a volt-
age sag occurred in the power line voltage. For a volt-
age sag condition to be identified, the absolute value of
the instantaneous voltage must be less than the voltage
sag level for more than half of the voltage sag duration
(see Figure 7).
To activate Voltage Sag detect, a voltage sag level must
be specified in the Voltage Sag Level Register
(VSAG
Level), and a voltage sag duration must be spec-
ified in the Voltage Sag Duration Register
(VSAG
Duration). The voltage sag level is specified as the
average of the absolute instantaneous voltage. Voltage
sag duration is specified in terms of ADC cycles.
5.6 No Load Threshold
The CS5461A includes the LoadIntv (No Load Detec-
tion Interval) register and the LoadMin register to imple-
ment the no load threshold function. When the
accumulated energy measured within the time defined
by the LoadIntv register does not reach the value in the
LoadMin register, the pulse outputs will be disabled.
5.7 On-chip Temperature Sensor
The on-chip temperature sensor is designed to assist in
characterizing the measurement element over a desired
temperature range. Once a temperature characteriza-
tion is performed, the temperature sensor can then be
utilized to assist in compensating for temperature drift.
Temperature measurements are performed during con-
tinuous conversions and stored in the Temperature
Register. The Temperature Register (T) default is Cel-
sius scale (
o
C). The Temperature Gain Register (T
gain
)
and Temperature Offset Register (T
off
) are constant val-
ues allowing for temperature scale conversions.
The temperature update rate is a function of the number
of ADC samples. With MCLK = 4.096 MHz and K = 1
the update rate is:
PulseRateE
12,
500pulses
kWHr
------------------------------
1Hr
3600s
----------------
1kW
1000W
-------------------
250mV
150mV
250V
-------------------


-------------------------
250mV
150mV
20A
-------------------


-------------------------
=
Vgn or Ign
PulseRateE
1.929
-----------------------------------
1.00441 0x404830==
4.096MHz
(MCLK/K)
----------------------------
PulseRateE
12,
PulseRateE
12,
4.096
3.05856
---------------------
1.929Hz 2.583Hz=
Level
Duration
Figure 7. Voltage Sag Detect
2240 samples
(MCLK/K)/1024
-----------------------------------------
0.56 sec
=
CS5461A
20 DS661F3
The Cycle Count Register (N) must be set to a value
greater than one. Status bit TUP in the Status Register,
indicates when the Temperature Register is updated.
The Temperature Offset Register sets the zero-degree
measurement. To improve temperature measurement
accuracy, the zero-degree offset should be adjusted af-
ter the CS5461A is initialized. Temperature offset cali-
bration is achieved by adjusting the Temperature Offset
Register (T
off
) by the differential temperature (T) mea-
sured from a calibrated digital thermometer and the
CS5461A temperature sensor. A one-degree adjust-
ment to the Temperature Register (T) is achieved by
adding 2.737649x10
-4
to the Temperature Offset Regis-
ter (T
off
). Therefore,
if T
off
= -0.0951126 and T=-2.0 (
o
C), then
or 0xF3C168 (2’s compliment notation) is stored in the
Temperature Offset Register (T
off
).
To convert the Temperature Register (T) from a Celsius
scale (
o
C) to a Fahrenheit scale (
o
F) utilize the formula
Applying the above relationship to the CS5461A tem-
perature measurement algorithm
If T
off
= -0.09566 and T
gain
= 23.507 for a Celsius
scale, then the modified values are T
off
= -0.0907935
(0xF460E1) and T
gain
= 42.3132 (0x54A05E) for a
Fahrenheit scale.
5.8 Voltage Reference
The CS5461A is specified for operation with a +2.5 V
reference between the VREFIN and AGND pins. To uti-
lize the on-chip 2.5 V reference, connect the VREFOUT
pin to the VREFIN pin of the device. The VREFIN pin
can be used to connect external filtering and/or refer-
ences.
5.9 System Initialization
Upon powering up, the digital circuitry is held in reset
until the analog voltage reaches 4.0 V. At that time, an
eight-XIN-clock-period delay is enabled to allow the os-
cillator to stabilize. The CS5461A will then initialize.
A hardware reset is initiated when the RESET
pin is as-
serted with a minimum pulse width of 50 ns. The
RESET
signal is asynchronous, with a Schmitt-trigger
input. Once the RESET
pin is de-asserted, an
eight-XIN-clock-period delay is enabled
.
A software reset is initiated by writing the command of
0x80. After a hardware or software reset, the internal
registers (some of which drive output pins) will be reset
to their default values. Status bit DRDY in the Status
Register, indicates the CS5461A is in its active state
and ready to receive commands.
5.10 Power-down States
The CS5461A has two power-down states, stand-by
and sleep. In the stand-by state all circuitry except the
voltage reference and crystal oscillator is turned off. To
return the device to the active state a power-up com-
mand is sent to the device.
In sleep state all circuitry except the instruction decoder
is turned off. When the power-up command is sent to
the device, a system initialization is performed (see
Section 5.9 System Initialization on page 20).
5.11 Oscillator Characteristics
The XIN and XOUT pins are the input and output of an
inverting amplifier configured as an on-chip oscillator,
as shown in Figure 8. The oscillator circuit is designed
to work with a quartz crystal. To reduce circuit cost, two
load capacitors C1 and C2 are integrated in the device,
from XIN to DGND, and XOUT to DGND. PCB trace
lengths should be minimized to reduce stray capaci-
tance. To drive the device from an external clock
source, XOUT should be left unconnected while XIN is
driven by the external circuitry. There is an amplifier be-
tween XIN and the digital section which provides
CMOS-level signals. This amplifier works with sinusoi-
T
off
T
off
T+ 2.737649 10
4
=
T
off
0.0951126 2.0+ 2.737649 10
4
0.09566==
F
o
9
5
---
C
o
17.7778+=
TF
o

9
5
---
T
gain
TC
o
 T
off
17.7778 2.737649 10
4
++=
Oscillator
Circuit
DGND
XIN
XOUT
C1
C1 =
22 pF
C2
C2 =
Figure 8. Oscillator Connection
CS5461A
DS661F3 21
dal inputs so there are no problems with slow edge
times.
The CS5461A can be driven by an external oscillator
ranging from 2.5 to 20 MHz, but the K divider value must
be set such that the internal MCLK will run somewhere
between 2.5 MHz and 5 MHz. The K divider value is set
with the K[3:0] bits in the Configuration Register. As an
example, if XIN = MCLK = 15 MHz, and K is set to 5,
then DCLK is 3 MHz, which is a valid value for DCLK.
5.12 Event Handler
The INT pin is used to indicate that an internal error or
event has taken place in the CS5461A. Writing a logic 1
to any bit in the Mask Register allows the corresponding
bit in the Status Register to activate the INT
pin. The in-
terrupt condition is cleared by writing a logic 1 to the bit
that has been set in the Status Register.
The behavior of the INT
pin is controlled by the IMODE
and IINV bits of the Configuration Register.
If the interrupt output signal format is set for either falling
or rising edge, the duration of the INT
pulse will be at
least one DCLK cycle (DCLK = MCLK/K).
5.12.1 Typical Interrupt Handler
The steps below show how interrupts can be handled.
INITIALIZATION
:
1) All Status bits are cleared by writing 0xFFFFFF to
the Status Register.
2) The condition bits which will be used to generate
interrupts are then set to logic 1 in the Mask Reg-
ister.
3) Enable interrupts.
INTERRUPT HANDLER ROUTINE
:
4) Read the Status Register.
5) Disable all interrupts.
6) Branch to the proper interrupt service routine.
7) Clear the Status Register by writing back the read
value in step 4.
8) Re-enable interrupts.
9) Return from interrupt service routine.
IMODE IINV INT
Pin
0 0 Active-low Level
0 1 Active-high Level
10 Low Pulse
Table 3. Interrupt Configuration
1 1 High Pulse
IMODE IINV INT
Pin
Table 3. Interrupt Configuration

CS5461A-ISZR

Mfr. #:
Manufacturer:
Cirrus Logic
Description:
Current & Power Monitors & Regulators IC Sngl-Phs BiDirect 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