English
Language : 

CS4225 Datasheet, PDF (15/30 Pages) Cirrus Logic – Digital Audio Conversion System
CS4225
CS
CCLK
CDIN
CHIP
ADDRESS
0 AD1 AD0 R/W
MAP
DATA
MSB
LSB
byte 1 byte n
CHIP
ADDRESS
0 AD1 AD0 R/W
CDOUT
MAP = Memory Address Pointer
High Z
MSB
LSB MSB
LSB
Figure 6 - Control Port Timing, SPI mode
Auxiliary Audio Port Signals
The auxiliary port provides an alternate way to
input digital audio signals into the CS4225, and
allows the CS4225 to synchronize the system to
an external digital audio source. This port con-
sists of clock, data and left/right clock pins
named, SCLKAUX, DATAAUX and
LRCKAUX. These signals are fed through to the
SCLK, SDOUT1 and LRCK pins. There is a two
frame delay from DATAAUX to SDOUT1.
When the auxiliary port is used, the frequency of
LRCKAUX must equal to the system sample
rate, Fs, but no particular phase relationship is
required.
Auxiliary Audio Port Formats
Input data on DATAAUX is clocked into the part
by SCLKAUX using the format selected in the
Auxiliary Port Mode Byte. In hardware mode,
the auxiliary port format is the same as the DSP
port format and is determined by the DIF pin.
The auxiliary audio port supports the same 4 for-
mats as the audio DSP port in 2 data line mode.
LRCKAUX is used to indicate left and right data
samples, and the start of a new sample period.
SCLKAUX and LRCKAUX may be output from
the CS4225, or they may be generated from an
external source, as set by the AMS control bit in
Software mode or IF1 in Hardware mode.
DS86PP8
Control Port Signals
The control port has 2 modes: SPI and I2C®,
with the CS4225 as a slave device. The SPI
mode is selected by setting the H/S pin low.
I2C® mode is selected by floating the H/S pin.
If the H/S pin is floated, add a 0.1µF capacitor
to ground on the H/S pin to minimize noise
pickup.
SPI Mode
In SPI mode, CS is the CS4225 chip select sig-
nal, CCLK is the control port bit clock, (input
into the CS4225 from the microcontroller),
CDIN is the input data line from the microcon-
troller, CDOUT is the output data line to the
microcontroller, and AD0 and AD1 form the
chip address.
The pins AD0, AD1 must be tied to one of 4
possible chip addresses. To write to a particular
CS4225, the AD0, AD1 bits must match the state
of the AD0, AD1 pins for that chip. This allows
up to 4 CS4225 devices to co-exist on one con-
trol port bus.
Figure 6 shows the operation of the control port
in SPI mode. To write to a register, bring CS
low. The first 5 bits on CDIN must be zero. The
next 2 bits form the chip address. The eighth bit
is a read/write indicator (R/W), which should be
15