ALC5616
ALC5616
ALC5616
Datasheet
Rev. 0.1
COPYRIGHT
© 2012 Realtek Semiconductor Corp. All rights reserved. No part of this document may be reproduced,
transmitted, transcribed, stored in a retrieval system, or translated into any language in any form or by any
means without the written permission of Realtek Semiconductor Corp.
DISCLAIMER
Realtek provides this document “as is”, without warranty of any kind. Realtek may make improvements
and/or changes in this document or in the product described in this document at any time. This document
could include technical inaccuracies or typographical errors.
TRADEMARKS
Realtek is a trademark of Realtek Semiconductor Corporation. Other names mentioned in this document
are trademarks/registered trademarks of their respective owners.
Though every effort has been made to ensure that this document is current and accurate, more
information may have become available subsequent to the production of this guide.
REVISION HISTORY
Revision Release Date Summary
0.1 2012/7/29 Preliminary version
Table of Contents
1. GENERAL DESCRIPTION .............................................................................................................................................. 1
2. FEATURES ......................................................................................................................................................................... 2
6. PIN DESCRIPTIONS......................................................................................................................................................... 7
6.1. DIGITAL I/O PINS ......................................................................................................................................................... 7
6.2. ANALOG I/O PINS ........................................................................................................................................................ 7
6.3. FILTER/REFERENCE...................................................................................................................................................... 8
6.4. POWER/GROUND .......................................................................................................................................................... 9
7. FUNCTION DESCRIPTION .......................................................................................................................................... 10
7.1. POWER ....................................................................................................................................................................... 10
7.2. POWER SUPPLY ON/OFF SEQUENCE ........................................................................................................................... 11
7.3. RESET ........................................................................................................................................................................ 12
7.3.1. Power-On Reset (POR) ........................................................................................................................................ 12
7.3.2. Software Reset ...................................................................................................................................................... 12
7.4. CLOCKING .................................................................................................................................................................. 13
7.4.1. Phase-Locked Loop .............................................................................................................................................. 14
7.4.2. I2C and I2S/PCM Interface ................................................................................................................................... 15
7.5. DIGITAL DATA INTERFACE ........................................................................................................................................ 16
7.5.1. Two I2S/PCM Interface ......................................................................................................................................... 16
7.6. AUDIO DATA PATH .................................................................................................................................................... 19
7.6.1. Stereo Analog ADCs Record Path ........................................................................................................................ 19
7.6.2. Stereo Analog DACs with Playback Path ............................................................................................................. 20
7.6.3. Mixers ................................................................................................................................................................... 21
7.7. ANALOG AUDIO INPUT PORT ..................................................................................................................................... 22
7.8. ANALOG AUDIO OUTPUT PORT .................................................................................................................................. 23
7.9. MULTI-FUNCTION PINS .............................................................................................................................................. 24
7.10. DRC AND AGC FUNCTION ........................................................................................................................................ 25
7.11. EQUALIZER BLOCK .................................................................................................................................................... 28
7.12. WIND FILTER WITH DYNAMIC WIND NOISE DETECTOR ............................................................................................. 28
7.12.1. Wind Filter ....................................................................................................................................................... 28
7.13. I2C CONTROL INTERFACE .......................................................................................................................................... 31
7.13.1. Address Setting ................................................................................................................................................ 31
7.13.2. Complete Data Transfer .................................................................................................................................. 31
7.14. GPIO, INTERRUPT AND JACK DETECTION .................................................................................................................. 33
7.15. POWER MANAGEMENT............................................................................................................................................... 36
8. REGISTERS LIST ........................................................................................................................................................... 37
8.1. REGISTER MAP .......................................................................................................................................................... 37
8.2. MX-00H: S/W RESET & DEVICE ID ........................................................................................................................... 39
8.3. MX-02H: HEADPHONE OUTPUT CONTROL................................................................................................................. 39
I2S Audio CODEC for Mobile Devices iv Rev. 0.1
ALC5616
Datasheet
8.4. MX-03H: LINE OUTPUT CONTROL 1 ......................................................................................................................... 41
8.5. MX-05H: LINE OUTPUT CONTROL 2 ......................................................................................................................... 42
8.6. MX-0DH: IN1/2 INPUT CONTROL .............................................................................................................................. 42
8.7. MX-0FH: INL & INR VOLUME CONTROL ................................................................................................................. 43
8.8. MX-19H: DACL1/R1 DIGITAL VOLUME ................................................................................................................... 44
8.9. MX-1CH: STEREO1 ADC DIGITAL VOLUME CONTROL ............................................................................................. 46
8.10. MX-1EH: ADC DIGITAL BOOST GAIN CONTROL ...................................................................................................... 48
8.11. MX-27H: STEREO1 ADC DIGITAL MIXER CONTROL ................................................................................................. 48
8.12. MX-29H: STEREO ADC TO DAC DIGITAL MIXER CONTROL..................................................................................... 49
8.13. MX-2AH: STEREO DAC DIGITAL MIXER CONTROL .................................................................................................. 49
8.14. MX-3BH: RECMIXL CONTROL 1 ............................................................................................................................. 50
8.15. MX-3CH: RECMIXL CONTROL 2 ............................................................................................................................. 51
8.16. MX-3DH: RECMIXR CONTROL 1 ............................................................................................................................. 51
8.17. MX-3EH: RECMIXR CONTROL 2 ............................................................................................................................. 52
8.18. MX-45H: HPOMIX CONTROL ................................................................................................................................... 53
8.19. MX-4DH: OUTMIXL CONTROL 1 ............................................................................................................................ 53
8.20. MX-4EH: OUTMIXL CONTROL 2 ............................................................................................................................. 54
8.21. MX-4FH: OUTMIXL CONTROL 3 ............................................................................................................................. 54
8.22. MX-50H: OUTMIXR CONTROL 1 ............................................................................................................................. 55
8.23. MX-51H: OUTMIXR CONTROL 2 ............................................................................................................................. 56
8.24. MX-52H: OUTMIXR CONTROL 3 ............................................................................................................................. 56
8.25. MX-53H: LOUTMIX CONTROL ................................................................................................................................ 57
8.26. MX-61H: POWER MANAGEMENT CONTROL 1 ............................................................................................................ 58
8.27. MX-62H: POWER MANAGEMENT CONTROL 2 ............................................................................................................ 58
8.28. MX-63H: POWER MANAGEMENT CONTROL 3 ............................................................................................................ 59
8.29. MX-64H: POWER MANAGEMENT CONTROL 4 ............................................................................................................ 60
8.30. MX-65H: POWER MANAGEMENT CONTROL 5 ............................................................................................................ 60
8.31. MX-66H: POWER MANAGEMENT CONTROL 6 ............................................................................................................ 61
8.32. MX-6AH: PRIVATE REGISTER INDEX......................................................................................................................... 62
8.33. MX-6CH: PRIVATE REGISTER DATA.......................................................................................................................... 62
8.34. MX-70H: I2S1 DIGITAL INTERFACE CONTROL .......................................................................................................... 62
8.35. MX-73H: ADC/DAC CLOCK CONTROL 1 .................................................................................................................. 63
8.36. MX-74H: ADC/DAC CLOCK CONTROL 2 .................................................................................................................. 63
8.37. MX-80H: GLOBAL CLOCK CONTROL ......................................................................................................................... 64
8.38. MX-81H: PLL CONTROL 1......................................................................................................................................... 64
8.39. MX-82H: PLL CONTROL 2......................................................................................................................................... 65
8.40. MX-8EH: HP AMP CONTROL 1 .................................................................................................................................. 65
8.41. MX-8FH: HP AMP CONTROL 2 .................................................................................................................................. 66
8.42. MX-93H: MICBIAS CONTROL .................................................................................................................................. 66
8.43. MX-94H: JACK DETECTION CONTROL ....................................................................................................................... 67
8.44. MX-B0H: EQ CONTROL 1 .......................................................................................................................................... 67
8.45. MX-B1H: EQ CONTROL 2 .......................................................................................................................................... 68
8.46. MX-B4H: DRC/AGC CONTROL 1 ............................................................................................................................. 69
8.47. MX-B5H: DRC/AGC CONTROL 2 ............................................................................................................................. 70
8.48. MX-B6H: DRC/AGC CONTROL 3 ............................................................................................................................. 72
8.49. MX-BBH: JACK DETECTION CONTROL 1 ................................................................................................................... 73
8.50. MX-BCH: JACK DETECTION CONTROL 2 ................................................................................................................... 73
8.51. MX-BDH: IRQ CONTROL 1 ....................................................................................................................................... 74
8.52. MX-BEH: IRQ CONTROL 2 ........................................................................................................................................ 75
8.53. MX-BFH: GPIO AND INTERNAL STATUS ................................................................................................................... 75
8.54. MX-C0H: GPIO CONTROL 1 ...................................................................................................................................... 76
8.55. MX-C1H: GPIO CONTROL 2 ...................................................................................................................................... 76
8.56. MX-D3H: WIND FILTER CONTROL 1 ......................................................................................................................... 77
8.57. MX-D4H: WIND FILTER CONTROL 2 ......................................................................................................................... 77
8.58. MX-D9H: SOFT VOLUME & ZCD CONTROL .............................................................................................................. 78
List of Tables
TABLE 1. DIGITAL I/O PINS .......................................................................................................................................................... 7
TABLE 2. ANALOG I/O PINS .......................................................................................................................................................... 7
TABLE 3. FILTER/REFERENCE ....................................................................................................................................................... 8
TABLE 4. POWER/GROUND ........................................................................................................................................................... 9
TABLE 5. POWER SUPPLY FOR BEST PERFORMANCE................................................................................................................... 10
TABLE 6. POWER SUPPLY CONDITION FOR POWER DOWN LEAKAGE.......................................................................................... 10
TABLE 7. RESET OPERATION ...................................................................................................................................................... 12
TABLE 8. POWER-ON RESET VOLTAGE....................................................................................................................................... 12
TABLE 9. CLOCK SETTING TABLE FOR 48K (UNIT: MHZ) .......................................................................................................... 14
TABLE 10. CLOCK SETTING TABLE FOR 44.1K (UNIT: MHZ) ..................................................................................................... 14
TABLE 11. THE RELATIVE OF SYSCLK/BCLK/LRCK ............................................................................................................... 15
TABLE 12. SAMPLE RATE WITH FILTER COEFFICIENT FOR WIND FILTER..................................................................................... 29
TABLE 13. ADDRESS SETTING (0X36H) ...................................................................................................................................... 31
TABLE 14. WRITE WORD PROTOCOL ........................................................................................................................................ 32
TABLE 15. READ WORD PROTOCOL .......................................................................................................................................... 32
TABLE 16. REGISTER MAP .......................................................................................................................................................... 37
TABLE 17. MX-00H: S/W RESET & DEVICE ID .......................................................................................................................... 39
TABLE 18. MX-02H: HEADPHONE OUTPUT CONTROL ................................................................................................................ 39
TABLE 19. MX-03H: LINE OUTPUT CONTROL 1 ........................................................................................................................ 41
TABLE 20. MX-05H: LINE OUTPUT CONTROL 2 ........................................................................................................................ 42
TABLE 21. MX-0DH: IN1/2 INPUT CONTROL ............................................................................................................................. 42
TABLE 22. MX-0FH: INL & INR VOLUME CONTROL................................................................................................................. 43
TABLE 23. MX-19H: DACL1/R1 DIGITAL VOLUME .................................................................................................................. 44
TABLE 24. MX-1CH: STEREO1 ADC DIGITAL VOLUME CONTROL ............................................................................................ 46
TABLE 25. MX-1EH: ADC DIGITAL BOOST GAIN CONTROL ...................................................................................................... 48
TABLE 26. MX-27H: STEREO1 ADC DIGITAL MIXER CONTROL ................................................................................................ 48
TABLE 27. MX-29H: STEREO ADC TO DAC DIGITAL MIXER CONTROL .................................................................................... 49
TABLE 28. MX-2AH: STEREO DAC DIGITAL MIXER CONTROL ................................................................................................. 49
TABLE 29. MX-3BH: RECMIXL CONTROL 1 ............................................................................................................................ 50
TABLE 30. MX-3CH: RECMIXL CONTROL 2 ............................................................................................................................ 51
TABLE 31. MX-3DH: RECMIXR CONTROL 1 ............................................................................................................................ 51
TABLE 32. MX-3EH: RECMIXR CONTROL 2 ............................................................................................................................ 52
TABLE 33. MX-45H: HPOMIX CONTROL .................................................................................................................................. 53
TABLE 34. MX-4DH: OUTMIXL CONTROL 1 ............................................................................................................................ 53
TABLE 35. MX-4EH: OUTMIXL CONTROL 2 ............................................................................................................................ 54
TABLE 36. MX-4FH: OUTMIXL CONTROL 3 ............................................................................................................................ 54
TABLE 37. MX-50H: OUTMIXR CONTROL 1 ............................................................................................................................ 55
TABLE 38 MX-51H: OUTMIXR CONTROL 2 ............................................................................................................................. 56
TABLE 39. MX-52H: OUTMIXR CONTROL 3 ............................................................................................................................ 56
TABLE 40 MX-53H: LOUTMIX CONTROL ................................................................................................................................ 57
TABLE 41. MX-61H: POWER MANAGEMENT CONTROL 1 ........................................................................................................... 58
TABLE 42. MX-62H: POWER MANAGEMENT CONTROL 2 ........................................................................................................... 58
TABLE 43. MX-63H: POWER MANAGEMENT CONTROL 3 ........................................................................................................... 59
TABLE 44. MX-64H: POWER MANAGEMENT CONTROL 4 ........................................................................................................... 60
TABLE 45. MX-65H: POWER MANAGEMENT CONTROL 5 ........................................................................................................... 60
TABLE 46. MX-66H: POWER MANAGEMENT CONTROL 6 ........................................................................................................... 61
TABLE 47. MX-6AH: PRIVATE REGISTER INDEX ........................................................................................................................ 62
TABLE 48. MX-6CH: PRIVATE REGISTER DATA ......................................................................................................................... 62
TABLE 49. MX-70H: I2S1 DIGITAL INTERFACE CONTROL.......................................................................................................... 62
TABLE 50. MX-73H: ADC/DAC CLOCK CONTROL 1 ................................................................................................................. 63
TABLE 51. MX-74H: ADC/DAC CLOCK CONTROL 2 ................................................................................................................. 63
TABLE 52. MX-80H: GLOBAL CLOCK CONTROL ........................................................................................................................ 64
List of Figures
FIGURE 1. BLOCK DIAGRAM ....................................................................................................................................................... 3
FIGURE 2. AUDIO MIXER PATH ................................................................................................................................................... 4
FIGURE 3. DIGITAL MIXER PATH ................................................................................................................................................ 5
FIGURE 4. PIN ASSIGNMENTS ...................................................................................................................................................... 6
FIGURE 5. AUDIO CLOCK TREE ................................................................................................................................................. 13
FIGURE 6. PCM MONO DATA MODE A FORMAT (BCLK POLARITY=0) .............................................................................. 16
FIGURE 7. PCM MONO DATA MODE A FORMAT (BCLK POLARITY=1) .............................................................................. 16
FIGURE 8. PCM MONO DATA MODE B FORMAT (BCLK POLARITY=0) .............................................................................. 17
FIGURE 9. PCM STEREO DATA MODE A FORMAT (BCLK POLARITY=0) .............................................................................. 17
FIGURE 10. PCM STEREO DATA MODE B FORMAT (BCLK POLARITY=0).............................................................................. 17
FIGURE 11. I2S DATA FORMAT (BCLK POLARITY=0)............................................................................................................. 18
FIGURE 12. LEFT-JUSTIFIED DATA FORMAT (BCLK POLARITY=0) ........................................................................................ 18
FIGURE 13. 2-CHANNEL RECORDING PATH ................................................................................................................................ 19
FIGURE 14. 4-CHANNEL PLAYBACK PATH .................................................................................................................................. 20
FIGURE 15. DAC DRC FUNCTION BLOCK .................................................................................................................................. 25
FIGURE 16. ADC AGC FUNCTION BLOCK .................................................................................................................................. 25
FIGURE 17. DRC/AGC FOR PLAYBACK/RECORDING MODE ....................................................................................................... 26
FIGURE 18. DRC/AGC FOR NOISE GATE MODE ......................................................................................................................... 27
FIGURE 19. DATA TRANSFER OVER I2C CONTROL INTERFACE ................................................................................................... 31
FIGURE 20. GPIO FUNCTION BLOCK .......................................................................................................................................... 33
FIGURE 21. IRQ FUNCTION BLOCK............................................................................................................................................. 33
FIGURE 22. JD SOURCE SELECTION ............................................................................................................................................ 34
FIGURE 23. POWER MANAGEMENT ............................................................................................................................................. 36
FIGURE 24. I2C CONTROL INTERFACE ......................................................................................................................................... 89
FIGURE 25. TIMING OF I2S/PCM MASTER MODE ........................................................................................................................ 90
FIGURE 26. I2S/PCM SLAVE MODE TIMING ............................................................................................................................... 91
FIGURE 27. APPLICATION CIRCUIT ............................................................................................................................................. 93
FIGURE 28. PACKAGE DIMENSION .............................................................................................................................................. 94
1. General Description
The ALC5616 is a high performance, low power, stereo channel I2S interface audio CODEC. The
transmitted data can from analog input or digital microphone input. Also the received data can to
headphone output, line output.
The ALC5616 features an ultra low power cap-free headphone amplifier. It consumes only less than
6.5mW power during playback, providing mobile system longer battery life under headphone listening
mode.
The integrated DRC(Dynamic Range Controller) and 7-band parametric Equalizer provide further digital
sound processing capability of audio playback paths. The DRC in ALC5616 continuously monitors the
DAC output level. When the power level is low, it increases the input signal gain to make it sound louder.
At the same time, if a peaking signal is detected, it autonomously reduces the applied gain to avoid hard
clipping. It ensures the maximum/consistent signal amplitude without producing audio clipping and
speaker damage. The 7-band parametric Equalizer contains 7 independent filters with programmable gain,
center frequency and bandwidth to tailor the frequency characteristics of embedded speaker system
according to user preferences.
For microphone recording, the DRC in ALC5616 can be used as AGC(Auto Gain Controller) to maintain
a constant recording volume. Besides, a dynamic wind reduction filter is built in on recording path. The
filter can detect the level of wind noise and on/off dynamically to keep the recording quality.
ALC5616 only requires two voltage supplies and consume ultra low power, making it ideal for mobile
devices.
2. Features
Analog Features:
Digital Features:
One 24bit/8kHz ~ 192kHz I2S/PCM interface for stereo DAC and stereo ADC
I2C control interface
7-bands flexible equalizer (EQ) for DAC path or ADC path
Enhanced DRC(Dynamic Range Control)/AGC(Auto Gain Control) function for DAC path or ADC
path
One wind noise reduction filter
Zero detection and soft volume for pop noise suppression
3. System Application
Smart Phones
Tablet
MICVDD
CPVDD
DBVDD
AVDD
CPP
CPN
Digtial I/O Analog Core
MICBIAS
Charge Pump CPP2
DCVDD Headphone
Digital Core 0.9 * MICVDD
0.75 * MICVDD block CPN2
CPVEE
CPVPP
LDO
CPGND
Charge Pump
DGND
AGND
AIN HPOL
IN1P
HPOR
BST1
ADC_L
INL_Vol REC Output
Mixer DACL1
Mixer
INR_Vol Audio Signal &
ADC
Volume Processing DAC
Volume Volume LOUTL/P
ADC_R
IN2P/INL1 High Pass
Filter
High Pass
Filter LOUTR/N
IN2N/INR1 DACR1
BST2
JD1/2 Analog JD
LDO
MICBIAS MICBIAS
AVDD
SDA
LRCK1
ADCDAT1
SCL
BCLK1
MCLK
HPOVOLL
RECMIXL Gain
mu_hpvol_hpo, MX45[13] En_bst_hp HPOL
-18 ~ 0dB, 3dB/step -18 ~ 0dB, 3dB/step MX45[12]
0/20/24/30/35/40/44/50/52
BST2 HPOVOLL DACL1 mu_hpo_l
IN1P BST2 Gain HPOVOLL Gain MX02[15]
Gain mu_bst2_outmixl, MX4F[6] Gain_bst2_outmixl, MX4D[12:10] mu_hpovoll_in vol_hpol
mu_bst2_recmixl mu_dac1_hpo, MX45[14]-6 ~ 0dB, 6dB/step
Digital Volume
BST1 Gain_bst2_recmixl, MX3B[3:1] BST1 MX02[14] MX02[13:8] HPOLMIX
MX3C[2] Gain
Filter &
mu_bst1_outmixl, MX4F[5] (-46.5 ~ +12dB, 1.5dB/step)
Sel_bst1 BST1 Gain ADC_L Gain_bst1_outmixl, MX4D[9:7]
VMID INL1
Digital Volume
MX0D[15:12] mu_bst1_recmixl Gain_bst1_recmixl, MX3C[15:13] Gain
BST1 mu_inl1_outmixl, MX4F[4]
Filter &
MX3C[1] DACL1 Gain_inl1_outmixl, MX4D[6:4]
INL1 DAC_L1 RECMIXL OUTVOLL
Gain Gain OUTVOLL
mu_inl1_recmixl mu_recmixl_outmixl, MX4F[3] Gain_recmixl_outmixl, MX4D[3:1] mu_outvoll_in vol_outl
Gain_inl1_recmixl, MX3B[12:10]
MX3C[5] RECMIXL DACL1 MX03[14] MX03[13:8] DACL1
Gain Gain
0/20/24/30/35/40/44/50/52 (-46.5 ~ +12dB, 1.5dB/step)
mu_dacl1_outmixl, MX4F[0] Gain_inl2_outmixl, MX4E[6:4] mu_dacl1_lout, MX53[15] LOUTL
IN2P bst_lout
OUTMIXL MX53[11] mu_lout_l
En_in2_df BST2 MX03[15] LOUTL/P
OUTVOLL
IN2N MX0D[6] Gain
Sel_bst2 mu_outvoll_lout, MX53[13]
MX0D[11:8] DACR1
Gain mu_lout_r
VMID BST2
mu_dacr1_lout, MX53[14] LOUTR MX03[7] LOUTR/N
-18 ~ 0dB, 3dB/step
Audio Signal bst_lout
Digital Volume
MX53[11]
INR1 -18 ~ 0dB, 3dB/step
Filter &
INR1 Gain OUTVOLR
DAC_R1 DACR1 DACR1 Gain
Digital Volume
mu_inr1_recmixr Gain_inr1_recmixr, MX3D[12:10]
-34.5~+12dB,1.5dB/step MX3E[5] Processing Gain
mu_dacr1_outmixr, MX52[0] Gain_dacr1_outmixr, MX51[9:7] OUTVOLR
OUTVOLR
mu_outvolr_lout, MX53[12]
Filter &
vol_inr1 BST1 mu_outvolr_in vol_outr -6 ~ 0dB, 6dB/step LOUTMIX
Gain ADC_R RECMIXR MX03[6]
MX0F[4:0] mu_bst1_recmixr Gain MX03[5:0]
Gain_bst1_recmixr, MX3E[15:13] mu_recmixr_outmixr, MX52[3] Gain_recmixr_outmixr, MX50[3:1] (-46.5 ~ +12dB, 1.5dB/step)
MX3E[1]
BST2 INR1
INL1 Gain Gain
mu_bst2_recmixr mu_inr1_outmixr, MX52[4] Gain_inr1_outmixr, MX50[6:4]
-28.5~+18dB,1.5dB/step MX3E[2] Gain_bst2_recmixr, MX3D[3:1] BST1
vol_inl1 RECMIXR Gain HPOVOLR
mu_bst1_outmixr, MX52[5] HPOVOLR
MX0F[12:8] Gain_bst1_outmixr, MX50[9:7] mu_hpovolr_in vol_hpor
RECMIXR BST2 HPOVOLR
Gain MX02[6] MX02[5:0] Gain
mu_bst2_outmixr, MX52[6] -46.5 ~ +12dB, 1.5dB/step) mu_hpvol_hpo, MX45[13] En_bst_hp HPOR
Gain_bst2_outmixr, MX50[12:10]
OUTMIXR MX45[12] mu_hpo_r
DACR1
Gain MX02[7]
mu_dac1_hpo, MX45[14] HPORMIX
-6 ~ 0dB, 6dB/step
DACDAT1
ADCDAT1
Stereo1_ADC_Mixer_R
mu_stereo1_adc_mixer_1
MX29[15]
mu_stereo1_adcl1 gain_dacl1_to_stereo_l, MX2A[13]
DACL1 mu_stereo_dacl1_mixl
Gain
MX27[13] EQ ALC EQ ALC MX2A[14]
ADC_L Wind
VOL IF1_DAC1_L Stereo_DAC_MIXL
filter mu_adc1_vol_l VOL DACL1
vol_adc1_l MX1C[15] mu_dac1_l
MX1C[14:8] vol_dac1_l
MX29[14]
DACR1 mu_stereo_dacr1_mixl
Gain
Only one of DAC/ADC MX19[15:8]
Only one of DAC/ADC MX2A[9]
gain_dacr1_to_stereo_l, MX2A[8]
path pass through RTK path pass through RTK
Effect mu_dac1_r Effect
IF1_DAC1_R VOL MX29[6]
vol_dac1_r gain_dacr1_to_stereo_r, MX2A[5]
mu_stereo1_adcr1 MX19[7:0]
DACR1 mu_stereo_dacr1_mixr
Wind MX2A[6] Gain
ADC_R
MX27[6]
VOL EQ ALC EQ ALC
filter mu_adc1_vol_r Stereo_DAC_MIXR
vol_adc1_r MX1C[7]
mu_stereo1_adc_mixer_r
DACR1
MX1C[6:0]
MX29[7] DACL1 mu_stereo_dacl1_mixr
Gain
MX2A[1]
gain_dacl1_to_stereo_r, MX2A[0]
Stereo1_ADC_Mixer_L
Stereo1_ADC_Mixer_L
IF1_ADC1
Stereo1_ADC_Mixer_R
IF1_DAC1_L
IF1_DAC1_R
IF1_ADC1
Digital Interface
DACDAT1
ADCDAT1
Figure 3. Digital Mixer Path
5. Pin Assignments
ADCDAT1
DACDAT1
CPVREF
LRCK1
BCLK1
HPO_L
CPVEE
HPO_R
24 23 22 21 20 19 18 17
MCLK 25 16 CPVPP
SCL 26 15 CPVDD
SDA 27 14 CPP1
GPIO1/IRQ1 28 13 CPN1
IN2P
IN2N/JD2
DACREF
AVDD
AGND
IN1P
6. Pin Descriptions
6.1. Digital I/O Pins
Table 1. Digital I/O Pins
Name Type Pin Description Characteristic Definition
First I2S interface serial data input Schmitt trigger
DACDAT1 I 22
(VIL=0.35*DBVDD, VIH=0.65*DBVDD)
ADCDAT1 O 21 First I2S interface serial data output VOL=0.1*DBVDD, VOH=0.9*DBVDD
First I2S interface serial bit clock Master: VOL =0.1*DBVDD, VOH =0.9*DBVDD
BCLK1 I/O 24 Slave: Schmitt trigger
(VIL=0.35*DBVDD, VIH=0.65*DBVDD)
First I2S interface synchronous signal Master: VOL =0.1*DBVDD, VOH =0.9*DBVDD
LRCK1 I/O 23 Slave: Schmitt trigger
(VIL=0.35*DBVDD, VIH=0.65*DBVDD)
SDA I/O 27 I2C interface serial data Open drain structure
SCL I 26 I2C interface clock input Schmitt trigger
I2S interface master clock input Schmitt trigger
MCLK I 25
(VIL=0.35*DBVDD, VIH=0.65*DBVDD)
General purpose input and output Output: VOL =0.1*DBVDD, VOH =0.9*DBVDD
GPIO1/IRQ I/O 28 Interrupt output Input: Schmitt trigger
Total: 8 Pins
6.3. Filter/Reference
Table 3. Filter/Reference
Name Type Pin Description Characteristic Definition
MICBIAS1 O 32 Bias voltage output for microphone Programmable analog DC output
VREF O 8 Internal reference voltage 4.7uF capacitor to analog ground
CPVREF - 18 Headphone reference ground Headphone ground
CPN1 - 13 First charge pump bucket capacitor 2.2uf capacitor to CPP1
CPP1 - 14 First charge pump bucket capacitor 2.2uf capacitor to CPN1
CPN2 - 11 Second charge pump bucket capacitor 2.2uf capacitor to CPP2
CPP2 - 12 Second charge pump bucket capacitor 2.2uf capacitor to CPN2
Total: 7 Pins
6.4. Power/Ground
Table 4. Power/Ground
Name Type Pin Description Characteristic Definition
MICVDD P 31 Analog power for MICBIAS 3.0V ~ 3.3V (Default 3.3V is recommended)
AVDD P 6 Analog power 1.71V ~ 1.9V (Default 1.8V is recommended)
DACREF P 5 Analog power 1.71V ~ 1.9V (Default 1.8V is recommended)
AGND P 7 Analog ground
Analog power for headphone charge 1.71V ~ 1.9V (Default 1.8V is recommended)
CPVDD P 15
pump
CPVEE P 19 Charge pump negative voltage output 2.2uf capacitor to analog ground
CPVPP P 16 Charge pump positive voltage output 2.2uf capacitor to analog ground
DCVDD P 30 Digital power for digital core. Internal LDO generated
DBVDD P 29 Digital power for digital I/O buffer 1.71V~3.3V (Default 1.8V is recommended)
CPGND/ Charge pump ground Exposed-Pad
P 33*
DGND Digital ground
Total: 9 Pins
7. Function Description
7.1. Power
There are different power types in ALC5616. DBVDD is for digital I/O power, DCVDD is for digital
core power, AVDD and DACREF are for analog power, CPVDD is for charge pump power, MICVDD is
for MICBIAS power.
The power supplier limit condition are MICVDD > AVDD = DACREF = CPVDD, and for the best
performance, our design setting is show on below.
To prevent all power down leakage, needs keep all power supply on.
7.3. Reset
There are 2 types of reset operation: power on reset (POR) and register reset.
7.4. Clocking
The system clock of ALC5616 can be selected from MCLK or PLL. MCLK is always provided externally
while the reference clock of PLL can be selected from MCLK, BCLK1. The driver should arrange the
clock of each block and setup each divider.
The Clk_sys_i2s1=256*Fs provides clocks into stereo1 DAC/ADC filter that can be selected from MCLK
or PLL. Refer to Figure 5. Audio SYSCLK
When ALC5616 at master mode, the clock source from MCLK will be divided and be sent to external
device. The ratio of BCLK and LRCK can set by register – MX73.
MX80[15:14]
MCLK
MX73[14:12]
MX80[3] Clk_sys_i2s1(256FS) Stereo1
MX80[13:12] DIV_F1
MCLK ÷2 Inter. Clock DAC/ADC
(Slave)
PLL
PLL
MX81 & MX82
MX70[15]
BCLK1(Master)
BCLK1
Master Mode
Clk_sys_i2s1 (256FS)
LRCK/BCLK
MX70[15] LRCK1(Master) Ratio
LRCK1 (64FS)
LRCK1(Slave)
The S/W driver can set up the PLL to output a frequency to match the requirement of system clock.
Master Mode
Under master mode, BCLK and LRCK are configured as output. If I2S SYSCLK is selected from MCLK
source, sel_sysclk1 (MX-80[15:14]) should set as 00’b. If selected from PLL output, sel_sysclk1 should
set as 01’b. PLL’s source is suggested to provide frequency from 2.048MHz to 40MHz. The driver
should set each divider (MX-73 and MX-89) to arrange the clock distribution. Refer to Figure5. Audio
Clock Tree, for details.
Register settings:
Set MX-FA[0] to “1” // For MCLK input clock getting control
Set MX-61[15] to “1” // Enable I2S-1
Set MX-70[15] to “0” // Enable Master mode
Slave Mode
Under slave mode BCLK and LRCK are configured as input. The SYSCLK can be input from MCLK or
PLL and BCLK is need to synchronous to MCLK. If the SYSCLK is selected from PLL, the internal PLL
should generate 256*FS by BCLK. And the driver should set each divider to arrange the clock
distribution. Refer to Figure5. Audio Clock Tree, for details.
1/Fs
LRCK
BLCK
DACDAT/
1 2 n-1 n
ADCDAT
MSB LSB
1/Fs
LRCK
BLCK
DACDAT/
1 2 n-1 n
ADCDAT
MSB LSB
1/Fs
LRCK
BLCK
DACDAT/
1 2 n-1 n
ADCDAT
MSB LSB
1/ Fs
LRCK
BLCK
DACDAT/
1 2 3 n-1 n 1 2 3 n-1 n
ADCDAT
MSB LSB MSB LSB
Left-Channel Right-Channel
1/Fs
LRCK
BLCK
DACDAT/
1 2 3 n-1 n 1 2 3 n-1 n
ADCDAT
MSB LSB MSB LSB
Left-Channel Right-Channel
1/ Fs
BLCK
2
Figure 11. I S Data Format (BCLK POLARITY=0)
1/ Fs
BLCK
DACDAT/
1 2 n-1 n 1 2 n-1 n
ADCDAT
MSB LSB MSB LSB
The full scale input of analog ADC with 0dB path setting is around 0.7Vrms. In order to save power, the
left and right analog ADC can be powered down separately by setting pow_adc_l (MX-61[2]) and
pow_adc_r (MX-61[1]). And the volume control of the stereo ADC is also separately controlled by
ad_gain_l (MX-1C[14:8]) and ad_gain_r (MX-1C[6:0]).
Analog ADC_L
CH1
I2S IF1_ADC
Analog ADC_R
CH2
The full scale output of analog DAC with 0dB path setting is around 1Vrms at line output port. In order to
save power, the two analog DACs can be powered down separately by setting pow_dac_l_1 (MX-61[12]),
pow_dac_r_1 (MX-61[11]). And the two digital volume controls are also separately controlled by
vol_dac1_l (MX-19[15:8]) and vol_dac1_r (MX-19[7:0]).
IF1_DAC I2S
7.6.3. Mixers
The ALC5616 has analog mixers build-in.
IN2P/N
The IN2P/N is a dual type input port: microphone input and line input. Microphone input can be
configured to differential input or single-ended input by MX-0D[6]. Multi-steps microphone boost
gain set by sel_bst2 (MX-0D[11:8]) is easy to use for microphone application. Pow_bst2 can be used
to power down the MIC2 boost. As line input, it has volume control for tuning by MX-0F[12:8] and
MX-0F[4:0].
HPO_L/R
The headphone output of ALC5616 is a stereo output with cap-free type headphone amplifier. It does
not need to connect external capacitor and can connect to earphone device directly. The headphone
output source can mix from output mixer (OUTMIX) or DAC by setting MX-45. The front stage of
headphone output has volume control and gain control. The volume range is from +12dB to -46.5dB
with 1.5dB/step by MX-02.
En_l_hp and en_r_hp (MX-63[7/6]) can be used to power on/off Headphone Amplifier, and
pow_hpo_voll and pow_hpo_volr (MX-66[11/10]) can be used to power on/off headphone volume
control. In addition, pow_pump_hp (MX-8E[3]) can be used to power on/off charge pump circuit for
Headphone Amplifier.
Line_OUT_L/R/P/N
The output type is line type output. The output is a stereo single ended output or mono differential
output. The input can be selected from OUTVOL or DAC output by setting MX-53[15:12]. The front
stage of LOUT output has gain control for attenuation. The gain control is 0dB or -6dB by
MX-53[11].
GPIO1/IRQ – Pin 38
The pin default is GPIO function. If want to change to IRQ output, write MX-C0[15] to 1’b that will
switch to IRQ function.
IN2N/JD2 – Pin 4
In IN2N microphone input function, need to disable JD2 jack detection function – MX-64[1] = 0’b.
DRC
1. Limiter level
2. Attack / Release time
3. Zero data
AGC
1. Limiter level
2. Attack / Release time
3. Noise gate
Input signal
Target Level
Volume
0dB
Attack Rate
Recovery Rate
Output signal
Input signal
Target Level
Noise Gate
Volume
0dB
Noise Reduction
Output signal
Target Level
Noise Gate
Fc = (Fs * tan-1(a/(2-a))) / π
Where:
Sample rate = 8K/12K/16K (MX-D3[14:12] & [10:8]), a = 2-6 + n * 2-6 (n is MX-D4[13:8] & [5:0])
Sample rate = 24K/32K (MX-D3[14:12] & [10:8]), a = 2-7 + n * 2-7 (n is MX-D4[13:8] & [5:0])
Sample rate = 44.1K/48L (MX-D3[14:12] & [10:8]), a = 2-8 + n * 2-8 (n is MX-D4[13:8] & [5:0])
Sample rate = 88.2K/96L (MX-D3[14:12] & [10:8]), a = 2-9 + n * 2-9 (n is MX-D4[13:8] & [5:0])
Sample rate = 176.4K/192L (MX-D3[14:12] & [10:8]), a = 2-10 + n * 2-10 (n is MX-D4[13:8] & [5:0])
2
Figure 19. Data Transfer Over I C Control Interface
For GPIO function, the GPIO can be configured to input or output. For input type, the internal circuit can
read pin status and report to register table. For output type, the internal circuit can drive this pin to high or
low to control external device. In GPIO function, the pin polarity can be controlled by register at output
type.
MX-C2[3]
MX-C2[4]
High GPIO1
EN_OBUF
Low
MX-BF[11]
EN_IBUF
MX-C2[5]
For IRQ function is shown at Figure 22, the IRQ output source can be selected from gpio_jd Status, jd1_1
Status, jd1_2 Status, jd2 Status and MICBIAS1 Over-Current Status. When either status is trigged, the
GPIO will output a flag as interrupt signal to external device.
MX-BD[11]
MX-BD[13]
MX-BD[7]
MX-BD[8] MX-BD[3]
MX-BE[15]
MX-BD[6]
MX-BD[9]
sta_jd1_1(MX-BF[12]) Sticky Control MX-FB[15]
MX-BD[4]
MX-BD[5]
IRQ
sta_jd1_2(MX-BF[13]) Sticky Control
MX-BE[7]
MX-BE[11]
MX-BD[1]
MX-BD[2]
Device Plug-In
JD Triggered
The MICBIAS supports short detection function. When MICBIAS circuit is short, MICBIAS circuit will
generate an over-current flag. The flag can generate an interrupt signal to notice host and let S/W do
follow-up processes.
For jack detection pins are shown at Figure 23. There is GPIO1 pins can be selected and control by
MX-BB[15:13]. When has GPIO been triggered, the status sta_jd_internal – MX-BF[4] will change. JD1
pin can used to detect two jacks and has two statuses for each jack. JD2 pin only used to detection one
jack.
Enable GPIO JD
MX-BF[4]
sta_gpio_jd GPIO1
MX-BB[15:13]
MX-BF[12]
sta_jd1_1 JD1
MX-BF[13]
sta_jd1_2
MX-BF[14]
sta_jd2 JD2
Note: For HP and SPK jack switch function, driver need to turn-on DAC to HP path and DAC to LOUT
path first. The register control of MX-BB is only do mute/un-mute function for HP and SPK.
MX-61
I2S-1 Power DACL1 Power DACR1 Power ADCL Power ADCR Power
MX-62
AD Digital DA Digital
Filter Power Filter Power
MX-63
MX-64
MX-65
MX-66
8. Registers List
ALC5616 register map as shown as following and accessing unimplemented registers will return a 0.
10 A -3 26 1A -27
11 B -4.5 27 1B -28.5
12 C -6 28 1C -30
13 D -7.5 29 1D -31.5
14 E -9 30 1E -33
15 F -10.5 31 1F -34.5
0 0 12 16 10 -12
1 1 10.5 17 11 -13.5
2 2 9 18 12 -15
3 3 7.5 19 13 -16.5
4 4 6 20 14 -18
5 5 4.5 21 15 -19.5
6 6 3 22 16 -21
7 7 1.5 23 17 -22.5
8 8 0 24 18 -24
9 9 -1.5 25 19 -25.5
10 A -3 26 1A -27
11 B -4.5 27 1B -28.5
12 C -6 28 1C -30
13 D -7.5 29 1D -31.5
14 E -9 30 1E -33
15 F -10.5 31 1F -34.5
Volume Table:
DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain DEC HEX Boost Gain
0 0 -65.625 53 35 -45.75 106 6A -25.875 159 9F -6 212 D4
1 1 -65.25 54 36 -45.375 107 6B -25.5 160 A0 -5.625 213 D5
2 2 -64.875 55 37 -45 108 6C -25.125 161 A1 -5.25 214 D6
3 3 4.5 19 13 28.5
4 4 6 20 14
5 5 7.5 21 15
6 6 9 22 16
7 7 10.5 23 17
8 8 12 24 18
9 9 13.5 25 19
10 A 15 26 1A
11 B 16.5 27 1B
12 C 18 28 1C
13 D 19.5 29 1D
14 E 21 30 1E
15 F 22.5 31 1F
9. Electrical Characteristics
9.1. DC Characteristics
9.1.1. Absolute Maximum Ratings
Table 98. Absolute Maximum Ratings
Parameter Symbol Min Typ Max Units
Power Supplies
Digital IO Buffer DBVDD -0.3 - 3.63 V
Digital Core DCVDD -0.3 - 1.98 V
Analog AVDD -0.3 - 1.98 V
Analog DACREF -0.3 - 1.98 V
Headphone CPVDD -0.3 - 1.98 V
Micbias MICVDD -0.3 - 3.63 V
o
Operating Ambient Temperature Ta -25 - +85 C
o
Storage Temperature Ts -55 - +125 C
2
Figure 24. I C Control Interface
2
Table 112. I C Timing
Parameter Symbol Min Typ Max Units
Clock Pulse Duration tw(9) 1.3 - - µs
Clock Pulse Duration tw(10) 600 - - ns
Clock Frequency F 0 - 400K Hz
Start Hold Time th(5) 600 - - ns
Data Setup Time tsu(7) 100 - - ns
Data Hold Time th(6) - - 900 ns
Rising Time tr - - 300 ns
Falling Time tf - - 300 ns
Stop Setup Time tsu(8) 600 - - ns
Pulse Width of Spikes Suppressed Input Filter tsp 0 - 50 ns
2
Figure 25. Timing of I S/PCM Master Mode
2
Table 113 Timing of I S/PCM Master Mode
Parameter Symbol Min Typ Max Units
LRCK Output to BCLK Delay tLRD - - 30 ns
Data Output to BCLK Delay tADD - - 30 ns
Data Input Setup Time tDAS 10 - - ns
Data Input Hold Time tDAH 10 - - ns
2
Figure 26. I S/PCM Slave Mode Timing
2
Table 114. I S/PCM Slave Mode Timing
Parameter Symbol Min Typ Max Units
BCLK High Pulse Width tBCH 20 - - ns
BCLK Low Pulse Width tBCL 20 - - ns
LRCK Input Setup Time tLRS 30 - - ns
Data Output to BCLK Delay tADD - - 30 ns
Data Input Setup Time tDAS 10 - - ns
Data Input Hold Time tDAH 10 - - ns
MICVDD
DACREF
DCVDD
CPVDD
DBVDD
AVDD
C32
2.2uF
U1
31
15
30
29
5
6
DACREF
AVDD
MICVDD
CPVDD
DCVDD
DBVDD
MICBIAS1 32
R19 0/5% MICBIAS1 14 C41 2.2uF/6.3V
C7
CPP1 13
MIC_IN 2 CPN1
4.7uF/6.3V
IN1P
12 C42 2.2uF/6.3V
INL 3 CPP2 11
INR 4 IN2P CPN2
IN2N/JD2
17 HPOR
HPO_R 20 HPOL
HPO_L
MCLK_IC 25 9 LOUTL
DACDAT 22 MCLK LOUTL/P 10 LOUTR
ADCDAT 21 DACDAT1 LOUTR/N
BCLK 24 ADCDAT1
LRCK 23 BCLK1
LRCK1 16 C10 2.2uF/6.3V
CPVPP 19 C12 2.2uF/6.3V
CPVEE 18
CPVREF 8 C18 4.7uF/6.3V
VREF2
GPIO1/IRQ SCL
I2C Interface
28 26
GPIO1/IRQ1 SCL SDA SCL_Host
27
SDA SDA_Host
1
CPGND
HPGND
JD1
DGND
AGND
R26 10k/5%
MIC_VDD R29 10k/5% R27 DBVDD
10k/5%
JD1_1 ALC5651
7
DGND 33
CPGND 33
CPGND 33
JD1_2 R5 0/5%/0805
AGND
22/5% 22/5%
MICBIAS1
R3
INL C25 2.2uF/6.3V 1 PH9
MIC1
2 2.2K/5%
JD1_2 3 C4 2.2uF/6.3V
C27 2.2uF/6.3V
INR 4 MIC_IN SE1 P 1
5
2
N
RJ5
20K/5%
Notes
: