CS5463
DS678F3 19
Output pin E3 is high when the line voltage is positive
and pin E3
is low when the line voltage is negative.
5.5.5 PFMON Output Mode
Setting bit E3MODE[1:0] = 1 (01b) in the Operational
Mode Register
outputs the state of the PFMON compar-
ator on pin E3
. Figure 8 illustrates the output format with
PFMON on E3
When PFMON is greater then the threshold, pin E3
is
high and when PFMON is less than the threshold pin E3
is low.
5.5.6 Design Example
EXAMPLE #1:
The maximum rated levels for a power line meter are
250 V rms and 20 A rms. The required number of puls-
es-per-second on E1
is 100 pulses per second
(100 Hz), when the levels on the power line are
220 V rms and 15 A rms.
With a 10x gain on the voltage and current channel the
maximum input signal is 250 mV
P
. (See Section 5.1 An-
alog Inputs
on page 16.) To prevent over-driving the
channel inputs, the maximum rated rms input levels will
register 0.6 in V
RMS
and I
RMS
by design. Therefore the
voltage level at the channel inputs will be 150 mV rms
when the maximum rated levels on the power lines are
250 V rms and 20 A rms.
Solving for
PulseRate using the transfer function:
Therefore with PF = 1 and:
the pulse rate is:
and the
PulseRateE Register is set to:
with MCLK = 4.096 MHz and K = 1.
5.6 Sag and Fault Detect Feature
Status bit VSAG and IFAULT in the Status Register, in-
dicates a sag occurred in the power line voltage and
current, respectively. For a sag condition to be identi-
fied, the absolute value of the instantaneous voltage or
current must be less than the sag level for more than
half of the sag duration (see Figure 9).
To activate voltage sag detection, a voltage sag level
must be specified in the
Voltage Sag Level Register
(VSAGLevel), and a voltage sag duration must be spec-
ified in the
Voltage Sag Duration Register (VSAGDura-
tion
). To activate current fault detection, a current sag
level must be specified in the
Current Fault Level Reg-
ister
(ISAGLevel), and a current sag duration must be
specified in the
Current Fault Duration Register (ISAG-
Duration). The voltage and current sag levels are speci-
fied as the average of the absolute instantaneous
voltage and current, respectively. Voltage and current
sag duration is specified in terms of ADC cycles.
5.7 No Load Threshold
The No Load Threshold register (Load
Min
) is used to
disable the active energy pulse output when the magni-
tude of the P
Active
register is less than the value in the
Load
Min
register.
5.8 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 (°C). The
Temperature Gain Register (T
gain
)
and
Temperature Offset Register (T
off
) are constant val-
ues allowing for temperature scale conversions.
E3
E2
E1
Above PFMON Threshold Below PFMON Threshold
Figure 8. PFMON output to pin E3
PulseRate
FREQ
P
VREFIN
2
VIN VGAIN IIN IGAIN PF
---------------------------------------------------------------------------------------------
=
VIN 220V 150mV250V 132mV==
IIN 15A 150mV20A 112.5mV==
PulseRate
100 2.5
2
0.132 10 0.1125 10
-----------------------------------------------------------------
420.8754Hz==
PulseRateE
PulseRate
MCLK K
2048
----------------------------------------
0.2104377
==
Level
Duration
Figure 9. Sag and Fault Detect
CS5463
20 DS678F3
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:
The
Cycle Count Register (N) must be set to a value
greater then 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 may need to be adjust-
ed after the CS5463 is initialized. Temperature-offset
calibration is achieved by adjusting the
Temperature
Offset Register
(T
off
) by the differential temperature
(
T) measured from a calibrated digital thermometer
and the CS5463 temperature sensor. A one-degree ad-
justment 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 (°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 (°C) to a Fahrenheit scale (°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.09079
(0xF460E1) and T
gain
= 42.3132 (0x54A05E) for a
Fahrenheit scale.
5.9 Voltage Reference
The CS5463 is specified for operation with a +2.5 V ref-
erence between the VREFIN and AGND pins. To utilize
the on-chip 2.5 V reference, connect the VREFOUT pin
to the VREFIN pin of the device. The VREFIN can be
used to connect external filtering and/or references.
5.10 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 CS5463 will then initialize.
A hardware reset is initiated when the RESET
pin is as-
serted with a minimum pulse width of 50 ns. The RE-
SET 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
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 CS5463 is in its active state and
ready to receive commands.
5.11 Power-down States
The CS5463 has two power-down states, Stand-by and
Sleep. In the stand-by state all circuitry except the volt-
age reference and crystal oscillator is turned off. To re-
turn the device to the active state, a power-up command
is sent to the device.
In Sleep state, all circuitry except the instruction decod-
er is turned off. When the power-up command is sent to
the device, a system initialization is performed (See
Section 5.10
System Initialization on page 20).
5.12 Oscillator Characteristics
XIN and XOUT are the input and output of an inverting
amplifier configured as an on-chip oscillator, as shown
in Figure 10. The oscillator circuit is designed to work
with a quartz crystal. To reduce circuit cost, two load ca-
pacitors 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 capacitance. To
2240 samples
MCLK K
1024
----------------------------------------
0.56 sec=
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 10. Oscillator Connection
CS5463
DS678F3 21
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 between XIN and
the digital section which provides CMOS level signals.
This amplifier works with sinusoidal inputs so there are
no problems with slow edge times.
The CS5463 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,
DCLK will equal 3 MHz, which is a valid value for DCLK.
5.13 Event Handler
The INT pin is used to indicate that an internal error or
event has taken place in the CS5463. 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.13.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 interrupt
9) Return from interrupt service routine.
This handshaking procedure ensures that any new in-
terrupts activated between steps 4 and 7 are not lost
(cleared) by step 7.
5.14 Serial Port Overview
The CS5463 incorporates a serial port transmit and re-
ceive buffer with a command decoder that interprets
one-byte (8-bit) commands as they are received. There
are four types of commands: instructions, synchroniz-
ing, register writes, and register reads (See Section
5.16
Commands on page 23).
Instructions are one byte in length and will interrupt any
instruction currently executing. Instructions do not affect
register reads currently being transmitted.
Synchronizing commands are one byte in length and
only affect the serial interface. Synchronizing com-
mands do not affect operations currently in progress.
Register writes must be followed by three bytes of data.
Register reads can return up to four bytes of data.
Commands and data are transferred most-significant bit
(MSB) first. Figure 1 on page 12, defines the serial port
timing and required sequence necessary for writing to
and reading from the serial port receive and transmit
buffer, respectively. While reading data from the serial
port, commands and data can be written simultaneous-
ly. Starting a new register read command while data is
being read will terminate the current read in progress.
This is acceptable if the remainder of the current read
data is not needed. During data reads, the serial port re-
quires input data. If a new command and data is not
sent, SYNC0 or SYNC1 must be sent.
5.14.1 Serial Port Interface
The serial port interface is a “4-wire” synchronous serial
communications interface. The interface is enabled to
start excepting SCLKs when CS
(Chip Select) is assert-
ed (logic 0). SCLK (Serial bit-clock) is a Schmitt-trigger
input that is used to strobe the data on SDI (Serial Data
In) into the receive buffer and out of the transmit buffer
onto SDO (Serial Data Out).
IMODE IINV INT Pin
0 0 Active-low Level
0 1 Active-high Level
10 Low Pulse
11 High Pulse
Table 4. Interrupt Configuration

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