Delta-Sigma A/D Converters
Delta-Sigma D/A Converters
Input Anti-Alias ing and Output
Smoothing Filters
Programmable Input Gain and
Output Attenu ation
Sample Frequencies of 4 kHz to 50 kHz
••
CD Quality Noise and Distortion
••
< 0.01 %THD
Internal 64X Oversampling
••
Low Power Dissipation: 80 mA
••
1 mA Power-Down Mode
General Description
The CS4216 is an Mwave
audio codec.
The CS4216 Stereo Audio Codec is a monolithic
CMOS device for computer multimedia, automotive,
and portable audio applications. It performs A/D and
D/A conversion, filtering, and level setting, creating 4
audio inputs and 2 audio outputs for a digital computer
system. The digital interfaces of left and right channels
are multiplexed into a single serial data bus with word
rates up to 50 kHz per channel. Up to 4 CS4216 devices can be attached to a single hardware bus.
Both the ADCs and the DACs use delta-sigma modulation with 64X oversampling. The ADCs include a digital
decimation filter which eliminates the need for external
anti-aliasing filters. The DACs include output smoothing
filters on-chip.
Ordering Information:
CS4216-KL0° to 70°C44-pin PLCC
CS4216-KQ0° to 70°C44-pin TQFP
CDB4216Evaluation Board
TM
RESET
PDN
SMO DE3
SMO DE2
SMO DE1
SDIN
SDOUT
SCLK
SSYNC
MF7:SFS1/F2
MF8:SFS2/F3
CLKIN
D/A
POWER
CONTROL
SERIAL INTERFACE CONTRO L
VD
DIGITAL
FILTERS
D/A
VOLTAG E R EFER ENC E
A/D
DIGITAL
FILTERS
A/D
VA
DGNDAGND
OUTPUT
INPUT
GAIN
ATTENUATION
OUTPUT
LOU T
MUTE
ROUT
DO1
MF5:DO2/IN T
MF2:DO3/F2/CDIN
MF1:DO4/F1/CDOUT
DI1
MF6:DI2/F1
MF 3:DI3/F3/CCL K
MF4:DI4/MA/CCS
12.288 MHz; Measurement Bandwidth is 10 Hz to 20 kHz; Unless otherwise specified.)
Parameter *SymbolMinTypMaxUnits
Analog Input Characteristics
ADC Resolution16--Bits
ADC Differential Nonlinearity(Note 1)--±0.9LSB
Instantaneous Dynamic RangeIDR8085-dB
Total Harmonic DistortionTHD--0.01%
Interchannel Isolation-80-dB
Interchannel Gain Mismatch--±0.5dB
Frequency Response(Note 1)-0.5-+0.2dB
- Minimum gain setting (0 dB); unless otherwise specified.
= 25°C; VA, VD = +5V; Input Levels: Logic 0 = 0V,
A
A
02570°C
Programmable Input Gain Span2122.524dB
Gain Step Size-1.5-dB
Absolute Gain Step Error--0.75dB
Gain Drift-100-ppm/°C
Offset ErrorDC Coupled Inputs-±10±100LSB
AC Coupled Inputs-±150±400LSB
Full Scale Input Voltage2.52.83.1V
Input Resistance(Notes 1,2)20--kΩ
Input Capacitance(Note 1)--15pF
Notes: 1. This specification is guaranteed by characterization, not production tes ting.
2. Input resistance is for the input selec ted. Non-selected inputs have a very high (>1M Ω) input resistanc e.
* Parameter definitions are given at the end of this data sheet.
MwaveTM is a trademark of the IBM Corporation.
Specifications are subject to change without notice.
2DS83F2
pp
ANALOG CHARACTERISTICS (Continued)
Parameter *SymbolMinTypMaxUnits
CS4216
Analog Output Characteristics
DAC Resolution16--Bits
DAC Differential Nonlinearity(Note 1)--±0.9LSB
Total Dynamic RangeTDR-93-dB
Instantaneous Dynamic RangeIDR8083-dB
Total Harmonic Distortion(Note 4)THD--0.02%
Interchannel Isolation(Note 4)-80-dB
Interchannel Gain Mismatch--±0.5dB
Frequency Response (Note 1)-0.5-+0.2dB
Programmable Output Attenuation Span (Note 3)-45-46.5-dB
Attenuation Step Size(Note 3)-1.5-dB
Absolute Attenuation Step Error(Note 3)--0.75dB
Gain Drift-100-ppm/°C
REFBUF Output Voltage(Note 5)1.92.22.5V
Offset Voltage-10-mV
Full Scale Output Voltage(Note 4)2.52.83.1V
Deviation from Linear Phase(Note 1)--1Degree
SM2, SM3, SM4:CLKIN1.02412.28812.8MHz
CLKIN low timet
CLKIN high timet
Sample Rate(Note 1)Fs4-50kHz
DI pins setup time to SCLK edge(Note 1)t
DI pins hold time from SCLK edge(Note 1)t
DO pins delay from SCLK edget
SCLK and SSYNC output delay
from CLKIN rising
SCLK periodMaster Mode (Note 7)t
SCLK high timeSlave Modet
SCLK low timeSlave Modet
SDIN, SSYNC setup time to SCLK edgeSlave Modet
SDIN, SSYNC hold time from SCLK edge Slave Modet
SDOUT delay from SCLK edget
Output to Hi-Z statebit 64 (Note 1)t
Output to non-Hi-Zbit 1 (Note 1)t
RESET pulse width low500--ns
Master Mode (Note 1)t
= 25°C; VA, VD = +5V, outputs loaded with 30 pF; Input
A
ckl
ckh
s2
h2
pd2
pd3
sckw-1/(Fs*bpf)-s
Slave Mode
sckh
sckl
s1
h1
pd1
hz
nz
15--ns
15--ns
10--ns
8--ns
30--ns
--50ns
75--ns
30--ns
30--ns
15--ns
10--ns
--28ns
--12ns
15--ns
CCS low to CCLK risingSM4 (Note 1)t
CDIN setup to CCLK fallingSM4 (Note 1)t
CCLK low to CDIN invalid (hold time)SM4 (Note 1)t
CCLK high timeSM4 (Note 1)t
CCLK low timeSM4 (Note 1)t
CCLK PeriodSM4 (Note 1)t
CCLK rising to CDOUT data validSM4 (Note 1)t
CCLK rising to CDOUT Hi-ZSM4 (Note 1)t
CCLK falling to CCS highSM4 (Note 1)t
Notes: 7. When the CS4216 is in master mode (SSYNC and SCLK outputs), the SCLK duty cycle is 50%.
The equation is based on the selected sample frequency (Fs) and the number of bits per frame (bpf) .
4DS83F2
cslcc
discc
ccdih
cclhh
cclhl
cclkw
ccdov
ccdot
cccsh
25--ns
15--ns
10--ns
25--ns
25--ns
75--ns
--30ns
--30ns
0--ns
CS4216
SSYNC
[SM1, SM2\
SCLK
[SM1,SM2\
SCLK
[SM3,SM4\
SSYNC
[SM3,SM4\
SDIN
SDOUT
t
sckltsckh
t
sckw
t
sckhtsckl
t
s1
[SM1,SM2,SM3\
(SM4)
[SM1,SM2,SM3\
(SM4)
Bit 32
(Bit 32)
Bit 32
(Bit 32)
*Word Sync
t
s1th1
Bit 33
(Bit 1)
Bit 33
(Bit 1)
Bit 63
(Bit 31)
Bit 63
(Bit 31)
(Bit 32)
Frame Sync
t
s1
t
h1
t
h1
t
t
h1
s1
Bit 1Bit 2
t
pd1
Bit 1
t
nz
t
pd1
Bit 2
* Optional
Bit 64
Bit 64
(Bit 32)
*Word Sync
t
hz
MF4:CCS
MF1:CDOUT
MF3:CCLK
t
MF2:CDIN
MF4:CCS
MF1:CDOUT
MF3:CCLK
MF2:CDIN
discc
RGain2
Serial Audio Port Timing
ccdov
t
cccsh
0
LCL
11
ADV
t
cslcc
t
ccdih
t
cclkh
0MSK
DO1
LAtt4
t
cclkl
t
cclkw
LAtt3LAtt2
LAtt1
LAtt0
t
RAtt4RAtt3RAtt2
123 58946710
0
DI1
ADV
0
0000
t
ccdot
0
0
RGain1
1
RGain0
Err1
Err0
LCLRCL
0
2428293231302726252322
Serial Mode 4. Control Data Serial Port Timing
DS83F25
SCLK*
t
s2
t
h2
t
ckl
CS4216
t
ckh
DIx
DOx
* SCLK is inverted for SM1 and SM2
DI/DO Timing
t
pd2
CLKIN
SCLK
SSYNC
(Master Mode)
SCLK & SSYNC Output Timing
t
pd3
(Master Mode)
DIGITAL CHARACTERISTICS (T
ParameterSymbolMinTypMaxUnits
High-level Input VoltageV
Low-level Input VoltageV
High-level Output Voltage at I0 = -2.0 mAV
Low-level Output Voltage at I0 = +2.0 mAV
Input Leakage Current(Digital Inputs)--10µA
Output Leakage Current(High-Z Digital Outputs)--10µA
Output CapacitanceC
Input CapacitanceC
6DS83F2
= 25°C; VA, VD = 5V)
A
OH
OL
OUT
IH
IL
IN
VD-1.0- -V
--1.0V
VD-0.3--V
--0.1V
--15pF
--15pF
CS4216
A/D Decimation Filter Characteristics
ParameterSymbolMinTypMaxUnits
Passband(Fs is conversion freq.)0-0.45FsHz
Frequency Response-0.5-+0.2dB
Passband Ripple--±0.2dB
Transition Band0.45Fs-0.55FsHz
Stop Band≥ 0.55Fs --Hz
Stop Band Rejection80--dB
Group Delay-16/Fs-s
Group Delay Variation vs. Frequency-0.0µs
D/A Interpolation Filter Characteristics
ParameterSymbolMinTypMaxUnits
Passband(Fs is conversion freq.)0-0.45FsHz
Frequency Response-0.5-+0.2dB
Passband Ripple--±0.1dB
Transition Band0.45Fs-0.55FsHz
Stop Band≥ 0.55Fs --Hz
Stop Band Rejection74--dB
Group Delay-16/Fs-s
Group Delay Variation vs. Frequency--0.1/Fsµs
ABSOLUTE MAXIMUM RATINGS (AGND, DGND = 0V, all voltages with respect to 0V.)
ParameterSymbolMinTypMaxUnits
Power Supplies:DigitalVD-0.3-6.0V
AnalogVA-0.3-6.0V
Input Current (Except Supply Pins)--±10.0mA
Analog Input Voltage -0.3-VA+0.3V
Digital Input Voltage -0.3-VD+0.3V
Ambient Temperature (Power Applied)-55-+125°C
Storage Temperature-65-+150°C
Warning:Operation beyond these limits may result in permanent damage to the device.
Normal operation is not guaranteed at these extremes.
DS83F27
CS4216
+5V
Supply
Line In 2
Right
See
for su ggested input ciruits.
Line In 2
Left
Line In 1
Right
To Optional
Inp ut B u ffe rs
Line In 1
Left
Analog Inputs
Fe rrite B ea d
section
0.47µF
P a r a lle l Bits
or
Sub-Mode
Settings
or
C o n tro l P o rt
2.0
1 µF
+
0.1 µF
4
26
RIN2
28
LIN2
25
RIN1
20
REFBUF
27
LIN1
40
MF1:DO4/F1/CDOUT
39
MF2:DO3/F2/CDIN
35
MF3:DI3/F3/CCLK
36
MF4:DI4/MA/CCS
38
MF5:DO2/INT
34
MF6:DI2/F1
+
CS4216
1 µF
F
0.1
µ
24
VAVD
ROUT
LOU T
REFBYP
REFGND
CLKIN
RESET
PDN
SDOUT
SDIN
SCLK
SSYNC
SMODE3
SMODE2
SMODE1
MF7:SFS1
MF8:SFS2
If a separate +5V
Analog supply is used, rem ove
the 2.0 ohm resistor
15
600
0.0022µF
16
600
0.0022
21
22
3
2
13
43
42
44
1
33
37
41
32
29
31
30
0.1 µF
C o ntro lle r
DI1
DO1
Mode
Setting
+
NPO
+
NPO
+5V
Analog
>
1.0 µF
40 k
> 1.0 µF
40 k
F
µ
+
10 µF
Right
Audio
Output
Left
Audio
Output
AGNDD GND
235
Note: AG N D and DG N D pins MUST be on the same gro und plane
R e fe r to th e
section for terminating
unused line inputs.
All other unused inputs
shou ld b e ti e d to GN D. All N C
pins should be left floating.
Analog Inputs
Figure 1. Typical Connection Diagram
8DS83F2
OVERVIEW
CS4216
The CS4216 contains two analog-to-digital converters, two digital-to-analog converters,
adjustable input gain, and adjustable output level
control. Since the converters contain all the required filters in digital or sampled analog form,
the filters’ frequency responses track the sample
rate of the CS4216. Only a single-pole RC filter
is required on the analog inputs and outputs. The
RC filter acts as a charge reserve for the
switched-capacitor input and buffers op-amps
from a switched-capacitor load. Communication
with the CS4216 is via a serial port, with separate pins for data into the device, and data from
the device. The filters and converters operate
over a sample rate range of 4 kHz to 50 kHz.
FUNCTIONAL SPECIFICATIONS
Analog Inputs and Outputs
Figure 1 illustrates the suggested connection diagram to obtain full performance from the
CS4216. The line level inputs, LIN1 or LIN2
and RIN1 or RIN2, are selected by an internal
input multiplexer. This multiplexer is a source
selector and is not designed for switching between inputs at the sample rate.
Unused analog inputs that are not selected have
a very high input impedance, so they may be
tied to AGND directly. Unused analog inputs
that are selected should be tied to AGND
through a 0.1 µF capacitor. This prevents any
DC current flow.
The analog inputs are single-ended and internally biased to the REFBUF voltage (nominally
2.2 V). The REFBUF output pin can be used to
level shift an input signal centered around
0 Volts as shown in Figure 2. The input buffers
shown have a gain of 0.5, yielding a full scale
input sensitivity of 2 V
with the CS4216 pro-
rms
56 pF
Line In
Right
Example
Op-Amps
are
MC34072
or
LT1013
Line In
Left
20 k0.47 uF
0.47 uF
0.47 uF 20 k
Op-amps are run
from VA+5V and
AGND
10 k
_
+
5 k
_
+
10 k
56 pF
150
0.01 uF
NPO
150
0.01 uF
NPO
RINx
(PLCC pin 25 or 26)
REFBUF
LINx
(PLCC pin 27 or 28)
Figure 2. DC Coupled Input.
0.47 uF
Line In
Right
Line In
Left
150
0.01 uF
NPO
NPO
0.01 uF
150
0.47 uF
RINx
(PLCC pin 25 or 26)
LINx
(PLCC pin 27 or 28)
Figure 3. AC Coupled Input
grammable gain set to 0. If the source impedance is very low, then the inputs can be AC
coupled with a series 0.47 µF capacitor, eliminating the need for external op-amps (see Figure
3). However, the use of AC coupling capacitors
will increase DC offset at 0dB gain (see Analog
Characteristics Table).
The analog outputs are also single-ended and
centered around the REFBUF pin. AC coupling
capacitors of >1 µF are recommended.
DS83F29
CS4216
Offset Calibration
Both input and output offset voltages are minimized by internal calibration. Offset calibration
occurs after exiting a reset or power down condition. During calibration, which takes 194 frames,
output data from the ADCs will be all zeros, and
will be flagged as invalid. Also, the DAC outputs
will be muted. After power down mode or power
up, RESET should be held low for a minimum
of 50 ms to allow the voltage reference to settle.
Input Gain and Output Level Settin g
Input gain is adjustable from 0 dB to +22.5 dB
in 1.5 dB steps. In serial modes SM1 and SM2,
the output level attenuation is adjustable from
0 dB to -22.5 dB. In serial modes SM3 and
SM4, the output level attenuation is adjustable
from 0 dB to -46.5 dB. Both input and output
gain adjustments are internally made on zerocrossings of the analog signal, to minimize
"zipper" noise. The gain change automatically
takes effect if a zero crossing does not occur
within 512 frames.
SSYNC
SCLK
(SM3)
Start of
Frame
Figure 4. Digital Input/Output Timing
DI pins
latched
DO pins
update
Parallel Dig ital Input/ Output Pin s
Parallel digital inputs are general purpose pins
whose value is reflected in the serial data output
stream to the processor. Parallel digital outputs
provide a way to control external devices using
bits in the serial data input stream. All parallel
digital pins, with the exception of DI1 and DO1,
are multifunction and are defined by the serial
mode selected. Serial modes 1 and 2 define all
multifunction pins as general purpose digital inputs and outputs. In Serial mode 3 only two
digital inputs and two digital outputs are available. In serial mode 4 only one digital input and
digital output exists. Figure 4 shows when the DI
pins are latched, and when the DO pins are updated in SM3 and SM4.
Muting and the ADC Valid Counter
The mute function allows the output channels to
be silenced. It is the controlling processor’s responsibility to reduce the signal level to a low
value before muting, to avoid an audible click.
The outputs should be muted before changing
the sample frequency.
The serial data stream contains a "Valid Data"
indicator for the A/D converters which is false
until enough clocks have passed since reset, or
low-power (power down mode) operation to have
valid A/D data from the filters, i.e., until calibration time plus the full latency of the digital
filters has passed.
Reset and Power Down Modes
Reset places the CS4216 into a known state and
must be held low for at least 50 ms after powerup or a hard power down. Reset must also occur
when the codec is in master mode and a change
in sample frequency is desired. In reset, the digital outputs are driven low. Reset sets all control
data register bits to zero.
Hard power down mode may be initiated by
bringing the PDN pin low. All analog outputs
will be driven to the REFBUF voltage which
will then decay to zero. All digital outputs will
be driven low and then will go to a high impedance state. Minimum power consumption will
occur if CLKIN is held low. After leaving the
power down state, RESET should be held low
for 50 ms to allow the analog voltage reference
to settle before calibration is started.
10DS83F2
CS4216
Alternatively, soft power down may be initiated,
in slave mode, by reducing the SC LK frequency
below the minimum CLKIN/12. In soft power
down the analog outputs are muted and the serial
data from the codec will indicate invalid data
and the appropriate error code. The parallel bit
I/O is still functional in soft power down mode.
This is, in effect, a low power mode with only
the parallel bit I/O unit functioning.
Audio Serial Interface
In serial modes 1, 2, and 3, the audio serial port
uses 4 pins: SDOUT, SDIN, SCLK and SSYNC.
SDIN carries the D/A converters’ input data and
control bits. Input data is ignored for frames not
allocated to the selected CS4216. SDOUT carries the A/D converters’ output data and status
bits. SDOUT goes to a high-impedance state
during frames not allocated to the selected
CS4216. SCLK clocks data in to and out of the
CS4216. The rising edge of SCLK clocks data
out on SDOUT. The falling edge latches data on
SDIN into the port (SC LK polarity is inverted in
Serial Modes 1&2). SSYNC indicates the start of
a frame and/or sub-frame. SCLK and SSYNC
must be synchronous to the master clock.
audio data which reduces the number of bits on
the audio port from 64 to 32 per codec.
The serial port protocol is based on frames consisting of 1, 2, or 4 sub-frames. The frame rate is
the system sample rate. Each sub-frame is used
by one CS4216 device. Up to 4 CS4216s may be
attached to the same serial control lines. SFS1
and SFS2 are tied low or high to indicate to each
CS4216 which sub-frame is allocated for it to
use.
Serial Data Format
In serial modes 1, 2, and 3, a sub-frame is
64 bits in length and consists of two 16-bit audio
values and two 16-bit control fields. In serial
mode 4 a sub-frame is 32 bits in length and only
contains the two 16-bit audio values; th e control
data is loaded through a separate port. The audio
data is MSB first, 2’s complement format. The
sub-frame bit assignments for serial modes 1, 2,
and 3, are numbered 1 through 64 and are shown
in Figures 5 and 6. Control data bits all reset to
zero.
CS4216 SERIAL INTERFACE MODES
Serial mode 4 is similar to serial mode 3 with
the exception of the control information. In serial
mode 4 the control information is entered
through a separate asynchronous control port.
Therefore, the audio serial port only contains
The CS4216 has 4 serial port modes, selected by
the SMODE1, SMODE2 and SMODE3 pins. In
all modes, CLKIN, SCLK and SSYNC must be
derived from the same clock source. SM1 is an
easy interface to ASICs that use a change in the
SCLK-to-CLKIN ratio to determine the sample
Contains audio data only. Control information is entered through a separate serial por t.
DS83F211
†
32/64/128†Master/SlaveCLKIN = 256×Fs
Table 1. Serial Port Modes
CS4216
INPUT DATA BIT DEFINITIONS
Sub-frame bits 1 to 16
Left DAC Audio Data, MSB first, 2’s complement coded.
Sub-frame Bits 17 to 24
1718192021222324
0000EXPMUTE ISLISR
EXPExpand bit
Reserved. Must be set to zero.
MUTE Mute D/A Outputs
0 - Normal Outputs
1 - Mute Outputs
ISLSelect Left Input Mux
0 - Select LIN1
1 - Select LIN2
ISRSelect Right Input Mux
0 - Select RIN1
1 - Select RIN2
Sub-frame Bits 25 to 32
2526272829303132
LG3LG2LG1LG0RG3 RG2 RG1 RG0
LG3-LG0 Sets left input gain.
LG3 is the MSB. LG0 represents 1.5 dB.
0000 = no gain.
1111 = +22.5 dB gain
RG3-RG0 Sets right input gain.
RG3 is the MSB. RGO represents 1.5 dB.
0000 = no gain
Sub-frame Bits 33 to 48
Right DAC audio data MSB first, 2’s complement coded.
Sub-frame Bits 49 to 50
Must be zero.
Sub-frame Bits 51 to 60
51525354555657585960
LA4 LA3 LA2 LA1 LA0 RA4 RA3 RA2 RA1 RA0
*
†
00LA3 LA2 LA1 LA0 RA3 RA2 RA 1 RA0
LA4-LA0Sets left output attenuation
†SM1, 2
LA3 is the MSB.
0000 = no attenuation
1111 = -22.5 dB
*SM3,4
LA4 is the MSB.
00000 = no attenuation
11111 = -46.5 dB
LA0 represents 1.5 dB.
RA4-RA0 Sets r ight output attenuation
†SM1, 2
RA3 is the MSB.
0000 = no attenuation
1111 = -22.5 dB
*SM3,4
RA4 is the MSB.
00000 = no attenuation
11111 = -46.5 dB
RA0 represents 1.5 dB.
Sub-frame Bits 61 to 64
61626364
DO1 DO2 DO3 DO4
DO1-DO4Set the logic level on the 4 digital output
pins. In SM3 DO3 and DO4 are not
available. In SM4 DO2, DO3, & DO4
are not available.
Sub-frame
Sub-frame
01
MSB
MSB
DAC - Left Word
DAC - Left Word
Word A
16
17
LSB
0000
LSB
0000
22
23
21
In
M
EXP
Sel.
In
M
Sel.
EXP
25
24
30
A/D Gain
30
A/D Gain
28
Left
Left
29
30
Right
A/D Gain
SM1 and SM2
30
Right
A/D Gain
SM3
32
33
MSB
MSB
DAC - Right Word
DAC - Right Word
Word B
51
LSB
0000
40
Left
LSB
D/A Att.
00
524853
56
57
55
30
30
Left
D/A Att.
Right
D/A Att.
40
Right
D/A Att.
60
61
DO1
DO1
DO2
XX
DO2
DO3
Figure 5. Serial Data Input Format - SM1, SM2, and SM3.
12DS83F2
64
DO4
CS4216
OUTPUT DATA BIT DEFINITIONS
Sub-frame Bits 1 to 16
Left ADC Audio Data, MSB first, 2’s complement coded.
Sub-frame Bits 17 to 24
1718192021222324
RESERVED0ADVLCLRCL
ADVADC Valid data bit.
0- Invalid ADC data
1- Valid A DC data
Indicates ADC has completed initialization
after power-up, low power mode,
or mute.
LCLLeft ADC clipping indicator
0- Normal
1- Clipping
RCLRight ADC clipping indicator
0- Normal
1- Clipping
RESERVED bits can be 0 or 1
Sub-frame Bits 25 to 32
2526272829303132
ER3ER2ER1ER0Ver3Ver2Ver1Ver0
ER3-ER0 Error Word
0000 - Normal – No errors.
0001 - Input Sub-frame Bit 21 is set.
Control data will not be loaded
0010 - Sync Pulse is inc orrect.
Causes the analog output to mute.
0011 - SCLK is outside the allowable
range. Analog output mutes.
Ver3-Ver0CS4216 Version Number
0000 = "A" (see Appendix A)
0001 = "B", "C", . . . (This data sheet)
Sub-frame Bits 33 to 48
Right ADC Audio Data, MSB first, 2’s complement coded.
Sub-frame Bits 49 to 60
These bits are reserved, and can be 0 or 1.
Sub-frame Bits 61 to 64
61626364
DI1DI2DI3DI4
DI1-DI4These bits follow the state of the Digital
Input pins. In SM3 DI3 and DI4 are used
and unavailable. In SM4 DI2, DI3, & DI4
are not available as input bits.
Sub-frame
Sub-frame
Word B
48
XXXX
LSB
LSB
XXXX
535657
55
52
00010000
00010000
60
61
DI1
DI1
DI2
DI3
XX
DI2
01
MSB
MSB
ADC - Left Word
ADC - Left Word
Word A
16
17
.
XXXX
LSB
XXXX
LSB
212425
22
23
LCL
0
ADV
0
LCL
ADV
28
29
30
RCL
30
RCL
30
Version
Error
SM1 and SM2
30
Version
Error
32
SM3
33
ADC - Right Word
MSB
ADC - Right Word
MSB
Figure 6. Serial Data Output Format - SM1, SM2, a nd SM3.
DS83F213
64
DI4
CS4216
frequency. SM2 is similar to SM1 except that
CLKIN is not used and SCLK becomes the mas-
ter clock and is fixed at 256×Fs. SM3 was
designed as an easy interface to general purpose
DSPs and provides extra features such as one
more bit of attenuation, a master mode, and variable frame sizes. SM4 is similar to SM3 but
splits the audio data from the control data
thereby reducing the audio serial bus bandwidth
by half. The control data is transmitted through a
control serial port in SM4.
Table 1 lists the serial port modes available,
along with some of the differences between
modes. The first three columns in Table 1 select
the serial mode. The "SCLK Bit Center" column
indicates whether SCLK is rising or falling in
the center of a bit period. The "Sub-frame
Width" column indicates how many bits are in
an individual codec’s sub-frame. SM4 differs
from all other modes by separating the control
data from the audio data. In both SM1 and SM2,
there are 256 bits per frame which allows up to
four codecs to occupy the same bus. In SM3 and
SM4, the number of bits per frame is programmable. In SM1 and SM2, SCLK and SSYNC
must be generated externally; whereas, in SM3
and SM4 the CS4216 can optionally generate
those signals. In all modes, SCLK and SSYNC
must be synchronous to the master clock. The
last column in Table 1 lists the master frequency
used by the codec. In SM1, the master frequency, input on CLKIN, is 512 times the
highest sample frequency available. In SM2, the
master frequency is fixed at 256 times the sample frequency and, in this mode, SCLK is the
master clock. In SM3, the master frequency is
256 times the highest frequency available and is
input on CLKIN or SCLK, based on the submode used. In SM4, the master frequency is also
256 times the highest frequency available and is
input on CLKIN.
SERIAL MODE 1, SM1
Serial Mode 1 is a slave mode selected by setting SMODE3 = SMODE2 = SMODE1 = 0.
SCLK and SYNC must be synchronous the master clock. SM1 uses a two bit wide (minimum)
frame sync with an optional word sync. In this
mode, SSYNC low for one SCLK period followed by SSYNC high for a minimum of two
SCLK periods indicates the beginning of a
frame. The first bit of the frame starts with the
rising edge of SSYNC. An optional word sync,
being one SCLK period high, may be used to
indicate the start of a new 32-bit word. Figures 5
and 6 contain the serial data format for SM1. In
this serial mode, the ratio of two clocks are used
to select sample frequency. These are the master
clock CLKIN and the serial clock SCLK.
CLKIN should be set to 512×Fs
Fs
is the maximum required sample rate.
max
max
, where
SCLK must be externally set to a value of
CLKIN/N, such that SCLK equals 256 times the
desired sample rate. The codec uses the ratio between CLKIN and SCLK to set the internal
sample frequency and causes the CS4216 to go
into soft power down mode if the SCLK frequency drops to <CLKIN/12. Even if only 1
CS4216 is used, the timing for 4 devices must be
maintained. Table 2 shows some example sample
rates for SM1.
Sample RateSCLKCLKINN
kHzMHzMHz
4812.28824.5762
328.19224.5763
246.14424.5764
19.24.915224.5765
164.09624.5766
123.07224.5768
9.62.457624.57610
82.04824.57612
7.21.84322.11612
44.111.289622.57922
Table 2. SM1 - Example Clock Frequencies
14DS83F2
DATA
SSYNC
or
SSYNC
FRAME n
256 SCLK Periods
Sub-frame 1Sub-frame 2Sub-frame 3Sub-frame 4
Word AWord BWord AWord BWord AWord BWord AWord B
FS
WSWSWSWSWSWSWS
Figure 7. SM1, SM2 - 256 Bits pe r Frame.
FRAME (n+1)
Sub-frame 1
Word AWord B
FS
WS
CS4216
MF8:MF7:Sub-
SFS2SFS1frame
0
0
0
1
1
FS = Frame Sync
Low followed by
Two High Bits
WS =
1
1
2
0
3
4
1
One High
Optional
Not Needed
SERIAL MODE 2, SM2
Serial Mode 2 is enabled by setting SMODE3 =
SMODE2 = 0, and SMODE1 = 1. SM2 is simi-
lar to SM1 except that SCLK is fixed at 256 ×
Fs and is the master clock instead of CLKIN.
The CLKIN pin is ignored in this mode and
should be tied low. In SM2, the sample frequency will scale linearly with the frequency of
SCLK. Up to four codecs may occupy the serial
bus since each codec requires only 64 bit periods
and a frame is fixed at 256 bit periods. The serial data format is the same as SM1 and is
illustrated in Figures 5 and 6.
The multifunction pins in SM2 are defined identically to SM1. See Serial Mode 1, SM1 section
for more details.
SERIAL MODE 3, SM3
Serial Mode 3 is enabled by setting
SMODE3 = 0, SMODE2 = 1 and SMODE1 = 0.
This mode is designed to interface easily to
DSPs and has the added versatility of a programmable number of bits per frame, a master mode,
and one extra bit of D/A attenuation. In SM3,
two of the parallel digital input bits and two of
the parallel digital output bits are available.
Master Clock Frequency
In SM3, the master clock, CLKIN, must be
256 × Fs
. For example, given a 48 kHz maxi-
max
mum sample frequency, the master clock
frequency must be 12.288 MHz. SCLK and
SSYNC must be synchronous to CLKIN.
D/A Attenuation
SM3 has one more bit per channel allocated for
D/A attenuation which doubles the attenuation
range. Figure 5 illustrates the serial data in,
SDIN, sub-frame for all SM3 sub-modes. The
upper portion of this figure shows modes SM1
and SM2 where the D/A attenuation is located in
Word B, bits 53 through 60. Four bits allow attenuation on each channel from 0 dB down to
-22.5 dB using 1.5 dB steps. In SM3 the attenuation bits are still located in Word B, but start at
bit 51 of the sub-frame. This allows five bits of
attenuation per channel instead of four, producing an attenuation range for each channel from
0 dB down to -46.5 dB.
In SM3 MF5:DO2 is a general purpose output
and MF6:DI2 is a general purpose input. The
other six multifunction pins are used to select
sub-modes under SM3.
SM3 is divided into two sub-modes, Master and
Slave. In Master sub-mode, the CS4216 generates SSYNC and SCLK, while in Slave
sub-mode SSYNC and SCLK must be generated
DS83F215
CS4216
externally. In Master sub-mode, the serial port
signal transitions are controlled with respect to
the internal analog sampling clock to minimize
the amount of digital noise coupled into the analog section. Since SSYNC and SCLK are
externally derived in Slave sub-mode, optimum
noise management cannot be obtained; therefore,
Master sub-modes should be used whenever possible.
Master Sub-Mode (SM3)
Master sub-mode is selected by setting
MF4:MA = 1, which configures SSYNC and
SCLK as outputs from the CS4216. During
power down, SSYNC and SCLK are driven high
impedance, and during reset they both are driven
low. In Master sub-mode the number of bits per
frame determines how many codecs can occupy
the serial bus and is illustrated in Figure 8.
Bits Per Frame (Master Sub-Mode)
MF8:SFS2 selects the number of bits per frame.
The two options are MF8:SFS2 = 1 which selects 128 bits per frame, and MF8:SFS2 = 0
which selects 64 bits per frame.
Selecting 128 bits per frame (MF8:SFS2 = 1) allows two CS4216s to operate from the same
serial bus since each codec requires 64 bit periods. The sub-frame used by an individual codec
is selected using MF7:SFS1. MF7:SFS1 = 0 selects sub-frame 1 which is the first 64 bits
following the SSYNC pulse. MF7:SFS1 = 1 selects sub-frame 2 which is the last 64 bits of the
frame.
Selecting 64 bits per frame (MF8:SFS2 = 0) allows only one CS4216 to occupy the serial port.
Since there is only one sub-frame (which is
equal to one frame), MF7:SFS1 is defined differently in this mode. MF7:SFS1 selects the format
of SSYNC. MF7:SFS1 = 0 selects an SSYNC
pulse one SCLK period high, directly preceding
the data as shown in the center portion of Fig-
ure 8. This format is used for all other Master
and Slave sub-modes in SM3. If MF7:SFS1 = 1,
an alternate SSYNC format is chosen in which
SSYNC is high during the entire Word A
(32 bits), which includes the left sample, and
low for the entire Word B (32 bits), which includes the right sample. This alternate format for
SSYNC is illustrated in the bottom portion of
Figure 8 and is only available in Master submode with 64 bits per frame. A more detailed
timing diagram for the 64 bits-per-frame Master
sub-mode is shown in Figure 9.
Sample Frequency Selection (Master Sub-Mode)
In SM3, Master sub-mode, the multifunction
pins MF1:F1, MF2:F2, and MF3:F3 are used to
select the sample frequency divider. Table 3 lists
the decoding for the sample frequency select
pins where the sample frequency selected is
CLKIN/N. Also shown are the sample frequencies obtained by using one of two example
master clocks: either 12.288 MHz or
11.2896 MHz. The codec must be reset when
changing sample frequencies to allow the codec
to calibrate to the new sample frequency.
Slave Sub-Mode (SM3)
In SM3, Slave sub-mode is selected by setting
MF4:MA = 0 which configures SSYNC and
SCLK as inputs to the CS4216. These two signals must be externally derived from CLKIN. In
Slave sub-mode, the phase relationship between
SCLK/SSYNC and CLKIN cannot be controlled
since SCLK and SSYNC are externally derived.
Therefore, the noise performance may be slightly
worse than when using the master sub-mode.
The number of sub-frames on the serial port is
selected using MF1:F1 and MF2:F2. In Slave
sub-mode MF3:F3 works as a general purpose
input. Figures 10 through 12 illustrate the Slave
sub-mode formats.
16DS83F2
CS4216
DATA
SSYNC
DATA
SSYNC
DATA
FRAME n
128 SCLK Periods
Sub-frame 1Sub-frame 2
Word AWord BWord AWord B
FRAME n
FRAME (n+1)
64 SCLK Periods
Sub-frame 1
Word AWord B
FRAME n
64 SCLK Periods
Sub-frame 1
Word AWord B
Sub-frame 1
Word AWord B
FRAME (n+1)
Sub-frame 1
Word AWord B
FRAME (n+2)
Sub-frame 1
Word AWord B
FRAME (n+2)
Sub-frame 1
Word AWord B
FRAME (n+2)
Sub-frame 1
Word AWord B
Sub-frame 2
Word AWord B
FRAME (n+3)
Sub-frame 1
Word AWord B
FRAME (n+3)
Sub-frame 1
Word AWord B
FRAME (n+3)
Sub-frame 1
Word AWord B
FRAME (n+4)
Sub-frame 1
Word AWord B
FRAME (n+4)
Sub-frame 1
Word AWord B
MF8:MF7: Sub-
SFS2SFS1 frame
110
1
1
2
MF8:MF7: Sub-
SFS2SFS1 frame
00
1
MF8:MF7: Sub-
SFS2SFS1 frame
01
1
SSYNC
SCLK
SDIN
SDOUT
SSYNC
(MF7:SFS1=0)
SSYNC
(MF7:SFS1=1)
MSB
Figure 8. SM3, Master Sub-Mode.
MSB
LSB
Word A
32 CLOCKS
LSB
Word B
32 CLOCKS
Figure 9. Detailed Master Sub-Mode, 64 BPF.
DS83F217
CS4216
Bits per Frame (Slave Sub-Mode)
In Slave sub-mode, MF1:F1 and MF2:F2 select
the number of bits per frame which determines
how many CS4216’s can occupy one serial port.
Table 4 lists the decoding for MF1:F1 and
MF2:F2.
When set for 64 SCLKs per frame, one device
occupies the entire frame; therefore, a sub-frame
is equivalent to a frame. MF7:SFS1 and
MF8:SFS2 must be set to zero. See Figure 10.
When set for 128 SCLKs per frame, two devices
can occupy the serial port, with MF7:SFS1 selecting the particular sub-frame. MF8:SFS2 must
be set to zero. See Figure 11.
When set for 256 SCLKs per frame (MF1:F1,
MF2:F2 = 10), four devices can occupy the serial port. In this format both MF8:SFS2 and
MF7:SFS1 are used to select the particular subframe. See Figure 12.
In all three of the above Slave sub-mode formats, the frequency of the incoming SCLK
signal, in relation to the master clock provided
on the CLKIN pin, determines the sample frequency. The CS4216 determines the ratio of
SCLK to CLKIN and sets the internal operating
frequency accordingly. Table 5 lists the SCLK to
CLKIN frequency ratio used to determine the
codec’s sample frequency. To obtain a given
sample frequency, SCLK must equal CLKIN divided by the number in the table, based on the
number of bits per frame. As an example, assuming 64 BPF (bits per frame) and
CLKIN = 12.288 MHz, if a sample frequency of
24 kHz is desired, SCLK must equal CLKIN divided by 8 or 1.536 MHz.
When MF1:F1 = MF2:F2 = 1, SCLK is used as
the master clock and is assumed to be 256 times
the sample frequency. In this mode, CLKIN is
ignored and the sample frequency is linearly
scaled with SCLK. (The CLKIN pin must be
tied low.) This mode also fixes SCLK at 256 bits
per frame with MF7:SFS1 and MF8:SFS2 selecting the particular sub-frame.
MF1:MF2:Bits perSample Frequency/
F1F2Fr ameSCLK
0064ratio to CLKIN sensed
01128ratio to CLKIN sensed
10256ratio to CLKIN sensed
11256fixed†. = 256×Fs