cs42324 Cirrus Logic, Inc., cs42324 Datasheet - Page 41

no-image

cs42324

Manufacturer Part Number
cs42324
Description
10-in, 6-out, 2 Vrms Audio Codec
Manufacturer
Cirrus Logic, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
cs42324-CQZ
Manufacturer:
TI
Quantity:
2 435
Part Number:
cs42324-CQZ
Manufacturer:
Cirrus Logic Inc
Quantity:
10 000
DS721A6
4.6.2
SCL
SDA
SDA
Software Mode - I²C Control Port
Software Mode is used to access the registers, allowing the CS42324 to be configured for the desired
operational modes and formats. The operation in Software Mode may be completely asynchronous with
respect to the audio sample rates. However, to avoid potential interference problems, the I²C pins should
remain static if no operation is required. Software Mode supports the I²C interface, with the CS42324 act-
ing as a slave device.
SDA is a bidirectional data line. Data is clocked into and out of the part by the clock, SCL. Pin AD0 forms
the least significant bit of the chip address and should be connected through a resistor to VL or GND as
desired. The state of the pin is sensed while the CS42324 is being reset.
The signal timings for a read and write cycle are shown in
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
CS42324 after a Start condition consists of a 7-bit chip address field and a R/W bit (high for a read, low
for a write). The upper 5 bits of the 7-bit address field are fixed at 10011. To communicate with a CS42324,
the chip address field, which is the first byte sent to the CS42324, should match 10011 followed by the
settings of AD0. The eighth bit of the address is the R/W bit. If the operation is a write, the next byte is the
Memory Address Pointer (MAP) which selects the register to be read or written. If the operation is a read,
the contents of the register pointed to by the MAP will be output. Setting the auto increment bit in MAP
allows successive reads or writes of consecutive registers. Each byte is separated by an acknowledge
bit. The ACK bit is output from the CS42324 after each input byte is read, and is input to the CS42324
from the microcontroller after each transmitted byte.
Since the read operation can not set the MAP, an aborted write operation is used as a preamble. As
shown in
stop condition. The following pseudocode illustrates an aborted write operation followed by a read oper-
ation.
SCL
START
START
0
1
Figure
CHIP ADDRESS (WRITE)
0
1
CHIP ADDRESS (WRITE)
1
0
1
0
0
2
2
0
1
3
21, the write operation is aborted after the acknowledge for the MAP byte by sending a
1 AD1 AD0 0
1
4
3
1 AD1 AD0 0
5
4
6
5
7
6
Figure 20. Software Mode Timing, I²C Write
ACK
Figure 21. Software Mode Timing, I²C Read
8
7
9
INCR
ACK
10 11
8
6
INCR
9
5
MAP BYTE
12 13 14 15
10 11
6
4
MAP BYTE
5
3
12
2
4
1
13 14 15
3
16
0
ACK
2
STOP
17 18
START
1
16 17 18
0
19
ACK
1
20 21 22 23 24
CHIP ADDRESS (READ)
0
7
Figure 20
0
19
6
DATA
1
1 AD1 AD0 1
24 25
1
0
25
and
ACK
26
26 27 28
ACK
27 28
7
Figure
DATA +1
7
6
DATA
0
1
21. A Start condition is
ACK
0
DATA +1
7
7
0
DATA +n
6
CS42324
DATA + n
7
1
0
0
ACK
ACK
NO
STOP
STOP
41

Related parts for cs42324