16 DS580F6
CS8406
6. CONTROL PORT DESCRIPTION
The control port is used to access the registers, allowing the CS8406 to be configured for the desired operational
modes and formats. The operation of the control port may be completely asynchronous with respect to the audio
sample rates. However, to avoid potential interference problems, the control port pins should remain static if no op-
eration is required.
The control port has two modes: SPI and I²C, with the CS8406 acting as a slave device. SPI Mode is selected if
there is a high to low transition on the AD0/CS
pin, after the RST pin has been brought high. I²C Mode is selected
by connecting the AD0/CS
pin through a resistor to VL or GND, thereby permanently selecting the desired AD0 bit
address state.
6.1 SPI Mode
In SPI Mode, CS is the CS8406 chip select signal, CCLK is the control port bit clock (input into the CS8406
from the microcontroller), CDIN is the input data line from the microcontroller, and CDOUT is the output data
line to the microcontroller. Data is clocked in on the rising edge of CCLK and out on the falling edge.
Figure 10 shows the operation of the control port in SPI Mode. To write to a register, bring CS
low. The first
seven bits on CDIN form the chip address and must be 0010000. The eighth bit is a re ad/write indicator
(R/W
), which should be low to write. The next eight bits form the Memory Address Pointer (MAP), which is
set to the address of the register that is to be updated. The next eight bits are the data which will be placed
into the register designated by the MAP. During writes, the CDOUT output stays in the Hi-Z state. It may be
externally pulled high or low with a 47 k resistor, if desired.
To read a register, the MAP has to be set to the correct address by executing a partial write cycle which
finishes (CS
high) immediately after the MAP byte. To begin a read, bring CS low, send out the chip address
and set the read/write bit (R/W
) high. The next falling edge of CCLK will clock out the MSB of the addressed
register (CDOUT will leave the high impedance state). The MAP automatically increments so data for suc-
cessive registers will appear consecutively.
MAP
MSB
LSB
DATA
byte 1
byte n
R/W
R/W
ADDRESS
CHIP
ADDRESS
CHIP
CDIN
CCLK
CS
CDOUT
MSB
LSB
MSB
LSB
0010000
0010000
MAP = Memory Address Pointer, 7 bits, MSB first
High Impedance
Figure 10. Control Port Timing in SPI Mode
DS580F6 17
CS8406
6.2 I²C Mode
In I²C Mode, SDA is a bidirectional data line. Data is clocked into and out of the part by the clock, SCL. There
is no CS
pin. Pins AD0, AD1, and AD2 form the three least significant bits of the chip address and should
be connected to VL or GND as desired.
The signal timing for both a read and write cycle are shown in Figure 11 and Figure 12. 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 CS8406 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 4 bits of the 7-bit address field are fixed at 0010. To communicate with a CS8406, the chip address
field, which is the first byte sent to the CS8406, should match 0010 followed by the settings of the AD2, AD1,
and AD0 pins. 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. Th e MAP automatically increments, so
consecutive registers can read from or written to e asily. Each byte is se parated by an acknowled ge bit
(ACK). The ACK bit is output from the CS8406 after each input byte is read, and is input to the CS8406 from
the microcontroller after each transmitted byte.
Since the read operation cannot set the MAP, an aborted write operation is used as a preamble. As shown
in Figure 12, the write operation is aborted after the acknowledge for the MAP by sending a stop condition.
4 5 6 7 24 25
SCL
0 0 1 0 AD2 AD1 AD0 0
CHIP ADDRESS (WRITE) MAP DATA
DATA +1
START
ACK
STOP
ACKACKACK
SDA
6 5 4 3 2 1
7 6 1 0 7 6 1 0 7 6 1 0
0 1 2 3 8 9 12 16 17 18 19 10 11 13 14 15 27 28
26
DATA +n
Figure 11. Control Port Timing, I²C Slave Mode Write
SCL
CHIP ADDRESS (WRITE)
MAP
DATA
DATA +1
START
ACK
STOP
ACK
ACK
ACK
SDA
6 5 4 3 2 1 0
CHIP ADDRESS (READ)
START
7 0 7 0 7 0
NO
16 8 9 12 13 14 15 4 5 6 7 0 1 20 21 22 23 24
26 27 28
2 3 10 11 17 18 19 25
ACK
DATA + n
STOP
0 0 1 0 AD2 AD1 AD0 0 0 0 1 0 AD2 AD1 AD0 1
Figure 12. Control Port Timing, I²C Slave Mode Read
18 DS580F6
CS8406
7. CONTROL PORT REGISTER SUMMARY
Note: Reserved registers must not be written to during normal operation. Some reserved registers are used for
test modes, which can completely alter the normal operation of the CS8406.
Addr
(HEX)
Function 7 6 5 4 3 2 1 0
00 Reserved 0 0 0 0 0 0 0 0
01 Control 1 0 VSET 0 MUTEAES 0 INT1 INT0 TCBLD
02 Control 2 0 0 0 0 0 MMT MMCST MMTLR
03 Data Flow Control 0 TXOFF AESBP 0 0 0 0 0
04 Clock Source Control 0 RUN CLK1 CLK0 0 0 0 0
05 Serial Input Format SIMS SISF SIRES1 SIRES0 SIJUST SIDEL SISPOL SILRPOL
06 Reserved 0 0 0 0 0 0 0 0
07 Interrupt 1 Status TSLIP 0 0 0 0 0 EFTC 0
08 Interrupt 2 Status 0 0 0 0 0 EFTU 0 0
09 Interrupt 1 Mask TSLIPM 0 0 0 0 0 EFTCM 0
0A Interrupt 1 Mode (MSB) TSLIP1 0 0 0 0 0 EFTC1 0
0B Interrupt 1 Mode (LSB) TSLIP0 0 0 0 0 0 EFTC0 0
0C Interrupt 2 Mask 0 0 0 0 0 EFTUM 0 0
0D Interrupt 2 Mode (MSB) 0 0 0 0 0 EFTU1 0 0
0E Interrupt 2 Mode (LSB) 0 0 0 0 0 EFTU0 0 0
0F-11 Reserved 0 0 0 0 0 0 0 0
12 CS Data Buffer Control 0 0 BSEL 0 0 EFTCI CAM 0
13 U Data Buffer Control 0 0 0 UD UBM1 UBM0 0 EFTUI
1D-1F Reserved 0 0 0 0 0 0 0 0
20-37 C or U Data Buffer
7F ID and Version ID3 ID2 ID1 ID0 VER3 VER2 VER1 VER0
Table 1. Control Register Map Summary

CS8406-DSZ

Mfr. #:
Manufacturer:
Cirrus Logic
Description:
Audio Transmitters, Receivers, Transceivers 192kHz Digital Audio Transmitter
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union