CS5464
22 DS682F3
7. USING THE CS5464
7.1 Initialization
The CS5464 uses a power-on-reset circuit (POR) to
provide an internal reset until the analog voltage reach-
es 4.0 V. The RESET
input pin can also be used by the
application circuit to reset the part.
After RESET
is removed and the oscillator is stable, an
initialization program is executed to set the default reg-
ister values.
A Software Reset command is also provided to allow
the application to run the initialization program without
removing power or asserting RESET
.
The application should avoid sending commands during
initialization. The DRDY bit in the
Status register indi-
cates when the initialization program has completed.
7.2 Power-down States
The CS5464 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 powered off. In
sleep state, all circuitry except the instruction decoder is
powered off.
To return the device to the active state, send a Wake-
Up/Halt command to the device. When returning from
stand-by mode, registers will retain their contents prior
to entering the stand-by state. When returning from
sleep mode, a complete initialization occurs.
7.3 Tamper Detection and Correction
The CS5464 provides compensation for at least two
forms of meter tampering. A second current input is pro-
vided in the event that the primary input is impaired by
tampering. (See Figure 14 on page 42). An internal
RMS voltage reference is also available in the event that
the voltage input has been compromised by tampering.
Power and energy are calculated for BOTH current in-
puts (both energy channels). The CS5464 can automat-
ically choose the channel with the greater magnitude.
The register
E
MIN
, (also called Irms
MIN
) sets a minimum
level for automatic channel selection, and
Ichan
LEVEL
sets a minimum difference that will allow a channel
change.
Modes register bit Ichan selects the energy
channel, and is normally driven by the CS5464 pro-
gram. This affects the pulse registers and pulse energy
outputs. (See figure 8).
The application program can also choose the more ap-
propriate energy channel.
Modes register bit Ihold dis-
ables automatic selection and Ichan can be driven by
the application. Shown below is the channel selector.
If the application detects that the voltage input has been
impaired it may choose to use the fixed internal RMS
voltage reference by setting the VFIX bit in the
Modes
register. The value of this reference (VF
RMS
) is by de-
fault 0.707107 (full-scale RMS) but can be changed by
the application program. (See figure 9)
AVG
AVG
Figure 8. Energy Channel Selection
Figure 9. Fixed RMS Voltage Selection
CS5464
DS682F3 23
7.4 Command Interface
Commands and data are transferred most-significant bit
(MSB) first. Figure 1 on page 12, defines the serial port
timing. Commands are clocked in on SDI using SCLK.
They are a single byte (8 bits) long and fall into one of
four basic types:
1. Register Read
2. Register Write
3. Synchronizing
4. Instructions
Register reads will cause up to four bytes of register
data to be clocked out, MSB first on the SDO pin by
SCLK. During this time, other commands can be
clocked in on the SDI pin. Other commands will not in-
terrupt read data, except another register read, which
will cause the new read data to appear on SDO.
Synchronizing can be sent while read data is being
clocked out if no other commands need to be sent.
Synchronizing commands are also used to synchronize
the serial port to a byte boundary. The CS
and RESET
pins will also synchronize the serial port.
Register writes require three bytes of write data to fol-
low, clocked in on the SDI pin, MSB first by SCLK.
Instructions are commands that will interrupt any in-
struction currently executing and begin the new instruc-
tion. These include conversions, calibrations, power
control, and soft reset.
(See Section 7.6
Commands on page 24).
7.5 Register Paging
Read and Write commands access one of 32 registers
within a specified page. The Resgister Page Select reg-
ister’s (
Page) default value is 0. To access registers in
another page, write the desired page number to the
Page register. The Page register is always at address
31 and is accessible from within any page.
CS5464
24 DS682F3
7.6 Commands
All commands are 1 byte (8 bits) long. Many command values are unused and should NOT be written by the
application program. All commands except register reads, register writes, or synchronizing commands will
abort any conversion, calibration, or any initialization sequence currently executing. This includes reset. No
commands other than reads or synchronizing should be executed until the reset sequence completes.
7.6.1 Conversion
Executes a conversion (measurement) program.
CC Continuous/Single Conversion
0 = Perform a Single Conversion (0xE0)
1 = Perform Continuous Conversion (0xE8)
7.6.2 Synchronization (SYNC0 and SYNC1)
The serial interface is bidirectional. While reading data on the SDO output, the SDI input must be receiving
commands. If no command is needed during a read, SYNC0 or SYNC1 commands can be sent while read
data is received on SDO.
The serial port is normally initialized by de-asserting CS
. An alternative method of initialization is to send 3 or
more SYNC1 commands followed by a SYNC0. This is useful in systems where CS
is not used and tied low.
7.6.3 Power Control (Stand-by, Sleep, Wake-up/Halt and Software Reset)
The CS5464 has two power-down states, stand-by and sleep. In stand-by, all circuitry except the voltage ref-
erence and clocks are turned off. In sleep, all circuitry except the command decoder is turned off. A
Wake-up/Halt command restores full-power operation after stand-by and issues a hardware reset after sleep.
The Software Reset command is a program that emulates a pin reset and is not a power control function.
S[1:0] 00 = Software Reset
01 = Sleep
10 = Wake-up/Halt
11 = Stand-by
B7 B6 B5 B4 B3 B2 B1 B0
1110CC000
B7 B6 B5 B4 B3 B2 B1 B0
1111111SYNC
B7 B6 B5 B4 B3 B2 B1 B0
10S1S00000

CS5464-IS

Mfr. #:
Manufacturer:
Cirrus Logic
Description:
Current & Power Monitors & Regulators 3-Ch Single Phase Power/Energy IC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet