CS5521/22/23/24/28
DS317F8 25
1.2.4 Serial Port Interface
The CS5521/22/23/24/28’s serial interface consists
of four control lines: CS, SCLK, SDI, SDO.
Figure 10 illustrates the serial sequence necessary
to write to, or read from the serial port’s registers.
CS (Chip Select) is the control line which enables
access to the serial port. If the CS pin is tied low,
the port can function as a three-wire interface.
SDI (Serial Data In) is the data signal used to trans-
fer data to the converters.
SDO (Serial Data Out) is the data signal used to
transfer output data from the converters. The SDO
output will be held at high impedance any time CS
is at logic 1.
SCLK (Serial Clock) is the serial bit clock which
controls the shifting of data to or from the ADC’s
serial port. The CS pin must be held low (logic 0)
before SCLK transitions can be recognized by the
port logic. To accommodate opto-isolators SCLK
is designed with a Schmitt-trigger input to allow an
opto-isolator with slower rise and fall times to di-
rectly drive the pin. Additionally, SDO is capable
of sinking or sourcing up to 5 mA to directly drive
an opto-isolator LED. SDO will have less than a
400 mV loss in the drive voltage when sinking or
sourcing 5 mA.
Command Time
8SCLKs
Data Time 24 SCLKs
Write Cycle
CS
SCLK
SDI
MSB
LSB
Command Time
8SCLKs
CS
SCLK
SDI
Data Time 24 SCLKs
SDO
MSB
LSB
Read Cycle
Command Time
8 SCLKs
8 SCLKs Clear SDO Flag
SDO
SCLK
SDI
Data Time
24 SCLKs
MSB
LSB
* td = XIN/OWR clock cycles for each conversion except the
first conversion which will take XIN/OWR + 7 clock cycles
XIN/OWR
Clock Cycles
t *
d
Figure 10. Command and Data Word Timing
CS5521/22/23/24/28
26 DS317F8
1.2.5 Reading/Writing the Offset, Gain, and
Configuration Registers
The CS5521/22/23/24/28’s offset, gain, and config-
uration registers are accessed individually and can
be read from or written to. To write to an offset, a
gain, or the configuration register, the user must
transmit the appropriate write command which ac-
cesses the particular register and then follow that
command with 24 bits of data (refer to Figure 10 for
details). For example, to write 0x800000 (hexadeci-
mal) to physical channel one’s gain register, the user
would transmit the command byte 0x02 (hexadeci-
mal) and then follow that command byte with the
data 0x800000 (hexadecimal). Similarly, to read
physical channel one’s gain register, the user must
first transmit the command byte 0x0A (hexadeci-
mal) and then read the 24 bits of data. Once an off-
set, a gain, or the configuration register is written to
or read from, the serial p
ort returns to the command
mode.
1.2.6 R
eading/Writing the Channel-Setup Reg-
i
sters
The CS5521/22 have two 24-bit channel-setup reg-
isters (CSRs). The CS5523/24 have four CSRs, and
the CS5528 has eight CSRs (refer to Table 3 for
more detail on the CSRs). These registers are ac-
cessed in conjunction with the depth pointer bits in
the configuration register. Each CSR contains two
12-bit Setups which are programmed by the user to
contain data conversion or calibration information
such as:
1) state of the output latch pins
2) output word rate
3) gain range
4) polarity
5) the address of a physical input channel to be
converted.
Once programmed, they are used to determine the
mode (e.g. unipolar, 15 Sps, 100 mV range etc.) the
ADC will operate in when future conversions or
calibrations are performed.
To access the CSRs, the user must first initialize the
depth pointer bits in the configuration register as
these bits determine the number of CSRs to read
from or write to. For example, to write CSR1
(Setup1 and Setup2), the user would first program
the configuration register’s depth pointer bits with
‘0001’ binary. This notifies the ADC’s serial port
that only the first CSR is to be accessed. Then, the
user would transmit the write command, 0x05
(hexadecimal) and follow that command with 24
bits of data. Similarly, to read CSR1, the user must
transmit the command byte 0x0D (hexadecimal)
and then read the 24 bits of data. To write more
than one CSR, for instance CSR1 and CSR2
(Setup1, Setup2, Setup3, and Setup4), the user
would first set the depth pointer bits in the configu-
ration register to ‘0011’ binary. The user would then
transmit the write CSR command 0x05 (hexadeci-
mal) and follow that with the information for
Setup1, Setup2, Setup 3, and Setup 4 which is 48
bits of information. Note that while reading/writing
CSRs, two Setups are accessed in pairs as a single
24-bit CSR register. Even if one of the Setups isn’t
used, it must be written to or read. Further note that
the CSRs are accessed as a closed array
the user
can not access CSR2 without accessing CSR1. This
requirement means that the depth bits in the config-
uration register can only be set to one of the follow-
ing states when the CSRs are being read from or
written to: 0001, 0011, 0101, 0111, 1001, 1011,
1101, 1111. Examples detailing the power of the
CSRs are provided in the
Performing Conversions
and Reading the Data Conversion FIFO
section.
Once the CSRs are written to or read from, the serial
port returns to the command
mode.
CS5521/22/23/24/28
DS317F8 27
* R indicates the bit value after the part is reset
CSR (Channel-Setup Register) CSR CSR
#1 Setup 1
Bits <47:36>
Setup 2
Bits <35:24>
#1 Setup 1
Bits <95:84>
Setup 2
Bits <83:72>
#1 Setup 1
Bits <191:180>
Setup 2
Bits <179:168>
#2 Setup 3
Bits <23:12>
Setup 4
Bits <11:0>
#4 Setup 7
Bits <23:12>
Setup 8
Bits <11:0>
#8 Setup 15
Bits <23:12>
Setup 16
Bits <11:0>
CS5521/22 CS5523/24 CS5528
D23(MSB) D22 D21 D20 D19 D18 D17 D16 D15 D14 D13 D12
A1 A0 CS2 CS1 CS0 WR2 WR1 WR0 G2 G1 G0 U/B
D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
A1 A0 CS2 CS1 CS0 WR2 WR1 WR0 G2 G1 G0 U/B
BIT NAME VALUE FUNCTION
D23-D22/
D11-D10
Latch Outputs, A1-A0 00 *R Latch Output Pins A1-A0 mimic D23/D11-D22/D10 register bits.
D21-D19/
D9-D7
Channel Select, CS2-
CS0
000
001
010
011
100
101
110
111
R Select physical channel 1 (All devices)
Select physical channel 2(All devices)
Select physical channel 3 (CS5523/24/28 only)
Select physical channel 4 (CS5523/24/28 only)
Select physical channel 5 (CS5528 only)
Select physical channel 6 (CS5528 only)
Select physical channel 7 (CS5528 only)
Select physical channel 8 (CS5528 only)
D18-D16/
D6-D4
Word Rate, WR2-WR0 000
001
010
011
100
101
110
111
R 15.0 Sps (2180 XIN cycles).
30.0 Sps (1092 XIN cycles).
61.6 Sps (532 XIN cycles).
84.5 Sps (388 XIN cycles).
101.1 Sps (324 XIN cycles).
1.88 Sps (17444 XIN cycles).
3.76 Sps (8724 XIN cycles).
7.51 Sps (4364 XIN cycles).
D15-D13/
D3-D1
Gain Bits, G2-G0 000
001
010
011
100
101
110
111
R 100 mV (assumes VREF Differential = 2.5 V)
55 mV
25 mV
1.0 V
5.0 V
2.5 V
Not used.
Not used.
D12/D0 Unipolar/Bipolar, U/B
0
1
R
Bipolar measurement mode.
Unipolar measurement mode.
Table 3. Channel-Setup Registers

CS5522-ASZ

Mfr. #:
Manufacturer:
Cirrus Logic
Description:
Analog to Digital Converters - ADC 2-Ch 24-Bit Delta Sigma ADC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union