Spi Port - Analog Devices ADAU1961 Manual

Stereo, low power, 96 khz, 24-bit audio codec with integrated pll
Table of Contents

Advertisement

SPI PORT

By default, the ADAU1961 is in I
SPI control mode by pulling CLATCH low three times. This is
done by performing three dummy writes to the SPI port (the
ADAU1961 does not acknowledge these three writes). Beginning
with the fourth SPI write, data can be written to or read from
the IC. The ADAU1961 can be taken out of SPI mode only by
a full reset initiated by power-cycling the IC.
The SPI port uses a 4-wire interface, consisting of the CLATCH ,
CCLK, CDATA, and COUT signals, and it is always a slave port.
The CLATCH signal should go low at the beginning of a trans-
action and high at the end of a transaction. The CCLK signal
latches CDATA on a low-to-high transition. COUT data is shifted
out of the ADAU1961 on the falling edge of CCLK and should
be clocked into a receiving device, such as a microcontroller, on
the CCLK rising edge. The CDATA signal carries the serial input
data, and the COUT signal carries the serial output data. The
COUT signal remains three-state until a read operation is requested.
This allows other SPI-compatible peripherals to share the same
readback line. All SPI transactions have the same basic format
shown in
Table 22
data should be written MSB first.
Table 22. Generic Control Word Format
Byte 0
chip_adr[6:0], R/W
1
Continues to end of data.
CLATCH
CCLK
CDATA
Downloaded from
Elcodis.com
electronic components distributor
2
C mode, but it can be put into
. A timing diagram is shown in
Byte 1
subaddr[15:8]
BYTE 0
Figure 54. SPI Write to ADAU1961 Clocking (Single-Word Write Mode)
CLATCH
CCLK
CDATA
BYTE 0
HIGH-Z
COUT
Figure 55. SPI Read from ADAU1961 Clocking (Single-Word Read Mode)
Chip Address R/ W
The LSB of the first byte of an SPI transaction is a R/ W bit. This bit
determines whether the communication is a read (Logic Level 1)
or a write (Logic Level 0). This format is shown in
Table 21. ADAU1961 SPI Address and Read/ Write Byte Format
Bit 0
0
Subaddress
The 16-bit subaddress word is decoded into a location in one of
the registers. This subaddress is the location of the appropriate
register. The MSBs of the subaddress are zero-padded to bring
the word to a full 2-byte length.
Data Bytes
The number of data bytes varies according to the register being
accessed. During a burst mode write, an initial subaddress is
written followed by a continuous sequence of data for consecu-
tive register locations.
A sample timing diagram for a single-word SPI write operation
Figure 4
. All
to a register is shown in Figure 54. A sample timing diagram of
a single-word SPI read operation is shown in Figure 55. The
COUT pin goes from being three-state to being driven at the
beginning of Byte 3. In this example, Byte 0 to Byte 2 contain
the addresses and R/ W bit, and subsequent bytes carry the data.
Byte 2
subaddr[7:0]
BYTE 1
BYTE 1
BYTE 2
Rev. 0 | Page 39 of 76
Bit 1
Bit 2
Bit 3
Bit 4
0
0
0
0
Byte 3
Byte 4
data
data
BYTE 2
BYTE 3
DATA
ADAU1961
Table 21
.
Bit 5
Bit 6
Bit 7
0
0
R/W
1
HIGH-Z

Advertisement

Table of Contents
loading

Table of Contents