The CS4223/4 is a highly integrated, high performance,
24-bit, audio codec providing stereo analog-to-digital and
stereo digital-to-analog converters using delta-sigma
conversion techniques. The device operates from a single +5 V power supply, and features low power
consumption. Selectable de-emphasis filter for 32, 44.1,
and 48 kHz sample rates is also included.
The CS4224 includes an analog volume control capable
of 113.5 dB attenuation in 0.5 dB steps. The analog volume control architecture preserves dynamic range
during attenuation. Volume control changes are implemented using a “soft” ramping or zero crossing
technique.
Applications include digital effects processors, DAT, and
multitrack recorders.
ORDERING INFORMATION
CS4223-KS-10 to +70 °C28-pin SSOP
CS4223-BS-40 to +85 °C28-pin SSOP
CS4223-DS-40 to +85 °C28-pin SSOP
CS4224-KS-10 to +70 °C28-pin SSOP
CDB4223/4Evaluation Board
Cirrus Logic, Inc.
http://www.cirrus.com
RST
LRCK
SCLK
SDIN
SDOUT
(
)(
DIF1
SCL/CCLK SDA/CDIN AD0/CSMCLKVDVA
Serial Audio Data I nterface
)(
DIF0
Cont rol Port
Digital Filters
with De-Emphasis
Digital Filters
Clock OSC
XTI XTO
)
(
DEM0
Left
DAC
Right
DAC
Left
ADC
Right
ADC
( ) = CS4223
)
DEM1
2
IC/SPI
CopyrightCirrus Logic, Inc. 2002
V
L
Volume
Cont rol
Volume
Cont rol
DGNDAGND
= CS4224
*
(All Rights Reserved)
*
*
Voltag e
Reference
Analog Low Pass
and Output St age
AOUTL+
AOUTL-
AOUTR+
AOUTR-
AINLAINL+
AINRAINR+
JAN ‘03
DS290F1
1
TABLE OF CONTENTS
1. CHARACTERISTICS AND SPECIFICATIONS ........................................................................ 4
"Preliminary" product information describes products that are in product ion, but for which full charact erization data is not yet available. "Advance" product information describes products that are in development and subject to development changes. Cirrus Logic, Inc. and its subsidiaries ("Cirrus") bel ieve that the information
contained in this document is accurate and r eliable. However, the information is subject to change without notice and is provided "AS IS" wi thout warranty of any
kind (express or i mplied). Customers are advised to obtain the latest version of relevant informati on to verify, before placing orders, that informati on being rel ied
on is current and complete. All products are sold subject to the terms and conditions of sale supplied at the time of order acknowledgment, including those pertaining
to warranty, patent infringement, and limitation of l iability. No responsibility is assumed by Cirrus for the use of this informati on, including use of this information as
the basis for manufactur e or sale of any items, or for infringement of patents or other rights of third parties. This document is the property of Cirr us and by furnishing
this information, Cirrus grants no license, express or implied under any patents, mask work rights, copyrights, trademarks, trade secrets or other intel lectual property
rights. Cirrus owns the copyrights of the information contained herein and gives consent for copies to be made of the information only for use within your organization
with respect to Cirrus integrated circuits or other parts of Cirrus. This consent does not extend to other copying such as copying for gener al distribution, advertising
or promotional purposes, or for creating any work for resale.
An export permit needs to be obtained from the competent authorities of the Japanese Government if any of the products or technologies descri bed in thismaterial
and controlled under the "Foreign Exchange and Foreign Trade Law" is to be exported or taken out of Japan. An export license and/or quota needs to be obtained
from the competent authorities of t he Chinese Government if any of the products or technologies described in thi s material is subj ect to t he PRC Foreign Trade Law
and is to be exported or taken out of the PRC.
CERTAIN APPLICATIONS USING SEMICONDUCTOR PRODUCTS MAY INVOLVE POTENTIAL RISKS OF DEATH, PERSONAL INJURY, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE ( "CRITICAL APPLICATIONS"). CIRRUS PRODUCTS ARE NOT DESI GNED, AUTHORIZED, OR WARRANTED TO BE
SUITABLE FOR USE IN LIFE-SUPPORT DEVICES OR SYSTEMS OR OTHER CRITICAL APPLICATIONS. INCLUSION OF CIRRUS PRODUCTS IN SUCH
APPLICATIONS IS UNDERSTOOD TO BE FULLY AT THE CUSTOMER'S RI SK.
Purchase of I
those components in a standard I
Cirrus Logic, Cirrus, and the Cirrus Logi c logo designs are trademarks of Cirrus Logic, Inc. All other brand and product names i n this document may be trademarks
or servi ce marks of their respective owners.
2DS290F1
2
C components of Cirrus Logic, Inc., or one of its sublicensed Associated Companies conveys a license under the Philli ps I2C Patent Rights to use
2
Csystem.
CS4223 CS4224
5.5.3 Serial Data Output Format (DOF).................................................................................. 17
5.5.4 Serial Data Input Format (DIF) ...................................................................................... 17
5.6 Converter Status Report (Read Only) (address 06h) ....................................................... 18
5.6.1 Left and Right Channel Acceptance Bit (ACCR-ACCL) ................................................ 18
5.6.2 Left and Right Channel ADC Output Level (LVR and LVL) ........................................... 18
5.7 Master Clock Control (address 07h)................................................................................. 18
5.7.1 Master Clock Control (MCK).......................................................................................... 18
Table 5. Common Clock Frequencies ........................................................................................... 21
CS4223 CS4224
4DS290F1
CS4223 CS4224
1. CHARACTERISTICS AND SPECIFICATIONS
(All Min/Max characteristics and specifications are guaranteed over the Specified Operating Conditions. Typical
performance characteristics and specifications are derived from measurements taken at nominal supply voltages
and T
SPECIFIED OPERATING CONDITIONS
(AGND, DGND = 0 V, all voltages with respect to 0 V.)
Power SuppliesDigital
Ambient Operating TemperatureCommercial (-KS)
ABSOLUTE MAXIMUM RATINGS (AGND, DGND = 0 V, all voltages with respect to 0 V.)
Power SuppliesDigital
Input Current(Note 1)-±10mA
Analog Input Voltage(Note 2)-0.7VA + 0.7V
Digital Input Voltage(Note 2)-0.7VD + 0.7V
Ambient TemperaturePower Applied-55+125°C
Storage Temperature-65+150°C
=25°C.)
A
ParameterSymbolMinNomMaxUnit
VD
Analog
Digital
|VA-VD|
Industrial (-BS/-DS)
ParameterSymbolMinMaxUnit
Analog
VA
VL
T
T
VD
VA
AC
AI
4.75
4.75
2.7
-
-10
-40
-0.3
-0.3
5.0
5.0
5.0
-
-
-
6.0
6.0
5.25
5.25
5.25
0.4
70
85
V
V
V
V
°C
°C
V
V
WARNING: Operation at or beyond these limits may result in permanent damage to the device.
Normal operation is not guaranteed at these extremes.
Notes: 1. Any pin except supplies. Transient currents of up to 100 mA on the analog input pins will not cause SCR
latch-up.
2. The maximum over or under voltage is limited by the input current.
DS290F15
CS4223 CS4224
ANALOG CHARACTERISTICS (Full Scale Input Sine wave, 997 Hz; Fs = 48 kHz; Measurement
Bandwidth is 20 Hz to 20 kHz; Local components as shown in Figures 4 and 5.)
CS4223/4 - KSCS4223/4 - BS/ - DS
ParameterSymbol
Analog Input Characteristics
Total Harmonic DistortionTHD-0.0014--0.0014-%
Dynamic RangeA-weighted
unweighted
Total Harmonic Distortion + Noise(Note 3) THD+N--97-90--97-87dB
Interchannel Isolation(1 kHz)-90--90-dB
Interchannel Gain Mismatch--0.1--0.1dB
Offset Errorwith High Pass Filter--0--0LSB
Full Scale Input Voltage (Differential)1.92.02.11.92.02.1Vrms
Gain Drift-100--100-ppm/°C
Input Resistance10--10--kΩ
Input Capacitance--15--15pF
Common Mode Input Voltage-2.3--2.3-V
Common Mode Rejection RatioCMRR75--75--dB
A/D Decimation Filter Characteristics
Passband(Note 4)0-21.80-21.8kHz
Passband Ripple--±0.01--±0.01dB
Stopband(Note 4)30-611430-6114kHz
Stopband Attenuation(Note 5)80--80--dB
Group Delay (Fs = Output Sample Rate) Left
(Note 6)Right
Group Delay Variation vs. Frequency∆t
High Pass Filter Characteristics
Frequency Response-3 dB (Note 4)
-0.1 dB
Phase Deviation@ 20 Hz(Note 4)-10--10-Degree
Passband Ripple--0--0dB
t
gd_L
t
gd_R
gd
98
95
105
102
-
18/Fs
-
17/Fs
--0--0µs
-
-
3.7
20
-
-
-
-
-
-
95
92
105
102
-
18/Fs
-
17/Fs
-
-
3.7
20
UnitMinTypMaxMinTypMax
-
-
-
-
-
-
dB
dB
s
s
Hz
Hz
Notes: 3. Referenced to typical full-scale differential input voltage (2 Vrms).
4. Filter characteristics scale with output sample rate. For output sample rates, Fs, other than 48 kHz, the
0.01 dB passband edge is 0.4535x Fs and the stopband edge is 0.625x Fs.
5. The analog modulator samples the input at 6.144 MHz for an Fs equal to 48 kHz. There is no rejection
of input signals which are multiples of the sampling frequency (n x 6.144 MHz ±21.8 kHz where
n = 0,1,2,3...).
Note: All registers are read/write in I2C mode and write-only in SPI mode, unless otherwise noted.
5.1ADC Control (address 01h)
76543210
PDNHPDRHPDLADMRADMLCALCALPCLKE
00000000
5.1.1POWER DOWN ADC (PDN)
Default = 0
0 - Disabled
1-Enabled
Function:
The ADC will enter a low-power state when this function is enabled.
5.1.2LEFT AND RIGHT CHANNEL HIGH PASS FILTER DEFEAT (HPDR-HPDL)
Default = 0
0 - Disabled
1-Enabled
Function:
The internal high-pass filter is defeated when this function is enabled. Control of the internal highpass filter is independent for the left and right channel.
5.1.3LEFT AND RIGHT CHANNEL ADC MUTING (ADMR-ADML)
Default = 0
0 - Disabled
1-Enabled
Function:
The output for the selected ADC channel will be muted when this function is enabled.
5.1.4CALIBRATION CONTROL (CAL)
Default = 0
0 - Disabled
1-Enabled
Function:
The device will automatically perform an offset calibration when brought out of reset, which last approximately 50 ms. When this function is enabled, a rising edge on the reset line will initiate an offset
calibration.
The DAC output will mute following the reception of 512 consecutive audio samples of static 0 or -1
when this function is enabled. A single sample of non-static data will release the mute. Detection and
muting is done independently for each channel. The muting function is affected, similar to volume
control changes, by the SOFT bit in the DAC Control register.
5.2.2MUTE CONTROL (MUTR-MUTL)
Default = 0
0 - Disabled
1-Enabled
Function:
The output for the selected DAC channel will be muted when this function is enabled. The muting
function is affected, similar to volume control changes, by the SOFT bit in the DAC Control register.
Soft Ramp level changes will be implemented by incrementally ramping, in 0.5 dB steps, from the current level to the new level. The rate of change defaults to 0.5 dB per 8 left/right clock periods and is
adjustable through the RMP bits in the DAC Control register.
Zero Cross level changes will be implemented in a single step from the current level to the new level.
The level change takes effect on a zero crossing to minimize audible artifacts. If the signal does not
encounter a zero crossing, the level change will occur after a timeout period of 512 sample periods
(10.7 ms at 48 kHz sample rate). Zero crossing is independently monitored and implemented for each
channel. The ACCR and ACCL bits in the Converter Status Report register indicate when a level
change has occurred for the right and left channel.
16DS290F1
CS4223 CS4224
5.2.4SOFT RAMP STEP RATE (RMP)
Default = 00
00 - 1 step per 8 LRCK's
01 - 1 step per 4 LRCK's
10 - 1 step per 16 LRCK's
11 - 1 step per 32 LRCK's
Function:
The rate of change for the Soft Ramp function is adjustable through the RMP bits.
The Output Attenuator Level registers allow for attenuation of the DAC outputs in 0.5 dB increments
from 0 to 113.5 dB. Level changes are implemented with an analog volume control until the residual
output noise is equal to the noise floor in the mute state. At this point, volume changes are performed
digitally. This technique is superior to purely digital volume control because the noise is attenuated
by the same amount as the signal, thus preserving dynamic range, see Figure 16. Volume changes
are performed as dictated by the SOFT bit in the DAC Control register. ATT0 represents 0.5 dB of
attenuation and settings greater than 227 (decimal value) will mute the selected DAC output.
Binary CodeDecimal ValueVolume Setting
0000000000 dB
11100011227-113.5 dB
11100100228Muted
Table 1. Example Volume Settings
DS290F117
CS4223 CS4224
5.5DSP Port Mode (address 05h)
76543210
Reserved
00000000
5.5.1DE-EMPHASIS CONTROL (DEM)
Function:
5.5.2SERIAL INPUT/OUTPUT DATA SCLK POLARITY SELECT (DSCK)
Selects the appropriate digital filter to maintain the standard 15 µs/50 µs digital de-emphasis filter response at 32, 44.1 or 48 kHz sample rates, see Figure 15.
Default = 0
0 - Data valid on rising edge of SCLK
1 - Data valid on falling edge of SCLK
Function:
This function selects the polarity of the SCLK edge used to clock data in and out of the serial audio
port.
5.5.3SERIAL DATA OUTPUT FORMAT (DOF)
Default = 00
2
00 - I
S compatible
01 - Left justified
10 - Right justified, 24-bit
11 - Right justified, 20-bit
Function:
The required relationship between the left/right clock, serial clock and output serial data is defined by
the Serial Data Output Format, and the options are detailed in Figures 8-11.
Note: If the format selected is Right-Justified, SCLK must be 64 Fs when operating in slave mode.
5.5.4SERIAL DATA INPUT FORMAT (DIF)
Default = 00
2
00 - I
S compatible
01 - Left justified
10 - Right justified, 24-bit
11- Right justified, 20-bit
Function:
The required relationship between the left/right clock, serial clock and input serial data is defined by
the Serial Data Input Format, and the options are detailed in Figures 8-11.
18DS290F1
CS4223 CS4224
5.6Converter Status Report (Read Only) (address 06h)
76543210
ACCRACCLLVR2LVR1LVR0LVL2LVL2LVL0
00000000
5.6.1LEFT AND RIGHT CHANNEL ACCEPTANCE BIT (ACCR-ACCL)
The ACCR and ACCL bits indicate when a change in the Output Attenuator Level has occurred for
the left and right channels, respectively. The value will be high when a new setting is loaded into the
Output Attenuator Level registers. The value will return low when the requested attenuation setting
has taken effect.
5.6.2LEFT AND RIGHT CHANNEL ADC OUTPUT LEVEL (LVR AND LVL)
Default = 000
000 - Normal output levels
001 - -6 dB level
010 - -5 dB level
011 - -4 dB level
100 - -3 dB level
101 - -2 dB level
110 - -1 dB level
111 - Clipping
Function:
The analog-to-digital converter is continually monitoring the peak digital signal output for both the left
and right channel, prior to the digital limiter. The maximum output value is stored in the LVL and LVR
bits. The LVL and LVR bits are ‘sticky’, so they are reset after each read is performed.
Default = 00
00 - XTI = 256 Fs for Master Mode
01 - XTI = 384 Fs for Master Mode
10 - XTI = 512 Fs for Master Mode
Function:
The MCK bits allow for control of the Master Clock, XTI, input frequency.
Note: These bits are not valid when operating in slave mode.
DS290F119
6. PIN DESCRIPTIONS — CS4223
NC
XTO
XTI
LRCK
SCLK
VD
DGND
SDOUT
SDIN
DIF1
DIF0
VL
CS4223
1
2
3
4
5
6
7
821
9
10
11
1217
13
1415
28
27
26
25
24
23
22
20
19
18
16
NC
RST
AOUTL-
AOUTL+
AOUTR+
AOUTR-
AGND
VA
AINL+
AINL-
DEM1
AINR+DEM0
AINR-
NCNC
CS4223 CS4224
NC1,14,15, 28 No Connect - These pins are not connected internally and should be tied to DGND to mini-
mize noise coupling.
XTI, XTO2,3Crystal Connections (Input/Output)-Input and output connections for the crystal used to
clock the CS4223. Alternatively, a clock may be input into XTI. This is the clock source for the
delta-sigma modulator and digital filters. The frequency of this clock must be either 256x, 384x,
or 512x Fs in Slave Mode and 256x in Master Mode.
Fs (kHz)XTI (MHz)
256x384x512x
328.192012.288016.3840
44.111.289616.934422.5792
4812.288018.432024.5760
Table 2. Common Clock Frequencies
LRCK4Left/Right Clock (Input)-Determines which channel is currently being input/output of the
serial audio data pins SDIN/SDOUT. The frequency of the Left/Right clock must be equal to the
input sample rate. Although the outputs for each ADC channel are transmitted at different
times, Left/Right pairs represent simultaneously sampled analog inputs. The required relationship between the left/right clock, serial clock and serial data is defined by the DIF1-0 pins. The
options are detailed in Figures 8 - 11.
SCLK5Serial Data Clock (Input)-Clocks the individual bits of the serial data into the SDIN pin and
out of the SDOUT pin. The required relationship between the left/right clock, serial clock and
serial data is defined by the DIF1-0 pins. The options are detailed in Figures 8 - 11.
VD6Digital Power (Input)-Positive power supply for the digital section. Typically 5.0 VDC.
DGND7Digital Ground (Input)-Digital ground for the digital section.
SDOUT8Serial Data Output (Output)-Two's complement MSB-first serial data is output on this pin.
The required relationship between the left/right clock, serial clock and serial data is defined by
the DIF1-0 pins. The options are detailed in Figures 8 - 11.
20DS290F1
CS4223 CS4224
SDIN9Serial Data Input (Input)-Two's complement MSB-first serial data is input on this pin. The
required relationship between the left/right clock, serial clock and serial data is defined by the
DIF1-0 pins. The options are detailed in Figures 8 - 11.
DIF0, DIF110,11Digital Interface Format (Input)-The required relationship between the left/right clock, serial
clock and serial data is defined by the Digital Interface Format. The options are detailed in Figures 8 - 11.
DIF1DIF0DESCRIPTIONFORMATFIGURE
00
01Left Justified, up to 24-bit data19
10Right Justified, 24-bit Data210
11Right Justified, 20-bit Data311
DEM0, DEM112,18De-Emphasis Select (Input)-Controls the activation of the standard 50/15 µs de-emphasis
filter. 32, 44.1, or 48 kHz sample rate selection defined in Table 4.
DEM0DEM1De-Emphasis
00 32kHz
0144.1 kHz
10 48kHz
11Disabled
Table 4. De-emphasis Control
VL13Digital Logic Power (Input)-Positive power supply for the digital interface section. Typically
3.0 to 5.0 VDC.
AINR-, AINR+16,17Differential Right Channel Analog Input (Input)-The full scale analog input level (differen-
tial) is specified in the Analog Characteristics specification table and may be AC coupled or DC
coupled into the device, see Figure 12 for optional line input buffer.
AINL-, AINL+19,20Differential Left Channel Analog Input (Input) - The full scale analog input level (differential)
is specified in the Analog Characteristics specification table and may be AC coupled or DC
coupled into the device, see Figure 12 for optional line input buffer.
VA21Analog Power (Input)-Positive power supply for the analog section. Nominally +5 Volts.
AGND22Analog Ground (Input)-Analog ground reference.
AOUTR-,
AOUTR+
AOUTL-,
AOUTL+
RST
23, 24Differential Right Channel Analog Output (Output)-The full scale analog output level (dif-
ferential) is specified in the Analog Characteristics specification table.
25, 26Differential Left Channel Analog Output (Output)-The full scale analog output level (differ-
ential) is specified in the Analog Characteristics specification table.
27Reset (Input) - When low, the device enters a low power mode and all internal registers are
reset, including the control port. When high, the control port becomes operational and normal
operation will occur.
2
S, up to 24-bit data
I
Table 3. Digital Interface Format - DIF1 and DIF0
08
DS290F121
7. PIN DESCRIPTIONS — CS4224
CS4223 CS4224
CS42 24
NC
XTO
XTI
LRCK
SCLK
VD
DGND
SDOUT
SDIN
SCL/CCLK
SDA/CDIN
VL
1
2
3
4
5
6
7
821
9
10
11
1217
13
1415
28
27
26
25
24
23
22
20
19
18
16
NC
RST
AOU TL-
AOUTL+
AOUTR+
AOUTR-
AGN D
VA
AIN L+
AIN L-
I2C/SPI
AIN R+AD0/CS
AINR-
NCNC
NC1,14,15, 28 No Connect - These pins are not connected internally and should be tied to DGND to mini-
mize noise coupling.
XTI, XTO2,3Crystal Connections (Input/Output)-Input and output connections for the crystal used to
clock the CS4224. Alternatively a clock may be input into XTI. This is the clock source for the
delta-sigma modulator and digital filters. The frequency of this clock must be either 256x, 384x,
or 512x Fs. The default XTI setting in Master Mode is 256x, but this may be changed to 384x
or 512x through the Control Port.
Fs (kHz)XTI (MHz)
256x384x512x
328.192012.288016.3840
44.111.289616.934422.5792
4812.288018.432024.5760
Table 5. Common Clock Frequencies
LRCK4Left/Right Clock (Input)-Determines which channel is currently being input/output of the
serial audio data pins SDIN/SDOUT. The frequency of the Left/Right clock must be equal to the
input sample rate. Although the outputs for each ADC channel are transmitted at different
times, Left/Right pairs represent simultaneously sampled analog inputs. The required relationship between the left/right clock, serial clock and serial data is defined by the DSP Port Mode
(05h) register. The options are detailed in Figures 8 - 11.
SCLK5Serial Data Clock (Input)-Clocks the individual bits of the serial data into the SDIN pin and
out of the SDOUT pin. The required relationship between the left/right clock, serial clock and
serial data is defined by the DSP Port Mode (05h) register. The options are detailed in Figures
8-11.
VD6Digital Power (Input)-Positive power supply for the digital section. Typically 5.0 VDC.
DGND7Digital Ground (Input)-Digital ground for the digital section.
22DS290F1
CS4223 CS4224
SDOUT8Serial Data Output (Output)-Two's complement MSB-first serial data is output on this pin.
The required relationship between the left/right clock, serial clock and serial data is defined by
the DSP Port Mode (05h) register. The options are detailed in Figures 8 - 11.
SDIN9Serial Data Input (Input)-Two's complement MSB-first serial data is input on this pin. The
required relationship between the left/right clock, serial clock and serial data is defined by the
DSP Port Mode (05h) register. The options are detailed in Figures 8 - 11.
SCL/CCLK10Serial Control Port Clock (Input)-Clocks the serial control bits into and out of the CS4224.
SDA/CDIN11
AD0/CS
VL13Logic Power (Input)-Positive power supply for the digital interface section. Typically 3.0 to
AINR-, AINR+16,17Differential Right Channel Analog Input (Input)-The full scale analog input level (differen-
I2C/SPI
AINL-, AINL+19,20Differential Left Channel Analog Input (Input)-The full scale analog input level (differential)
VA21Analog Power (Input)-Positive power supply for the analog section. Typically 5.0 VDC.
AGND22Analog Ground (Input)-Analog ground reference.
AOUTR-,
AOUTR+
AOUTL-, AOUTL+25, 26Differential Left Channel Analog Outputs (Output)-The full scale analog output level (dif-
RST
12
18Control Port Format (Input) - When this pin is high, I2C mode is selected, when low, SPI is
23, 24Differential Right Channel Analog Outputs (Output)-The full scale analog output level (dif-
27Reset (Input) - When low, the device enters a low power mode and all internal registers are
2
In I
C mode, SCL requires an external pull-up resistor according to the I2C specification.
2
Serial Control Port Data (Input/Output)- SDAisadataI/OlineinI
external pull-up resistor according to the I
serial control port in SPI mode.
Address Bit/Control Chip Select (Input)-In I
mode, CS
interface is defined by the SPI
5.0 VDC.
tial) is specified in the Analog Characteristics specification table and may be AC coupled or DC
coupled into the device, see Figure 12 for optional line input buffer.
selected.
is specified in the Analog Characteristics specification table and may be AC coupled or DC
coupled into the device, see Figure 12 for optional line input buffer.
ferential) is specified in the Analog Characteristics specification table.
ferential) is specified in the Analog Characteristics specification table.
reset, including the control port. When high, the control port becomes operational and normal
operation will occur.
is used to enable the control port interface on the CS4224. The CS4224 control port
/I2C pin.
2
C specification. CDIN in the input data line for the
2
C mode, AD0 is a chip address bit. In SPI
C mode and requires an
DS290F123
CS4223 CS4224
8. APPLICATIONS
8.1Overview
The CS4223 is a stand-alone device controlled
through dedicated pins. The CS4224 is controlled
with an external microcontroller using the serial
control port.
8.2Grounding and Power Supply
Decoupling
Aswithanyhighresolutionconverter,the
CS4223/4 requires careful attention to power supply and grounding arrangements to optimize performance.Figures4and5showsthe
recommended power arrangement with VA, VD
and VL connected to clean supplies. Decoupling
capacitors should be located as close to the device
package as possible. If desired, all supply pins
may be connected to the same supply, but a decoupling capacitor should still be used on each
supply pin.
8.3High Pass Filter
The operational amplifiers in the input circuitry driving the CS4223/4 may generate a small DC offset
into the A/D converter. The CS4223/4 includes a
high pass filter after the decimator to remove any
DC offset which could result in recording a DC level, possibly yielding "clicks" when switching between devices in a multichannel system.
8.4Analog Outputs
The recommended off-chip analog filter is either a
2nd order Butterworth or a 3rd order Butterworth, if
greater out-of-band noise filtering is desired. The
CS4223/4 DAC interpolation filter has been precompensated for an external 2nd order Butterworthfilterwitha3dBcorneratFs,ora3rdorder
Butterworthfilterwitha3dBcornerat0.75Fsto
provide a flat frequency response and linear phase
overthepassband(seeFigure14forFs =48kHz).
If the recommended filter is not used, small frequency response magnitude and phase errors will
occur. In addition to providing out-of-band noise attenuation, the output filters shown in Figure 14 provide differential to single-ended conversion.
8.5Master vs. Slave Mode
The CS4223/4 may be operated in either master
mode or slave mode. In master mode, SCLK and
LRCK are outputs which are internally derived from
MCLK. The device will operate in master mode
whena47kΩ pulldown resistor is present on SD-
OUT at startup or after reset, see Figure 5. LRCK
andSCLKareinputstotheCS4223/4whenoperating in slave mode. See Figures 8-11 for the available clocking modes.
8.6De-emphasis
The CS4223/4 includes digital de-emphasis for 32,
44.1, or 48 kHz sample rates. The frequency response of the de-emphasis curve, as shown in Figure 15, will scale proportionally with changes in
samples rate, Fs. The de-emphasis feature is included to accommodate older audio recordings
that utilize pre-emphasis as a means of noise reduction.
De-emphasis control is achieved with the DEM1/0
pins on the CS4223 or through the DEM1-0 bits in
the DSP Port Mode Byte (#5) on the CS4224.
8.7Power-up / Reset / Power Down
Calibration
Upon power up, the user should hold RST =0for
approximately 10 ms. In this state, the control port
is reset to its default settings and the part remains
in the power down mode. At the end of RST
device performs an offset calibration which lasts
approximately 50 ms after which the device enters
normal operation. In the CS4224, a calibration may
also be initiated via the CAL bit in the ADC Control
Byte (#1). The CALP bit in the ADC Control Byte is
a read only bit indicating the status of the calibration.
Reset/PowerDownisachievedbyloweringthe
pin causing the part to enter power down.
RST
Once RST
and the desired settings should be loaded.
The CS4223/4 will also enter power down mode if
the master clock source stops for approximately
10 µs or if the LRCK is not synchronous to the
master clock. The control port will retain its current
settings.
The CS4223/4 will mute the analog outputs and
enter the power down mode if the supply drops below approximately 4 volts.
goes high, the control port is functional
,the
24DS290F1
CS4223 CS4224
8.8Control Port Interface (CS4224 only)
The control port is used to load all the internal settings. The operation of the control port may be
completely asynchronous with the audio sample
rate. However, to avoid potential interference problems, the control port pins should remain static if
no operation is required.
The control port has 2 modes: SPI
the CS4224 operating as a slave device. The control port interface format is selected by the SPI
pin.
and I2C,with
/I2C
8.8.1SPI Mode
In SPI mode, CS is the CS4224 chip select signal,
CCLK is the control port bit clock, CDIN is the input
data line from the microcontroller and the chip address is 0010000. All signals are inputs and data is
clocked in on the rising edge of CCLK.
Figure 6 shows the operation of the control port in
SPI mode. To write to a register, bring CS
first 7 bits on CDIN form the chip address, and
must be 0010000. The eighth bit is a read/write indicator (R/W
reading from the CS4224 is not supported in the
SPI mode. The next 8 bits form the Memory Address Pointer (MAP), which is set to the address of
the register that is to be updated. The next 8 bits
arethedatawhichwillbeplacedintoaregister
designated by the MAP.
), which must be low to write. Register
low. The
The CS4224 has a MAP auto increment capability,
enabled by the INCR bit in the MAP register. If
INCR is a zero, then the MAP will stay constant for
successive writes. If INCR is set to a 1, then MAP
will auto increment after each byte is written, allowing block writes of successive registers. Register
reading from the CS4224 is not supported in the
SPI mode.
8.8.2I2CMode
In I2C mode, SDA is a bidirectional data line. Data
is clocked into and out of the part by the clock,
SCL, with the clock to data relationship as shown
in Figure 7. There is no CS
partialchipaddressandshouldbetiedtoVDor
DGND as desired. The upper 6 bits of the 7 bit address field must be 001000. In order to communicate with the CS4224, the LSB of the chip address
field (first byte sent to the CS4224) should match
the setting of the AD0 pin. The eighth bit of the address byte is the R/W
write). If the operation is a write, the next byte is the
Memory Address Pointer which selects the register
to be read or written. If the operation is a read, the
contents of the register pointed to by the Memory
Address Pointer will be output. Setting the auto increment bit in MAP, allows successive reads or
writes of consecutive registers. Each byte is separated by an acknowledge bit.
pin. Pin AD0 forms the
bit (high for a read, low for a
DS290F125
CS4223 CS4224
8.9Memory Address Pointer (MAP)
76543210
INCR
00000000
ReservedReservedReservedReserved
8.9.1AUTO-INCREMENT CONTROL (INCR)
Default = 0
0 - Disabled
1-Enabled
8.9.2REGISTER POINTER (MAP)
Default = 000
CS
CCLK
CHIP
CDIN
ADDRESS
0010000R/W
MAPDATA
MAP2MAP1MAP0
MSBLSB
byte 1byte n
MAP = Memory Address Pointer
Figure 6. Control Port Timing, SPI mode
SDA
SCL
00100 0
StartStop
ADDR
AD0
Figure 7. Control Port Timing, I2Cmode
ACKDATA 1-8ACKDATA 1-8ACK
R/W
26DS290F1
CS4223 CS4224
LRCK
SCLK
SDATA+3 +2 +1
MSB
-1 -2 -3 -4 -5
Left Channel
+5 +4
MasterSlave
I2S, up to 24-bit data
XTI=256, 384,512 Fs (CS4223- 256 Fsonly)
LRCK = 4 to 50 kHz
SCLK = 64 Fs
LRCK
SCLK
SDATA+3 +2 +1
MSB
-1 -2 -3 -4 -5
Left Channel
+5 +4
LSB
MSB
-1 -2 -3 -4
I2S, up to 24-bit data
XTI = 256, 384, 512 Fs
LRCK = 4 to 50 kHz
SCLK = 48,64, 128 Fs
Figure 8. Serial Audio Format 0 (I2S)
LSB
MSB
-1 -2 -3 -4
Right Channel
+3 +2 +1
+5 +4
Right Channel
+3 +2 +1
+5 +4
LSB
LSB
MasterSlave
Left-justified, up to 24-bit data
XTI=256, 384,512 Fs (CS4223-256Fsonly)
LRCK = 4 to 50 kHz
SCLK = 64 Fs
Figure 9. Serial Audio Format 1
LRCK
SCLK
SDATA
0
Left Channel
23 22 21 20 19 18
32 clocks
MasterSlave
Right-justified, 24-bit data
XTI=256, 384,512 Fs (CS4223-256Fsonly)
LRCK = 4 to 50 kHz
SCLK = 64 Fs
Figure 10. Serial Audio Format 2
Left-justified, up to 24-bit data
XTI = 256, 384, 512 Fs
LRCK = 4 to 50 kHz
SCLK = 48, 64, 128 Fs
Right Channel
654321 07
23 22 21 20 19 18
65432 107
Right-justified, 24-bit data
XTI = 256, 384, 512 Fs
LRCK = 4 to 50 kHz
SCLK = 64 Fs
DS290F127
CS4223 CS4224
LRCK
SCLK
SDATA
106543210987
17 1617 16
19 1819 18
Left Channel
15 14 13 12 11 10
32 clocks
MasterSlave
Right-justified, 20-bit data
XTI=256, 384,512 Fs (CS4223-256Fs only)
LRCK = 4 to 50 kHz
SCLK = 64 Fs
6543210987
Right-justified, 20-bit data
XTI = 256, 384, 512 Fs
LRCK = 4 to 50 kHz
SCLK = 64 Fs
Figure 21. DAC Passband RippleFigure 22. DAC Transition Band
30DS290F1
10.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
affect 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 -1 dBFS as suggested in AES17-1991 Annex A and DACs are measured at 0 dBFS.
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.
CS4223 CS4224
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 20 Hz 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 LSB's of the output from mid-scale with the selected inputs tied to a common potential. For the DAC's, the differential output voltage with mid-scale 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.
32DS290F1
• Notes •
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.