CS42L52 F2m
CS42L52 F2m
3/1/13 CS42L52
Low-Power, Stereo CODEC with Headphone and Speaker Amps
Stereo CODEC Class D Stereo/Mono Speaker Amplifier
High Performance Stereo ADC and DAC No External Filter Required
– 99 dB (ADC), 98 dB (DAC) Dyn. Range (A-wtd) High-power Stereo Output at 10% THD+N
– -88 dB THD+N – 2 x 1.00 W into 8 @ 5.0 V
Flexible Stereo Analog Input Architecture – 2 x 550 mW into 8 @ 3.7 V
– 4:1 Analog Input MUX – 2 x 230 mW into 8 @ 2.5 V
– Analog Input Mixing High-power Mono Output at 10% THD+N
– Analog Passthrough with Volume Control – 1 x 1.90 W into 4 @ 5.0 V
– Analog Programmable Gain Amplifier (PGA) – 1 x 1.00 W into 4 @ 3.7 V
– 1 x 350 mW into 4 @ 2.5 V
Programmable Automatic Level Control (ALC)
– Noise Gate for Noise Suppression Direct Battery-powered Operation
– Programmable Threshold and Attack/Release – Battery Level Monitoring and Compensation
Rates 81% Efficiency at 800 mW
Dual MIC Inputs Phase-aligned PWM Output Reduces Idle
– Differential or Single-ended Channel Current
– +16 dB to +32 dB with 1-dB step Mic Pre- Spread Spectrum Modulation
Amplifiers Low Quiescent Current
– Programmable, Low-noise MIC Bias Levels Stereo Headphone Amplifier
Digital Signal Processing Engine Ground-centered Outputs
– Bass and Treble Tone Control, De-emphasis – No DC-Blocking Capacitors Required
– Master Vol. and Independent PCM SDIN + ADC – Integrated Negative Voltage Regulator
SDOUT Mix Volume Control High-power Output at -75 dB THD+N
– Soft-Ramp and Zero-Cross Transitions – 2 x 23 mW Into 16 @ 1.8 V
– Programmable Peak-detect and Limiter – 2 x 44 mW Into 16 @ 2.5 V
– Beep Generator w/Full Tone Control (Features continued on page 2)
2 DS680F2
3/1/13
CS42L52
TABLE OF CONTENTS
1. PIN DESCRIPTIONS .............................................................................................................................. 8
1.1 I/O Pin Characteristics .................................................................................................................... 10
2. TYPICAL CONNECTION DIAGRAM ................................................................................................... 11
3. CHARACTERISTIC AND SPECIFICATIONS ...................................................................................... 12
RECOMMENDED OPERATING CONDITIONS ................................................................................... 12
ABSOLUTE MAXIMUM RATINGS ....................................................................................................... 12
ANALOG INPUT CHARACTERISTICS ................................................................................................ 13
ADC DIGITAL FILTER CHARACTERISTICS ....................................................................................... 14
ANALOG OUTPUT CHARACTERISTICS ............................................................................................ 15
ANALOG PASSTHROUGH CHARACTERISTICS ............................................................................... 16
PWM OUTPUT CHARACTERISTICS .................................................................................................. 17
HEADPHONE OUTPUT POWER CHARACTERISTICS ...................................................................... 18
LINE OUTPUT VOLTAGE LEVEL CHARACTERISTICS ..................................................................... 19
COMBINED DAC INTERPOLATION AND ONCHIP ANALOG FILTER RESPONSE .......................... 19
SWITCHING SPECIFICATIONS - SERIAL PORT ............................................................................... 20
SWITCHING SPECIFICATIONS - I²C CONTROL PORT ..................................................................... 21
DC ELECTRICAL CHARACTERISTICS .............................................................................................. 22
DIGITAL INTERFACE SPECIFICATIONS AND CHARACTERISTICS ................................................ 22
POWER CONSUMPTION .................................................................................................................... 23
4. APPLICATIONS ................................................................................................................................... 24
4.1 Overview ......................................................................................................................................... 24
4.1.1 Basic Architecture ................................................................................................................. 24
4.1.2 Line and MIC Inputs .............................................................................................................. 24
4.1.3 Line and Headphone Outputs ............................................................................................... 24
4.1.4 Speaker Driver Outputs ......................................................................................................... 24
4.1.5 Fixed Function DSP Engine .................................................................................................. 24
4.1.6 Beep Generator ..................................................................................................................... 24
4.1.7 Power Management .............................................................................................................. 24
4.2 Analog Inputs ................................................................................................................................. 25
4.2.1 MIC Inputs ............................................................................................................................. 26
4.2.2 Automatic Level Control (ALC) .............................................................................................. 26
4.2.3 Noise Gate ............................................................................................................................ 27
4.3 Analog Outputs .............................................................................................................................. 28
4.3.1 Beep Generator ..................................................................................................................... 29
4.3.2 Limiter .................................................................................................................................... 30
4.4 Analog In to Analog Out Passthrough ............................................................................................ 31
4.4.1 Overriding the ADC Power Down .......................................................................................... 31
4.4.2 Overriding the PGA Power Down .......................................................................................... 32
4.5 PWM Outputs ................................................................................................................................. 32
4.5.1 Mono Speaker Output Configuration ..................................................................................... 32
4.5.2 VP Battery Compensation ..................................................................................................... 33
4.5.2.1 Maintaining a Desired Output Level ........................................................................... 33
4.6 Serial Port Clocking ........................................................................................................................ 33
4.7 Digital Interface Formats ................................................................................................................ 35
4.7.1 DSP Mode ............................................................................................................................. 35
4.8 Initialization ..................................................................................................................................... 36
4.9 Recommended Power-up Sequence .............................................................................................. 37
4.10 Recommended Power-Down Sequence ...................................................................................... 37
4.11 Required Initialization Settings ..................................................................................................... 37
4.12 Control Port Operation .................................................................................................................. 38
4.12.1 I²C Control ........................................................................................................................... 38
4.12.2 Memory Address Pointer (MAP) .......................................................................................... 39
DS680F2 3
3/1/13
CS42L52
4.12.2.1 Map Increment (INCR) ............................................................................................. 39
5. REGISTER QUICK REFERENCE ........................................................................................................ 40
6. REGISTER DESCRIPTION .................................................................................................................. 42
6.1 Chip I.D. and Revision Register (Address 01h) (Read Only) ......................................................... 42
6.1.1 Chip I.D. (Read Only) ............................................................................................................ 42
6.1.2 Chip Revision (Read Only) .................................................................................................... 42
6.2 Power Control 1 (Address 02h) ...................................................................................................... 42
6.2.1 Power Down ADC Charge Pump .......................................................................................... 42
6.2.2 Power Down PGAx ................................................................................................................ 42
6.2.3 Power Down ADCx ................................................................................................................ 43
6.2.4 Power Down .......................................................................................................................... 43
6.3 Power Control 2 (Address 03h) ...................................................................................................... 43
6.3.1 Power Down ADC Override ................................................................................................... 43
6.3.2 Power Down MICx ................................................................................................................. 43
6.3.3 Power Down MIC Bias .......................................................................................................... 43
6.4 Power Control 3 (Address 04h) ...................................................................................................... 44
6.4.1 Headphone Power Control .................................................................................................... 44
6.4.2 Speaker Power Control ......................................................................................................... 44
6.5 Clocking Control (Address 05h) ...................................................................................................... 44
6.5.1 Auto-Detect ........................................................................................................................... 44
6.5.2 Speed Mode .......................................................................................................................... 45
6.5.3 32kHz Sample Rate Group ................................................................................................... 45
6.5.4 27 MHz Video Clock .............................................................................................................. 45
6.5.5 Internal MCLK/LRCK Ratio ................................................................................................... 45
6.5.6 MCLK Divide By 2 ................................................................................................................. 46
6.6 Interface Control 1 (Address 06h) .................................................................................................. 46
6.6.1 Master/Slave Mode ............................................................................................................... 46
6.6.2 SCLK Polarity ........................................................................................................................ 46
6.6.3 ADC Interface Format ........................................................................................................... 46
6.6.4 DSP Mode ............................................................................................................................. 46
6.6.5 DAC Interface Format ........................................................................................................... 47
6.6.6 Audio Word Length ................................................................................................................ 47
6.7 Interface Control 2 (Address 07h) .................................................................................................. 47
6.7.1 SCLK equals MCLK .............................................................................................................. 47
6.7.2 SDOUT to SDIN Digital Loopback ......................................................................................... 47
6.7.3 Tri-State Serial Port Interface ................................................................................................ 48
6.7.4 Speaker/Headphone Switch Invert ........................................................................................ 48
6.7.5 MIC Bias Level ...................................................................................................................... 48
6.8 Input x Select: ADCA and PGAA (Address 08h), ADCB and PGAB (Address 09h) ....................... 48
6.8.1 ADC Input Select ................................................................................................................... 48
6.8.2 PGA Input Mapping ............................................................................................................... 49
6.9 Analog and HPF Control (Address 0Ah) ......................................................................................... 49
6.9.1 ADCx High-Pass Filter .......................................................................................................... 49
6.9.2 ADCx High-Pass Filter Freeze .............................................................................................. 49
6.9.3 Ch. x Analog Soft Ramp ........................................................................................................ 49
6.9.4 Ch. x Analog Zero Cross ....................................................................................................... 49
6.10 ADC HPF Corner Frequency (Address 0Bh) ................................................................................ 50
6.10.1 HPF x Corner Frequency .................................................................................................... 50
6.11 Misc. ADC Control (Address 0Ch) ................................................................................................ 50
6.11.1 Analog Front-End Volume Setting B=A ............................................................................... 50
6.11.2 Digital MUX ......................................................................................................................... 50
6.11.3 Digital Sum .......................................................................................................................... 50
6.11.4 Invert ADC Signal Polarity ................................................................................................... 51
6.11.5 ADC Mute ............................................................................................................................ 51
4 DS680F2
3/1/13
CS42L52
6.12 Playback Control 1 (Address 0Dh) ............................................................................................... 51
6.12.1 Headphone Analog Gain ..................................................................................................... 51
6.12.2 Playback Volume Setting B=A ............................................................................................ 51
6.12.3 Invert PCM Signal Polarity .................................................................................................. 52
6.12.4 Master Playback Mute ......................................................................................................... 52
6.13 Miscellaneous Controls (Address 0Eh) ........................................................................................ 52
6.13.1 Passthrough Analog ............................................................................................................ 52
6.13.2 Passthrough Mute ............................................................................................................... 52
6.13.3 Freeze Registers ................................................................................................................. 52
6.13.4 HP/Speaker De-emphasis ................................................................................................... 53
6.13.5 Digital Soft Ramp ................................................................................................................ 53
6.13.6 Digital Zero Cross ................................................................................................................ 53
6.14 Playback Control 2 (Address 0Fh) ................................................................................................ 54
6.14.1 Headphone Mute ................................................................................................................. 54
6.14.2 Speaker Mute ...................................................................................................................... 54
6.14.3 Speaker Volume Setting B=A .............................................................................................. 54
6.14.4 Speaker Channel Swap ....................................................................................................... 54
6.14.5 Speaker MONO Control ...................................................................................................... 54
6.14.6 Speaker Mute 50/50 Control ............................................................................................... 54
6.15 MICx Amp Control:MIC A (Address 10h) and MIC B (Address 11h) ............................................ 55
6.15.1 MIC x Select ........................................................................................................................ 55
6.15.2 MICx Configuration .............................................................................................................. 55
6.15.3 MICx Gain ........................................................................................................................... 55
6.16 PGAx Vol. and ALCx Transition Ctl.:
ALC, PGA A (Address 12h) and ALC, PGA B (Address 13h) .............................................................. 55
6.16.1 ALCx Soft Ramp Disable ..................................................................................................... 55
6.16.2 ALCx Zero Cross Disable .................................................................................................... 56
6.16.3 PGAx Volume ...................................................................................................................... 56
6.17 Passthrough x Volume: PASSAVOL (Address 14h) and PASSBVOL (Address 15h) ................. 57
6.17.1 Passthrough x Volume ........................................................................................................ 57
6.18 ADCx Volume Control: ADCAVOL (Address 16h) and ADCBVOL (Address 17h) ....................... 57
6.18.1 ADCx Volume ...................................................................................................................... 57
6.19 ADCx Mixer Volume: ADCA (Address 18h) and ADCB (Address 19h) ........................................ 58
6.19.1 ADC Mixer Channel x Mute ................................................................................................. 58
6.19.2 ADC Mixer Channel x Volume ............................................................................................. 58
6.20 PCMx Mixer Volume: PCMA (Address 1Ah) and PCMB (Address 1Bh) ...................................... 58
6.20.1 PCM Mixer Channel x Mute ................................................................................................ 58
6.20.2 PCM Mixer Channel x Volume ............................................................................................ 58
6.21 Beep Frequency and On Time (Address 1Ch) ............................................................................. 59
6.21.1 Beep Frequency .................................................................................................................. 59
6.21.2 Beep On Time ..................................................................................................................... 60
6.22 Beep Volume and Off Time (Address 1Dh) .................................................................................. 60
6.22.1 Beep Off Time ..................................................................................................................... 60
6.22.2 Beep Volume ....................................................................................................................... 61
6.23 Beep and Tone Configuration (Address 1Eh) ............................................................................... 61
6.23.1 Beep Configuration .............................................................................................................. 61
6.23.2 Beep Mix Disable ................................................................................................................ 61
6.23.3 Treble Corner Frequency .................................................................................................... 62
6.23.4 Bass Corner Frequency ...................................................................................................... 62
6.23.5 Tone Control Enable ........................................................................................................... 62
6.24 Tone Control (Address 1Fh) ......................................................................................................... 62
6.24.1 Treble Gain .......................................................................................................................... 62
6.24.2 Bass Gain ............................................................................................................................ 63
6.25 Master Volume Control: MSTA (Address 20h) and MSTB (Address 21h) .................................... 63
DS680F2 5
3/1/13
CS42L52
6.25.1 Master Volume Control ........................................................................................................ 63
6.26 Headphone Volume Control: HPA (Address 22h) and HPB (Address 23h) ................................. 63
6.26.1 Headphone Volume Control ................................................................................................ 63
6.27 Speaker Volume Control: SPKA (Address 24h) and SPKB (Address 25h) .................................. 64
6.27.1 Speaker Volume Control ..................................................................................................... 64
6.28 ADC and PCM Channel Mixer (Address 26h) .............................................................................. 64
6.28.1 PCM Mix Channel Swap ..................................................................................................... 64
6.28.2 ADC Mix Channel Swap ...................................................................................................... 64
6.29 Limiter Control 1, Min/Max Thresholds (Address 27h) ................................................................. 65
6.29.1 Limiter Maximum Threshold ................................................................................................ 65
6.29.2 Limiter Cushion Threshold .................................................................................................. 65
6.29.3 Limiter Soft Ramp Disable ................................................................................................... 65
6.29.4 Limiter Zero Cross Disable .................................................................................................. 66
6.30 Limiter Control 2, Release Rate (Address 28h) ............................................................................ 66
6.30.1 Peak Detect and Limiter ...................................................................................................... 66
6.30.2 Peak Signal Limit All Channels ........................................................................................... 66
6.30.3 Limiter Release Rate ........................................................................................................... 66
6.31 Limiter Attack Rate (Address 29h) ................................................................................................ 67
6.31.1 Limiter Attack Rate .............................................................................................................. 67
6.32 ALC Enable and Attack Rate (Address 2Ah) ................................................................................ 67
6.32.1 ALCx Enable ....................................................................................................................... 67
6.32.2 ALC Attack Rate .................................................................................................................. 67
6.33 ALC Release Rate (Address 2Bh) ................................................................................................ 68
6.33.1 ALC Release Rate ............................................................................................................... 68
6.34 ALC Threshold (Address 2Ch) ..................................................................................................... 68
6.34.1 ALC Maximum Threshold .................................................................................................... 68
6.34.2 ALC Minimum Threshold ..................................................................................................... 69
6.35 Noise Gate Control (Address 2Dh) ............................................................................................... 69
6.35.1 Noise Gate All Channels ..................................................................................................... 69
6.35.2 Noise Gate Enable .............................................................................................................. 69
6.35.3 Noise Gate Threshold and Boost ........................................................................................ 70
6.35.4 Noise Gate Delay Timing .................................................................................................... 70
6.36 Status (Address 2Eh) (Read Only) ............................................................................................... 70
6.36.1 Serial Port Clock Error (Read Only) .................................................................................... 70
6.36.2 DSP Engine Overflow (Read Only) ..................................................................................... 71
6.36.3 PCMx Overflow (Read Only) ............................................................................................... 71
6.36.4 ADCx Overflow (Read Only) ............................................................................................... 71
6.37 Battery Compensation (Address 2Fh) .......................................................................................... 71
6.37.1 Battery Compensation ......................................................................................................... 71
6.37.2 VP Monitor ........................................................................................................................... 71
6.37.3 VP Reference ...................................................................................................................... 72
6.38 VP Battery Level (Address 30h) (Read Only) ............................................................................... 72
6.38.1 VP Voltage Level (Read Only) ............................................................................................ 72
6.39 Speaker Status (Address 31h) (Read Only) ................................................................................. 72
6.39.1 Speaker Current Load Status (Read Only) ......................................................................... 72
6.39.2 SPKR/HP Pin Status (Read Only) ....................................................................................... 73
6.40 Charge Pump Frequency (Address 34h) ...................................................................................... 73
6.40.1 Charge Pump Frequency .................................................................................................... 73
7. ANALOG PERFORMANCE PLOTS .................................................................................................... 74
7.1 Headphone THD+N versus Output Power Plots ............................................................................ 74
8. EXAMPLE SYSTEM CLOCK FREQUENCIES .................................................................................... 76
8.1 Auto Detect Enabled .................................................................................................................... 76
8.2 Auto Detect Disabled .................................................................................................................... 76
9. PCB LAYOUT CONSIDERATIONS ..................................................................................................... 77
6 DS680F2
3/1/13
CS42L52
9.1 Power Supply and Grounding ......................................................................................................... 77
9.2 QFN Thermal Pad .......................................................................................................................... 77
10. ADC AND DAC DIGITAL FILTERS .................................................................................................. 78
11. PARAMETER DEFINITIONS .............................................................................................................. 79
12. PACKAGE DIMENSIONS .................................................................................................................. 80
THERMAL CHARACTERISTICS .......................................................................................................... 80
13. ORDERING INFORMATION .............................................................................................................. 81
14. REFERENCES .................................................................................................................................... 81
15. REVISION HISTORY .......................................................................................................................... 81
LIST OF TABLES
Table 1. MCLK, LRCK Quick Decode ....................................................................................................... 34
LIST OF FIGURES
Figure 1. Typical Connection Diagram ...................................................................................................... 11
Figure 2. Headphone Output Test Load .................................................................................................... 18
Figure 3. Serial Audio Interface Timing ..................................................................................................... 20
Figure 4. Control Port Timing - I²C ............................................................................................................ 21
Figure 5. Analog Input Signal Flow ........................................................................................................... 25
Figure 6. Single-Ended MIC Configuration ............................................................................................... 26
Figure 7. Differential MIC Configuration .................................................................................................... 26
Figure 8. ALC ............................................................................................................................................ 27
Figure 9. Noise Gate Attenuation .............................................................................................................. 27
Figure 10. DSP Engine Signal Flow .......................................................................................................... 28
Figure 11. PWM Output Stage .................................................................................................................. 29
Figure 12. Analog Output Stage ................................................................................................................ 29
Figure 13. Beep Configuration Options ..................................................................................................... 30
Figure 14. Peak Detect and Limiter ........................................................................................................... 31
Figure 15. Battery Compensation ............................................................................................................. 33
Figure 16. I²S Format ................................................................................................................................ 35
Figure 17. Left-Justified Format ................................................................................................................ 35
Figure 18. Right-Justified Format (DAC only) ........................................................................................... 35
Figure 19. DSP Mode Format) .................................................................................................................. 36
Figure 20. Control Port Timing, I²C Write .................................................................................................. 38
Figure 21. Control Port Timing, I²C Read .................................................................................................. 39
Figure 22. THD+N vs. Output Power per Channel at 1.8 V (16 load) ................................................... 74
Figure 23. THD+N vs. Output Power per Channel at 2.5 V (16 load) ................................................... 74
Figure 24. THD+N vs. Output Power per Channel at 1.8 V (32 load) ................................................... 75
Figure 25. THD+N vs. Output Power per Channel at 2.5 V (32 load) ................................................... 75
Figure 26. ADC Passband Ripple ............................................................................................................. 78
Figure 27. ADC Stopband Rejection ......................................................................................................... 78
Figure 28. ADC Transition Band ............................................................................................................... 78
Figure 29. ADC Transition Band (Detail) ................................................................................................... 78
Figure 30. DAC Passband Ripple ............................................................................................................. 78
Figure 31. DAC Stopband ......................................................................................................................... 78
Figure 32. DAC Transition Band ............................................................................................................... 78
Figure 33. DAC Transition Band (Detail) ................................................................................................... 78
DS680F2 7
3/1/13
CS42L52
1. PIN DESCRIPTIONS
SPKR/HP
SDOUT
RESET
DGND
MCLK
LRCK
SCLK
SDIN
VD
VL
40
38
36
39
37
35
34
33
32
31
SDA 1 30 AIN1B
SCL 2 29 AIN1A
AD0 3 28 AFILTB
SPKR_OUTA+ 4 27 AFILTA
VP 5
GND/Thermal Pad
26 AIN2B
SPKR_OUTA- 6 25 AIN2A
SPKR_OUTB+ 7
Top-Down (Through-Package) View
24 AIN3B/MIC2-/MIC1B
40-Pin QFN Package
VP 8 23 AIN3A/MIC1-/MIC1A
SPKR_OUTB- 9 22 AIN4B/MIC2+/MIC2B
-VHPFILT 10 21 AIN4A/MIC1+/MIC2A
12
14
16
17
18
19
20
11
13
15
HP/LINE_OUTA
VQ
AGND
HP/LINE_OUTB
FLYN
FILT+
VA
MICBIAS
+VHP
FLYP
8 DS680F2
3/1/13
CS42L52
AGND 17 Analog Ground (Input) - Ground reference for the internal analog section.
Positive Voltage Reference (Output) - Positive reference voltage for the internal sampling cir-
FILT+ 18
cuits.
VQ 19 Quiescent Voltage (Output) - Filter connection for the internal quiescent voltage.
Microphone Bias (Output) - Low noise bias supply for an external microphone. Electrical charac-
MICBIAS 20
teristics are specified in the DC Electrical Characteristics table.
AIN4A,B 21,22
Line-Level Analog Inputs (Input) - Single-ended stereo line-level analog inputs.
AIN3A,B 23,24
MIC1+,- 21,23
Differential Microphone Inputs (Input) - Differential stereo microphone inputs.
MIC2+,- 22,24
MIC2A,B 21,22
Single-Ended Microphone Inputs (Input) - Single-ended stereo microphone inputs.
MIC1A,B 23,24
AIN2A,B 25,26
Line-Level Analog Inputs (Input) - Single-ended stereo line-level analog inputs.
AIN1A,B 29,30
AFILTA,B 27,28 Anti-alias Filter Connection (Output) - Anti-alias filter connection for the ADC inputs.
Speaker/Headphone Switch (Input) - Powers down the left and/or right channel of the speaker
SPKR/HP 31
and/or headphone outputs.
RESET 32 Reset (Input) - The device enters a low power mode when this pin is driven low.
Digital Interface Power (Input) - Determines the required signal level for the serial audio inter-
VL 33
face and host control port.
VD 34 Digital Power (Input) - Positive power for the internal digital section.
DGND 35 Digital Ground (Input) - Ground reference for the internal digital section.
SDOUT 36 Serial Audio Data Output (Output) - Output for two’s complement serial audio data.
MCLK 37 Master Clock (Input) - Clock source for the delta-sigma modulators.
SCLK 38 Serial Clock (Input/Output) - Serial clock for the serial audio interface.
SDIN 39 Serial Audio Data Input (Input) - Input for two’s complement serial audio data.
Left Right Clock (Input/Output) - Determines which channel, Left or Right, is currently active on
LRCK 40
the serial audio data line.
Ground reference for PWM power FETs and charge pump; thermal relief pad for optimized heat
GND/Thermal Pad -
dissipation.
DS680F2 9
3/1/13
CS42L52
1.1 I/O Pin Characteristics
Input and output levels and associated power supply voltage are shown in the table below. Logic levels
should not exceed the corresponding power supply voltage.
10 DS680F2
3/1/13
CS42L52
2. TYPICAL CONNECTION DIAGRAM
+1.8 V to +2.5 V +1.8 V to +2.5 V
1 µF 0.1 µF 0.1 µF 0.1 µF 1 µF
See Note 5
VD VA +VHP
Line Level Out
47 k
Left & Right
0.022 µF
Note 1
FLYP 51.1
HP/LINE_OUTB
1 µF ** Headphone Out
FLYN HP/LINE_OUTA Left & Right
51.1
0.022 µF
Note 2
-VHPFILT SPKR/HP
1 µF **
VP +1.6 V to
+5 V Stereo Speakers
CS42L52 0.1 µF 10 µF
SPKR_OUTB+
MCLK SPKR_OUTB-
SCLK Note 4
LRCK AIN1A Left 1
1800 pF * 100 1 µF
SDIN 100 k
Digital Audio Analog
Processor SDOUT 1800 pF
*
Input 1
100 100 k
RESET AIN1B Right 1
1 µF
SCL
SDA AIN2A Left 2
1800 pF * 100 1 µF
100 k
AD0 Analog
1800 pF Input 2
* 100 k
100
AIN2B Right 2
1 µF
2 k 2 k
MIC1- Note 7
+1.8 V to +3.3 V VL
AIN3A/MIC1A
0.1 µF 1 µF
Microphone 1
MIC1+
AIN4A/MIC2A
1 µF 100 k
Notes:
1. Recommended values for the default charge pump switching Mic-Level
MICBIAS Inputs
frequency. The required capacitance follows an inverse RL
relationship with the charge pump’s switching frequency. When 0.1 µF Note 6
increasing the switching frequency, the capacitance may
decrease; when lowering the switching frequency, the RL
capacitance must increase. MIC2+
2. Larger capacitance reduces the ripple on the internal AIN4B/MIC2B
1 µF 100 k
amplifier’s supply. This may reduce the distortion at higher
output power levels. Microphone 2
3. Additional bulk capacitance may be added to improve PSRR
at low frequencies. MIC2-
4. These capacitors serve as a charge reservoir for the internal AIN3B/MIC1B Note 7
1 µF
switched capacitor ADC modulators. They are only needed
when the PGA (Programmable Gain Amplifier) is bypassed. Note 3
5. Series resistance in the path of the power supplies must be
AGND
avoided. Any voltage drop on VHP will directly impact the
negative charge pump supply (-VHPFILT) and clip the audio * *
output. 150 pF 150 pF 1 µF 10 µF
6. The value of RL, a current-limiting resistor used with electret AFILTA
condenser microphones, is dictated by the microphone AFILTB
cartridge.
7. The negative terminal of the MICx inputs connects to the VQ
ground pin of the microphone cartridge. Gain is applied only to FILT+
the positive terminal.
DGND
* Capacitors must be C0G or equivalent
DS680F2 11
3/1/13
CS42L52
3. CHARACTERISTIC AND SPECIFICATIONS
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/under voltage is limited by the input current.
12 DS680F2
3/1/13
CS42L52
ANALOG INPUT CHARACTERISTICS
Test Conditions (unless otherwise specified): Input sine wave (relative to digital full scale): 1 kHz through passive input filter; All
Supplies = VA; TA = +25C; Sample Frequency = 48 kHz; Measurement Bandwidth is 20 Hz to 20 kHz unless otherwise speci-
fied; “Required Initialization Settings” on page 37 written on power up.
VA = 2.5V VA = 1.8V
Parameters Min Typ Max Min Typ Max Unit
Analog In to ADC (PGA bypassed)
Dynamic Range A-weighted 93 99 - 90 96 - dB
unweighted 90 96 - 87 93 - dB
Total Harmonic Distortion + Noise -1 dBFS - -86 -80 - -84 -78 dB
-20 dBFS - -76 - - -73 - dB
-60 dBFS - -36 -30 - -33 -27 dB
Analog In to PGA to ADC
Dynamic Range
PGA Setting: 0 dB A-weighted 92 96 - 89 95 - dB
unweighted 89 93 - 86 92 - dB
PGA Setting: +12 dB A-weighted 85 91 - 82 88 - dB
unweighted 82 88 - 79 85 - dB
Total Harmonic Distortion + Noise
PGA Setting: 0 dB -1 dBFS - -88 -82 - -86 -80 dB
-60 dBFS - -33 -27 - -32 -26 dB
PGA Setting: +12 dB -1 dBFS - -85 -79 - -83 -77 dB
Analog In to MIC Pre-Amp (+16 dB) to PGA to ADC
Dynamic Range
PGA Setting: 0 dB A-weighted - 86 - - 83 - dB
unweighted - 83 - - 80 - dB
Total Harmonic Distortion + Noise
PGA Setting: 0 dB -1 dBFS - -76 - - -74 - dB
Analog In to MIC Pre-Amp (+32 dB) to PGA to ADC
Dynamic Range
PGA Setting: 0 dB A-weighted - 76 - - 74 - dB
unweighted - 73 - - 71 - dB
Total Harmonic Distortion + Noise
PGA Setting: 0 dB -2 dBFS - -74 - - -71 - dB
Other Characteristics
DC Accuracy
Interchannel Gain Mismatch - 0.2 - - 0.2 - dB
Gain Drift - ±100 - - ±100 - ppm/°C
Offset Error SDOUT Code with HPF On - 352 - - 352 - LSB
Input
Interchannel Isolation - 90 - - 90 - dB
HP Amp to Analog Input Isolation RL = 10 k - 100 - - 100 - dB
(Note 3) RL = 16 - 70 - - 70 - dB
Speaker Amp to Analog Input Isolation - 60 - - 60 - dB
Full-scale Input Voltage ADC 0.73•VA 0.769•VA 0.83•VA 0.73•VA 0.769•VA 0.83•VA Vpp
PGA (0 dB) 0.73•VA 0.770•VA 0.83•VA 0.73•VA 0.770•VA 0.83•VA Vpp
PGA (+12 dB) 0.194•VA 0.194•VA Vpp
MIC (+16 dB) 0.115•VA 0.115•VA Vpp
MIC (+32 dB) 0.019•VA 0.019•VA Vpp
Input Impedance (Note 4) ADC - 20 - - 20 - k
PGA - 39 - - 39 - k
MIC - 50 - - 50 - k
3. Measured with DAC delivering full-scale output into specified load.
4. Measured between analog input and AGND.
DS680F2 13
3/1/13
CS42L52
ADC DIGITAL FILTER CHARACTERISTICS
5. Response is clock-dependent and will scale with Fs. Note that the response plots (Figures 26 to 29 on
page 78) have been normalized to Fs and can be de-normalized by multiplying the X-axis scale by Fs.
HPF parameters are for Fs = 48 kHz.
14 DS680F2
3/1/13
CS42L52
ANALOG OUTPUT CHARACTERISTICS
Test conditions (unless otherwise specified): Input test signal is a full-scale 997 Hz sine wave; All Supplies = VA; TA = +25C;
Sample Frequency = 48 kHz; Measurement bandwidth is 20 Hz to 20 kHz; Test load RL = 10 k CL = 10 pFfor the line output
(see Figure 2); Test load RL = 16 CL = 10 pF (see Figure 2) for the headphone output; HP_GAIN[2:0] = 011; “Required Initial-
ization Settings” on page 37 written on power up.
VA = 2.5 V VA = 1.8 V
Parameters (Note 6) Min Typ Max Min Typ Max Unit
RL = 10 k
Dynamic Range
18- to 24-Bit A-weighted 92 98 - 89 95 - dB
unweighted 89 95 - 86 92 - dB
16-Bit A-weighted - 96 - - 93 - dB
unweighted - 93 - - 90 - dB
Total Harmonic Distortion + Noise
18- to 24-Bit 0 dB - -86 -80 - -88 -82 dB
-20 dB - -75 - - -72 - dB
-60 dB - -35 -29 - -32 -26 dB
16-Bit 0 dB - -86 - - -88 - dB
-20 dB - -73 - - -70 - dB
-60 dB - -33 - - -30 - dB
RL = 16
Dynamic Range
18- to 24-Bit A-weighted 92 98 - 89 95 - dB
unweighted 89 95 - 86 92 - dB
16-Bit A-weighted - 96 - - 93 - dB
unweighted - 93 - - 90 - dB
Total Harmonic Distortion + Noise
18- to 24-Bit 0 dB - -75 -69 - -75 -69 dB
-20 dB - -75 - - -72 - dB
-60 dB - -35 -29 - -32 -26 dB
16-Bit 0 dB - -75 - - -75 - dB
-20 dB - -73 - - -70 - dB
-60 dB - -33 - - -30 - dB
Other Characteristics for RL = 16 or 10 k
Output Parameters Modulation Index (MI) - 0.6787 - - 0.6787 -
(Note 7) Analog Gain Multiplier (G) - 0.6047 - - 0.6047 -
Full-scale Output Voltage (2•G•MI•VA) (Note 7) See “Line Output Voltage Level Characteristics” on Vpp
page 19
Full-scale Output Power (Note 7) See “Headphone Output Power Characteristics” on page 18
Interchannel Isolation (1 kHz) 16 - 80 - - 80 - dB
10 k - 95 - - 93 - dB
Speaker Amp to HP Amp Isolation - 80 - - 80 - dB
Interchannel Gain Mismatch - 0.1 0.25 - 0.1 0.25 dB
Gain Drift - ±100 - - ±100 - ppm/°C
AC Load Resistance (RL) (Note 8) 16 - - 16 - -
Load Capacitance (CL) (Note 8) - - 150 - - 150 pF
DS680F2 15
3/1/13
CS42L52
8. See Figure 2. RL and CL reflect the recommended minimum resistance and maximum capacitance re-
quired for the internal op-amp's stability and signal integrity. In this circuit topology, CL will effectively
move the band-limiting pole of the amp in the output stage. Increasing this value beyond the recom-
mended 150 pF can cause the internal op-amp to become unstable.
16 DS680F2
3/1/13
CS42L52
PWM OUTPUT CHARACTERISTICS
Test conditions (unless otherwise specified): Input test signal is a full scale 997 Hz signal; MCLK = 12.2880 MHz; Measurement
Bandwidth is 20 Hz to 20 kHz; Sample Frequency = 48 kHz; Test load RL = 8 for stereo full-bridge, RL = 4 for mono parallel
full-bridge; VD = VL = VA = VHP = 1.8 V; PWM Modulation Index of 0.85; PWM Switch Rate = 384 kHz; “Required Initialization
Settings” on page 37 written on power up. (Note 9)
Parameters (Note 10) Symbol Conditions Min Typ Max Units
VP = 5.0 V
Power Output per Channel PO
Stereo Full-Bridge THD+N < 10% - 1.00 - Wrms
THD+N < 1% - 0.80 - Wrms
Mono Parallel Full-Bridge THD+N < 10% - 1.90 - Wrms
THD+N < 1% - 1.50 - Wrms
Total Harmonic Distortion + Noise THD+N
Stereo Full-Bridge PO = 0 dBFS = 0.8W - 0.52 - %
Mono Parallel Full-Bridge PO = -3 dBFS = 0.75 W - 0.10 - %
PO = 0 dBFS = 1.5 W - 0.50 - %
Dynamic Range DR
Stereo Full-Bridge PO = -60 dBFS, A-Weighted - 91 - dB
PO = -60 dBFS, Unweighted - 88 - dB
Mono Parallel Full-Bridge PO = -60 dBFS, A-Weighted - 91 - dB
PO = -60 dBFS, Unweighted - 88 - dB
VP = 3.7 V
Power Output per Channel PO
Stereo Full-Bridge THD+N < 10% - 0.55 - Wrms
THD+N < 1% - 0.45 - Wrms
Mono Parallel Full-Bridge THD+N < 10% - 1.00 - Wrms
THD+N < 1% - 0.84 - Wrms
Total Harmonic Distortion + Noise THD+N
Stereo Full-Bridge PO = 0 dBFS = 0.43 W - 0.54 - %
Mono Parallel Full-Bridge PO = -3 dBFS = 0.41 W - 0.09 - %
PO = 0 dBFS = 0.81 W - 0.45 - %
Dynamic Range DR
Stereo Full-Bridge PO = -60 dBFS, A-Weighted - 91 - dB
PO = -60 dBFS, Unweighted - 88 - dB
Mono Parallel Full-Bridge PO = -60 dBFS, A-Weighted - 95 - dB
PO = -60 dBFS, Unweighted - 92 - dB
VP =2.5 V
Power Output per Channel PO
Stereo Full-Bridge THD+N < 10% - 0.23 - Wrms
THD+N < 1% - 0.19 - Wrms
Mono Parallel Full-Bridge THD+N < 10% - 0.44 - Wrms
THD+N < 1% - 0.35 - Wrms
Total Harmonic Distortion + Noise THD+N
Stereo Full-Bridge PO = 0 dBFS = 0.18 W - 0.50 - %
Mono Parallel Full-Bridge PO = -3 dBFS = 0.17 W - 0.08 - %
PO = 0 dBFS = 0.35 W - 0.43 - %
Dynamic Range DR
Stereo Full-Bridge PO = -60 dBFS, A-Weighted - 91 - dB
PO = -60 dBFS, Unweighted - 88 - dB
Mono Parallel Full-Bridge PO = -60 dBFS, A-Weighted - 94 - dB
PO = -60 dBFS, Unweighted - 91 - dB
MOSFET On Resistance RDS(ON) VP = 5.0V, Id = 0.5 A - 600 - m
DS680F2 17
3/1/13
CS42L52
Parameters (Note 10) Symbol Conditions Min Typ Max Units
MOSFET On Resistance RDS(ON) VP = 3.7V, Id = 0.5 A - 640 - m
MOSFET On Resistance RDS(ON) VP = 2.5V, Id = 0.5 A - 760 - m
Efficiency VP = 5.0 V, PO = 2 x 0.8 W, RL = 8 - 81 - %
Output Operating Peak Current IPC - - 1.5 A
VP Input Current During Reset IVP RESET, pin 32, is held low - 0.8 5.0 µA
AOUTx
51
0.022 F
C R
L L
AGND
18 DS680F2
3/1/13
CS42L52
LINE OUTPUT VOLTAGE LEVEL CHARACTERISTICS
Test conditions (unless otherwise specified): Input test signal is a full-scale 997 Hz sine wave; measurement bandwidth is 20 Hz
to 20 kHz; Sample Frequency = 48 kHz; Test load RL = 10 k CL = 10 pF (see Figure 2); “Required Initialization Settings” on
page 37 written on power up.
Parameters VA = 2.5V VA = 1.8V Unit
Min Typ Max Min Typ Max
AOUTx Voltage Into RL = 10 k
HP_GAIN[2:0] Analog VHP
Gain (G)
000 0.3959 1.8 V - 1.34 - - 0.97 - Vpp
2.5 V - 1.34 - - 0.97 - Vpp
001 0.4571 1.8 V - 1.55 - - 1.12 - Vpp
2.5 V - 1.55 - - 1.12 - Vpp
010 0.5111 1.8 V - 1.73 - - 1.25 - Vpp
2.5 V - 1.73 - - 1.25 - Vpp
011 (default) 0.6047 1.8 V - 2.05 - 1.41 1.48 1.55 Vpp
2.5 V 1.95 2.05 2.15 - 1.48 - Vpp
100 0.7099 1.8 V - 2.41 - - 1.73 - Vpp
2.5 V - 2.41 - - 1.73 - Vpp
101 0.8399 1.8 V - 2.85 - 2.05 Vpp
2.5 V - 2.85 - - 2.05 - Vpp
110 1.0000 1.8 V - 3.39 - - 2.44 - Vpp
2.5 V - 3.39 - - 2.44 - Vpp
111 1.1430 1.8 V (See (Note 11) - 2.79 - Vpp
2.5 V - 3.88 - - 2.79 - Vpp
12. Response is clock dependent and scales with Fs. Note that the response plots (Figures 30 and 33 on
page 78) have been normalized to Fs and can be de-normalized by multiplying the X-axis scale by Fs.
13. Measurement Bandwidth is from Stopband to 3 Fs.
DS680F2 19
3/1/13
CS42L52
SWITCHING SPECIFICATIONS - SERIAL PORT
Inputs: Logic 0 = DGND, Logic 1 = VL, SDOUT CLOAD = 15 pF.
Parameters Symbol Min Max Units
RESET pin Low Pulse Width (Note 14) 1 - ms
MCLK Frequency (Note 15) (See “Serial Port Clock- MHz
ing” on page 33)
MCLK Duty Cycle 45 55 %
Slave Mode
Input Sample Rate (LRCK) Fs (See “Serial Port Clock- kHz
ing” on page 33)
LRCK Duty Cycle 45 55 %
SCLK Frequency 1/tP - 64•Fs Hz
SCLK Duty Cycle 45 55 %
LRCK Setup Time Before SCLK Rising Edge ts(LK-SK) 40 - ns
LRCK Edge to SDOUT MSB Output Delay td(MSB) - 52 ns
SDOUT Setup Time Before SCLK Rising Edge ts(SDO-SK) 20 - ns
SDOUT Hold Time After SCLK Rising Edge th(SK-SDO) 30 - ns
SDIN Setup Time Before SCLK Rising Edge ts(SD-SK) 20 - ns
SDIN Hold Time After SCLK Rising Edge th 20 - ns
Master Mode
Output Sample Rate (LRCK) All Speed Modes Fs (See “Serial Port Clock- Hz
ing” on page 33)
LRCK Duty Cycle 45 55 %
SCLK Frequency SCLK=MCLK mode 1/tP - 12.0000 MHz
MCLK=12.0000 MHz 1/tP - 68•Fs Hz
all other modes 1/tP - 64•Fs Hz
SCLK Duty Cycle 45 55 %
LRCK Edge to SDOUT MSB Output Delay td(MSB) - 52 ns
SDOUT Setup Time Before SCLK Rising Edge ts(SDO-SK) 20 - ns
SDOUT Hold Time After SCLK Rising Edge th(SK-SDO) 30 - ns
SDIN Setup Time Before SCLK Rising Edge ts(SD-SK) 20 - ns
SDIN Hold Time After SCLK Rising Edge th 20 - ns
14. After powering up the CS42L52, RESET should be held low after the power supplies and clocks are
settled.
15. See “Example System Clock Frequencies” on page 76 for typical MCLK frequencies.
//
LRCK
//
ts(LK-SK) tP
//
SCLK
//
td(MSB) th(SK-SDO) ts(SDO-SK)
//
SDOUT MSB MSB-1
//
ts(SD-SK) th
//
SDIN MSB MSB-1
//
Figure 3. Serial Audio Interface Timing
20 DS680F2
3/1/13
CS42L52
SWITCHING SPECIFICATIONS - I²C CONTROL PORT
Inputs: Logic 0 = DGND, Logic 1 = VL, SDA CL = 30 pF.
16. Data must be held for sufficient time to bridge the transition time, tfc, of SCL.
RST
t irs
Repeated
Stop Start Start Stop
SDA
t buf t hdst t high t tf
hdst t susp
SCL
t t t sud t sust tr
low hdd
DS680F2 21
3/1/13
CS42L52
DC ELECTRICAL CHARACTERISTICS
AGND = 0 V; All voltages with respect to ground.
Parameters Min Typ Max Units
VQ Characteristics
Nominal Voltage - 0.5•VA - V
Output Impedance - 23 - k
DC Current Source/Sink - - 1 A
MIC BIAS Characteristics
Nominal Voltage BIASLVL[2:0] = 000 - 0.5•VA - V
BIASLVL[2:0] = 001 - 0.6•VA - V
BIASLVL[2:0] = 010 - 0.7•VA - V
BIASLVL[2:0] = 011 - 0.8•VA - V
BIASLVL[2:0] = 100 - 0.83•VA - V
BIASLVL[2:0] = 101 - 0.91•VA - V
DC Output Current - - 1 mA
Power Supply Rejection Ratio (PSRR) 1 kHz - 50 - dB
Power Supply Rejection Ratio Characteristics
PSRR @1 kHz (Note 17) PGA to ADC - 44 - dB
ADC - 60 - dB
DAC (HP and Line Amps) - 60 - dB
PSRR @60 Hz (Note 17) PGA to ADC(Note 18) - 22 - dB
ADC - 42 - dB
DAC (HP and Line Amps) - 60 - dB
PSRR @217 Hz Full-Bridge PWM Outputs - 56 - dB
17. Valid with the recommended capacitor values on FILT+ and VQ. Increasing the capacitance will also
increase the PSRR.
18. The PGA is biased with VQ, created from a resistor divider from the VA supply. Increasing the capaci-
tance on VQ will also increase the PSRR at low frequencies. A 10 µF capacitor on VQ improves the
PSRR to 42 dB.
19. See “I/O Pin Characteristics” on page 10 for serial and control port power rails.
22 DS680F2
3/1/13
CS42L52
POWER CONSUMPTION See (Note 20).
Power Ctl. Registers Typical Current (mA)
Operation 02h 03h 04h
iVHP iVA iVD iVL iVP Total
PDN_SPKB[1:0]
PDN_SPKA[1:0]
PDN_MICBIAS
PDN_HPB[1:0]
PDN_HPA[1:0]
VL=3.3V VP=3.7V Power
PDN_PGAB
PDN_PGAA
PDN_ADCB
PDN_ADCA
(Note 23)
PDN_MICB
PDN_MICA
(mWrms)
PDN
V
1 Off (Note 21) x x x x x x x x x x x x 1.8 0.00 0.00 0.00 0.00
0.00 0.00
2.5 0.00 0.00 0.00 0.00
2 Standby (Note 22) x x x x 1 x x x x x x x 1.8 0.00 0.00 0.01 0.02
0.00 0.00
2.5 0.00 0.00 0.02 0.05
3 Mono Record ADC 1 1 1 0 0 1 1 1 11 11 11 11 1.8 0.00 1.67 2.32 7.24
0.03 0.00
2.5 0.00 1.87 3.72 14.05
PGA to ADC 1 0 1 0 0 1 1 1 11 11 11 11 1.8 0.00 2.1 2.31 7.99
0.03 0.00
2.5 0.00 2.3 3.72 15.13
MIC to PGA to ADC 1 0 1 0 0 1 0 0 11 11 11 11 1.8 0.00 3.48 2.32 10.49
(with Bias) 0.03 0.00
2.5 0.00 3.71 3.72 18.65
MIC to PGA to ADC 1 0 1 0 0 1 0 1 11 11 11 11 1.8 0.00 3.15 2.32 9.90
(no Bias) 0.03 0.00
2.5 0.00 3.37 3.73 17.83
4 Stereo Record ADC 1 1 0 0 0 1 1 1 11 11 11 11 1.8 0.00 2.31 2.37 8.48
0.03 0.00
2.5 0.00 2.53 3.82 15.95
PGA to ADC 0 0 0 0 0 1 1 1 11 11 11 11 1.8 0.00 3.18 2.37 10.04
0.03 0.00
2.5 0.00 3.42 3.81 18.15
MIC to PGA to ADC 0 0 0 0 0 0 0 1 11 11 11 11 1.8 0.00 5.32 2.37 13.90
(no Bias) 0.03 0.00
2.5 0.00 5.57 3.81 23.53
5 Mono Playback to Headphone 1 1 1 1 0 1 1 1 10 11 11 11 1.8 1.59 1.99 2.72 11.36
0.01 0.00
2.5 2.07 2.62 4.27 22.43
6 Mono Playback to Speaker 1 1 1 1 0 1 1 1 11 11 10 10 1.8 0.00 0.20 4.42 12.05
0.01 1.00
2.5 0.00 0.22 6.77 21.21
7 Stereo Playback to Headphone 1 1 1 1 0 1 1 1 10 10 11 11 1.8 2.77 2.00 2.91 13.84
0.01 0.00
2.5 3.27 2.63 4.28 25.48
8 Stereo Playback to Speaker 1 1 1 1 0 1 1 1 11 11 10 10 1.8 0.00 0.20 4.38 11.98
0.01 1.00
2.5 0.00 0.22 6.80 21.28
9 Stereo Passthrough to Head- 1 1 1 1 0 1 1 1 10 10 11 11 1.8 2.79 1.91 1.06 10.39
phone 0.01 0.00
2.5 3.18 2.14 1.81 17.85
10 Mono Record and Playback 1 0 1 0 0 1 1 1 11 10 11 11 1.8 1.77 3.95 4.28 18.05
PGA in (no MIC) to Mono HP 0.03 0.00
2.5 2.13 4.77 6.63 33.90
11 Phone Monitor 1 0 1 0 0 1 0 0 11 10 11 11 1.8 1.76 5.33 4.28 20.52
MIC (w/bias) in to Mono Out 0.03 0.00
2.5 2.15 6.19 6.69 37.65
12 Stereo Record and Playback 0 0 0 0 0 1 1 1 10 10 11 11 1.8 2.76 5.05 4.64 22.46
PGA in (no MIC) to St. HP Out 0.03 0.00
2.5 3.21 5.90 7.17 40.78
13 Stereo Rec. and Full Playback 0 0 0 0 0 1 1 1 10 10 10 10 1.8 3.49 5.24 7.20 32.47
PGA (no MIC) to St. HP and SPK 0.03 1.00
2.5 3.95 6.10 10.46 55.07
20. Unless otherwise noted, test conditions are as follows: All zeros input, slave mode, sample
rate = 48 kHz; No load. Digital (VD) and logic (VL) supply current will vary depending on speed mode
and master/slave operation. “Required Initialization Settings” on page 37 written on power up.
21. RESET pin 25 held LO, all clocks and data lines are held LO.
22. RESET pin 25 held HI, all clocks and data lines are held HI.
DS680F2 23
3/1/13
CS42L52
4. APPLICATIONS
4.1 Overview
4.1.1 Basic Architecture
The CS42L52 is a highly integrated, low-power, 24-bit audio CODEC comprised of a stereo analog-to-
digital converter (ADC), a stereo digital-to-analog converter (DAC), a digital PWM modulator and two full-
bridge power back-ends. The ADC and DAC are designed using multibit delta-sigma techniques - the
DAC operates at an oversampling ratio of 128Fs and the ADC operates at 64Fs, where Fs is equal to the
system sample rate.
The different clock rates maximize power savings while maintaining high performance. The PWM modu-
lator operates at a fixed frequency of 384 kHz. The power FETs are configured for either stereo full-bridge
or mono parallel full-bridge output. The CODEC operates in one of four sample rate speed modes: Quar-
ter, Half, Single, and Double. It accepts and is capable of generating serial port clocks (SCLK, LRCK) de-
rived from an input Master Clock (MCLK).
24 DS680F2
3/1/13
CS42L52
4.2 Analog Inputs
ADCASEL[2:0]
MIC1A
AIN4A/ MIC1+/
DIGSUM [1:0] ALCA MIC2A
ALCASRDIS
ALCAZCDIS PDN_PGAA
PCM Serial Interface
PGAAVOL[5:0] Refer to
ADCB=A “M IC Inputs”
ALCARATE[5:0]
ANLGSFTA
Swap/ ALCRRATE[5:0] NGALL
ALC Noise Gate ANLGZCA
Mix MAX[2:0]
` NG
THRESH[3:0]
BIASLVL[2:0]
PDN_BIAS
PDN_PGAB MICBIAS
DIGM IX M IN[2:0] NGDELAY[1:0] PGABVOL[5:0]
ADCB=A Refer to
ALCB ANLGSFTB “M IC Inputs”
ALCBSRDIS ANLGZCB
ALCBZCDIS AIN4B/ MIC2+/
MIC2B
ADCBSEL[2:0]
DS680F2 25
3/1/13
CS42L52
4.2.1 MIC Inputs
The input pins 21, 22, 23, and 24 accept stereo line-level or microphone signals. For microphone inputs,
either single-ended or differential configuration is allowed, providing programmable pre-amplification of
low-level signals. In the single-ended configuration, an internal MUX chooses one of two stereo sets (se-
lection is made independently on channels A and B). In the differential configuration, an internal voltage
follower cascaded with the pre-amplifier maintains high input impedance and provides noise rejection
above the MICxGAIN setting. The pre-amps are biased to VQ in both configurations.
MICAGAIN[4:0] MICAGAIN[4:0]
-
23 VQ - 23 -
MIC1A MIC1- +
21 + 16..32 dB/ to summing + 16..32 dB/ to summing
21
MIC2A 1 dB steps PGA A MIC1+ 1 dB steps PGA A
MICASEL
MICBGAIN[4:0]
MICBGAIN[4:0]
-
24 -
MIC1B 24 VQ - MIC2- +
+ 16..32 dB/ to summing
22
+ 16..32 dB/ to summing MIC2+ 22 1 dB steps PGA B
MIC2B 1 dB steps PGA B
MICBSEL
MICACFG=’1'b PDN_MICA=’0'b
MICACFG=’0'b PDN_MICA=’0'b MICBCFG=’1'b PDN_MICB=’0'b
MICBCFG=’0'b PDN_MICB=’0'b
It should be noted that the ALC is applied independently to channels A and B with one exception: the input
signals on both channels A and B must be below the MIN threshold in order for the ALC attenuation to be
released on channel B.
Attack and release rates are affected by the ADC soft-ramp/zero-cross settings and sample rate, Fs. ALC
soft-ramp and zero-cross dependency may be independently enabled/disabled.
Recommended settings: Best level control may be realized with the fastest attack and slowest release
setting with soft ramp enabled in the control registers.
Notes:
1. When ALC x is enabled and the PGAxVOL[5:0] is set above 12 dB, the ADCxVOL[7:0] should not be
set below 0 dB.
2. The maximum realized gain must be set in the PGAxVOL register. The ALC will only apply the gain
set in the PGAxVOL.
3. The ALC maintains the output signal between the MIN/MAX thresholds. As input signal level changes,
the level-controlled output may not always be the same but always falls within the thresholds.
26 DS680F2
3/1/13
CS42L52
In p u t (b e fo re A L C )
M A X [2 :0 ]
M IN [2 :0 ]
b e lo w fu ll s ca le
b e lo w fu ll s ca le
A LC
R e sp o n se
P G A G a in a n d /o r
A tte n u a to r
O u tp u t
(a fte r A L C )
M A X [2 :0 ]
M IN [2 :0 ]
b e lo w fu ll sca le
b e lo w fu ll sc a le
R R A T E [5 :0 ] A R A T E [5 :0
]
Figure 8. ALC
Note: Maximum noise gate attenuation levels will depend on the gain applied in either the PGA or MIC
pre-amplifier. For example: If both +32 dB pre-amplification and +12 dB programmable gain is applied,
the maximum attenuation that the noise gate achieves will be 52 dB (-96 + 32 + 12) below full-scale.
Referenced Control Register Location
Noise Gate Controls............ “Noise Gate Control (Address 2Dh)” on page 69
Output
(dB)
=1
EN
G
N
-52 dB
Maximum Attenuation*
-64 dB
=0
EN
G
N
-80 dB
Input (dB)
-96 -40
THRESH[2:0]
Figure 9. Noise Gate Attenuation
DS680F2 27
3/1/13
CS42L52
4.3 Analog Outputs
INPUTS FROM ADCA
and ADCB
PCMASWAP[1:0]
+12dB/-51.5dB
PCMBSWAP[1:0]
0.5dB steps
Bass/
Channel
Demph VOL VOL Treble/
Swap
Control
DEEMPH INV_PCMA
INV_PCMB TC_EN
MSTAMUTE BASS_CF[1:0]
BPVOL[4:0]
MSTBMUTE TREB_CF[1:0] DAC
DIGSFT BASS[3:0]
OFFTIME[2:0]
0dB/-50dB DIGZC TREB[3:0]
ONTIME[3:0]
2.0dB steps PLYBCKB=A +12.0dB/-10.5dB
FREQ[3:0]
BEEP[1:0] 1.5dB steps
BEEPMIXDIS Beep VOL
Generator
28 DS680F2
3/1/13
CS42L52
BATTCMP
VPREF[3:0]
VPLVL[7:0]
SPKAMUTE HPAMUTE PDN_HPA[1:0]
SPKBMUTE HPBMUTE PDN_HPB[1:0]
MUTE50/50 Battery HPA_VOL[7:0]
SPKMONO Compensation HPB_VOL[7:0] HPGAIN[2:0]
SPKSWAP +0dB/-102dB
SPKB=A 0.5dB steps
SPKAVOL[7:0]
SPKBVOL[7:0]
+0dB/-102dB A
0.5dB steps from DSP
VOL DAC
HP/Line
Engine
+ A Outputs
- B
from DSP PWM Gate
VOL + B
Engine Modulator Drive Analog Passthru
- from PGA
VOL Charge
Pump
PASSTHRUA
PDN_SPKA[1:0]
Speaker PASSTHRUB
PDN_SPKB[1:0] Outputs PASSAMUTE
PASSBMUTE
PASSAVOL[7:0] CHGFREQ[3:0]
Short PASSBVOL[70]
+12dB/-60dB
Circuit 0.5dB steps
SPKASHRT (uses PGA)
SPKBSHRT
Figure 11. PWM Output Stage Figure 12. Analog Output Stage
Note: The Beep is generated before the limiter and may affect desired limiting performance. If the lim-
iter function is used, it may be required to set the beep volume sufficiently below the threshold to prevent
the peak detect from triggering. Since the master volume control, MSTxVOL[7:0], will affect the beep vol-
ume, DAC volume may alternatively be controlled using the PMIXxVOL[6:0] bits.
DS680F2 29
3/1/13
CS42L52
BEEP[1:0] = CONTINUOUS BEEP: Beep turns on at a configurable frequency (FREQ) and volume (BPVOL) and remains on
'11' until BEEP is cleared.
BPVOL[4:0] ...
FREQ[3:0]
ONTIME[3:0] OFFTIME[2:0]
4.3.2 Limiter
When enabled, the limiter monitors the digital input signal before the DAC and PWM modulators, detects
when levels exceed the maximum threshold settings, and lowers the master volume at a programmable
attack rate below the maximum threshold. When the input signal level falls below the maximum threshold,
the AOUT volume returns to its original level set in the Master Volume Control register at a programmable
release rate. Attack and release rates are affected by the DAC soft-ramp/zero-cross settings and sample
rate, Fs. Limiter soft-ramp and zero-cross dependency may be independently enabled/disabled.
Notes:
1. Recommended settings: Best limiting performance may be realized with the fastest attack and
slowest release setting with soft ramp enabled in the control registers. The MIN bits allow the user to
set a threshold slightly below the maximum threshold for hysteresis control - this cushions the sound
as the limiter attacks and releases.
2. The Limiter maintains the output signal between the MIN and MAX thresholds. As the digital input
signal level changes, the level-controlled output may not always be the same but will always fall within
the thresholds.
Referenced Control Register Location
Limiter Controls ................... “Limiter Control 2, Release Rate (Address 28h)” on page 66, “Limiter Attack Rate (Address 29h)” on page 67
Master Volume Control........ “Master Volume Control: MSTA (Address 20h) and MSTB (Address 21h)” on page 63
30 DS680F2
3/1/13
CS42L52
In p u t
M A X [2 :0 ]
L im ite r
A T T A C K /R E L E A S E S O U N D
C U S H IO N
V o lu m e
O u tp u t
(a fte r L im ite r)
C U S H [2 :0 ]
M A X [2 :0 ]
A R A T E [5 :0 ] R R A T E [5 :0 ]
When PASSTHRU and PDN_OVRD are enabled, turning the speaker channel ON (by writing ‘11’b to SP-
Kx_PDN[1:0] or by automatic activation of the headphone detect switch, SPK/HP_SW) will automatically
disable the ADCx_PDN in order to convert the analog input to a digital signal for the PWM modulator. This
allows automatic analog input routing to the speaker amplifiers.
DS680F2 31
3/1/13
CS42L52
When passthrough is enabled, turning the headphone channel ON (by writing ‘11’b to HPx_PDN[1:0] or
by automatic activation of the headphone detect switch, SPK/HP_SW) will automatically disable the
PGAx_PDN in order to transmit the analog signal to the headphone.
Referenced Control Register Location
PDN_PGAx ......................... “Power Down PGAx” on page 42
PASSTHRU......................... “Passthrough Analog” on page 52
HPx_PDN[1:0]..................... “Headphone Power Control” on page 44
Speaker Output
Pin SPKMONO=0 SPKMONO=1
SPKSWAP=0 SPKSWAP=1 SPKSWAP=0 SPKSWAP=1
4 SPKOUTA+ SPKOUTB+ SPKOUTA+ SPKOUTB+
6 SPKOUTA- SPKOUTB- SPKOUTA+ SPKOUTB+
7 SPKOUTB+ SPKOUTA+ SPKOUTA- SPKOUTB-
9 SPKOUTB- SPKOUTA- SPKOUTA- SPKOUTB-
Referenced Control Register Location
SPKMONO.......................... “Speaker MONO Control” on page 54
SPKSWAP........................... “Speaker Channel Swap” on page 54
32 DS680F2
3/1/13
CS42L52
4.5.2 VP Battery Compensation
The CS42L52 provides the option to maintain a desired power output level, independent of the VP supply.
When enabled, this feature works by monitoring the voltage on the VP supply and reducing the attenua-
tion on the speaker outputs when VP voltage levels fall.
Note: The internal ADC that monitors the VP supply operates from the VA supply. Calculations are
based on typical VA levels of 1.8 V and 2.5 V using the VPREF bits.
The CS42L52 automatically adjusts the output level as the battery discharges.
The CS42L52 automatically adjusts the output level as the battery discharges. Refer to Figure 15 on page
33. In this example, the VP supply changes over a wide range, illustrating the accuracy of the CS42L52’s
battery compensation.
-6
Battery Compensated
-8
PWM Output Level
PWM Output Level (dB)
-10
-12
Uncompensated
-14 PWM Output
-16 Level
-18
-20
-22
-24
4.9 4.6 4.3 4 3.7 3.4 3.1 2.8 2.5 2.2 1.9 1.6
VP Supply (V)
Figure 15. Battery Compensation
Referenced Control Register Location
VPREF ................................ “VP Reference” on page 72
SPKxVOL ............................ “Speaker Volume Control” on page 64
DS680F2 33
3/1/13
CS42L52
input master clock (MCLK) in Master Mode. Refer to the tables below for the required setting in register 05h
and 06h associated with a given MCLK and sample rate.
Referenced Control Register Location
M/S “Master/Slave Mode” on page 46
Register 05h “Clocking Control (Address 05h)” on page 44
Register 06h “Interface Control 1 (Address 06h)” on page 46
34 DS680F2
3/1/13
CS42L52
MCLK Sample Rate, SPEED[1:0] 32kGROUP VIDEOCLK RATIO[1:0] MCLKDIV2
(MHz) Fs (kHz) (AUTO=’0’b)
8.0000 11 1 1 01 0
12.0000 11 0 1 01 0
24.0000 10 0 1 01 0
32.0000 01 1 1 01 0
27.0000 44.1176 01 0 1 11 0
48.0000 01 0 1 01 0
11.0294 11 0 1 11 0
22.0588 10 0 1 11 0
16.0000 10 1 1 01 0
Table 1. MCLK, LRCK Quick Decode
LRCK
L eft C h a n n el R ig ht C h a n n el
SCLK
LRCK
L eft C h a n n el R ig ht C h a n n el
SCLK
LRCK L e ft C h a n n e l R ig h t C h a n n e l
SCLK
AO UTL AO UTR
Audio W ord Length (AW L)
DS680F2 35
3/1/13
CS42L52
1/fs
LRCK
SCLK
Register commands ONLY when entering DSP 16-bit, 8 kHz Fs, SCLK=MCLK, master mode:
Register[Bits] Value Description
1 0x0C[1:0] 0x03 Mute the ADC outputs to ensure no audible artifacts are transmitted when changing modes.
2 Refer to Section 4.10 Follow the recommended power down sequence for the HP and PWM outputs.
3 0x02[0] 0x01 Power down the CODEC.
4 0x05[7:0] 0x72 Enable 8 kHz Fs for MCLK=12.000 MHz.
5 0x06[7:0] 0x93 Enable DSP 16-bit master mode.
6 0x07[6] 0x01 Enable SCLK=MCLK.
7 0x33[6] 0x01 Undisclosed register command for enabling mode mentioned above.
8 Refer to Section 4.9 Follow the recommended power up sequence for the HP and PWM outputs.
9 0x02[0] 0x00 Power up the CODEC.
10 0x0C[1:0] 0x00 Unmute the ADC outputs.
Register commands when exiting DSP 16-bit, 8 kHz Fs, SCLK=MCLK, master mode:
Register[Bits] Value Description
1 0x0C[1:0] 0x03 Mute the ADC outputs to ensure no audible artifacts are transmitted when changing modes.
2 Refer to Section 4.10 Follow the recommended power down sequence for the HP and PWM outputs.
3 0x02[0] 0x01 Power down the CODEC.
4 0x05[7:0] 0x20 Enable 48 kHz Fs for MCLK = 12.2880 MHz or re-establish original settings.
5 0x06[7:0] 0x00 Enable Left-Justified 24-bit slave mode or re-establish original settings.
6 0x07[6] 0x00 Disable SCLK=MCLK or re-establish original settings.
7 0x33[6] 0x00 Undisclosed register command for disabling mode mentioned above.
8 Refer to Section 4.9 Follow the recommended power up sequence for the HP and PWM outputs.
9 0x02[0] 0x00 Power up the CODEC.
10 0x0C[1:0] 0x00 Unmute the ADC outputs.
4.8 Initialization
The CODEC enters a Power-down state on initial power-up. The interpolation and decimation filters, delta-
sigma and PWM modulators, and control port registers are reset. The internal voltage reference, and
switched-capacitor low-pass filters are powered down.
The device remains in Power-down state until the RESET pin is brought high. The control port is accessible
once RESET is high and the desired register settings can be loaded per the descriptions in the Section 6.
Once MCLK is valid, the quiescent voltage, VQ, and the internal voltage reference, FILT+, will begin power-
ing up to normal operation. The charge pump slowly powers up and charges the capacitors. Power is then
applied to the headphone amplifiers and switched-capacitor filters, and the analog/digital outputs enter a mut-
ed state. Once LRCK is valid, MCLK occurrences are counted over one LRCK period to determine the MC-
LK/LRCK frequency ratio and normal operation begins.
36 DS680F2
3/1/13
CS42L52
4.9 Recommended Power-up Sequence
1. Hold RESET low until the power supplies are stable.
2. Bring RESET high.
3. The default state of the PDN bit is 1. Load the desired register settings while keeping the PDN bit set
to 11.
4. Load the required initialization settings listed in Section 4.11.
5. Apply MCLK at the appropriate frequency, as discussed in Section 4.6. SCLK may be applied or set to
master at any time; LRCK may only be applied or set to master while the PDN bit is set to 1.
6. Set the PDN bit to 0.
7. Bring RESET low if the analog or digital supplies drop below the recommended operating condition to
prevent power glitch related issues.
A disruption in the CODEC’s power down sequence (i.e. removing the MCLK signal before this 100 µs
delay) has consequences on both the headphone and speaker amplifiers: The charge pump may stop
abruptly, causing the headphone amplifiers to drive the outputs up to the +VHP supply. Also, the last
state of each ‘+’ and ‘-’ PWM output terminal before the premature removal of MCLK could randomly
be held at either VP or AGND. When this event occurs, it is possible for each PWM terminal to output
opposing potentials, creating a DC source into the speaker voice coil.
The disruption of the CODEC’s power down sequence may also cause clicks and pops on the output
of the DACs as the modulator holds the last output level before the MCLK signal was removed.
5. Optionally, MCLK may be removed at this time.
6. To achieve the lowest operating quiescent current, bring RESET low. All control port registers will be
reset to their default state.
7. Power Supply Removal (Option 1): Switch power supplies to a high impedance state.
8. Power Supply Removal (Option 2): To minimize pops when the power supplies are pulled to ground, a
discharge resistor must be added in parallel with the capacitor on the FILT+ pin. With a 1 M resistor
and a 2.2 µF capacitor on FILT+, FILT+ will ramp to ground in approximately 5 seconds. A 1 M resistor
on FILT+ reduces the full scale input/output voltage by approximately 0.25 dB.
After step 5, wait the required time for FILT+ to ramp to ground before pulling VA to ground.
DS680F2 37
3/1/13
CS42L52
1. Write 0x99 to register 0x00.
2. Write 0xBA to register 0x3E.
3. Write 0x80 to register 0x47.
4. Write 1 to bit 7 in register 0x32.
5. Write 00 to bit 7 in register 0x32.
6. Write 0x00 to register 0x00.
The control port operates using an I²C interface with the CODEC acting as a slave device.
The signal timings for a read and write cycle are shown in Figure 20 and Figure 21. A Start condition is
defined as a falling transition of SDA while the clock is high. A Stop condition is defined as a rising tran-
sition of SDA while the clock is high. All other transitions of SDA occur while the clock is low. The first byte
sent to the CS42L52 after a Start condition consists of a 7-bit chip address field and a R/W bit (high for a
read, low for a write).
The upper 6 bits of the address field are fixed at 100101. To communicate with the CS42L52, the chip
address field, which is the first byte sent to the CS42L52, should match 100101 followed by the setting of
the AD0 pin. The eighth bit of the address is the R/W bit. If the operation is a write, the next byte is the
Memory Address 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 MAP
allows successive reads or writes of consecutive registers. Each byte is separated by an acknowledge
bit. The ACK bit is output from the CS42L52 after each input byte is read and is input to the CS42L52 from
the microcontroller after each transmitted byte.
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 24 25 26 27 28
SCL
38 DS680F2
3/1/13
CS42L52
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
SCL
STOP
CHIP ADDRESS (WRITE) MAP BYTE CHIP ADDRESS (READ) DATA DATA +1 DATA + n
Since the read operation cannot set the MAP, an aborted write operation is used as a preamble. As shown
in Figure 21, the write operation is aborted after the acknowledge for the MAP byte by sending a stop con-
dition. The following pseudocode illustrates an aborted write operation followed by a read operation.
Setting the auto-increment bit in the MAP allows successive reads or writes of consecutive registers. Each
byte is separated by an acknowledge bit.
DS680F2 39
3/1/13
CS42L52
5. REGISTER QUICK REFERENCE
Default values are shown below the bit names. Unless otherwise specified, all “Reserved” bits must maintain their
default values.
Adr. Function 7 6 5 4 3 2 1 0
01h ID CHIPID4 CHIPID3 CHIPID2 CHIPID1 CHIPID0 REVID2 REVID1 REVID0
p 42 1 1 1 0 0 x x x
02h Power Ctl 1 PDN_CHRG Reserved Reserved PDN_PGAB PDN_PGAA PDN_ADCB PDN_ADCA PDN
p 42 0 0 0 0 0 0 0 1
03h Power Ctl 2 Reserved Reserved Reserved OVRDB OVRDA PDN_MICB PDN_MICA PDN_BIAS
p 43 0 0 0 0 0 1 1 1
04h Power Ctl 3 PDN_HPB1 PDN_HPB0 PDN_HPA1 PDN_HPA0 PDN_SPKB1 PDN_SPKB0 PDN_SPKA1 PDN_SPKA0
p 44 0 0 0 0 0 1 0 1
05h Clocking Ctl AUTO SPEED1 SPEED0 32kGROUP VIDEOCLK RATIO1 RATIO0 MCLKDIV2
p 44 1 0 1 0 0 0 0 0
06h Interface Ctl 1 M/S INV_SCLK ADCDIF DSP DACDIF1 DACDIF0 AWL1 AWL0
p 46 0 0 0 0 0 0 0 0
07h Interface Ctl 2 Reserved SCLK=MCLK DIGLOOP 3ST_SP INV_SWCH BIASLVL2 BIASLVL1 BIASLVL0
p 47 0 0 0 0 0 0 0 0
08h Input A Select ADCASEL2 ADCASEL1 ADCASEL0 PGAASEL5 PGAASEL4 PGAASEL3 PGAASEL2 PGAASEL1
p 48 1 0 0 0 0 0 0 1
09h Input B Select ADCBSEL2 ADCBSEL1 ADCBSEL0 PGABSEL5 PGABSEL4 PGABSEL3 PGABSEL2 PGABSEL1
p 48 1 0 0 0 0 0 0 1
0Ah Analog, HPFB HPFRZB HPFA HPFRZA ANLGSFTB ANLGZCB ANLGSFTA ANLGZCA
p 49 HPF Ctl 1 0 1 0 0 1 0 1
0Bh ADC HPF Cor- Reserved Reserved Reserved Reserved HPFB_CF1 HPFB_CF0 HPFA_CF1 HPFA_CF0
p 50 ner Freq. 0 0 0 0 0 0 0 0
0Ch Misc. ADC Ctl ADCB=A DIGMIX DIGSUM1 DIGSUM0 INV_ADCB INV_ADCA ADCBMUTE ADCAMUTE
p 50 0 0 0 0 0 0 0 0
0Dh Playback Ctl 1 HPGAIN2 HPGAIN1 HPGAIN0 PLYBCKB=A INV_PCMB INV_PCMA MSTBMUTE MSTAMUTE
p 51 0 1 1 0 0 0 0 0
0Eh Misc. Ctl PASSTHRUB PASSTHRUA PASSBMUTE PASSAMUTE FREEZE DEEMPH DIGSFT DIGZC
p 52 0 0 0 0 0 0 1 0
0Fh Playback Ctl 2 HPBMUTE HPAMUTE SPKBMUTE SPKAMUTE SPKB=A SPKSWAP SPKMONO MUTE50/50
p 54 0 0 0 0 0 0 0
10h MICA Amp Ctl Reserved MICASEL MICACFG MICAGAIN4 MICAGAIN3 MICAGAIN2 MICAGAIN1 MICAGAIN0
p 55 0 0 0 0 0 0 0 0
11h MICB Amp Ctl Reserved MICBSEL MICBCFG MICBGAIN4 MICBGAIN3 MICBGAIN2 MICBGAIN1 MICBGAIN0
p 55 0 0 0 0 0 0 0 0
12h PGAA Vol, Misc ALCASRDIS ALCAZCDIS PGAAVOL5 PGAAVOL4 PGAAVOL3 PGAAVOL2 PGAAVOL1 PGAAVOL0
p 55 0 0 0 0 0 0 0 0
13h PGAB Vol, Misc ALCBSRDIS ALCBZCDIS PGABVOL5 PGABVOL4 PGABVOL3 PGABVOL2 PGABVOL1 PGABVOL0
p 55 0 0 0 0 0 0 0 0
14h Passthru A Vol PASSAVOL7 PASSAVOL6 PASSAVOL5 PASSAVOL4 PASSAVOL3 PASSAVOL2 PASSAVOL1 PASSAVOL0
p 57 0 0 0 0 0 0 0 0
15h Passthru B Vol PASSBVOL7 PASSBVOL6 PASSBVOL5 PASSBVOL4 PASSBVOL3 PASSBVOL2 PASSBVOL1 PASSBVOL0
p 57 0 0 0 0 0 0 0 0
16h ADCA Vol ADCAVOL7 ADCAVOL6 ADCAVOL5 ADCAVOL4 ADCAVOL3 ADCAVOL2 ADCAVOL1 ADCAVOL0
p 57 0 0 0 0 0 0 0 0
17h ADCB Vol ADCBVOL7 ADCBVOL6 ADCBVOL5 ADCBVOL4 ADCBVOL3 ADCBVOL2 ADCBVOL1 ADCBVOL0
p 57 0 0 0 0 0 0 0 0
18h ADCMIXA Vol AMIXAMUTE AMIXAVOL6 AMIXAVOL5 AMIXAVOL4 AMIXAVOL3 AMIXAVOL2 AMIXAVOL1 AMIXAVOL0
p 58 1 0 0 0 0 0 0 0
19h ADCMIXB Vol AMIXBMUTE AMIXBVOL6 AMIXBVOL5 AMIXBVOL4 AMIXBVOL3 AMIXBVOL2 AMIXBVOL1 AMIXBVOL0
p 58 1 0 0 0 0 0 0 0
1Ah PCMMIXA Vol PMIXAMUTE PMIXAVOL6 PMIXAVOL5 PMIXAVOL4 PMIXAVOL3 PMIXAVOL2 PMIXAVOL1 PMIXAVOL0
p 58 0 0 0 0 0 0 0 0
40 DS680F2
3/1/13
CS42L52
Adr. Function 7 6 5 4 3 2 1 0
1Bh PCMMIXB Vol PMIXBMUTE PMIXBVOL6 PMIXBVOL5 PMIXBVOL4 PMIXBVOL3 PMIXBVOL2 PMIXBVOL1 PMIXBVOL0
p 58 0 0 0 0 0 0 0 0
1Ch BEEP Freq, FREQ3 FREQ2 FREQ1 FREQ0 ONTIME3 ONTIME2 ONTIME1 ONTIME0
p 59 On Time 0 0 0 0 0 0 0 0
1Dh BEEP Vol, OFFTIME2 OFFTIME1 OFFTIME0 BPVOL4 BPVOL3 BPVOL2 BPVOL1 BPVOL0
p 60 Off Time 0 0 0 0 0 0 0 0
1Eh BEEP, BEEP1 BEEP0 BEEPMIXDIS TREB_CF1 TREB_CF0 BASS_CF1 BASS_CF0 TC_EN
p 61 Tone Cfg. 0 0 0 0 0 0 0 0
1Fh Tone Ctl TREB3 TREB2 TREB1 TREB0 BASS3 BASS2 BASS1 BASS0
p 62 1 0 0 0 1 0 0 0
20h Master A Vol MSTAVOL7 MSTAVOL6 MSTAVOL5 MSTAVOL4 MSTAVOL3 MSTAVOL2 MSTAVOL1 MSTAVOL0
p 63 0 0 0 0 0 0 0 0
21h Master B Vol MSTBVOL7 MSTBVOL6 MSTBVOL5 MSTBVOL4 MSTBVOL3 MSTBVOL2 MSTBVOL1 MSTBVOL0
p 63 0 0 0 0 0 0 0 0
22h Headphone A HPAVOL7 HPAVOL6 HPAVOL5 HPAVOL4 HPAVOL3 HPAVOL2 HPAVOL1 HPAVOL0
p 63 Volume 0 0 0 0 0 0 0 0
23h Headphone B HPBVOL7 HPBVOL6 HPBVOL5 HPBVOL4 HPBVOL3 HPBVOL2 HPBVOL1 HPBVOL0
p 63 Volume 0 0 0 0 0 0 0 0
24h Speaker A SPKAVOL7 SPKAVOL6 SPKAVOL5 SPKAVOL4 SPKAVOL3 SPKAVOL2 SPKAVOL1 SPKAVOL0
p 64 Volume 0 0 0 0 0 0 0 0
25h Speaker B SPKBVOL7 SPKBVOL6 SPKBVOL5 SPKBVOL4 SPKBVOL3 SPKBVOL2 SPKBVOL1 SPKBVOL0
p 64 Volume 0 0 0 0 0 0 0 0
26h Channel Mixer PCMASWP1 PCMASWP0 PCMBSWP1 PCMBSWP0 ADCASWP1 ADCASWP0 ADCBSWP1 ADCBSWP0
p 64 and Swap 0 0 0 0 0 0 0 0
27h Limit Ctl 1, LMAX2 LMAX1 LMAX0 CUSH2 CUSH1 CUSH0 LIMSRDIS LIMZCDIS
p 65 Thresholds 0 0 0 0 0 0 0 0
28h Limit Ctl 2, LIMIT LIMIT_ALL LIMRRATE5 LIMRRATE4 LIMRRATE3 LIMRRATE2 LIMRRATE1 LIMRRATE0
p 66 Release Rate 0 1 1 1 1 1 1 1
29h Limiter Attack Reserved Reserved LIMARATE5 LIMARATE4 LIMARATE3 LIMARATE2 LIMARATE1 LIMARATE0
p 67 Rate 1 1 0 0 0 0 0 0
2Ah ALC Ctl 1, ALCB ALCA ALCARATE5 AALCRATE4 ALCARATE3 ALCARATE2 ALCARATE1 ALCARATE0
p 67 Attack Rate 0 0 0 0 0 0 0 0
2Bh ALC Release Reserved Reserved ALCRRATE5 ALCRRATE4 ALCRRATE3 ALCRRATE2 ALCRRATE1 ALCRRATE0
p 68 Rate 0 0 1 1 1 1 1 1
2Ch ALC Thresh- ALCMAX2 ALCMAX1 ALCMAX0 ALCMIN2 ALCMIN1 ALCMIN0 Reserved Reserved
p 68 olds 0 0 0 0 0 0 0 0
2Dh Noise Gate Ctl NGALL NG NGBOOST THRESH2 THRESH1 THRESH0 NGDELAY1 NGDELAY0
p 69 0 0 0 0 0 0 0 0
2Eh Overflow and Reserved SPCLKERR DSPBOVFL DSPAOVFL PCMAOVFL PCMBOVFL ADCAOVFL ADCBOVFL
p 70 Clock Status 0 0 0 0 0 0 0 0
2Fh Battery Com- BATTCMP VPMONITOR Reserved Reserved VPREF3 VPREF2 VPREF1 VPREF0
p 71 pensation 0 0 0 0 0 0 0 0
30h VP Battery VPLVL7 VPLVL6 VPLVL5 VPLVL4 VPLVL3 VPLVL2 VPLVL1 VPLVL0
p 72 Level 0 0 0 0 0 0 0 0
31h Speaker Status Reserved Reserved SPKASHRT SPKBSHRT SPKR/HP Reserved Reserved Reserved
p 72 0 0 0 0 0 0 0 0
32h Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
0 0 1 1 1 0 1 1
33h Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
0 0 0 0 0 0 0 0
34h Charge Pump CHGFREQ3 CHGFREQ2 CHGFREQ1 CHGFREQ0 Reserved Reserved Reserved Reserved
p 73 Frequency 0 1 0 1 1 1 1 1
DS680F2 41
3/1/13
CS42L52
6. REGISTER DESCRIPTION
All registers are read/write except for the Chip I.D. and Revision Register and Interrupt Status Register, which are
read only. See the following bit definition tables for bit assignment information. The default state of each bit after a
power-up sequence or reset is listed in each bit description. Unless otherwise specified, all “Reserved” bits must
maintain their default value.
6.1 Chip I.D. and Revision Register (Address 01h) (Read Only)
7 6 5 4 3 2 1 0
CHIPID4 CHIPID3 CHIPID2 CHIPID1 CHIPID0 REVID2 REVID1 REVID0
Notes:
1. The CS42L52 employs a scheme for controlling the power to the PGA when PASSTHRU (“Passthrough
Analog” on page 52) is enabled. Refer to the referenced application for more information.
2. This bit should be used in conjunction with ADCxSEL and PGAxSEL bits to determine the analog
42 DS680F2
3/1/13
CS42L52
input path. The PGAxSEL bits may be used to isolate the input signal(s) from the PGA outputs. When
the PGA is powered down, no input should be selected. Refer to “ADC Input Select” on page 48 and
“PGA Input Mapping” on page 49 for the required settings.
Notes:
1. The CS42L52 employs a scheme for controlling the power to the ADC when PASSTHRU
(“Passthrough Analog” on page 52) and PDN_OVRD (“Power Down ADC Override” on page 43) are
enabled. Refer to the referenced application.
DS680F2 43
3/1/13
CS42L52
6.4 Power Control 3 (Address 04h)
7 6 5 4 3 2 1 0
PDN_HPB1 PDN_HPB0 PDN_HPA1 PDN_HPA0 PDN_SPKB1 PDN_SPKB0 PDN_SPKA1 PDN_SPKA0
6.5.1 Auto-Detect
Configures the auto-detect circuitry for detecting the speed mode of the CODEC when operating as a
slave.
AUTO Auto-detection of Speed Mode
0 Disabled
1 Enabled
Application: “Serial Port Clocking” on page 33
Notes:
1. The SPEED[1:0] bits are ignored and speed is determined by the MCLK/LRCK ratio.
2. Certain sample and MCLK frequencies require setting the SPEED[1:0] bits, the 32k_GROUP bit
(“32kHz Sample Rate Group” on page 45) and/or the VIDEOCLK bit (“27 MHz Video Clock” on
page 45) and RATIO[1:0] bits (“Internal MCLK/LRCK Ratio” on page 45). Low sample rates may also
affect dynamic range performance in the typical audio band. Refer to the referenced application for
more information.
44 DS680F2
3/1/13
CS42L52
6.5.2 Speed Mode
Configures the speed mode of the CODEC in slave mode and sets the appropriate MCLK divide ratio for
LRCK and SCLK in master mode.
Slave Mode Master Mode
SPEED[1:0]
Serial Port Speed MCLK/LRCK Ratio SCLK/LRCK Ratio
00 Double-Speed Mode (DSM - 50 kHz -100 kHz Fs) 128 64
01 Single-Speed Mode (SSM - 4 kHz -50 kHz Fs) 256 64
10 Half-Speed Mode (HSM - 12.5kHz -25 kHz Fs) 512 64
11 Quarter-Speed Mode (QSM - 4 kHz -12.5 kHz Fs) 1024 64
Application: “Serial Port Clocking” on page 33
Notes:
1. Slave/Master Mode is determined by the M/S bit in “Master/Slave Mode” on page 46.
2. Certain sample and MCLK frequencies require setting the SPEED[1:0] bits, the 32k_GROUP bit
(“32kHz Sample Rate Group” on page 45) and/or the VIDEOCLK bit (“27 MHz Video Clock” on
page 45) and RATIO[1:0] bits (“Internal MCLK/LRCK Ratio” on page 45). Low sample rates may also
affect dynamic range performance in the typical audio band. Refer to the referenced application for
more information.
3. These bits are ignored when the AUTO bit (“Auto-Detect” on page 44) is enabled.
DS680F2 45
3/1/13
CS42L52
6.5.6 MCLK Divide By 2
Divides the input MCLK by 2 prior to all internal circuitry.
MCLKDIV2 MCLK signal into CODEC
0 No divide
1 Divided by 2
Application: “Serial Port Clocking” on page 33
Note: In slave mode, this bit is ignored when the AUTO bit (“Auto-Detect” on page 44) is disabled.
Notes:
1. Select the audio word length using the AWL[1:0] bits (“Audio Word Length” on page 47).
2. The interface format for both the ADC and the DAC must be set to “Left-Justified” when DSP Mode
is enabled.
46 DS680F2
3/1/13
CS42L52
6.6.5 DAC Interface Format
Configures the digital interface format for data on SDIN.
DACDIF[1:0] DAC Interface Format
00 Left Justified, up to 24-bit data
01 I²S, up to 24-bit data
10 Right Justified
11 Reserved
Application: “Digital Interface Formats” on page 35
Note: Select the audio word length for Right Justified using the AWL[1:0] bits (“Audio Word Length” on
page 47).
Note: When the internal MCLK/LRCK ratio is set to 125 in master mode, the 32-bit data width option
for DSP Mode is not valid unless SCLK=MCLK.
DS680F2 47
3/1/13
CS42L52
6.7.3 Tri-State Serial Port Interface
Determines the state of the serial port drivers.
Serial Port Status
3ST_SP
Slave Mode Master Mode
0 Serial Port clocks are inputs and SDOUT is output Serial Port clocks and SDOUT are outputs
1 Serial Port clocks are inputs and SDOUT is HI-Z Serial Port clocks and SDOUT are HI-Z
Notes:
1. Slave/Master Mode is determined by the M/S bit in “Master/Slave Mode” on page 46.
2. When the serial port is tri-stated in master mode, the ADC and DAC serial ports are clocked internally.
6.8 Input x Select: ADCA and PGAA (Address 08h), ADCB and PGAB (Address 09h)
7 6 5 4 3 2 1 0
ADCASEL2 ADCASEL1 ADCASEL0 PGAASEL5 PGAASEL4 PGAASEL3 PGAASEL2 PGAASEL1
48 DS680F2
3/1/13
CS42L52
6.8.2 PGA Input Mapping
Selects one or sums/mixes the analog input signal into the PGA. Each bit of the PGAx_SEL[5:1] word
corresponds to individual channels (i.e. PGAx_SEL1 selects AIN1x, PGAx_SEL2 selects AIN2x, etc.).
PGAxSEL[5:1] Selected Input to PGAx (Examples)
00000 No inputs selected
00001 AIN1x
00010 AIN2x
00100 AIN3x
01000 AIN4x
MICx; for single-ended MIC inputs, use MICxSEL (“MIC x Select” on page 55) to select MIC 1 or MIC 2; for
10000
differential MIC inputs, enable MICxCFG (“MICx Configuration” on page 55)
10001 MICx + AIN1x
10011 MICx + AIN1x + AIN2x
Application: “Analog Inputs” on page 25
Note: Table does not show all possible combinations.
Note: If the signal does not encounter a zero crossing, the requested volume change will occur after a
timeout period of 1024 sample periods (approximately 10.7 ms at 48 kHz sample rate).
DS680F2 49
3/1/13
CS42L52
6.10 ADC HPF Corner Frequency (Address 0Bh)
7 6 5 4 3 2 1 0
Reserved Reserved Reserved Reserved HPFB_CF1 HPFB_CF0 HPFA_CF1 HPFA_CF0
50 DS680F2
3/1/13
CS42L52
6.11.4 Invert ADC Signal Polarity
Configures the polarity of the ADC signal.
INV_ADCx ADC Signal Polarity
0 Not Inverted
1 Inverted
Note: When the ADCxMUTE bit is enabled, the PGA will automatically apply 6 dB of attenuation.
Note: Refer to “Line Output Voltage Level Characteristics” on page 19 and “Headphone Output Power
Characteristics” on page 18.
DS680F2 51
3/1/13
CS42L52
6.12.3 Invert PCM Signal Polarity
Configures the polarity of the digital input signal.
INV_PCMx PCM Signal Polarity
0 Not Inverted
1 Inverted
Note: The muting function is affected by the DIGSFT (“Digital Soft Ramp” on page 53) and DIGZC
(“Digital Zero Cross” on page 53) bits.
Notes:
1. The Passthrough volume control is realized using a combination of the PGA volume control settings
(“PGAx Volume” on page 56) and the headphone amplifier volume control settings (hidden). When
passthrough is enabled and the PGA to ADC path is selected, the signal seen by the ADC will change
depending on the passthrough volume setting.
Notes:
1. Use this bit only to synchronize run-time controls, such as volume and mute, during normal operation.
52 DS680F2
3/1/13
CS42L52
Using this bit before the relevant circuitry begins normal operation could cause the change to take
effect immediately, ignoring the FREEZE bit.
Note: When the DIGSFT bit is enabled, the Master Volume (MSTxVOL[7:0]) transitions are guaranteed
to occur with a soft ramp only when bits 7 and 6 in register 29h are set to ‘00’b.
Notes:
1. If the signal does not encounter a zero crossing, the requested volume change will occur after a
timeout period between 1024 and 2048 sample periods (21.3 ms to 42.7 ms at 48 kHz sample rate).
2. The zero cross function is independently monitored and implemented for each channel.
3. The DIS_LIMSFT bit (“Limiter Soft Ramp Disable” on page 65) is ignored when zero cross is enabled.
4. When the DIGZC bit is enabled, the Master Volume (MSTxVOL[7:0]) transitions are guaranteed to
occur on a zero cross only if bits 7 and 6 in register 29h are set to '00'b
DS680F2 53
3/1/13
CS42L52
6.14 Playback Control 2 (Address 0Fh)
7 6 5 4 3 2 1 0
HPBMUTE HPAMUTE SPKBMUTE SPKAMUTE SPKB=A SPKSWAP SPKMONO MUTE50/50
54 DS680F2
3/1/13
CS42L52
6.15 MICx Amp Control:MIC A (Address 10h) and MIC B (Address 11h)
7 6 5 4 3 2 1 0
Reserved MICxSEL MICxCFG MICxGAIN4 MICxGAIN3 MICxGAIN2 MICxGAIN1 MICxGAIN0
DS680F2 55
3/1/13
CS42L52
6.16.2 ALCx Zero Cross Disable
Configures an override of the analog zero cross setting.
ALCxZCDIS ALC Zero Cross Disable
0 OFF; ALC Attack Rate is dictated by the ANLGZC (“Ch. x Analog Zero Cross” on page 49) setting
1 ON; ALC volume changes take effect at any time, regardless of the ANLGZC setting.
Application: “Automatic Level Control (ALC)” on page 26
Note: The PGAxVOL bits are ignored when the PASSTHRUx bit (“Passthrough Analog” on page 52) is
enabled.
56 DS680F2
3/1/13
CS42L52
6.17 Passthrough x Volume: PASSAVOL (Address 14h) and PASSBVOL (Address 15h)
7 6 5 4 3 2 1 0
PASSxVOL7 PASSxVOL6 PASSxVOL5 PASSxVOL4 PASSxVOL3 PASSxVOL2 PASSxVOL1 PASSxVOL0
Notes:
1. This register is ignored when the PASSTHRUx bit (“Passthrough Analog” on page 52) is disabled.
2. The step size may deviate from 0.5 dB at settings below -40 dB. Code settings 0x95, 0xA1, 0xAD,
and 0xB9 are not guaranteed to be monotonic.
6.18 ADCx Volume Control: ADCAVOL (Address 16h) and ADCBVOL (Address 17h)
7 6 5 4 3 2 1 0
ADCAVOL7 ADCAVOL6 ADCAVOL5 ADCAVOL4 ADCAVOL3 ADCAVOL2 ADCAVOL1 ADCAVOL0
DS680F2 57
3/1/13
CS42L52
6.19 ADCx Mixer Volume: ADCA (Address 18h) and ADCB (Address 19h)
7 6 5 4 3 2 1 0
AMIXxMUTE AMIXxVOL6 AMIXxVOL5 AMIXxVOL4 AMIXxVOL3 AMIXxVOL2 AMIXxVOL1 AMIXxVOL0
6.20 PCMx Mixer Volume: PCMA (Address 1Ah) and PCMB (Address 1Bh)
7 6 5 4 3 2 1 0
PMIXxMUTE PMIXxVOL6 PMIXxVOL5 PMIXxVOL4 PMIXxVOL3 PMIXxVOL2 PMIXxVOL1 PMIXxVOL0
58 DS680F2
3/1/13
CS42L52
6.21 Beep Frequency and On Time (Address 1Ch)
7 6 5 4 3 2 1 0
FREQ3 FREQ2 FREQ1 FREQ0 ONTIME3 ONTIME2 ONTIME1 ONTIME0
Notes:
1. This setting must not change when BEEP is enabled.
2. Beep frequency will scale directly with sample rate, Fs, but is fixed at the nominal Fs within each
speed mode.
DS680F2 59
3/1/13
CS42L52
6.21.2 Beep On Time
Sets the on duration of the beep signal.
ONTIME[3:0] On Time (Fs = 12, 24, 48 or 96 kHz)
0000 ~86 ms
0001 ~430 ms
0010 ~780 ms
0011 ~1.20 s
0100 ~1.50 s
0101 ~1.80 s
0110 ~2.20 s
0111 ~2.50 s
1000 ~2.80 s
1001 ~3.20 s
1010 ~3.50 s
1011 ~3.80 s
1100 ~4.20 s
1101 ~4.50 s
1110 ~4.80 s
1111 ~5.20 s
Application: “Beep Generator” on page 29
Notes:
1. This setting must not change when BEEP is enabled.
2. Beep on time will scale inversely with sample rate, Fs, but is fixed at the nominal Fs within each speed
mode.
Notes:
1. This setting must not change when BEEP is enabled.
2. Beep off time will scale inversely with sample rate, Fs, but is fixed at the nominal Fs within each speed
mode.
60 DS680F2
3/1/13
CS42L52
6.22.2 Beep Volume
Sets the volume of the beep signal.
BEEPVOL[4:0] Gain
00110 +6.0 dB
··· ···
00000 -6 dB
11111 -8 dB
11110 -10 dB
··· ···
00111 -56 dB
Step Size: 2 dB
Application: “Beep Generator” on page 29
Notes:
1. When used in analog pass-through mode, the output alternates between the signal from the PGA and
the beep signal. The beep signal does not mix with the analog signal from the PGA.
2. Re-engaging the beep before it has completed its initial cycle will cause the beep signal to remain ON
for the maximum ONTIME duration.
DS680F2 61
3/1/13
CS42L52
6.23.3 Treble Corner Frequency
Sets the corner frequency (-3 dB point) for the treble shelving filter.
TREBCF[1:0] Treble Corner Frequency Setting
00 5 kHz
01 7 kHz
10 10 kHz
11 15 kHz
62 DS680F2
3/1/13
CS42L52
6.24.2 Bass Gain
Sets the gain of the bass shelving filter.
TREB[3:0] Gain Setting
0000 +12.0 dB
··· ···
0111 +1.5 dB
1000 0 dB
1001 -1.5 dB
··· ···
1111 -10.5 dB
Step Size: 1.5 dB
6.25 Master Volume Control: MSTA (Address 20h) and MSTB (Address 21h)
7 6 5 4 3 2 1 0
MSTxVOL7 MSTxVOL6 MSTxVOL5 MSTxVOL4 MSTxVOL3 MSTxVOL2 MSTxVOL1 MSTxVOL0
6.26 Headphone Volume Control: HPA (Address 22h) and HPB (Address 23h)
7 6 5 4 3 2 1 0
HPxVOL7 HPxVOL6 HPxVOL5 HPxVOL4 HPxVOL3 HPxVOL2 HPxVOL1 HPxVOL0
DS680F2 63
3/1/13
CS42L52
6.27 Speaker Volume Control: SPKA (Address 24h) and SPKB (Address 25h)
7 6 5 4 3 2 1 0
SPKxVOL7 SPKxVOL6 SPKxVOL5 SPKxVOL4 SPKxVOL3 SPKxVOL2 SPKxVOL1 SPKxVOL0
64 DS680F2
3/1/13
CS42L52
6.29 Limiter Control 1, Min/Max Thresholds (Address 27h)
7 6 5 4 3 2 1 0
LMAX2 LMAX1 LMAX0 CUSH2 CUSH1 CUSH0 LIMSRDIS LIMZCDIS
Note: Bass, Treble, and digital gain settings that boost the signal beyond the maximum threshold may
trigger an attack.
Note: This setting is usually set slightly below the LMAX threshold.
Note: This bit is ignored when the DIGZC (“Digital Zero Cross” on page 53) is enabled.
DS680F2 65
3/1/13
CS42L52
6.29.4 Limiter Zero Cross Disable
Configures an override of the digital zero-cross setting.
LIMZCDIS Limiter Zero Cross Disable
0 OFF; Limiter Attack Rate is dictated by the DIGZC (“Digital Zero Cross” on page 53) setting
1 ON; Limiter volume changes take effect in one step, regardless of the DIGZC setting.
Application: “Limiter” on page 30
Note: The limiter release rate is user-selectable but is also a function of the sampling frequency, Fs,
and the DIGSFT (“Digital Soft Ramp” on page 53) and DIGZC (“Digital Zero Cross” on page 53) setting.
66 DS680F2
3/1/13
CS42L52
6.31 Limiter Attack Rate (Address 29h)
7 6 5 4 3 2 1 0
Reserved Reserved LIMARATE5 LIMARATE4 LIMARATE3 LIMARATE2 LIMARATE1 LIMARATE0
Note: The limiter attack rate is user-selectable but is also a function of the sampling frequency, Fs, and
the DIGSFT (“Digital Soft Ramp” on page 53) and DIGZC (“Digital Zero Cross” on page 53) setting unless
the respective disable bit (“Limiter Soft Ramp Disable” on page 65 or “Limiter Zero Cross Disable” on
page 66) is enabled.
Notes:
1. When the ALC is enabled, the digital volume and PGA volume is automatically controlled and should
not be adjusted manually.
2. The ALC should only be configured while the power down bit is enabled.
3. The ALC is not available in passthrough mode.
Note: The ALC attack rate is user-selectable but is also a function of the sampling frequency, Fs, and
the ANLGSFTx (“Ch. x Analog Soft Ramp” on page 49) and ANLGZCx (“Ch. x Analog Zero Cross” on
page 49) setting unless the respective disable bit (“ALCx Soft Ramp Disable” on page 55 or “ALCx Zero
Cross Disable” on page 56) is enabled.
DS680F2 67
3/1/13
CS42L52
6.33 ALC Release Rate (Address 2Bh)
7 6 5 4 3 2 1 0
Reserved Reserved ALCRRATE5 ALCRRATE4 ALCRRATE3 ALCRRATE2 ALCRRATE1 ALCRRATE0
Notes:
1. The ALC release rate is user-selectable but is also a function of the sampling frequency, Fs, and the
ANLGSFTx (“Ch. x Analog Soft Ramp” on page 49) and ANLGZCx (“Ch. x Analog Zero Cross” on
page 49) setting.
2. The Release Rate setting must always be slower than the Attack Rate.
68 DS680F2
3/1/13
CS42L52
6.34.2 ALC Minimum Threshold
Sets the minimum level at which to disengage the ALC’s attenuation or amplify the input signal at the re-
lease rate (ALCRRATE - “ALC Release Rate” on page 68) until levels lie between the ALCMAX and AL-
CMIN thresholds.
ALCMIN[2:0] Threshold Setting
000 0 dB
001 -3 dB
010 -6 dB
011 -9 dB
100 -12 dB
101 -18 dB
110 -24 dB
111 -30 dB
Application: “Automatic Level Control (ALC)” on page 26
Notes:
1. This setting is usually set slightly below the ALCMAX threshold.
DS680F2 69
3/1/13
CS42L52
6.35.3 Noise Gate Threshold and Boost
THRESH sets the threshold level of the noise gate. Input signals below the threshold level will be attenu-
ated to -96 dB. NG_BOOST configures a +30 dB boost to the threshold settings.
THRESH[2:0] Minimum Setting (NG_BOOST = 0) Minimum Setting (NG_BOOST = 1)
000 -64 dB -34 dB
001 -67 dB -37 dB
010 -70 dB -40 dB
011 -73 dB -43 dB
100 -76 dB -46 dB
101 -82 dB -52 dB
110 Reserved -58 dB
111 Reserved -64 dB
Application: “Noise Gate” on page 27
Note: The Noise Gate attack rate is a function of the sampling frequency, Fs, and the ANLGSFTx (“Ch.
x Analog Soft Ramp” on page 49) and ANLGZCx (“Ch. x Analog Zero Cross” on page 49) setting unless
the respective disable bit (“ALCx Soft Ramp Disable” on page 55 or “ALCx Zero Cross Disable” on
page 56) is enabled.
Note: On initial power up and application of clocks, this bit will report 1 as the serial port re-synchroniz-
es.
70 DS680F2
3/1/13
CS42L52
6.36.2 DSP Engine Overflow (Read Only)
Indicates the over-range status in the DSP data path.
DSPxOVFL DSP Overflow Status:
0 No digital clipping has occurred in the data path after the DSP.
1 Digital clipping has occurred in the data path after the DSP.
Application: “Analog Outputs” on page 28
6.37.2 VP Monitor
Configures the internal ADC that monitors the VP voltage level.
VPMONITOR VP ADC Status
0 Disabled
1 Enabled
Notes:
1. The internal ADC that monitors the VP supply is enabled automatically when BATTCMP is enabled,
regardless of the VPMONITOR setting. Conversely, when BATTCMP is disabled, the ADC may be
enabled by enabling VPMONITOR; this provides a convenient battery monitor without enabling
battery compensation.
2. When enabled, VPMONITOR remains enabled regardless of the PDN bit setting.
DS680F2 71
3/1/13
CS42L52
6.37.3 VP Reference
Sets the desired VP reference used for battery compensation.
VPREF[3:0] Desired VP used to calculate the required attenuation on the speaker output:
(for VA = 1.8 V)
0000 1.5 V
0001 2.0 V
0010 2.5 V
0011 3.0 V
0100 3.5 V
0101 4.0 V
0110 4.5 V
0111 5.0 V
(for VA = 2.5 V)
1000 1.5 V
1001 2.0 V
1010 2.5 V
1011 3.0 V
1100 3.5 V
1101 4.0 V
1110 4.5 V
1111 5.0 V
Application: “VP Battery Compensation” on page 33
72 DS680F2
3/1/13
CS42L52
6.39.2 SPKR/HP Pin Status (Read Only)
Indicates the status of the SPKR/HP pin.
SPKR/HP Pin State
0 Pulled Low
1 Pulled High
DS680F2 73
3/1/13
CS42L52
7. ANALOG PERFORMANCE PLOTS
-40
G = 1.1430
-45 Legend
-50
d
B NOTE: Graph shows the out-
r -55
A
put power per channel (i.e.
-60
Output Power = 23 mW into
-65
single 16 and 46 mW into
-70 stereo 16 with THD+N = -
-75 75 dB).
-80
-85
-90
-95
-100
0 10m 20m 30m 40m 50m 60m 70m 80m
W
Figure 22. THD+N vs. Output Power per Channel at 1.8 V (16 load)
-10
G = 0.6047
-15
VHP = VA = 2.5 V
-20
G = 0.7099
-25 G = 0.8399
-30
G = 1.0000
-35
-40
G = 1.1430
-45 Legend
d
B
-50
NOTE: Graph shows the out-
r -55
put power per channel (i.e.
A
-60 Output Power = 44 mW into
-65 single 16 and 88 mW into
-70 stereo 16 with THD+N = -
-75
75 dB).
-80
-85
-90
-95
-100
0 10m 20m 30m 40m 50m 60m 70m 80m
W
Figure 23. THD+N vs. Output Power per Channel at 2.5 V (16 load)
74 DS680F2
3/1/13
CS42L52
G = 0.6047
VHP = VA = 1.8 V
-20 G = 0.7099
-30
G = 0.8399
-35
G = 1.0000
-40
G = 1.1430
-45
-50
Legend
d
-55 NOTE: Graph shows the out-
B
r -60 put power per channel (i.e.
A
-65
Output Power = 22 mW into
single 32 and 44 mW into
-70
stereo 32 with THD+N = -
-75 75 dB).
-80
-85
-90
-95
-100
0 6m 12m 18m 24m 30m 36m 42m 48m 54m 60m
W
Figure 24. THD+N vs. Output Power per Channel at 1.8 V (32 load)
-20
G = 0.6047
VHP = VA = 2.5 V
-25
G = 0.7099
-30
G = 0.8399
-35
G = 1.0000
-40
-45
G = 1.1430
-50
Legend
-55
d
B
r -60 NOTE: Graph shows the out-
A
-65
put power per channel (i.e.
Output Power = 42 mW into
-70
single 32 and 84 mW into
-75 stereo 32 with THD+N = -
-80 75 dB).
-85
-90
-95
-100
0 5m 10m 15m 20m 25m 30m 35m 40m 45m 50m 55m 60m
W
Figure 25. THD+N vs. Output Power per Channel at 2.5 V (32 load)
DS680F2 75
3/1/13
CS42L52
8. EXAMPLE SYSTEM CLOCK FREQUENCIES *The”MCLKDIV2” bit must be enabled.
76 DS680F2
3/1/13
CS42L52
9. PCB LAYOUT CONSIDERATIONS
Extensive use of power and ground planes, ground plane fill in unused areas and surface mount decoupling
capacitors are recommended. Decoupling capacitors should be as close to the pins of the CS42L52 as pos-
sible. The low value ceramic capacitor should be closest to the pin and should be mounted on the same
side of the board as the CS42L52 to minimize inductance effects.
All signals, especially clocks, should be kept away from the FILT+ and VQ pins in order to avoid unwanted
coupling into the modulators. The FILT+ and VQ decoupling capacitors, particularly the 0.1 µF, must be po-
sitioned to minimize the electrical path from FILT+ and AGND. The CDB42L52 evaluation board demon-
strates the optimum layout and power supply arrangements.
DS680F2 77
3/1/13
CS42L52
10.ADC AND DAC DIGITAL FILTERS
Figure 26. ADC Passband Ripple Figure 27. ADC Stopband Rejection
Figure 28. ADC Transition Band Figure 29. ADC Transition Band (Detail)
Figure 32. DAC Transition Band Figure 33. DAC Transition Band (Detail)
78 DS680F2
3/1/13
CS42L52
11.PARAMETER DEFINITIONS
Dynamic Range
The ratio of the 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 ratio measurement over the specified band width made with
a -60 dBFS signal. 60 dB is added to 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 measure-
ment. This measurement technique has been accepted by the Audio Engineering Society, AES17-1991,
and the Electronic Industries Association of Japan, EIAJ CP-307. Expressed in decibels.
The ratio of the rms value of the signal to the rms sum of all other spectral components over the specified
band width (typically 10 Hz to 20 kHz), including distortion components. Expressed in decibels. Measured
at -1 and -20 dBFS as suggested in AES17-1991 Annex A.
Frequency Response
A measure of the amplitude response variation from 10 Hz to 20 kHz relative to the amplitude response at
1 kHz. Units in decibels.
Interchannel Isolation
A measure of crosstalk between the left and right channel pairs. Measured for each channel at the convert-
er's output with no signal to the input under test and a full-scale signal applied to the other channel. Units in
decibels.
The gain difference between left and right channel pairs. Units in decibels.
Gain Drift
Offset Error
The deviation of the mid-scale transition (111...111 to 000...000) from the ideal. Units in mV.
DS680F2 79
3/1/13
CS42L52
12.PACKAGE DIMENSIONS
2.00 REF
b e
PIN #1 CORNER
PIN #1
IDENTIFIER
2.00 REF
0.500.10
LASER
MARKING
E2
E
A1 L
D2
A
JEDEC #: MO-220
Controlling Dimension is Millimeters.
1. Dimensioning and tolerance per ASME Y 14.5M-1995.
2. Dimensioning lead width applies to the plated terminal and is measured between 0.20 mm and 0.25 mm
from the terminal tip.
THERMAL CHARACTERISTICS
Parameter Symbol Min Typ Max Units
Junction to Ambient Thermal Impedance 2 Layer Board JA - 44 - °C/Watt
4 Layer Board - 19 -
80 DS680F2
3/1/13
CS42L52
13.ORDERING INFORMATION
14.REFERENCES
1. Philips Semiconductor, The I²C-Bus Specification: Version 2.1, January 2000.
http://www.semiconductors.philips.com.
15.REVISION HISTORY
Revision Changes
F1 Initial draft
Removed the Automotive specification.
Added AD0 characteristics to “I/O Pin Characteristics” on page 10.
Added AD0 pin to Figure 1. Typical Connection Diagram on page 11.
Updated Note 6 on page 15.
Updated the VIH specification for VL = 1.8 V in “Digital Interface Specifications and Characteristics” on page 22.
Updated “PWM Outputs” on page 32 to exclude support of a 384x MCLK to LRCK ratio.
Added register commands for entering and exiting DSP 16-bit, 8 kHz Fs, SCLK = MCLK, master mode in section
“DSP Mode” on page 35.
Updated Section 4.9 “Recommended Power-up Sequence” on page 37.
Updated Section 4.10 “Recommended Power-Down Sequence” on page 37.
Added a description of the AD0 pin to “I²C Control” on page 38.
F2 Added AD0 detail to Figure 20. Control Port Timing, I²C Write on page 38 and Figure 21. Control Port Timing, I²C
Read on page 39.
Updated the first paragraph in “Register Quick Reference” on page 40 to allow for data sheet-specified control-
writes to reserved registers.
Removed I²C address heading row from “Register Quick Reference” on page 40.
Updated notes in “Auto-Detect” on page 44.
Updated table in “Speed Mode” on page 45.
Added note 1 in “Freeze Registers” on page 52.
Updated notes in “Digital Soft Ramp” on page 53.
Added note 4 to “Digital Zero Cross” on page 53.
Added notes 1 and 2 for ALC configuration in “ALC Enable and Attack Rate (Address 2Ah)” on page 67.
Corrected the E2 scale in the package drawing in “Package Dimensions” on page 80.
DS680F2 81
3/1/13
CS42L52
82 DS680F2