English
Language : 

CS4216 Datasheet, PDF (21/58 Pages) Cirrus Logic – 16-Bit Stereo Audio Codec
CS4216
SCLK to CLKIN, the noise performance in
Slave sub-mode may be slightly worse than
when using Master sub-mode. The CS4216 inter-
nally sets the sample frequency by sensing the
ratio of SCLK to CLKIN; therefore, for a given
CLKIN frequency, the sample frequency is se-
lected by changing the SCLK frequency.
SM4-Slave allows up to four codecs to occupy
the same audio serial port. Table 8 lists the pin
configurations required to set the serial audio
port up for 32, 64, or 128 bits-per-frame (BPF).
Since each codec requires one sub-frame of
32 bits, 64 bits-per-frame allows up to two
codecs to occupy the same audio serial port, and
128 bits-per-frame allows up to four codecs to
occupy the same audio serial port. When set up
for more than one codec on the bus, other pins
are needed to select the particular time slot (TS)
associated with each codec. MF8:SFS2 selects
the time slot when in 64 BPF mode, and
MF8:SFS2 and MF7:SFS1 select one of four
time slots when in 128 bits-per-frame mode. Ta-
ble 8 lists the decoding for time slot selection.
In SM4-Slave, the frequency of the incoming
SCLK signal, in relation to CLKIN, determines
the sample frequency on the CS4216. The
CS4216 determines the ratio of SCLK to CLKIN
and sets the internal sample frequency accord-
MF6:
F1
0
0
0
0
1
1
1
1
MF7:
F2
0
0
1
1
0
0
1
1
MF8: N
F3
0 256
1 384
0 512
1 640
0 768
1 1024
0 1280
1 1536
Fs (kHz)
with CLKIN
12.288 11.2896
MHz
MHz
48.00 44.10
32.00 29.40
24.00 22.05
19.20 17.64
16.00 14.70
12.00 11.025
9.60
8.82
8.00
7.35
ingly. Table 9 lists the SCLK to CLKIN fre-
quency ratio used to determine the codec’s
sample frequency. SCLK must equal CLKIN di-
vided by the number in the table, based on the
selected bits per frame. As an example, assuming
32 BPF and CLKIN = 11.2896 MHz, if a sample
frequency of 11.025 kHz is desired, SCLK must
equal CLKIN divided by 32 or 352.8 kHz.
Serial Control Port (SM4)
Serial Mode 4 separates the audio data from the
control data. Since control data such as gain and
attenuation do not change often, this mode re-
duces the bandwidth needed to support the audio
serial port.
The control information is entered through a
separate port that can be asynchronous to the
audio port and only needs to be updated when
changes in the control data are needed. After a
reset or power down, the control port must be
written once to initialize it if the port will be ac-
cessed to read or write control bits. This initial
write is considered a "dummy" write since the
data is ignored by the codec. A second write is
needed to configure the codec as desired. Then,
the control port only needs to be written to when
a change is desired, or to obtain the status infor-
mation. The control port does not function if the
master clock is not operating. When the control
MF6: MF7: MF8:
F1 SFS1 SFS2
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
1
0
1
0
1
1
1
1
Bits Per
Frame
(BPF)
Time
Slot
(TS)
32
1
Reserved
64
1
64
2
128
1
128
2
128
3
128
4
Table 7. SM4-Master, Fs Select
Table 8. SM4-Slave, Audio Port BPF & TS Select
DS83F2
21