l Sample rates up to 100 kHz
l Pop-free Digital Output Volume Controls
- 90.5 dB range, 0.5 dB resolution (182 levels)
- Variable smooth ramp rate, 0.125 dB steps
l Mute Control pin for off-chip muting circuits
l On-chip Anti-alias and Output Filters
l De-emphasis filters for 32, 44.1 and 48 kHz
I
SCL/CCLKSDA/CDINVD
Description
The CS4228 codec provides two analo g-to-digital and
six digital-to-analog delta- sigma converters, along with
volume controls, in a c ompact +5/+3.3 V, 28-pin SSOP
device. Combined with an IEC958 (SPDIF) receiver (like
the CS8414) and surround sound decoder (such as one
of the CS492x or CS493xx families), it is ideal for use in
DVD player, A/V recei ver and car audio systems supporting multiple s tandards such as Dolby Digital A C-3,
AAC, DTS, Dolby ProLogic, THX, and MPEG.
A flexible seri al audio interface allows operation in Left
Justified, Right Justified, I
ORDERING INFORMATION
CS4228-KS-10° to +70° C 28-pin SSOP
CDB4228Evaluation Board
For a complete listing of Direct Sales, Distributor, and Sales Representative contacts, visit the Cirrus Logic web site at:
http://www.cirrus.com/corporate/contacts/
Dolby, Pro Logic, and AC-3 are trademarks of Dolby Laboratories Licensing Corporation.
Preliminary product info rmation describes products which are in production, but for which full characteriza t i on da t a is not yet available. Advance produ ct i nfor-
mation describes products which are in development and subject to development changes. Cirrus Logic, Inc. has made best efforts to ensure that the information
contained in this document is accurate and reli able. However , the i nformati on is sub ject to change with out no tice and i s provi ded “AS IS” withou t warranty of
any kind (express or implied). No responsibility is assumed by Cirrus Logic, Inc. for the use of this information, nor for infringements of patents or other rights
of third parties. This document i s the propert y of Cirru s Logic, Inc. and implie s no licen se under patent s, copyri ghts, trademarks, or tr ade secrets. No part of
this publication may be copied, reproduced , stored in a retrieval system, or transmitted, in any form or by any means (electronic, mechanical, photographic, or
otherwise) without the pri or wri tt en consen t of Ci rrus Logic, Inc. Items from any Cirrus Logi c websi te or disk may be printed for use by the user. However, no
part of the printout or electronic files may be copied, reproduced, stored in a retrieval system, or transmitted, in any form or by any means (electronic, mechanical,
photographic, or otherwise) without the prior written consent of Cirrus Logic, Inc.Furthermore, no part of this publication may be used as a basis for manufacture
or sale of any items without the prior written consent of Cirrus Logic, Inc. The names of products of Cirrus Logic, Inc. or other vendors and suppliers appearing
in this document may be trademarks or service marks of their respective owners which may be registered in some jurisdictions. A list of Cirrus Logic, Inc. trademarks and service marks can be found at http://www.cirrus.com.
2DS307PP1
LIST OF FIGURES
Figure 1. Serial Audio Port Master Mode Timing ...................................................... 7
Figure 2. Serial Audio Port Slave Mode Timing ........................................................ 7
Figure 3. SPI Control Port Timing ............................................................................. 8
Figure 6. Optional Line Input Buffer ........................................................................ 12
Figure 7. Passive Output Filter with Mute ............................................................... 13
Figure 8. Butterworth Output Filter with Mute .......................................................... 13
Figure 9. Right Justified Serial Audio Formats ........................................................ 15
Figure 10.I
Figure 11.Left Justified Serial Audio Formats .......................................................... 15
Figure 12.One Line Data Serial Audio Format ......................................................... 16
Figure 13.Control Port Timing, SPI mode ................................................................ 17
Figure 14.Control Port Timing, I
2
2
C Control Port Timing .............................................................................. 9
S Serial Audio Formats .......................................................................... 15
2
C Mode ................................................................. 17
CS4228
DS307PP13
CHARACTERISTICS AND SPECIFICATIONS
CS4228
ANALOG CHARACTERISTICS (Unless otherwise specified T
Full Scale Input Sine wave, 1kHz; Fs = 44.1 kHz BRM, 96 kHz HRM; Measurement Bandwidth is 20 Hz to 20 kHz;
Local components as shown in "Recommended Connection Diagram"; SPI control mode, Left Justified serial format, MCLK = 256 Fs BRM, 128 Fs HRM, SCLK = 64 Fs)
Base Rate ModeHigh Rate Mode
ParameterSymbolMinTypMaxMinTypMaxUnits
Analog Input Characteristics
ADC ResolutionStereo Audio channels
Total Harmonic Distortion
Dynamic Range(A weighted)
Total Harmonic Distortion + Noise -1dB (Note 1)
Interchannel Isolation
Interchannel Gain Mismatch
Offset Error (with high pass filter)
Full Scale Input Voltage (Differential):
Gain Drift
Input Resistance
Input Capacitance
Passband (Note 2)
Passband Ripple
Stopband(Note 2)
Stopband Attenuation(Note 3)
Group Delay(Note 4)
Group Delay Variation vs. Frequency
t
gd
∆
t
0.02-20.00.02-40kHz
--0.01--0.05dB
27.56-5617 66.53-5578kHz
80--45--dB
-15/Fs--15/Fs-s
gd
--0--0µs
High Pass Filter Characteristics
-
Frequency Response: -3 dB(Note 2)
-0.13 dB
Phase Deviation @ 20 Hz
(Note 2)
Passband Ripple
3.4
-
20
-10- -10-Degree
--0--0dB
-
-
-
3.4
-
20
-
-
Hz
Hz
Notes: 1. Referenced to typical full-scale differential input voltage (2 Vrms).
2. Filter characteristics scale with output sample rate.
3. The analog modulator samples the input at 5.6448 MHz for an output sample rate of 44.1 kHz. There is
no rejection of input signals which are multiples of the sampling frequency (n × 5.6448 MHz ±20.0 kHz
where n = 0,1,2,3...).
4. Group delay for Fs = 44.1 kHz, t
Specifications are subject to change without notice
4DS307PP1
= 15/44.1 kHz = 340µs. Fs = sample rate.
gd
ANALOG CHARACTERISTICS (Continued)
ParameterSymbolMinTypMaxMinTypMaxUnits
Analog Output Characteristics
DAC Resolution
Signal-to-Noise/Idle Channel Noise
(DAC muted, A weighted)
Dynamic Range(DAC not muted, A weighted)
(DAC not muted, unweighted)
Total Harmonic Distortion
Total Harmonic Distortion + Noise
Interchannel Isolation
Interchannel Gain Mismatch
Attenuation Step Size(All Outputs)
Programmable Output Attenuation Span
Offset Voltage
Full Scale Output Voltage
Gain Drift
Analog Output Load
Minimum Load Resistance:
Maximum Load Capacitance:
Combined Digital and Analog Filter Characteristics
Frequency Response10 Hz to 20 kHz
Deviation from Linear Phase
Passband: to 0.01 dB corner(Notes 5, 6)
Passband Ripple(Note 6)
Stopband(Notes 5, 6)
Stopband Attenuation(Notes 4, 7)
Group Delay (Fs = Input Word Rate)
Analog Loopback Performance
Signal-to-noise Ratio
(CCIR-2K weighted, -20 dB FS input)
Notes: 5. The passband and stopband edges scale with frequency. For input word rates, Fs, other than 44.1 kHz,
the 0.01 dB passband edge is 0.4535×Fs and the stopband edge is 0.5465×Fs.
6. Digital filter characteristics.
7. Measurement bandwidth i s 10 Hz to 3 Fs.
Specifications are subject to change without notice
DS307PP15
ANALOG CHARACTERISTICS (Continued)
CS4228
Power Supply
SymbolMinTy pMaxMinTypMaxUnits
Power Supply CurrentOperating
25
VA = 5V, VD = VL = 3.3VVA
VL
VD
-
-
-
2
42
Power Down
TBD
-
-
-
2
0.1
-50-50dB
Power Supply R eje ct i on(1 kH z, 10 mV
VA
VL
VD
rms
)
DIGITAL CHARACTERISTICS Unless otherwise specified (T
VA =+ 5V)
ParameterSymbolMinTypMaxUnits
High-level Input Voltage
Low-level Input Voltage
High-level Output Voltage at I
Low-level Output Voltage at I
= -2.0 mA
0
= 2.0 mA
0
Input Leakage Current (Digital Inputs)
Output Leakage Current (High-Impedance Digital Outp uts)
V
IH
V
IL
V
OH
V
OL
TBD
TBD
TBD
TBD
TBD
TBD
= 25 °C; VD = VL = +3.3V;
A
TBD
-
-
-
-
-
2
48
TBD
2
0.1
TBD
TBD
TBD
TBD
TBD
25
0.7xVL--V
-0.3xVLV
VL - 1.0--V
--0.4V
--10µA
--10µA
mA
mA
mA
mA
mA
mA
SWITCHING CHARACTERISTICS (T
= 25°C; VD = VL = +3.3V, VA = +5V, outputs loaded with
A
30 pF)
ParameterSymbolMinTypMaxUnits
Audio ADC's & DAC's Sample RateBRM
HRM
MCLK Frequency
MCLK Duty CycleBRM
MCLK =128, 384 Fs
MCLK = 256, 512 Fs
HRM
MCLK = 64, 192 Fs
MCLK = 128, 256 Fs
MCLK Jitter Tolerance
Fs30
60
3.84-25.6MHz
TBD
40
TBD
40
-
-
50
50
-
50
100
TBD
60
TBD
60
kHz
kHz
%
%
%
%
-500-ps
6DS307PP1
SWITCHING CHARACTERISTICS (Continued)
Figure 1. Serial Audio Port Master Mode Timing
ParameterSymbolTypMaxUnits
RST
Low Time(Note 8)
SCLK Falling Edge to SDOUT Output Valid(DSCK=0)
LRCK Edge to MSB Valid
SDIN Setup Time Before SCLK Rising Edge
SDIN Hold Time After SCLK Rising Edge
Master Mode
SCLK Falling to LRCK Edge
SCLK Duty Cycle
Slave Mode
SCLK Period
SCLK High Time
SCLK Low Time
SCLK rising to LRCK Edge(DSCK=0)
LRCK Edge to SCLK Rising(DSCK=0)
t
dpd
t
lrpd
t
t
t
mslr
t
sckw
t
sckh
t
sckl
t
lrckd
t
lrcks
ds
dh
CS4228
1- -ms
-TBDns
-TBDns
-TBDns
-TBDns
+10-ns
50-%
--ns
TBD--ns
TBD--ns
TBD--ns
TBD--ns
Notes: 8. After powering up the CS4228, RST
SCLK*
(output)
t
mslr
LRCK
(output)
SDOUT
should be held low until the power supplies and clocks are settled.
LRCK
(input)
SCLK*
(input)
SDIN1
SDIN2
SDIN3
SDOUT
*SCLK shown for DSCK = 0.
SCLK inverted for DSCK = 1.
t
lrckd
t
lrpd
t
lrcks
t
sckh
t
t
ds
dh
MSB
t
sckw
t
sckl
t
dpd
MSB-1
Figure 2. Serial Audio Port Slave Mo de Timing
DS307PP17
CS4228
SWITCHING CHARACTERISTICS - CONTROL PORT (TA = 25°C, VD = VL = +3.3V,
VA = +5V; Inputs: logic 0 = DGND, logic 1 = VL+, C
ParameterSymbolMinMaxUnits
SPI Mode
(SDOUT > 47kΩ to GND)
CCLK Clock Frequency
High Time Between Transmissions
CS
CS
Falling to CCLK Edge
CCLK Low Time
CCLK High Time
CDIN to CCLK Rising Setup Time
CCLK Rising to DATA Hold Time (Note 9)
Rise Time of CCLK and CDIN (Note 10)
Fall Time of CCLK and CDIN (Note 10)
Notes: 9. Data must be held for sufficient time to bridge the transition time of CCLK.
10. For F
SCK
< 1 MHz
= 30 pF)
L
f
t
t
t
t
sck
csh
css
t
scl
sch
dsu
t
dh
t
t
-6MHz
1.0
20ns
66ns
66ns
40ns
15ns
r2
f2
100ns
100ns
µ
s
CS
CCLK
CDIN
t
css
t
r2
t
t
scl
t
t
f2
dsu
sch
t
dh
Figure 3. SPI Control Port Timing
t
csh
8DS307PP1
CS4228
SWITCHING CHARACTERISTICS - CONTROL PORT (T
VA = +5V; Inputs: logic 0 = DGND, logic 1 = VL, C
ParameterSymbolMinMaxUnits
I2C® Mode
(SDOUT < 47kΩ to ground) (Note 11)
SCL Clock Frequency
Bus Free Time Between Transmissions
Start Condition Hold Time (prior to first clock pulse)
Clock Low Time
Clock High Time
Setup Time for Repeated Start Condition
SDA Hold Time from SCL Falling (Note 12)
SDA Setup Time to SCL Rising
Rise Time of Both SDA and SCL Lines
Fall Time of Both SDA and SCL Lines
Setup Time for Stop Condition
Notes: 11. Use of the I
2
C bus interface requires a license from Philips. I2C is a registered trademark of Philips
Semiconductors.
12. Data must be held for sufficient time to bridge the 300 ns transition time of SCL.
= 30 pF)
L
f
t
buf
t
hdst
t
low
t
high
t
sust
t
hdd
t
sud
t
susp
scl
t
t
r
f
= 25°C; VD = VL = +3.3V,
A
-100kHz
4.7
4.0
4.7
4.0
4.7
0
µ
s
µ
s
µ
s
µ
s
µ
s
µ
s
250ns
1
µ
s
300ns
4.7
µ
s
SDA
SCL
StopStart
t
buf
t
hdst
t
low
Repeated
Start
t
high
t
hdd
t
sud
t
sust
Figure 4. I2C Control Port Timing
t
hdst
Stop
t
f
t
r
t
susp
DS307PP19
CS4228
ABSOLUTE MAXIMUM RATINGS (AGND, DGND = 0 V, all voltages with respect to 0 V.)
ParameterSymbolMinTypMaxUnits
Power Supplies Digital
Analog
Interface
Input Current (Note 13)
Analog Input Voltage (Note 14)
Digital Input Voltage (Note 14)
Ambient Temperature (Power Applied)
Storage Temperature
Notes: 13. Any pin except supplies. Transient currents of up to ±100 mA on the analog input pins will not cause
SCR latch-up.
14. The maximum over or under voltage is limited by the input current.
Warning:Operation at or beyond these limits may result in permanent damage to the device. Normal operation
is not guaranteed at these extremes.
VD
VA
VL
-0.3
-0.3
-0.3
--±10mA
-0.7-VA + 0.7V
-0.7-VL + 0.7V
-55-+125°C
-65-+150°C
-
-
-
6.0
6.0
6.0
V
V
V
RECOMMENDED OPERATING CONDITIONS (AGND, DGND = 0 V, all voltages with respect
to 0 V.)
ParameterSymbolMinTypMaxUnits
Power Supplies Digital
Analog
Interface
Operating Ambient Temperature
VD
VA
VL
T
A
TBD
4.75
2.7
-102570°C
3.3
5.0
5.0
TBD
5.25
5.25
V
V
V
10DS307PP1
TYPICAL CONNECTION DIAGRAM
CS4228
From Analog Input Stage
+5V
Supply
22 µF
22 µF
150
+
100 µF
150
+
100 µF
1 µF0.1 µF
+
Ω
2.2 nf
+
Ω
2.2 nf
+
10 µF
0.1µF
0.1µF
+
VL
19
20
17
16
18
21
VA VD
AINL-
AINL+
AINR-
AINR+
FILT
1
+
µ
F0.1 µF
CS4228
Ferrite BeadFerrite Bead
+3.3V
Supply
VL
+
98
VL
AOUT1
AOUT2
AOUT3
AOUT4
AOUT5
AOUT6
MUTEC
1 µF
23
24
25
26
27
28
15
Ferrite Bead
0.1 µF
ANALOG
FILTER
ANALOG
FILTER
ANALOG
FILTER
ANALOG
FILTER
ANALOG
FILTER
ANALOG
FILTER
+3.3V or 5 V
Supply
2.2 K*
Microcontroller
All unused inputs
should be tied to 0V.
SDA/CDIN
12
SCL/CCLK
11
AD0/CS
13
RST
14
AGNDDGND
22
7
LRCK
SDIN1
SDIN2
SDIN3
SDOUT
MCLK
10
Figure 5. Recommended Connection Diagram
SCLK
50
6
50
5
3
2
1
4
50
External
Clock Input
Ω
Ω
Digital Audio
Peripheral
or
DSP
Ω
33 K*
* Required for I C
control port mode
only
2
DS307PP111
CS4228
FUNCTIONAL DESCRIPTION
Overview
The CS4228 is a 24-bit audio codec comprised of 2
analog-to-digital converters (ADC) and 6 digitalto-analog converters (DAC), all implemented using single-bit delta-sigma techniques. Other functions integrated with the codec include independent
digital volume controls for each DAC, digital DAC
de-emphasis filters, ADC high-pass filters, an onchip voltage reference, and a flexible serial audio
interface. All functions are configured through a
serial control port operable in SPI and I2C compatible modes. Figure 5 shows the recommended connections for the CS4228.
Analog Inputs
Line Level Inputs
AINR+, AINR-, AINL+, and AINL- are the line
level analog inputs (See Figure 5). These pins are
internally biased to a DC operating voltage of approximately 2.3 VDC. AC coupling the inputs preserves this bias and minimizes signal distortion.
Figure 5 shows operation with a single-ended input
source. This source may be supplied to either the
positive or negative input as long as the unused input is connected to ground through capacitors as
shown. When operated with single-ended inputs,
distortion will increase at input levels higher than
-1 dBFS. Figure 6 shows an example of a differential input circuit.
Muting of the stereo ADC is possible through the
ADC Control Byte.
4.7 k
10 µF
10 k
~ 8.5 k
-
+
10 k
10 k
+
-
+
0.1µF
10 µf
signal
+
10 k
VA
Figure 6. Optional Line Input Buffer
150
150
AIN -
2.2 nf
AIN +
inputs. This helps to prevent audible "clicks" when
switching the audio in devices downstream from
the ADCs. The high pass filter response, given in
“High Pass Filter Characteristics” on page 4, scales
linearly with sample rate. Thus, for High Rate
Mode, the -3 dB frequency at a 96 kHz sample rate
will be equal to 96/44.1 times that at a sample rate
of 44.1 kHz.
The high pass filters can be disabled by setting the
HPF bit in the ADC Control register. When asserted, any DC present at the analog inputs will be represented in the ADC outputs. The high pass filter
may also be “frozen” using the HPFZ bit in the
ADC Control register. In this condition, it will remember the DC offset present at the ADC inputs at
the moment the HPFZ bit was asserted, and will
continue to remove this DC level from the ADC
outputs. This is useful in cases where it is desirable
to eliminate a fixed DC offset while still maintaining full frequency response down to DC.
The ADC output data is in 2’s complement binary
format. For inputs above positive full scale or be-
Analog Outputs
Line Level Outputs
low negative full scale, the ADC will output
7FFFFFH or 800000H, respectively.
The CS4228 contains on-chip buffer amplifiers capable of producing line level outputs. These ampli-
High Pass Filter
Digital high pass filters in the signal path after the
ADCs remove any DC offsets present on the analog
fiers are biased to a quiescent DC level of
approximately 2.3 V. This bias, as well as varia tions in offset voltage, are removed using off-chip
AC load coupling.
12DS307PP1
CS4228
560
2SC2878
2.2 k
MUN2IIIT1
10 k
MUTEC
Line Out
MUTEDRV
10 k
+
22
µ
F
100 k
AOUT
Figure 7. Passive Output Filter with Mute
C=142µF
C
F
s
_
3.16k+
A
OUT
3.16k
MC33078
1nf
GND
1nf
10µf
+
MUTEDRV
LineOut
MUTE
56
7
100pf
3.16k
1.78k
+12
-12
_
3.16 k
+
A
OUT
3.16 k
MC33078
1nf
GND
1nf
10µf
+
MUTE DRV
Line
Out
MUTE
5
6
7
100 pf
3.16 k
1.78 k
+12
-12
Figure 8. Butterworth Output Filter with Mute
High frequency noise beyond the audio passband,
resulting from the delta-sigma conversion process
produces high frequency noise beyond the audio
passband, most of which is removed by the on-chip
analog filters. The remaining out-of-band noise can
be attenuated using an off-chip low pass filter. For
most applications, a simple passive filter as show in
Figure 7 can be used. Note that this circuit also
serves to block the DC present at the outputs. Figure 8 gives an example of a filter which can be used
in applications where greater out of band attenuation is desired. The 2-pole Butterworth filter has a
-3 dB frequency of 50 kHz, a passband attenuation
of 0.1 dB at 20 kHz providing optimal out-of-band
filtering for sample rates from 44.1 kHz to 96 kHz.
The filter has and a gain of 1.56 providing a 2 Vrms
output signal.
Digital Volume Control
Each DAC’s output level is controlled via the Digital Volume Control register operating over the
range of 0 to 90.5 dB attenuation with 0.5 dB resolution. Volume control changes do not occur instantaneously. Instead they ramp in increments of
0.125 dB at a variable rate controlled by the
RMP1:0 bits in the Digital Volume Control register.
Each output can be independently muted via mute
control bits MUT6-1 in the DAC Mute1 Control
register. When asser ted, MUT attenu ates the cor responding DAC to its maximum value (90.5 dB).
When MUT is deasserted, the corresponding DAC
returns to the attenuation level set in the Digital
Volume Control register. The attenuation is
ramped up and down at the rate specified by the
RMP1:0 bits.
To achieve complete digital attenutation of an incoming signal, Hard Mute controls are provided.
When asserted, Hard Mute will send zero data to a
corresponding pair of DACs. Hard Mute is not
ramped, so it should only be asserted after setting
the two corresponding MUT bits to prevent high
frequency noise from appearing on the DAC outputs. Hard Mute is controlled by the
HMUTE56/34/12 bits in the DAC Mute2 Control
register.
DS307PP113
Mute Control
The Mute Control pin is typically connected to an
external mute control circuit as shown in Figure 7
and Figure 8. Mute Control is asserted during power up, power down, and when serial port clock errors are present. The pin can also be controlled by
the user via the control port, or automatically asserted when zero data is present on all six DAC inputs. To prevent large transients on the output, it is
desirable to mute the DAC outputs before the Mute
Control pin is asserted. Please see the MUTEC pin
in the Pin Descriptions section for more information.
CS4228
Clock Generation
The master clock, MCLK, is supplied to the
CS4228 from an external clock source. If MCLK
stops for 10µs, the CS4228 will enter Power Down
Mode in which the supply current is reduced as
specified under “Power Supply” on page 6. In all
modes it is required that the number of MCLK periods per SCLK and LRCK period be constant.
Clock Source
The CS4228 internal logic requires an external
master clock, MCLK, that operates at multiples of
the sample rate frequency, Fs. The MCLK/Fs ratio
is determined by the CI1:0 bits in the CODEC
Clock Mode register.
Synchronization
The serial port is internally synchronized with
MCLK. If from one LRCK cycle to the next, the
number of MCLK cycles per LRCK cycle changes
by more than 32, the CS4228 will undergo an internal reset of its data paths in an attempt to resynchronize. Consequently, it is advisable to mute the
DACs when changing from one clock source to another to avoid the output of undesirable audio signals as the device resynchronizes.
Digital Interfaces
Serial Audio Interface Signals
The Left/Right clock (LRCK) is used to indicate
left and right data frames and the start of a new
sample period. It may be an output of the CS4228
(master mode), or it may be generated by an external source (slave mode). The frequency of LRCK is
the same as the system sample rate, Fs.
SDIN1, SDIN2, and SDIN3 are the data input pins.
SDOUT, the data output pin, carries data from the
two 24-bit ADC's. The serial audio port may also
be operated in One Line Data Mode in which all 6
channels of DAC data is input on SDIN1 and the
stereo ADC data is output on SDOUT. Table 1 outlines the serial port input to DAC channel allocations.
DAC Inputs
SDIN1left channel
right channel
single line
SDIN2left channel
right channel
SDIN3left channel
right channel
Table 1. Serial Audio Port Input Channel Allocations
DAC #1
DAC #2
All 6 DAC channels
DAC #3
DAC #4
DAC #5
DAC #6
Serial Audio Interface Formats
The digital audio port supports 6 formats, shown in
Figures 9, 10, 11 and 12. These formats are selected
using the DDF2:0 bits in the Serial Port Mode register.
The serial audio data is presented in 2's complement binary form with the MSB first in all formats.
The serial interface clock, SCLK, is used for both
transmitting and receiving audio data. SCLK can
In One Line Data Mode, all 6 DAC channels are input on SDIN1. One Line Data Mode is only available in BRM. See Figure 12 for channel
allocations.
be generated by the CS4228 (master mode) or it
can be input from an external source (slave mode).
Mode selection is made with the DMS1:0 bits in
the Serial Port Mode register. The number of
SCLK cycles in one sample period can be set using
the DCK1:0 bits as detailed in the Serial Port Mode
register.
Control Port Signals
Internal registers are accessed through the control
port. The control port may be operated asynchro-
nously with respect to audio sample rate. However,
to avoid potential interference problems, the con-
trol port pins should remain static if no register ac-
cess is required.
14DS307PP1
CS4228
LRCK
SCLK
SDIN1/2/3
SDOUT
LRCK
SCLK
SDIN1/2/3
SDOUT
MSB
-1 -2 -3 -4 -5
Left Channel
15 14 13 12 11 10
6543210987
15 14 13 12 11 10
Right Channel
Right Justified Mode, Data Valid on Rising Edge of SCLK
Bits/SampleSCLK Rate(s)Notes
1632, 48, 64, 128 Fs48 Fs Slave only
2048, 64, 128 Fs48 Fs Slave only
2448, 64, 128 Fs48 Fs Slave only
Figure 9. Right Justified Serial Audio Formats
Left Channel
+3 +2 +1
+5 +4
LSB
MSB
-1 -2 -3 -4
Right Channel
+5 +4
+3 +2 +1
6543210987
LSB
LRCK
SCLK
SDIN1/2/3
SDOUT
Left Justified Mode, Data Valid on Rising Edge of SCLK
Bits/SampleSCLK Rate(s)Notes
1632, 48, 64, 128 Fs48 Fs Slave only
18 to 2448, 64, 128 Fs48 Fs Slave only
Figure 10. Left Justified Serial Audio Formats
Left Chan nel
+3 +2 +1
MSB
-1 -2 -3 -4 -5
+5 +4
LSB
MSB
-1 -2 -3 -4
I2S Mode, Data Valid on Rising Edge of SCLK
Bits/SampleSCLK Rate(s)Notes
1632, 48, 64, 128 Fs48 Fs Slave only
18 to 2448, 64, 128 Fs48 Fs Slave only
Right Chann el
+3 +2 +1
+5 +4
LSB
Figure 11. I2S Serial Audio Formats
DS307PP115
64 clks64 clks
CS4228
LRCK
SCLK
SDIN1/2/3
SDOUT
LSBMSB
DAC1DAC3DAC5DAC2DAC4DAC6
20 clks
ADCLADCR
20 clks
One Line Data Mode, Data Valid on Rising Edge of SCLK
Bits/SampleSCLK Rate(s)Notes
20128 Fs6 inputs, 2 outputs, BRM only
Left ChannelRight Channel
LSBMSBLSBMSBLSBMSBLSBMSBLSBMSBMSB
20 clks
Figure 12. One Line Data Serial Audio Format
20 clks20 clks
The control port has 2 operating modes: SPI and
I2C compatible. In both modes the CS4228 operates as a slave device. Mode selection is determined by the state of the SDOUT pin when RST
transitions from low to high: high for SPI, low for
I2C. SDOUT is internally pulled high to VL. A resistive load from SDOUT to DGND of less than 47
kΩwill enable I2C Mode after a reset.
SPI Mode
In SPI mode, CS is the CS4228 chip select signal,
CCLK is the control port bit clock input, and CDIN
is the input data line. There is no data output line,
therefore all registers are write-only in SPI mode.
Data is clocked in on the rising edge of CCLK.
Figure 13 shows the operation of the control port in
SPI mode. The first 7 bits on CDIN, after CS goes
low, form the chip address (0010000). The eighth
bit is a read/write indicator (R /W), which should be
low to write. The next 8 bits set the Memory Address Pointer (MAP) which is the address of the
register that is to be written. The following bytes
contain the data which will be placed into the registers designated by the MAP.
20 clks20 clks
20 clks
The CS4228 has a MAP auto increment capability,
enabled by the INCR bit in the MAP register. If
INCR is zero, then the MAP will stay constant for
successive reads or writes. If INCR is 1, then MAP
will increment after each byte is read or written, al-
lowing block reads or writes of successive regis-
ters.
I2C Mode
In I2C mode, SDA is a bidirectional data line. Data
is clocked into and out of the port by the SCL clock.
The signal timing is shown in Figure 14. The AD0
pin forms the LSB of the chip address. The upper 6
bits of the 7 bit address field must be 001000. To
communicate with a CS4228, the LSB of the chip
address field, which is the first byte sent to the
CS4228 after a Start condition, should match the
setting of the AD0 pin. The eighth bit of the address
bit is the R/W bit (high for a read, low for a write).
When writing, the next byte is the Memory Ad-
dress 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. Setting the auto increment bit in the
16DS307PP1
CS4228
MAP allows successive reads or writes of consecutive registers. Each byte is separated by an acknowledge bit.
Control Port Bit Definitions
All registers are read/w rite, exce pt the Ch ip Status
register which is read-only. For more detailed information, see the bit definition tables starting on
page 19.
Power-up/Reset/Power Down Mode
Upon power up, the user should hold RST = 0 until
the power supplies and clocks stabilize. In this
state, the control registers are reset to their default
settings, and the device remains in a low power
CS
mode in which the control port is inactive. The part
may be held in a low power reset state by clearing
the DIGPDN bit in the Chip Control register. In this
state, the digital portions of the CODEC are in reset, but the control port is active and the desired
register settings can be loaded. Normal operation is
achieved by setting the DIGPDN bit to 1, at which
time the CODEC powers up and normal operation
begins.
The CS4228 will enter a stand-by mode if the master clock source stops for approximately 10 µs or if
the number of MCLK cycles per LRCK period varies by more than 32. Should this occur, the control
registers retain their settings.
CCLK
CDIN
CHIP
ADDRESS
0010000
MAP = Memory Address Pointer
SDA
SCL
Start
Note 1: If operation is a write, this byte contains the Memory Address Pointer, MAP.
MAP
R/W
Figure 13. Control Port Timing, SPI mode
001000
AD
MSB
byte 1
0
DATA
LSB
byte n
R/W
ACKACKACK
CHIP
ADDRESS
0010000
D7:0
R/W
Note 1
D7:0
Stop
Figure 14. Control Port Timing, I2C Mode
DS307PP117
CS4228
The CS4228 will mute the analog outputs, assert
the MUTEC pin and enter the Power Down Mode
if the supply drops below approximately 4 volts.
Power Supply, Layout, and Grounding
The CS4228 requires careful attention to power
supply and grounding details. VA is normally supplied from the system analog supply. VD is from a
3.3VDC supply, and VL should be from the supply
used for the devices digitally interfacing with the
CS4228. The power up sequence of these three
supply pins is not important.
AGND and DGND pins should both be tied to a
solid ground plane surrounding the CS4228. If the
system analog and digital ground planes are separate, they should be connected at a point near where
the supply currents enter the board. A solid ground
plane underneath the part is recommended.
Decoupling capacitors should be mounted in such a
way as to minimize the circuit p ath length from the
CS4228 supply pin, through the capacitor, to the
applicable CS4228 AGND or DGND pin. The
small value ceramic capacitors should be closest to
the part. In some cases, ferrite beads in the VL, VD
and VA supply lines, and low-value resistances
(~ 50 Ω) in series with the LRCK, SCLK, and SD-
OUT lines can help reduce coupling of digital sig-
nals into the analog.
The capacitor on the FILT pin should be as close to
the CS4228 as possible. See Crystal’s layout Appli-
cations Note, and the CDB4228 evaluation board
data sheet for recommended layout of the decou-
pling components.
18DS307PP1
CS4228
REGISTER DESCRIPTION
All registers are read/write except for Chip Status, which is read only. See the following bit definition tables for bit
assignment information. The default bit state after power-up sequence or reset is listed underneath the bit definition
for that field. Default values are also marked with an asterick.
Memory Address Poin ter (MAP) - not a register
76543210
INCRRESERVEDMAP4MAP3MAP2MAP1MAP0
10000001
INCRmemory address pointer auto increment control
0 -MAP is not incremented automatically.
*1 -internal MAP is automatically incremented after each read or write.
MAP4:0Memory address pointer (MAP). Sets the register address that will be read or written by the con-
trol port.
CODEC Clock Mode
Address 0x01
76543210
HRMRESERVEDCI1CI0RESERVED
00000100
HRMSets the sample rate mode for the ADCs and DACs
*0 -Base Rate Mode (BRM) supports sample rates up to 50kHz
1 -High Rate Mode (HRM) supports sample rates up to 100 kHz. Typically used for
96 kHz sample rate.
CI1:0Specifies the ratio of MCLK to the sample rate of the ADCs and DACs (Fs)
Power down the digital portions of the CODEC
0 -Digital power down.
*1 -Normal operation
*0 -Normal
1 -ADC power down.
*0 -Normal
1 -Power down DAC 1&2.
*0 -Normal
1 -Power down DAC 3&4.
*0 -Normal
1 -Power down DAC 5&6.
ADC Control
Address 0x03
76543210
MUTLMUTRHPFHPFZRESERVED
00000000
MUTL, MUTRADC left and right channel mute control
*0 -Normal
1 -Selected ADC output muted
HPFADC DC offset removal. See “High Pass Filter” on page 12 for more information
*0 -Enabled
1 -Disabled
HPFZADC DC offset averaging freeze. See “High Pass Filter” on page 12 for more information
*0 -Normal. The DC offset average is dynamically calculated and subtracted from incoming
ADC data.
1 -Freeze. The DC offset average is frozen at the current value and subtracted from
incoming ADC data. Allows passthru of DC information.
20DS307PP1
CS4228
DAC Mute1 Control
Address 0x04
76543210
MUT6MUT5MUT4MUT3MUT2MUT1RMP1RMP0
11111100
MUT6 - MUT1Mute control for DAC6 - DAC1 respectively. When asserted, the corresponding DAC is digitally
attenuated to its maximum value (90.5 dB). When deasserted, the corresponding DAC attenutation value returns to the value stored in the corresponding Digital Volume Control register. The
attenuation value is ramped up and down at the rate specified by RMP1:0.
0 -Normal output level
*1 -Selected DAC output fully attenuated.
RMP1:0Attenuation ramp rate.
*0 -0.5dB change per 4 LRCKs
1 -0.5dB change per 8 LRCKs
2 -0.5dB change per 16 LRCKs
3 -0.5dB change per 32 LRCKs
DAC Mute2 Control
Address 0x05
76543210
MUTECMUTCZRESERVEDHMUTE56HMUTE34HMUTE12RESERVED
00000000
MUTECControls the MUTEC
*0 -Normal operation
1 -MUTEC
MUTCZAutomatically asserts the MUTEC
zeros on all six DAC inputs will cause the MUTEC
value on any DAC input will cause the MUTEC
*0 -Disabled
1 -Enabled
HMUTE56/34/12Hard mute the corresponding DAC pair. When asserted, zero data is sent to the corresponding
DAC pair causing an instantaneous mute. To prevent high frequency transients on the outputs,
a DAC pair should be fully attenuated by asserting the corresponding MUT6-MUT1 bits in the
DAC Mute Control register or by writing 0xFF to the corresponding Digital Volume Control registers before asserting HMUTE.
*0 -Normal operation
1 -DAC pair is muted
pin
pin asserted low
pin on consecutive zeros. When enabled, 512 consecutive
pin to be asserted low. A single non-zero
pin to deassert.
DS307PP121
CS4228
DAC De-emphasis Control
Address 0x06
76543210
DEMS1DEMS0DEM6DEM5DEM4DEM3DEM2DEM1
10000000
DEMS1:0Selects the DAC de-emphasis response curve.
0 -Reserved
1 -De-emphasis for 48 kHz
*2 -De-emphasis for 44.1 kHz
3 -De-emphasis for 32 kHz
DEM6 - DEM1De-emphasis control for DAC6 - DAC1 respectively
*0 -De-emphasis off
1 -De-emphasis on
Digital Volume Control
Addresses 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C
76543210
VOLn
00000000
VOL6 - VOL1Address 0x0C - 0x07 sets the attenuation level for DAC 6 - DAC1 respectively. The attenutation
level is ramped up and down at the rate specified by RMP1:0 in the DAC Volume Control Setup
register.
0 - 181 represents 0 to 90.5 dB of attenuation in 0.5 dB steps.
22DS307PP1
CS4228
Serial Port Mode
Address 0x0D
76543210
DCK1DCK0DMS1DMS0RESERVEDDDF2DDF1DFF0
10000100
DCK1:0Sets the number of Serial Clocks (SCLK) per Fs period (LRCLK)
S compatible, maximum 24-bit
5 -One-line Data Mode, available in BRM only
6 -Reserved
7 -Reserved
Chip Status
Address 0x0E
76543210
CLKERRADCOVLRESERVED
XX000000
CLKERRClocking system status, read only
0 -No Error
1 -No MCLK is present, or a request for clock change is in progress
ADCOVLADC overflow bit, read only
0 -No overflow
1 -ADC overflow has occurred
DS307PP123
PIN DESCRIPTION
CS4228
Serial Audio Data In 3SDIN3AOUT6Analog Output 6
Serial Audio Data In 2SDIN2AOUT5Analog Output 5
Serial Audio Data In 1SDIN1AOUT4Analog Output 4
Serial Audio Data OutSDOUTAOUT3Analog Output 3
Serial ClockSCLKAOUT2Analog Output 2
Left/Right ClockLRCKAOUT1Analog Output 1
Digital GroundDGNDAGNDAnalog Ground
Digital PowerVDVAAnalog Power
Digital Interface PowerVLAINL+Left Channel Analog Input+
Master ClockMCLKAINL-Left Channel Analog Input-
SCL/CCLKSCL/CCLKFILTInternal Voltage Filter
SDA/CDINSDA/CDINAINR-Right Channel Analog Input-
AD0/CS
AD0/CSAINR+Right Channel Analog Input+
1
1
2
2
3
4
5
5
6
6
7
8
9
10
11
12
13
ResetRST
Serial Audio Data In - SDIN3, SDIN2, SDIN1
Pin 1, 2, 3, Input
28
27
26
25
24
23
22
21
20
19
18
17
16
1514
MUTECMute Control
Function:
Two’s complement MSB-first serial audio data is input on this pin. The data is clocked into SDIN1, SDIN2,
SDIN3 via the serial clock and the channel is determined by the Left/Right clock. The required relationship
between the Left/Right clock, serial clock and serial data is defined by the Serial Mode Register. The options are detailed in Figures 9, 10, 11 and 12.
Serial Audio Data Out - SDOUT
Pin 4, Output
Function:
Two’s complement MSB-first serial data is output on this pin. The data is clocked out of SDOUT via the
serial clock and the channel is determined by the Left/Right clock. The required relationship between the
Left/Right clock, serial clock and serial data is defined by the Serial Mode Register. The options are detailed in Figures 9, 10, 11 and 12.
The state of the SDOUT pin during reset is used to set the Control Port Mode (I2C or SPI). When RST
low, SDOUT is configured as an input, and the rising edge of RST
internal pull up is present such that a resistive load less than 47 kΩ will pull the pin low, and the control
port mode is I2C. When the resistive load on SDOUT is greater than 47 kΩ during reset, the control port
mode is SPI.
is
latches the state of the pin. A weak
24DS307PP1
Serial Clock — SCLK
Pin 5, Bidirectional
Function:
Clocks serial data into the SDIN1, SDIN2, and SDIN3 pins, and out of the SDOUT pin. The pin is an output
in master mode, and an input in slave mode.
In master mode, SCLK is configured as an output. MCLK is divided internally to generate SCLK at the
desired multiple of the sample rate.
In slave mode, SCLK is configured as an input. The serial clock can be provided externally, or the pin can
be grounded and the serial clock derived internally from MCLK.
The required relationship between the Left/Right clock, serial clock and serial audio data is defined by the
Serial Port Mode register. The options are detailed in Figures 9, 10, 11 and 12.
Left/Right Clock — LRCK
Pin 6, Bidirectional
Function:
The Left/Right clock determines which channel is currently being input or output on the serial audio data
output, SDOUT. The frequency of the Left/Right clock must be at the output sample rate, Fs. In Master
mode, LRCK is an output, in Slave Mode, LRCK is an input whose frequency must be equal to Fs and
synchronous to the Master clock.
Audio samples in Left/Right pairs represent simultaneously sampled analog inputs whereas Right/Left
pairs will exhibit a one sample period difference. The required relationship between the Left/Right clock,
serial clock and serial data is defined by the Serial Port Mode register. The options are detailed in Figures
9, 10, 11 and 12.
CS4228
Digital Ground - DGND
Pin 7, Inputs
Function:
Digital ground reference.
Digital Power - VD
Pin 8, Input
Function:
Digital power supply. Typically 3.3 VDC.
Digital Interface Power - VL
Pin 9, Input
Function:
Digital interface power supply. Typically 3.3 or 5.0 VDC. All digital output voltages and input thresholds
scale with VL.
DS307PP125
Master Clock - MCLK
Pin 10, Input
Function:
The master clock frequency must be either 128x, 256x, 384x or 512x the input sample rate in Base Rate
Mode (BRM) and either 64x, 128x, 192x, or 256x the input sample rate in High Rate Mode (HRM). Table
2 illustrates several standard audio sample rates and the required master clock frequencies. The
MCLK/Fs ration is set by the CI1:0 bits in the CODEC Clock Mode register
Clocks serial control data into or out of SDA/CDIN.
Serial Control Data I/O - SDA/CDIN
Pin 12, Bidirectional/Input
Function:
In I2C mode, SDA is a bidirectional control port data line. A pull up resistor must be provided for proper
open drain output operation. In SPI mode, CDIN is the control port data input line. The state of the SDOUT
pin during reset is used to set the control port mode.
Address Bit 0 / Chip Select - ADO/CS
Pin 13, Input
Function:
In I2C mode, AD0 is the LSB of the chip address. In SPI mode, CS is used as a enable for the control port
interface.
Reset - RST
Pin 14, Input
Function:
When low, the device enters a low power mode and all internal registers are reset to the default settings,
including the control port. The control port can not be accessed when reset is low.
When high, the control port and the CODEC become operational.
26DS307PP1
Mute Control - MUTEC
Pin 15, Output
Function:
The Mute Control pin goes low during the following conditions: power-up initialization, power-down, reset,
no master clock present, or if the master clock to left/right clock frequency ratio is incorrect. The Mute Control pin can also be user controlled by the MUTEC bit in the DAC Mute2 Control register. Mute Control can
be automatically asserted when 512 consecutive zeros are detected on all six DAC inputs, and automatically deasserted when a single non-zero value is sent to any of the six DACs. The mute on zero function
is controlled by the MUTCZ bit in the DAC Mute2 Control register. The MUTEC
as a control for an external mute circuit to achieve a very low noise floor during periods when no audio is
present on the DAC outputs, and to prevent the clicks and pops that can occur in any single supply system. Use of the Mute Control pin is not mandatory but recommended.
Differential Analog Inputs — AINR+, AINR- and AINL+, AINL-
Pins 16, 17 and 19, 20, Inputs
Function:
The analog signal inputs are presented deferentially to the modulators via the AINR+/- and AINL+/- pins.
The + and - input signals are 180° out of phase resulting in a nominal differential input voltage of twice the
input pin voltage. These pins are biased to the internal reference voltage of approximately 2.3 V. A passive anti-aliasing filter is required for best performance, as shown in Figure 5. The inputs can be driven at
-1dB FS single-ended if the unused input is connected to ground through a large value capacitor. A single
ended to differential converter circuit can also be used for slightly better performance.
CS4228
pin is intended to be used
Internal Voltage Filter - FILT
Pin 18, Output
Function:
Filter for internal circuits. An external capacitor is required from FILT to analog ground, as shown in Figure
5. FILT is not intended to supply external current. FILT+ has a typical source impedance of 250 kΩ and
any current drawn from this pin will alter device performance. Care should be taken during board layout
to keep dynamic signal traces away from this pin.
Analog Power - VA
Pin 21, Input
Function:
Power for the analog and reference circuits. Typically 5.0 VDC.
Analog Ground - AGND
Pin 22, Input
Function:
Analog ground refer ence.
Analog Output - AOUT1, AOUT2, AOUT3, AOUT4, AOUT5 and AOUT6
Pins 23, 24, 25, 26, 27, 28, Outputs
Function:
Analog outputs from the DACs. The full scale analog output level is specified in the Analog Characteristics
specifications table. The amplitude of the outputs is controlled by the Digital Volume Control registers
VOL6 - VOL1.
DS307PP127
PARAMETER DEFINITIONS
Dynamic Range
The ratio of the full scale RMS value of the signal to the RMS sum of all other spectral
components over the specified bandwidth. Dynamic range is a signal-to-noise measurement
over the specified bandwidth made with a -60 dbFs signal. 60 dB is then added to the resulting
measurement to refer the measurement to full scale. This technique ensures that the distortion
components are below the noise level and do not effect the measurement. This measurement
technique has been accepted by the Audio Engineering Society, AES17-1991, and the
Electronic Industries Association of Japan, EIAJ CP-307.
Total Harmonic Distortion + Noise
The ratio of the RMS value of the signal to the RMS sum of all other spectral components over
the specified bandwidth (typically 20 Hz to 20 kHz), including distortion components.
Expressed in decibels. ADCs are measured at -1dBFs as suggested in AES 17-1991 Annex A.
Idle Channel Noise / Signal-to-Noise-Ratio
The ratio of the RMS analog output level with 1 kHz full scale digital input to the RMS analog
output level with all zeros into the digital input. Measured A-weighted over a 10 Hz to 20 kHz
bandwidth. Units in decibels. This specification has been standardized by the Audio
Engineering Society, AES17-1991, and referred to as Idle Channel Noise. This specification has
also been standardized by the Electronic Industries Association of Japan, EIAJ CP-307, and
referred to as Signal-to-Noise-Ratio.
CS4228
Total Harmonic Distortion (THD)
THD is the ratio of the test signal amplitude to the RMS sum of all the in-band harmonics of
the test signal. Units in decibels.
Interchannel Isolation
A measure of crosstalk between channels. Measured for each channel at the converter’s output with
no signal to the input under test and a full-scale signal applied to the other channel. Units in decibels.
Frequency Response
A measure of the amplitude response variation from 20Hz to 20 kHz relative to the amplitude
response at 1 kHz. Units in decibels.
Interchannel Gain Mismatch
For the ADCs, the difference in input voltage that generates the full scale code for each
channel. For the DACs, the difference in output voltages for each channel with a full scale
digital input. Units are in decibels.
Gain Error
The deviation from the nominal full scale output for a full scale input.
Gain Drift
The change in gain value with temperature. Units in ppm/°C.
Offset Error
For the ADCs, the deviation in LSBs of the output from mid-scale with the selected input
grounded. For the DACs, the deviation of the output from zero (relative to CMOUT) with midscale input code. Units are in volts.
Notes: 1. “D” and “E1” are reference datums and do not included mold flash or protrusions, but do include mold
mismatch and are measured at the parting line, mold flash or protrusions shall not exceed 0.20 mm per
side.
2. Dimension “b” does not include dambar protrusion/intrusion. Allowable dambar protrusion shall be
0.13 mm total in excess of “b” dimension at maximum material condition. Dambar intrusion shall not
reduce dimension “b” by more than 0.07 mm at least material condition.
3. These dimensions apply to the flat section of the lead between 0.10 and 0.25 mm from lead tips.
DS307PP129
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.