cs4228a Cirrus Logic, Inc., cs4228a Datasheet - Page 18

no-image

cs4228a

Manufacturer Part Number
cs4228a
Description
24-bit, 96 Khz Surround Sound Codec
Manufacturer
Cirrus Logic, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
cs4228a-KS
Quantity:
121
Part Number:
cs4228a-KS
Quantity:
5 510
Part Number:
cs4228a-KS
Manufacturer:
CRYSTAL
Quantity:
20 000
Company:
Part Number:
cs4228a-KS
Quantity:
47
Company:
Part Number:
cs4228a-KS
Quantity:
47
Company:
Part Number:
cs4228a-KS
Quantity:
182
Company:
Part Number:
cs4228a-KS
Quantity:
182
Part Number:
cs4228a-KSEP
Manufacturer:
CRYSTAL
Quantity:
20 000
Part Number:
cs4228a-KSR
Manufacturer:
CIRRUSLOG
Quantity:
480
Part Number:
cs4228a-KSZ
Manufacturer:
CIRRUS
Quantity:
20 000
Part Number:
cs4228aKSZ
Manufacturer:
CIRRUS
Quantity:
20 000
3.7
Internal registers are accessed through the control
port. The control port may be operated asynchro-
nously with respect to audio sample rate. However,
to avoid potential interference problems, the con-
trol port pins should remain static if no register ac-
cess is required.
The control port has 2 operating modes: SPI mode
and I
ates as a slave device. Mode selection is deter-
mined by the state of the SDOUT pin when RST
transitions from low to high: high for SPI, low for
I
A resistive load from SDOUT to GND of less than
47 kΩ will enable I
3.7.1
In SPI mode, CS is the CS4228A chip select signal,
CCLK is the control port bit clock input, and CDIN
is the input data line. There is no data output line,
therefore all registers are write-only in SPI mode.
Data is clocked in on the rising edge of CCLK.
Figure 13 shows the operation of the control port in
SPI mode. The first 7 bits on CDIN, after CS goes
low, form the chip address (0010000). The eighth
bit is a read/write indicator (R/W), which should al-
ways be low to write. The next 8 bits set the Mem-
ory Address Pointer (MAP) which is the address of
the register that is to be written. The following
18
2
CCLK
CDIN
C mode. SDOUT is internally pulled high to VL.
(input)
(input)
(input)
CS
2
C mode. In both modes the CS4228A oper-
Control Port Signals
SPI Mode
MSB
0
0
CHIP ADDRESS (WRITE)
0
1
1
2
2
C mode after a hardware reset.
0
3
0
4
0
5
Figure 14. Control Port Timing, SPI Slave Mode Write
0
6
R/W
0
7
INCR
8
6
9
5
MAP BYTE
10 11
4
12 13 14 15
3
2
1
0
bytes contain the data which will be placed into the
registers designated by the MAP.
The CS4228A has a MAP auto increment capabili-
ty, enabled by the INCR bit in the MAP register. If
INCR is zero, then the MAP will stay constant for
successive writes. If INCR is 1, then the MAP will
increment after each byte is written, allowing block
reads, or writes, of successive registers.
3.7.2
In I
is clocked into and out of the port by the SCL clock.
The signal timing is shown in Figure 15 and 16. A
Start condition is defined as a falling transition of
SDA while the clock is high. A Stop condition is a
rising transition while the clock is high. All other
transitions of SDA occur while the clock is low.
The first byte sent to the CS4228A after a Start con-
dition consists of a 7 bit chip address field and a
R/W bit (high for a read, low for a write). The AD0
pin determines the LSB of the chip address field.
The upper 6 bits of the address field must be 00100
and the seventh bit must match AD0. If the opera-
tion is to be a write, the second byte is the Memory
Address Ponter (MAP), which selects the register
to be written. The succeeding byte(s) are data. If
the operation is to be a read, the second byte is sent
from the chip to the controller and contains the con-
tents of the register pointed to by the current value
of the MAP.
16 17 18 19 20 21 22
7
2
C mode, SDA is a bidirectional data line. Data
6
5
I
DATA
2
4
C Mode
3
2
1
0
23
7
6
5
DATA +n
4
CS4228A
3
2
1
0

Related parts for cs4228a