0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
CDBWM1811A-M-1

CDBWM1811A-M-1

  • 厂商:

    CIRRUS(凌云)

  • 封装:

  • 描述:

    EVAL BD - WM1811A MINI EVAL BOAR

  • 数据手册
  • 价格&库存
CDBWM1811A-M-1 数据手册
w WM1811A Multi-Channel Audio Hub CODEC for Smartphones DESCRIPTION FEATURES The WM1811A[1] is a highly integrated ultra-low power hi-fi CODEC designed for smartphones and other portable devices rich in multimedia features.    An integrated stereo Class D speaker driver and Class W headphone driver minimize power consumption during audio playback. The device requires only two voltage supplies, with all other internal supply rails generated from integrated LDOs. Stereo full duplex asynchronous sample rate conversion and multi-channel digital mixing combined with powerful analogue mixing allow the device to support a huge range of different architectures and use cases. A programmable parametric EQ provides speaker compensation in the digital playback paths. The dynamic range controller can be used in record or playback paths for maintaining a constant signal level, maximizing loudness and protecting speakers against overloading and clipping. A smart digital microphone interface provides power regulation, a low jitter clock output and decimation filters for up to two digital microphones. Microphone activity detection with interrupt is available.Low power jack detection is supported via a dedicated input pin. Impedance sensing and measurement is provided for external accessory / push-button detection. Fully differential internal architecture and on-chip RF noise filters ensure a very high degree of noise immunity. Active ground loop noise rejection and DC offset correction help prevent pop noise and suppress ground noise on the headphone outputs.            24-bit 2-channel hi-fi DAC and 2-channel hi-fi ADC 100dB SNR during DAC playback (‘A’ weighted) Smart MIC interface - Power, clocking and data input for up to two digital MICs - High performance analogue MIC interface - MIC activity detect & interrupt allows processor to sleep - Low power jack detection support - Impedance sensing for accessory / push-button detection 2W stereo (2 x 2W) Class D speaker driver Capless Class W headphone drivers - Integrated charge pump - 5.3mW total power for DAC playback to headphones 4 Line outputs (single-ended or differential) BTL Earpiece driver Digital audio interfaces for multi-processor architecture - Asynchronous stereo duplex sample rate conversion - Powerful mixing and digital loopback functions ReTuneTM Mobile 5-band, 4-channel parametric EQ Dynamic range controller Dual FLL provides all necessary clocks - Self-clocking modes allow processor to sleep - All standard sample rates from 8kHz to 96kHz Active noise reduction circuits - DC offset correction removes pops and clicks - Ground loop noise cancellation Integrated LDO regulators 80-ball W-CSP package (4.158 x 3.876 x 0.607mm) APPLICATIONS     Smartphones and music phones Portable navigation Tablets, eBooks Portable Media Players WOLFSON MICROELECTRONICS plc [1] This product is protected by Patents US 7,622,984, US 7,626,445, and GB 2,469,345 Production Data, August 2014, Rev 4.2 Copyright 2014 Wolfson Microelectronics plc WM1811A Production Data TABLE OF CONTENTS DESCRIPTION ................................................................................................................ 1  FEATURES ..................................................................................................................... 1  APPLICATIONS.............................................................................................................. 1  TABLE OF CONTENTS .................................................................................................. 2  BLOCK DIAGRAM ......................................................................................................... 6  PIN CONFIGURATION ................................................................................................... 7  ORDERING INFORMATION ........................................................................................... 7  PIN DESCRIPTION ......................................................................................................... 8  ABSOLUTE MAXIMUM RATINGS ............................................................................... 11  RECOMMENDED OPERATING CONDITIONS ............................................................ 12  ELECTRICAL CHARACTERISTICS ............................................................................ 13  INPUT SIGNAL LEVEL .............................................................................................................. 13  INPUT PIN RESISTANCE ......................................................................................................... 14  PROGRAMMABLE GAINS ........................................................................................................ 16  OUTPUT DRIVER CHARACTERISTICS .................................................................................. 17  ADC INPUT PATH PERFORMANCE ........................................................................................ 18  DAC OUTPUT PATH PERFORMANCE .................................................................................... 19  BYPASS PATH PERFORMANCE ............................................................................................. 21  MULTI-PATH CROSSTALK ....................................................................................................... 23  DIGITAL INPUT / OUTPUT........................................................................................................ 25  DIGITAL FILTER CHARACTERISTICS .................................................................................... 25  MICROPHONE BIAS CHARACTERISTICS .............................................................................. 26  MISCELLANEOUS CHARACTERISTICS ................................................................................. 27  TERMINOLOGY ......................................................................................................................... 28  TYPICAL PERFORMANCE .......................................................................................... 29  TYPICAL POWER CONSUMPTION ......................................................................................... 29  TYPICAL SIGNAL LATENCY .................................................................................................... 30  SIGNAL TIMING REQUIREMENTS ............................................................................. 31  SYSTEM CLOCKS & FREQUENCY LOCKED LOOP (FLL) .................................................... 31  AUDIO INTERFACE TIMING ..................................................................................................... 32  DIGITAL MICROPHONE (DMIC) INTERFACE TIMING ................................................................................................................ 32  DIGITAL AUDIO INTERFACE - MASTER MODE ......................................................................................................................... 33  DIGITAL AUDIO INTERFACE - SLAVE MODE ............................................................................................................................. 34  DIGITAL AUDIO INTERFACE - TDM MODE ................................................................................................................................ 35  CONTROL INTERFACE TIMING .............................................................................................. 36  DEVICE DESCRIPTION ............................................................................................... 37  INTRODUCTION ........................................................................................................................ 37  ANALOGUE INPUT SIGNAL PATH .......................................................................................... 39  MICROPHONE INPUTS ................................................................................................................................................................ 40  MICROPHONE BIAS CONTROL .................................................................................................................................................. 40  MICROPHONE ACCESSORY DETECT ....................................................................................................................................... 42  LINE AND VOICE CODEC INPUTS .............................................................................................................................................. 42  INPUT PGA ENABLE .................................................................................................................................................................... 43  INPUT PGA CONFIGURATION .................................................................................................................................................... 44  INPUT PGA VOLUME CONTROL ................................................................................................................................................. 45  INPUT MIXER ENABLE................................................................................................................................................................. 49  INPUT MIXER CONFIGURATION AND VOLUME CONTROL ..................................................................................................... 49  DIGITAL MICROPHONE INTERFACE ...................................................................................... 53  DIGITAL PULL-UP AND PULL-DOWN.......................................................................................................................................... 56  w PD, August 2014, Rev 4.2 2 Production Data WM1811A ANALOGUE TO DIGITAL CONVERTER (ADC) ....................................................................... 56  ADC CLOCKING CONTROL ......................................................................................................................................................... 57  DIGITAL CORE ARCHITECTURE ............................................................................................ 58  DIGITAL MIXING ........................................................................................................................ 60  AUDIO INTERFACE 1 (AIF1) OUTPUT DIGITAL MIXING ............................................................................................................ 61  DIGITAL SIDETONE VOLUME AND FILTER CONTROL ............................................................................................................. 61  DAC OUTPUT DIGITAL MIXING ................................................................................................................................................... 63  AUDIO INTERFACE 2 (AIF2) OUTPUT DIGITAL MIXING ............................................................................................................ 64  DIGITAL VOLUME (DAC AND AIF2 OUTPUT PATHS) ................................................................................................................ 65  DIGITAL VOLUME SOFT MUTE AND SOFT UN-MUTE .............................................................................................................. 68  ULTRASONIC (4FS) AIF OUTPUT MODE .................................................................................................................................... 70  DYNAMIC RANGE CONTROL (DRC) ....................................................................................... 71  DRC COMPRESSION / EXPANSION /LIMITING.......................................................................................................................... 72  GAIN LIMITS.................................................................................................................................................................................. 73  DYNAMIC CHARACTERISTICS ................................................................................................................................................... 74  ANTI-CLIP CONTROL ................................................................................................................................................................... 74  QUICK RELEASE CONTROL ....................................................................................................................................................... 74  SIGNAL ACTIVITY DETECT ......................................................................................................................................................... 74  DRC REGISTER CONTROLS ....................................................................................................................................................... 75  RETUNETM MOBILE PARAMETRIC EQUALIZER (EQ) ........................................................... 81  DEFAULT MODE (5-BAND PARAMETRIC EQ) ........................................................................................................................... 81  RETUNETM MOBILE MODE ........................................................................................................................................................... 83  EQ FILTER CHARACTERISTICS ................................................................................................................................................. 84  3D STEREO EXPANSION ......................................................................................................... 85  DIGITAL VOLUME AND FILTER CONTROL ............................................................................ 86  AIF1 - OUTPUT PATH VOLUME CONTROL ................................................................................................................................ 86  AIF1 - OUTPUT PATH HIGH PASS FILTER ................................................................................................................................. 88  AIF1 - INPUT PATH VOLUME CONTROL .................................................................................................................................... 89  AIF1 - INPUT PATH SOFT MUTE CONTROL .............................................................................................................................. 91  AIF1 - INPUT PATH NOISE GATE CONTROL ............................................................................................................................. 91  AIF1 - INPUT PATH MONO MIX CONTROL ................................................................................................................................. 92  AIF2 - OUTPUT PATH VOLUME CONTROL ................................................................................................................................ 92  AIF2 - OUTPUT PATH HIGH PASS FILTER ................................................................................................................................. 93  AIF2 - INPUT PATH VOLUME CONTROL .................................................................................................................................... 94  AIF2 - INPUT PATH SOFT MUTE CONTROL .............................................................................................................................. 95  AIF2 - INPUT PATH NOISE GATE CONTROL ............................................................................................................................. 96  AIF2- INPUT PATH MONO MIX CONTROL .................................................................................................................................. 96  DIGITAL TO ANALOGUE CONVERTER (DAC) ....................................................................... 97  DAC CLOCKING CONTROL ......................................................................................................................................................... 97  ANALOGUE OUTPUT SIGNAL PATH ...................................................................................... 99  OUTPUT SIGNAL PATHS ENABLE ............................................................................................................................................ 100  HEADPHONE SIGNAL PATHS ENABLE .................................................................................................................................... 101  OUTPUT MIXER CONTROL ....................................................................................................................................................... 104  SPEAKER MIXER CONTROL ..................................................................................................................................................... 108  OUTPUT SIGNAL PATH VOLUME CONTROL ........................................................................................................................... 110  SPEAKER BOOST MIXER .......................................................................................................................................................... 115  EARPIECE DRIVER MIXER ........................................................................................................................................................ 115  LINE OUTPUT MIXERS .............................................................................................................................................................. 116  CHARGE PUMP ....................................................................................................................... 120  DC SERVO ............................................................................................................................... 122  DC SERVO ENABLE AND START-UP ....................................................................................................................................... 122  GPIO / INTERRUPT OUTPUTS FROM DC SERVO ................................................................................................................... 124  ANALOGUE OUTPUTS ........................................................................................................... 125  SPEAKER OUTPUT CONFIGURATIONS ................................................................................................................................... 125  HEADPHONE OUTPUT CONFIGURATIONS ............................................................................................................................. 128  w PD, August 2014, Rev 4.2 3 WM1811A Production Data EARPIECE DRIVER OUTPUT CONFIGURATIONS ................................................................................................................... 129  LINE OUTPUT CONFIGURATIONS ............................................................................................................................................ 129  EXTERNAL ACCESSORY DETECTION ................................................................................ 132  JACK DETECT ............................................................................................................................................................................ 132  MICROPHONE / ACCESSORY DETECT ................................................................................................................................... 135  EXTERNAL ACCESSORY DETECTION CLOCKING ................................................................................................................. 140  EXTERNAL ACCESSORY DETECTION WITH LOW FREQUENCY SYSCLK........................................................................... 140  GENERAL PURPOSE INPUT/OUTPUT ................................................................................. 141  GPIO CONTROL ......................................................................................................................................................................... 141  GPIO FUNCTION SELECT ......................................................................................................................................................... 142  BUTTON DETECT (GPIO INPUT) ............................................................................................................................................... 144  LOGIC ‘1’ AND LOGIC ‘0’ OUTPUT (GPIO OUTPUT) ................................................................................................................ 144  INTERRUPT (IRQ) STATUS OUTPUT ........................................................................................................................................ 144  OVER-TEMPERATURE DETECTION ......................................................................................................................................... 144  MICROPHONE ACCESSORY STATUS DETECTION ................................................................................................................ 145  FREQUENCY LOCKED LOOP (FLL) LOCK STATUS OUTPUT ................................................................................................ 145  SAMPLE RATE CONVERTER (SRC) LOCK STATUS OUTPUT ............................................................................................... 145  DYNAMIC RANGE CONTROL (DRC) SIGNAL ACTIVITY DETECTION .................................................................................... 146  DIGITAL CORE FIFO ERROR STATUS DETECTION................................................................................................................ 147  OPCLK CLOCK OUTPUT ............................................................................................................................................................ 148  FLL CLOCK OUTPUT .................................................................................................................................................................. 148  INTERRUPTS .......................................................................................................................... 149  DIGITAL AUDIO INTERFACE ................................................................................................. 153  MASTER AND SLAVE MODE OPERATION ............................................................................................................................... 154  OPERATION WITH TDM ............................................................................................................................................................. 154  AUDIO DATA FORMATS (NORMAL MODE) .............................................................................................................................. 155  AUDIO DATA FORMATS (TDM MODE) ..................................................................................................................................... 158  DIGITAL AUDIO INTERFACE CONTROL .............................................................................. 160  AIF1 - MASTER / SLAVE AND TRI-STATE CONTROL .............................................................................................................. 160  AIF1 - SIGNAL PATH ENABLE ................................................................................................................................................... 161  AIF1 - BCLK AND LRCLK CONTROL ......................................................................................................................................... 161  AIF1 - DIGITAL AUDIO DATA CONTROL ................................................................................................................................... 164  AIF1 - MONO MODE ................................................................................................................................................................... 166  AIF1 - COMPANDING ................................................................................................................................................................. 166  AIF1 - LOOPBACK ...................................................................................................................................................................... 168  AIF1 - DIGITAL PULL-UP AND PULL-DOWN ............................................................................................................................. 168  AIF2 - MASTER / SLAVE AND TRI-STATE CONTROL .............................................................................................................. 168  AIF2 - SIGNAL PATH ENABLE ................................................................................................................................................... 169  AIF2 - BCLK AND LRCLK CONTROL ......................................................................................................................................... 170  AIF2 - DIGITAL AUDIO DATA CONTROL ................................................................................................................................... 172  AIF2 - MONO MODE ................................................................................................................................................................... 173  AIF2 - COMPANDING ................................................................................................................................................................. 174  AIF2 - LOOPBACK ...................................................................................................................................................................... 174  AIF2 - DIGITAL PULL-UP AND PULL-DOWN ............................................................................................................................. 175  AIF3 - SIGNAL PATH CONFIGURATION AND TRI-STATE CONTROL..................................................................................... 176  AIF3 - BCLK AND LRCLK CONTROL ......................................................................................................................................... 178  AIF3 - DIGITAL AUDIO DATA CONTROL ................................................................................................................................... 179  AIF3 - COMPANDING ................................................................................................................................................................. 180  AIF3 - LOOPBACK ...................................................................................................................................................................... 180  CLOCKING AND SAMPLE RATES ......................................................................................... 181  AIF1CLK ENABLE ....................................................................................................................................................................... 182  AIF1 CLOCKING CONFIGURATION .......................................................................................................................................... 183  AIF2CLK ENABLE ....................................................................................................................................................................... 185  AIF2 CLOCKING CONFIGURATION .......................................................................................................................................... 185  MISCELLANEOUS CLOCK CONTROLS .................................................................................................................................... 186  w PD, August 2014, Rev 4.2 4 Production Data WM1811A BCLK AND LRCLK CONTROL .................................................................................................................................................... 189  CONTROL INTERFACE CLOCKING .......................................................................................................................................... 190  FREQUENCY LOCKED LOOP (FLL) .......................................................................................................................................... 190  FREE-RUNNING FLL CLOCK ..................................................................................................................................................... 196  GPIO OUTPUTS FROM FLL ....................................................................................................................................................... 197  EXAMPLE FLL CALCULATION................................................................................................................................................... 198  EXAMPLE FLL SETTINGS .......................................................................................................................................................... 199  SAMPLE RATE CONVERSION ............................................................................................... 200  SAMPLE RATE CONVERTER 1 (SRC1) .................................................................................................................................... 200  SAMPLE RATE CONVERTER 2 (SRC2) .................................................................................................................................... 200  SAMPLE RATE CONVERTER RESTRICTIONS ........................................................................................................................ 201  SAMPLE RATE CONVERTER CONFIGURATION ERROR INDICATION ................................................................................. 201  CONTROL INTERFACE .......................................................................................................... 202  POP SUPPRESSION CONTROL ............................................................................................ 205  DISABLED LINE OUTPUT CONTROL ........................................................................................................................................ 205  LINE OUTPUT DISCHARGE CONTROL .................................................................................................................................... 206  VMID REFERENCE DISCHARGE CONTROL ............................................................................................................................ 206  INPUT VMID CLAMPS ................................................................................................................................................................ 206  LDO REGULATORS ................................................................................................................ 207  REFERENCE VOLTAGES AND MASTER BIAS .................................................................... 209  POWER MANAGEMENT ......................................................................................................... 211  THERMAL SHUTDOWN .......................................................................................................... 215  POWER ON RESET ................................................................................................................ 216  SOFTWARE RESET AND DEVICE ID .................................................................................... 218  REGISTER MAP ......................................................................................................... 219  REGISTER BITS BY ADDRESS ............................................................................................. 230  APPLICATIONS INFORMATION ............................................................................... 312  RECOMMENDED EXTERNAL COMPONENTS ..................................................................... 312  AUDIO INPUT PATHS ................................................................................................................................................................. 312  HEADPHONE OUTPUT PATH .................................................................................................................................................... 313  EARPIECE DRIVER OUTPUT PATH .......................................................................................................................................... 314  LINE OUTPUT PATHS ................................................................................................................................................................ 314  POWER SUPPLY DECOUPLING ............................................................................................................................................... 315  CHARGE PUMP COMPONENTS ............................................................................................................................................... 316  MICROPHONE BIAS CIRCUIT ................................................................................................................................................... 316  EXTERNAL ACCESSORY DETECTION COMPONENTS .......................................................................................................... 318  CLASS D SPEAKER CONNECTIONS ........................................................................................................................................ 320  RECOMMENDED EXTERNAL COMPONENTS DIAGRAM ....................................................................................................... 321  DIGITAL AUDIO INTERFACE CLOCKING CONFIGURATIONS ........................................... 323  PCB LAYOUT CONSIDERATIONS ......................................................................................... 326  CLASS D LOUDSPEAKER CONNECTION ................................................................................................................................ 326  PACKAGE DIMENSIONS ........................................................................................... 327  IMPORTANT NOTICE ................................................................................................ 328  ADDRESS: ............................................................................................................................... 328  REVISION HISTORY .................................................................................................. 329  w PD, August 2014, Rev 4.2 5 WM1811A Production Data BLOCK DIAGRAM w PD, August 2014, Rev 4.2 6 WM1811A Production Data PIN CONFIGURATION ORDERING INFORMATION ORDER CODE TEMPERATURERANGE WM1811AECS/R -40C to +85C PACKAGE 80-ball W-CSP (Pb-free, Tape and reel) MOISTURE SENSITIVITY LEVEL MSL1 PEAK SOLDERING TEMPERATURE 260C Note: Reel quantity = 5000 w PD, August 2014, Rev 4.2 7 WM1811A Production Data PIN DESCRIPTION A description of each pin on the WM1811A is provided below. Note that a table detailing the associated power domain for every input and output pin is provided on the following page. Note that, where multiple pins share a common name, these pins should be tied together on the PCB. PIN NO F4 NAME ADCDAT1 H4 ADCDAT2 J1 ADCLRCLK1/ TYPE DESCRIPTION Digital Output Audio interface 1 ADC digital audio data Digital Output Audio interface 2 ADC digital audio data Digital Input / Output Audio interface 1 ADC left / right clock / General Purpose pin GPIO 1 GPIO1 F3 ADDR Digital Input 2-wire (I2C) address select D9 AGND Supply Analogue ground (Return path for AVDD1, AVDD2 and LDO1VDD) E9, G9 AVDD1 Supply / Analogue Output Analogue core supply / LDO1 Output E8 AVDD2 Supply Bandgap and Jack Detect reference, analogue Class D and FLL supply G3 BCLK1 Digital Input / Output Audio interface 1 bit clock K1 BCLK2 Digital Input / Output Audio interface 2 bit clock J8 CPCA Analogue Output Charge pump fly-back capacitor pin K8 CPCB Analogue Output Charge pump fly-back capacitor pin Supply Charge pump ground (Return path for CPVDD) K9 CPGND J9 CPVDD K7 CPVOUTN Supply Charge pump supply Analogue Output Charge pump negative supply decoupling pin (HPOUT1L, HPOUT1R) Charge pump positive supply decoupling pin (HPOUT1L, HPOUT1R) J7 CPVOUTP Analogue Output H1 DACDAT1 Digital Input Audio interface 1 DAC digital audio data G4 DACDAT2 Digital Input Audio interface 2 DAC digital audio data E1 DBVDD1 Supply Digital buffer (I/O) supply (core functions and Audio Interface 1) J2 DBVDD2 Supply Digital buffer (I/O) supply (for Audio Interface 2) H5 DBVDD3 Supply Digital buffer (I/O) supply (for Audio Interface 3) G2 DCVDD Supply / Analogue Output Digital core supply / LDO2 output K5 DGND A8 DMICCLK G5 GPIO10/ Supply Digital ground (Return path for DCVDD, DBVDD1, DBVDD2, DBVDD3) Digital Output Digital MIC clock output Digital Input / Output K4 GPIO11/ Digital Input / Output GPIO8/ Digital Input / Output GPIO9/ Digital Input / Output H6 HP2GND HPOUT1FB General Purpose pin GPIO 9 / Audio interface 3 ADC digital audio data ADCDAT3 H8 General Purpose pin GPIO 8 / Audio interface 3 DAC digital audio data DACDAT3 J4 General Purpose pin GPIO 11 / Audio interface 3 bit clock BCLK3 K3 General Purpose pin GPIO 10 / Audio interface 3 left / right clock LRCLK3 Supply Analogue ground Analogue Input HPOUT1L and HPOUT1R ground loop noise rejection feedback J6 HPOUT1L Analogue Output Left headphone output J5 HPOUT1R Analogue Output Right headphone output G8 HPOUT2N Analogue Output Earpiece speaker inverted output H7 HPOUT2P Analogue Output Earpiece speaker non-inverted output D7 IN1LN Analogue Input Left channel single-ended MIC input / D8 IN1LP Analogue Input Left channel line input / B9 IN1RN Analogue Input Right channel single-ended MIC input / Left channel negative differential MIC input Left channel positive differential MIC input Right channel negative differential MIC input w PD, August 2014, Rev 4.2 8 WM1811A Production Data PIN NO NAME TYPE DESCRIPTION C7 IN1RP Analogue Input Right channel line input / C8 IN2LN/ Analogue Input / Left channel line input / Digital Input Left channel negative differential MIC input / Analogue Input Left channel line input / Right channel positive differential MIC input DMICDAT Digital MIC data input C9 IN2LP/VRXN Left channel positive differential MIC input / Mono differential negative input (RXVOICE -) B7 IN2RN Analogue Input Right channel line input / B8 IN2RP/VRXP Analogue Input Left channel line input / Right channel negative differential MIC input Left channel positive differential MIC input / Mono differential positive input (RXVOICE +) K2 JACKDET Analogue Input Headphone jack detection input A4 LDO1ENA Digital Input Enable pin for LDO1 F8 LDO1VDD Supply Supply for LDO1 D6 LDO2ENA Digital Input Enable pin for LDO2 C6 LINEOUT1N Analogue Output Negative mono line output / Positive left or right line output B6 LINEOUT1P Analogue Output Positive mono line output / Positive left line output A6 LINEOUT2N Analogue Output Negative mono line output / Positive left or right line output B5 LINEOUT2P Analogue Output Positive mono line output / Positive left line output C5 LINEOUTFB Analogue Input Line output ground loop noise rejection feedback G1 LRCLK1 Digital Input / Output Audio interface 1 left / right clock J3 LRCLK2 Digital Input / Output Audio interface 2 left / right clock F1 MCLK1 Digital Input Master clock 1 F2 MCLK2 Digital Input Master clock 2 A9 MICBIAS1 Analogue Output Microphone bias 1 A7 MICBIAS2 Analogue Output Microphone bias 2 Microphone & accessory sense input Analogue ground F9 MICDET Analogue Input A5 REFGND Supply H2 SCLK Digital Input Control interface clock input H3 SDA Digital Input / Output Control interface data input and output / acknowledge output B2, C4 SPKGND1 Supply Ground for speaker driver (Return path for SPKVDD1) C2, D3 SPKGND2 Supply Ground for speaker driver (Return path for SPKVDD2) D5 SPKMODE Digital Input Mono / Stereo speaker mode select A1, B1 SPKOUTLN Analogue Output Left speaker negative output B3, B4 SPKOUTLP Analogue Output Left speaker positive output C1, D1 SPKOUTRN Analogue Output Right speaker negative output C3, D4 SPKOUTRP Analogue Output Right speaker positive output A2, A3 SPKVDD1 Supply Supply for speaker driver 1 (Left channel) D2, E2 SPKVDD2 Supply Supply for speaker driver 2 (Right channel) E7 VMIDC Analogue Output Midrail voltage decoupling capacitor F7 VREFC Analogue Output Bandgap reference decoupling capacitor w PD, August 2014, Rev 4.2 9 WM1811A Production Data The following table identifies the power domain and ground reference associated with each of the input / output pins. PIN NO NAME POWER DOMAIN GROUND DOMAIN F4 ADCDAT1 DBVDD1 DGND H4 ADCDAT2 DBVDD2 DGND DGND J1 ADCLRCLK1/GPIO1 DBVDD1 F3 ADDR DBVDD1 DGND G3 BCLK1 DBVDD1 DGND DGND K1 BCLK2 DBVDD2 H1 DACDAT1 DBVDD1 DGND G4 DACDAT2 DBVDD2 DGND A8 DMICCLK MICBIAS1 AGND K3 GPIO8/DACDAT3 DBVDD3 DGND J4 GPIO9/ADCDAT3 DBVDD3 DGND G5 GPIO10/LRCLK3 DBVDD3 DGND K4 GPIO11/BCLK3 DBVDD3 DGND J6 HPOUT1L CPVOUTP, CPVOUTN CPGND J5 HPOUT1R CPVOUTP, CPVOUTN CPGND G8 HPOUT2N AVDD1 HP2GND H7 HPOUT2P AVDD1 HP2GND D7 IN1LN AVDD1 AGND D8 IN1LP AVDD1 AGND B9 IN1RN AVDD1 AGND C7 IN1RP AVDD1 AGND C8 IN2LN/DMICDAT AVDD1 (IN2LN) or AGND MICBIAS1 (DMICDAT) IN2LP/VRXN AVDD1 AGND B7 IN2RN AVDD1 AGND B8 IN2RP/VRXP AVDD1 AGND K2 JACKDET AVDD2 AGND A4 LDO1ENA DBVDD1 DGND D6 LDO2ENA DBVDD1 DGND C6 LINEOUT1N AVDD1 AGND B6 LINEOUT1P AVDD1 AGND A6 LINEOUT2N AVDD1 AGND B5 LINEOUT2P AVDD1 AGND G1 LRCLK1 DBVDD1 DGND C9 J3 LRCLK2 DBVDD2 DGND F1 MCLK1 DBVDD1 DGND F2 MCLK2 DBVDD1 DGND F9 MICDET MICBIAS2 AGND H2 SCLK DBVDD1 DGND H3 SDA DBVDD1 DGND D5 SPKMODE DBVDD1 DGND A1, B1 SPKOUTLN SPKVDD1 SPKGND1 B3, B4 SPKOUTLP SPKVDD1 SPKGND1 C1, D1 SPKOUTRN SPKVDD2 SPKGND2 C3, D4 SPKOUTRP SPKVDD2 SPKGND2 w PD, August 2014, Rev 4.2 10 WM1811A Production Data ABSOLUTE MAXIMUM RATINGS Absolute Maximum Ratings are stress ratings only. Permanent damage to the device may be caused by continuously operating at or beyond these limits. Device functional operating limits and guaranteed performance specifications are given under Electrical Characteristics at the test conditions specified. ESD Sensitive Device. This device is manufactured on a CMOS process. It is therefore generically susceptible to damage from excessive static voltages. Proper ESD precautions must be taken during handling and storage of this device. Wolfson tests its package types according to IPC/JEDEC J-STD-020 for Moisture Sensitivity to determine acceptable storage conditions prior to surface mount assembly. These levels are: MSL1 = unlimited floor life at 200mV H2 Bias Voltage MICBn_LVL = 000 -5% 1.5 +5% Regulator mode (MICBn_MODE=0) MICBn_LVL = 001 -5% 1.8 +5% Load current ≤ 1.0mA MICBn_LVL = 010 -5% 1.9 +5% MICBn_LVL = 011 -5% 2.0 +5% MICBn_LVL = 100 -5% 2.2 +5% MICBn_LVL = 101 -5% 2.4 +5% MICBn_LVL = 110 -5% 2.5 +5% -5% 2.6 MICBn_LVL = 111 Bias Voltage AVDD1 80mV V +5% AVDD1 V Regulator mode (MICBn_MODE=0) 2.4 mA Bypass mode (MICBn_MODE=1) 3.6 Bypass mode (MICBn_MODE=1) Load current ≤ 3.6mA H3 Bias Current H4 Output Noise Density H5 Integrated Noise Voltage H6 PSRR (AVDD1) 100mV (pk-pk) 217Hz MICBn_LVL = 010 71 MICBn_LVL = 011 70 MICBn_LVL = 100 68 MICBn_LVL = 101 65 MICBn_LVL = 110 62 Regulator mode (MICBn_MODE=0), MICBn_LVL = 100, Load current = 1mA, Measured at 1kHz 60 nV/Hz Regulator mode (MICBn_MODE=0), MICBn_LVL = 100, Load current = 1mA, 100Hz to 7kHz, A-weighted 4.5 µVRMS MICBn_LVL = 000 79 dB MICBn_LVL = 001 73 MICBn_LVL = 111 62 PSRR (AVDD2, CPVDD, DBVDDn) MICBn_LVL = 000 95 100mV (pk-pk) 217Hz MICBn_LVL = 001 95 MICBn_LVL = 010 95 MICBn_LVL = 011 97 MICBn_LVL = 100 95 MICBn_LVL = 101 95 MICBn_LVL = 110 94 MICBn_LVL = 111 92 Load capacitance Regulator mode (MICBn_MODE=0) Output discharge resistance MICBn_ENA=0, MICBn_DISCH=1 w dB 50 20 pF kΩ PD, August 2014, Rev 4.2 26 WM1811A Production Data MISCELLANEOUS CHARACTERISTICS Test Conditions AVDD1=3.0V (powered from LDO1), DCVDD=1.05V (powered from LDO2), AVDD2=DBVDD1=DBVDD2=DBVDD3=CPVDD=1.8V, LDO1VDD=SPKVDD1=SPKVDD2=5V, DGND=AGND=CPGND=SPKGND1=SPKGND2=HP2GND=0V, TA = +25oC, 1kHz sinusoidal signal, fs = 48kHz, PGA gain = 0dB, 24-bit audio data unless otherwise stated. PARAMETER TEST CONDITIONS MIN TYP MAX UNIT Analogue Reference Levels H1 VMID Midrail Reference Voltage VMID_SEL = 01, 4.7F capacitor on VMIDC VMID Start-Up time VMID_SEL = 01, VMID_RAMP = 11, 4.7F capacitor on VMIDC -3% AVDD1/2 +3% V 50 ms Ω External Accessory Detection Load impedance detection range for MICD_LVL[0] = 1 0 3 (MICDET) for MICD_LVL[1] = 1 13.33 15.27 2.2kΩ (2%) MICBIAS2 resistor. for MICD_LVL[2] = 1 27.16 30.96 Note these characteristics assume no other component is connected to MICDET. See “Applications Information” for recommended external components when a typical microphone is present. for MICD_LVL[3] = 1 42.48 49.47 for MICD_LVL[4] = 1 65 85 for MICD_LVL[5] = 1 114 155.24 for MICD_LVL[6] = 1 191 329.87 for MICD_LVL[7] = 1 475 Jack Detection input threshold voltage 30000 Jack insertion 0.5 x AVDD2 Jack removal 0.85 x AVDD2 FREF=32kHz, FOUT=12.288MHz 2.5 ms FREF=12MHz, FOUT=12.288MHz 300 s 100 s Reference supplied initially +/-10 % No reference provided +/-30 % (JACKDET) V Frequency Locked Loops (FLLs) H29 Lock time H30 Free-running mode start-up time H31 Free-running mode frequency accuracy w PD, August 2014, Rev 4.2 27 WM1811A Production Data Test Conditions AVDD1=3.0V (powered from LDO1), DCVDD=1.05V (powered from LDO2), AVDD2=DBVDD1=DBVDD2=DBVDD3=CPVDD=1.8V, LDO1VDD=SPKVDD1=SPKVDD2=5V, DGND=AGND=CPGND=SPKGND1=SPKGND2=HP2GND=0V, TA = +25oC, 1kHz sinusoidal signal, fs = 48kHz, PGA gain = 0dB, 24-bit audio data unless otherwise stated. PARAMETER TEST CONDITIONS MIN TYP MAX UNIT 1.5 ms 300 mV LDO Regulators H38 LDO1 Start-Up Time 4.7F capacitor on AVDD1 1F capacitor on VREFC LDO1 Drop-Out voltage (LDO1VDD - AVDD1) LDO1 PSRR (SPKVDD, LDO1VDD) 100mV (pk-pk) 217Hz, All LDO1 output settings 50 dB LDO1 PSRR 100mV (pk-pk) 217Hz, All LDO1 output settings 82 dB (AVDD2, CPVDD, DBVDDn) H42 LDO2 Start-Up Time 1F capacitor on DCVDD 1F capacitor on VREFC 1.5 LDO2 PSRR (SPKVDD, LDO1VDD) LDO2_VSEL = 01 82 100mV (pk-pk) 217Hz LDO2_VSEL = 10 85 LDO2_VSEL = 11 83 LDO2 PSRR LDO2_VSEL = 01 55 (AVDD2, CPVDD, DBVDDn) LDO2_VSEL = 10 66 100mV (pk-pk) 217Hz LDO2_VSEL = 11 57 ms dB dB TERMINOLOGY 1. Signal-to-Noise Ratio (dB) – SNR is a measure of the difference in level between the maximum full scale output signal and the output with no input signal applied. 2. Total Harmonic Distortion (dB) – THD is the level of the rms value of the sum of harmonic distortion products relative to the amplitude of the measured output signal. 3. Total Harmonic Distortion plus Noise (dB) – THD+N is the level of the rms value of the sum of harmonic distortion products plus noise in the specified bandwidth relative to the amplitude of the measured output signal. Power Supply Rejection Ratio (dB) - PSRR is the ratio of a specified power supply variation relative to the output signal that results from it. PSRR is measured under quiescent signal path conditions. Common Mode Rejection Ratio (dB) – CMRR is the ratio of a specified input signal (applied to both sides of a differential input), relative to the output signal that results from it. Channel Separation (L/R) (dB) – left-to-right and right-to-left channel separation is the difference in level between the active channel (driven to maximum full scale output) and the measured signal level in the idle channel at the test signal frequency. The active channel is configured and supplied with an appropriate input signal to drive a full scale output, with signal measured at the output of the associated idle channel. 4. 5. 6. 7. Multi-PathCrosstalk (dB) – is the difference in level between the output of the active path and the measured signal level in the idle path at the test signal frequency. The active path is configured and supplied with an appropriate input signal to drive a full scale output, with signal measured at the output of the specified idle path. 8. Mute Attenuation – This is a measure of the difference in level between the full scale output signal and the output with mute applied. 9. All performance measurements carried out with 20kHz low pass filter, and where noted an A-weighted filter. Failure to use such a filter will result in higher THD and lower SNR readings than are found in the Electrical Characteristics. The low pass filter removes out of band noise; although it is not audible it may affect dynamic specification values. w PD, August 2014, Rev 4.2 28 WM1811A Production Data TYPICAL PERFORMANCE TYPICAL POWER CONSUMPTION OPERATING MODE TEST CONDITIONS SPKVDD (Note 3) LDO1VDD AVDD2 CPVDD DBVDD (Note 4) TOTAL Off (Battery Leakage only) LDO1 disabled, LDO2 disabled 4.2V 4.2V 0.0V 0.0V 0.0V 0.5A 0.63A 1.0A 0.2A 2.7A 0.01mW Standby LDO1 disabled, LDO2 enabled All supplies present, No clocks, Default register settings 4.2V 4.2V 1.8V 1.8V 1.8V 0.5A 0.63A 58.5A 0.5A 44.7A All supplies present, No clocks, Default register settings 4.2V 4.2V 1.8V 1.8V 1.8V 0.5A 74.5A 58A 0.5A 56.5A 0.19mW Standby LDO1 enabled, LDO2 enabled 0.52mW Music playback to Headphone (quiescent), Load = 32ohm AIF1 to DAC to HPOUT1 (stereo) fs=44.1kHz, Clocking rate=256fs, 24-bit I2S, Slave mode, Class W 4.2V 4.2V 1.8V 1.8V 1.8V 0.5A 2.27mA 0.347mA 0.393mA 1.06mA AIF1 to DAC to HPOUT1 (stereo) fs=44.1kHz, Clocking rate=128fs, 24-bit I2S, Slave mode, Class W 3.6V AVDD1= 2.4V 1.8V 1.8V 0.5A 0.247mA 0.334mA DBVDD= 1.8V LDOs disabled, See Note 7. 1.68mA 12.78mW 5.82mW 0.5A DCVDD= 1.05V 0.706mA Music playback to Class D speaker output (quiescent), Load = 8ohm + 22H AIF1 to DAC to SPKOUT (stereo) fs=44.1kHz, Clocking rate=256fs, 24-bit I2S, Slave mode, 4.2V 4.2V 1.8V 1.8V 1.8V 1.76mA 2.04mA 1.189mA 0.5A 1.045mA 19.15mW +7.5dB Class D boost AIF1 to DAC to SPKOUT (Left only) fs=44.1kHz, Clocking rate=256fs, 24-bit I2S, Slave mode, 4.2V 4.2V 1.8V 1.8V 1.8V 0.88mA 2.04mA 0.753mA 0.5A 1.045mA 15.5mW +7.5dB Class D boost Notes: 1. AVDD1 = 3.0V, generated by LDO1. 2. DCVDD = 1.05V, generated by LDO2. 3. SPKVDD = SPKVDD1 = SPKVDD2. 4. DBVDD = DBVDD1 = DBVDD2 = DBVDD3. 5. ISPKVDD = ISPKVDD1 + ISPKVDD2. 6. IDBVDD = IDBVDD1 + IDBVDD2 + IDBVDD3. 7. Power consumption for music playback with LDOs disabled requires an external supply for AVDD1 and DCVDD w PD, August 2014, Rev 4.2 29 WM1811A Production Data TYPICAL SIGNAL LATENCY OPERATING MODE TEST CONDITIONS AIF1 LATENCY AIF2 DIGITAL CORE AIF2 to DAC Stereo Path AIF2 EQ enabled, AIF2 3D enabled, AIF2 DRC enabled, SRC enabled fs=8kHz, Clock rate = 256fs fs=8kHz, Clock rate = 1536fs SYSCLK=AIF1CLK 1.4ms fs=48kHz, Clock rate = 256fs fs=8kHz, Clock rate = 1536fs SYSCLK=AIF1CLK 1.3ms fs=8kHz, Clock rate = 256fs fs=8kHz, Clock rate = 256fs SYSCLK=AIF1CLK 1.7ms fs=48kHz, Clock rate = 256fs fs=8kHz, Clock rate = 256fs SYSCLK=AIF1CLK 1.4ms fs=8kHz, Clock rate = 256fs fs=8kHz, Clock rate = 256fs SYSCLK=AIF1CLK 2.2ms fs=48kHz, Clock rate = 256fs fs=8kHz, Clock rate = 256fs SYSCLK=AIF1CLK 1.2ms fs=8kHz, Clock rate = 1536fs SYSCLK=AIF2CLK 1.3ms fs=8kHz, Clock rate = 1536fs SYSCLK=AIF1CLK 1.1ms ADC to AIF2 Stereo Path Digital Sidetone HPF enabled, AIF2 DRC enabled, AIF2 HPF enabled, SRC enabled Digital Sidetone HPF disabled, AIF2 DRC disabled, AIF2 HPF disabled, SRC disabled Digital Sidetone HPF disabled, AIF2 DRC disabled, AIF2 HPF disabled, SRC enabled fs=48kHz, Clock rate = 256fs Notes: 1. These figures are relevant to typical voice call modes, assuming AIF2 is connected to the baseband processor 2. The SRC (Sample Rate Converter) is enabled automatically whenever required w PD, August 2014, Rev 4.2 30 WM1811A Production Data SIGNAL TIMING REQUIREMENTS SYSTEM CLOCKS & FREQUENCY LOCKED LOOP (FLL) Figure 1 Master Clock Timing Test Conditions The following timing information is valid across the full range of recommended operating conditions. PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNIT Master Clock Timing (MCLK1 and MCLK2) MCLK cycle time TMCLKY MCLK as input to FLL, FLLn_REFCLK_DIV = 10, 11 25 MCLK as input to FLL, FLLn_REFCLK_DIV = 01 37 MCLK as input to FLL, FLLn_REFCLK_DIV = 00 74 FLL not used, AIFnCLK_DIV = 1 40 FLL not used, AIFnCLK_DIV = 0 MCLK duty cycle ns 80 60:40 40:60 (= TMCLKH : TMCLKL) Frequency Locked Loops (FLL1 and FLL2) FLL Input Frequency FLLn_REFCLK_DIV = 00 0.032 13.5 FLLn_REFCLK_DIV = 01 0.064 27 FLLn_REFCLK_DIV = 10 0.128 40 FLLn_REFCLK_DIV = 11 0.256 40 MHz Internal Clocking AIF1CLK frequency 12.5 MHz AIF2CLK frequency 12.5 MHz SYSCLK frequency 12.5 MHz w PD, August 2014, Rev 4.2 31 WM1811A Production Data AUDIO INTERFACE TIMING DIGITAL MICROPHONE (DMIC) INTERFACE TIMING Figure 2 Digital Microphone Interface Timing Test Conditions The following timing information is valid across the full range of recommended operating conditions. PARAMETER SYMBOL MIN TYP MAX UNIT Digital Microphone Interface Timing DMICCLK cycle time tCY DMICCLK duty cycle 320 45:55 ns 55:45 DMICDAT (Left) setup time to falling DMICCLK edge tLSU 15 ns DMICDAT (Left) hold time from falling DMICCLK edge tLH 0 ns DMICDAT (Right) setup time to rising DMICCLK edge tRSU 15 ns DMICDAT (Right) hold time from rising DMICCLK edge tRH 0 ns w PD, August 2014, Rev 4.2 32 WM1811A Production Data DIGITAL AUDIO INTERFACE - MASTER MODE Figure 3 Audio Interface Timing - Master Mode Note that BCLK and LRCLK outputs can be inverted if required; Figure 3 shows the default, noninverted polarity of these signals. Test Conditions The following timing information is valid across the full range of recommended operating conditions. PARAMETER SYMBOL MIN TYP MAX UNIT Audio Interface Timing - Master Mode BCLK cycle time tBCY LRCLK propagation delay from BCLK falling edge tDL 20 ns ADCDAT propagation delay from BCLK falling edge tDDA 48 ns 160 ns DACDAT setup time to BCLK rising edge tDST 32 ns DACDAT hold time from BCLK rising edge tDHT 10 ns BCLK cycle time tBCY 80 ADCDAT propagation delay from BCLK falling edge tDDA Audio Interface Timing - Ultrasonic (4FS) Master Mode ns 24 ns Note that the descriptions above assume non-inverted polarity of BCLK and LRCLK. w PD, August 2014, Rev 4.2 33 WM1811A Production Data DIGITAL AUDIO INTERFACE - SLAVE MODE Figure 4 Audio Interface Timing - Slave Mode Note that BCLK and LRCLK inputs can be inverted if required; Figure 4 shows the default, noninverted polarity. Test Conditions The following timing information is valid across the full range of recommended operating conditions. PARAMETER SYMBOL MIN TYP MAX UNIT Audio Interface Timing - Slave Mode BCLK cycle time tBCY 160 BCLK pulse width high tBCH 64 ns BCLK pulse width low tBCL 64 ns LRCLK set-up time to BCLK rising edge tLRSU 10 ns LRCLK hold time from BCLK rising edge tLRH 10 ns DACDAT hold time from BCLK rising edge tDH 10 ADCDAT propagation delay from BCLK falling edge tDD DACDAT set-up time to BCLK rising edge tDS ns ns 48 32 ns ns Note that the descriptions above assume non-inverted polarity of BCLK and LRCLK. w PD, August 2014, Rev 4.2 34 WM1811A Production Data DIGITAL AUDIO INTERFACE - TDM MODE When TDM operation is used on the ADCDATn pins, it is important that two devices do not attempt to drive the ADCDATn pin simultaneously. To support this requirement, the ADCDATn pins can be configured to be tri-stated when not outputting data. The timing of the ADCDATn tri-stating at the start and end of the data transmission is described in Figure 5 below. BCLK ADCDAT ADCDAT undriven (tri-state) ADCDAT valid (CODEC output) ADCDAT set-up time ADCDAT valid ADCDAT undriven (tri-state) ADCDAT release time Figure 5 Audio Interface Timing- TDM Mode Test Conditions The following timing information is valid across the full range of recommended operating conditions. PARAMETER MIN TYP MAX UNIT TDM Timing - Master Mode ADCDATsetup time from BCLKfalling edge 0 ADCDATrelease time from BCLKfalling edge ns 15 ns TDM Timing - Slave Mode ADCDAT setup time from BCLK falling edge ADCDAT release time from BCLK falling edge w 5 ns 32 ns PD, August 2014, Rev 4.2 35 WM1811A Production Data CONTROL INTERFACE TIMING Figure 6 Control Interface Timing Test Conditions The following timing information is valid across the full range of recommended operating conditions. PARAMETER SYMBOL MIN SCLK Frequency TYP MAX UNIT 400 kHz SCLK Low Pulse-Width t1 1300 ns SCLK High Pulse-Width t2 600 ns Hold Time (Start Condition) t3 600 ns Setup Time (Start Condition) t4 600 ns Data Setup Time t5 100 SDA, SCLK Rise Time t6 300 ns SDA, SCLK Fall Time t7 300 ns Setup Time (Stop Condition) t8 Data Hold Time t9 Pulse width of spikes that will be suppressed tps w ns 600 0 ns 900 ns 5 ns PD, August 2014, Rev 4.2 36 WM1811A Production Data DEVICE DESCRIPTION INTRODUCTION The WM1811A is a low power, high quality audio codec designed to interface with a wide range of processors and analogue components. A high level of mixed-signal integration in a very small footprint makes it ideal for portable applications such as mobile phones.Fully differential internal architecture and on-chip RF noise filters ensure a very high degree of noise immunity. Three sets of audio interface pins are available in order to provide independent and fully asynchronous connections to multiple processors, typically an application processor, baseband processor and wireless transceiver. Any two of these interfaces can operate totally independently and asynchronously while the third interface can be synchronised to either of the other two and can also provide ultra low power loopback modes to support, for example, wireless headset voice calls. The WM1811A provides a two-channel digital microphone interface, suitable for noise cancellation and other applications. An integrated microphone activity monitor is available to enable the processor to sleep during periods of microphone inactivity, saving power. Eight highly flexible analogue inputs allow interfacing to up to four microphone inputs (single-ended or differential), plus multiple stereo or mono line inputs. Connections to an external voice CODEC, FM radio, line input, handset MIC and headset MIC are all fully supported. Signal routing to the output mixers and within the CODEC has been designed for maximum flexibility to support a wide variety of usage modes. Impedance sensing and measurement for external accessories is provided, for detection of the insertion or removal of microphones and other accessories. Push-button detection of up to 7 inputs can be supported using this feature.Low power jack detection is supported, using a dedicated input pin; this enables power consumption to be minimised in standby conditions, whilst awaiting an external jack insertion event. Nine analogue output drivers are integrated, including a stereo pair of high power, high quality Class D speaker drivers; these can support 2Weach in stereo mode. It is also possible to configure the speaker drivers as a mono output, giving enhanced performance. A mono earpiece driver is provided, providing an additional output from the output mixers. One pair of ground-referenced headphone outputs is provided; these are powered from an integrated Charge Pump, enabling high quality, power efficient headphone playback without any requirement for DC blocking capacitors. A DC Servo circuit is available for DC offset correction, thereby suppressing pops and reducing power consumption. Four line outputs are provided, with multiple configuration options including 4 x single-ended outputs or 2 x differential outputs. The line outputs are suitable for output to a voice CODEC, an external speaker driver or line output connector. Ground loop feedback is available on the headphone outputs and the line outputs, providing rejection of noise on the ground connections. All outputs have integrated pop and click suppression features. Internal differential signal routing and amplifier configurations have been optimised to provide the highest performance and lowest possible power consumption for a wide range of usage scenarios, including voice calls and music playback. The speaker drivers offer low leakage and high PSRR; this enables direct connection to a Lithium battery. The speaker drivers provide eight levels of AC and DC gain to allow output signal levels to be maximised for many commonly-used SPKVDD/AVDD1 combinations. The ADCs and DACs are of hi-fi quality, using a 24-bit low-order oversampling architecture to deliver optimum performance. A flexible clocking arrangement supports mixed sample rates, whilst integrated ultra-low power dual FLLs provide additional flexibility. A high pass filter is available in all ADC and digital MIC paths for removing DC offsets and suppressing low frequency noise such as mechanical vibration and wind noise. A digital mixing path from the ADC or digital MICs to the DAC provides a sidetone of enhanced quality during voice calls. DAC soft mute and un-mute is available for pop-free music playback. The integrated Dynamic Range Controllers (DRC) and ReTuneTM Mobile 5-band parametric equaliser (EQ) provide further processing capability of the digital audio paths. The DRC provides compression and signal level control to improve the handling of unpredictable signal levels. ‘Anti-clip’ and ‘quick release’ algorithms improve intelligibility in the presence of transients and impulsive noises. The EQ provides the capability to tailor the audio path according to the frequency characteristics of an earpiece or loudspeaker, and/or according to user preferences. w PD, August 2014, Rev 4.2 37 WM1811A Production Data The WM1811A has highly flexible digital audio interfaces, supporting a number of protocols, including I2S, DSP, MSB-first left/right justified, and can operate in master or slave modes. PCM operation is supported in the DSP mode. A-law and -law companding are also supported. Time division multiplexing (TDM) is available to allow multiple devices to stream data simultaneously on the same bus, saving space and power. A powerful digital mixing core allows data from each audio interface channel and from the ADCs and digital MICs to be mixed and re-routed back to a different audio interface and to the DAC output paths. The digital mixing core can operate synchronously with either Audio Interface 1 or Audio Interface 2, with asynchronous stereo full duplex sample rate conversion performed on the other audio interface as required. The system clock (SYSCLK) provides clocking for the ADCs, DACs, DSP core, digital audio interface and other circuits. SYSCLK can be derived directly from one of the MCLK1 or MCLK2 pins or via one of two integrated FLLs, providing flexibility to support a wide range of clocking schemes, including self-clocking FLL modes. Typical portable system MCLK frequencies, and sample rates from 8kHz to 96kHz are all supported. A low frequency (eg. 32.768kHz) clock can be used as the input reference to the FLLs, providing further flexibility. Automatic configuration of the clocking circuits is available, derived from the sample rate and from the MCLK / SYSCLK ratio. The WM1811A uses a standard 2-wire control interface, providing full software control of all features, together with device register readback. It is an ideal partner for a wide range of industry standard microprocessors, controllers and DSPs. Unused circuitry can be disabled under software control, in order to save power; low leakage currents enable extended standby/off time in portable batterypowered applications. Versatile GPIO functionality is provided, with support for button/accessory detect inputs, or for clock, system status, or programmable logic level output for control of additional external circuitry. Interrupt logic, status readback and de-bouncing options are supported within this functionality. w PD, August 2014, Rev 4.2 38 WM1811A Production Data ANALOGUE INPUT SIGNAL PATH The WM1811A has eight highly flexible analogue input channels, configurable in a large number of combinations: 1. Up to four fully differential or single-ended microphone inputs 2. Up to eight mono line inputs or 4 stereo line inputs 3. A dedicated mono differential input from external voice CODEC These inputs may be mixed together or independently routed to different combinations of output drivers. An internal record path is provided at the input mixers to allow DAC output to be mixed with the input signal path (e.g. for voice call recording). The WM1811A input signal paths and control registers are illustrated in Figure 7. IN1LN IN1LN IN1LP IN2LN/DMICDAT IN2LP/VRXN IN2RN IN2RP/VRXP IN1RN IN1RP IN1LP IN2LN IN2LP/VRXN IN2RN IN2RP/VRXP IN1RN IN1RP IN1L IN1R MIXINL MIXINR RXVOICE + IN1LP_TO_IN1L IN1L_MUTE / IN1L_VOL[4:0] - IN1LN_TO_IN1L IN1L MIXINL_ENA REC L + IN1L_ENA IN2L_MUTE / IN2L_VOL[4:0] IN2LP_TO_IN2L - IN2LN_TO_IN2L IN2L MIXOUTL_MIXINL_VOL[2:0] IN1L_TO_MIXINL / IN1L_MIXINL_VOL IN2L_TO_MIXINL / IN2L_MIXINL_VOL IN1LP_MIXINL_VOL[2:0] IN2LRP_MIXINL_VOL[2:0] + IN2L_ENA IN2RP_TO_IN2R IN2R_MUTE / IN2R_VOL[4:0] - IN2RN_TO_IN2R IN2R + IN2R_ENA IN1RP_TO_IN1R ADC L MIXINL + ADC R MIXINR MIXINR_ENA REC R - IN1RN_TO_IN1R IN1R_MUTE / IN1R_VOL[4:0] IN2LRP_MIXINR_VOL[2:0] IN1RP_MIXINR_VOL[2:0] IN2R_TO_MIXINR / IN2R_MIXINR_VOL IN1R_TO_MIXINR / IN1R_MIXINR_VOL MIXOUTR_MIXINR_VOL[2:0] + IN1R + IN1R_ENA Buffered VMID reference VMID VMID_BUF_ENA Figure 7 Control Registers for Input Signal Path w PD, August 2014, Rev 4.2 39 WM1811A Production Data MICROPHONE INPUTS Up to four analogue microphones can be connected to the WM1811A, either in single-ended or differential mode. A dedicated PGA is provided for each microphone input. Two low noise microphone bias circuits are provided, reducing the need for external components. For single-ended microphone inputs, the microphone signal is connected to the inverting input of the PGAs (IN1LN, IN2LN, IN1RN or IN2RN). The non-inverting inputs of the PGAs are internally connected to VMID in this configuration. The non-inverting input pins IN1LP, IN2LP, IN1RP and IN2RP are free to be used as line connections to the input or output mixers in this configuration. For differential microphone inputs, the non-inverted microphone signal is connected to the noninverting input of the PGAs (IN1LP, IN2LP, IN1RP or IN2RP), whilst the inverted (or ‘noisy ground’) signal is connected to the inverting input pins (IN1LN, IN2LN, IN1RN and IN2RN). The gain of the input PGAs is controlled via register settings, as defined in Table 4. Note that the input impedance of both inverting and non-inverting inputs changes with the input PGA gain setting, as described under “Electrical Characteristics”.See also the “Applications Information” for details of input resistance at all PGA Gain settings. The microphone input configurations are illustrated in Figure 8 and Figure 9. Note that any PGA input pin that is used in either microphone configuration is not available for use as a line input path at the same time. MICBIAS IN1LP, IN2LP, IN1RP, IN2RP VMID + MIC PGA To input mixers IN1LN, IN2LN, IN1RN, IN2RN GND Figure 8 Single-Ended Microphone Input Figure 9 Differential Microphone Input MICROPHONE BIAS CONTROL There are two MICBIAS generators which provide low noise reference voltages suitable for powering silicon (MEMS) microphones or biasing electret condenser (ECM) type microphones via an external resistor. Refer to the “Applications Information” section for recommended external components. The MICBIAS outputs can be independently enabled using the MICB1_ENA and MICB2_ENA register bits. Under default conditions, a smooth pop-free profile of the MICBIAS outputs is implemented when MICB1_ENA or MICB2_ENA is enabled or disabled; a faster transition can be selected by setting the MICB1_RATE and MICB2_RATE registers as described in Table 1. When a MICBIAS output is disabled, the output pin can be configured to be floating or to be actively discharged. This is selected using the MICB1_DISCH and MICB2_DISCH register bits. The MICBIAS generators can each operate as a voltage regulator or in bypass mode. In Regulator mode, the output voltage is selected using the MICB1_LVL and MICB2_LVL register bits.In this mode, AVDD1 must be at least 200mV greater than the required MICBIAS output voltages.The MICBIAS outputs are powered from the AVDD1 supply pin, and use the internal bandgap circuit as a reference. Note that, in Regulator mode, the MICBIAS regulators are designed to operate without external decoupling capacitors. It is important that parasitic capacitances on the MICBIAS1 or MICBIAS2 pins do not exceed the specified limit in Regulator mode (see “Electrical Characteristics”). In Bypass mode, the output pin (MICBIAS1 or MICBIAS2) is connected directly to AVDD1. This enables a low power operating state. Note that, if a capacitive load is connected to MICBIAS1 or w PD, August 2014, Rev 4.2 40 WM1811A Production Data MICBIAS2 (eg. for a digital microphone supply), then the respective MICBIAS generator must be configured in Bypass mode. The MICBIAS configuration is illustrated in Figure 10. Figure 10 MICBIAS Generator REGISTER ADDRESS BIT R1 (0001h) 5 Power Managem ent (1) LABEL MICB2_ENA DESCRIPTION DEFAULT 0 Microphone Bias 2 Enable 0 = Disabled 1 = Enabled 4 MICB1_ENA 0 Microphone Bias 1 Enable 0 = Disabled 1 = Enabled R61 (003Dh) MICBIAS 1 5 MICB1_RATE 1 Microphone Bias 1 Rate 0 = Fast start-up / shut-down 1 = Pop-free start-up / shut-down 4 MICB1_MODE 1 Microphone Bias 1 Mode 0 = Regulator mode 1 = Bypass mode 3:1 MICB1_LVL [2:0] 100 Microphone Bias 1 Voltage Control (when MICB1_MODE = 0) 000 = 1.5V 001 = 1.8V 010 = 1.9V 011 = 2.0V 100 = 2.2V 101 = 2.4V 110 = 2.5V 111 = 2.6V 0 MICB1_DISCH 1 Microphone Bias 1 Discharge 0 = MICBIAS1 floating when disabled 1 = MICBIAS1 discharged when disabled R62 (003Eh) MICBIAS w 5 MICB2_RATE 1 Microphone Bias 2 Rate 0 = Fast start-up / shut-down 1 = Pop-free start-up / shut-down PD, August 2014, Rev 4.2 41 WM1811A Production Data REGISTER ADDRESS 2 BIT 4 LABEL MICB2_MODE DEFAULT 1 DESCRIPTION Microphone Bias 2 Mode 0 = Regulator mode 1 = Bypass mode 3:1 MICB2_LVL [2:0] 100 Microphone Bias 2 Voltage Control (when MICB2_MODE = 0) 000 = 1.5V 001 = 1.8V 010 = 1.9V 011 = 2.0V 100 = 2.2V 101 = 2.4V 110 = 2.5V 111 = 2.6V 0 MICB2_DISCH 1 Microphone Bias 2 Discharge 0 = MICBIAS2 floating when disabled 1 = MICBIAS2 discharged when disabled Table 1 Microphone Bias Control Note that the maximum source current capability for MICBIAS1 and MICBIAS2 is 2.4mA each in Regulator mode. The external biasing resistance must be large enough to limit each MICBIAS current to 2.4mA across the full microphone impedance range. The maximum source current for MICBIAS1 and MICBIAS2 is 3.6mA each in Bypass mode, as described in the “Electrical Characteristics”. MICROPHONE ACCESSORY DETECT The WM1811A provides a microphone detection function, which uses impedance measurement to detect one or more different external accessory connections. This feature is described in the “External Accessory Detection” section. LINE AND VOICE CODEC INPUTS All eight analogue input pins may be used as line inputs. Each line input has different signal path options, providing flexibility, high performance and low power consumption for many different usage modes. IN1LN and IN1RN can operate as single-ended line inputs to the input PGAs IN1L and IN1R respectively. These inputs provide a high gain path if required for low input signal levels. IN2LN and IN2RN can operate as single-ended line inputs to the input PGAs IN2L and IN2R respectively, providing further high gain signal paths. These pins can also be connected to either of the output mixers MIXOUTL and MIXOUTR. IN1LP and IN1RP can operate as single-ended line inputs to the input mixers MIXINL and MIXINR, or to the speaker mixers SPKMIXL and SPKMIXR. These signal paths enable power consumption to be reduced, by allowing the input PGAs and other circuits to be disabled if not required. IN2LP/VRXN and IN2RP/VRXP can operate in three different ways:  Mono differential ’RXVOICE’ input (e.g. from an external voice CODEC) to the input mixers MIXINL and MIXINR.  Single-ended line inputs to either of the output mixers MIXOUTL and MIXOUTR. Signal path configuration to the input PGAs and input mixers is detailed later in this section. Signal path configuration to the output mixers and speaker mixers is described in “Analogue Output Signal Path”. w PD, August 2014, Rev 4.2 42 WM1811A Production Data The line input and voice CODEC input configurations are illustrated in Figure 11 through to Figure 14. Figure 11 IN1LN or IN1RN as Line Inputs Figure 12 IN2LN or IN2RN as Line Inputs Figure 13 IN1LP or IN1RP as Line Inputs Figure 14 IN2LP or IN2RP as Line Inputs INPUT PGA ENABLE The Input PGAs are enabled using register bits IN1L_ENA, IN2L_ENA, IN1R_ENA and IN2R_ENA, as described in Table 2. The Input PGAs must be enabled for microphone input on the respective input pins, or for line input on the inverting input pins IN1LN, IN1RN, IN2LN, IN2RN. REGISTER ADDRESS R2 (0002h) Power Management (2) BIT 7 LABEL IN2L_ENA DEFAULT 0 DESCRIPTION IN2L Input PGA Enable 0 = Disabled 1 = Enabled 6 IN1L_ENA 0 IN1L Input PGA Enable 0 = Disabled 1 = Enabled 5 IN2R_ENA 0 IN2R Input PGA Enable 0 = Disabled 1 = Enabled 4 IN1R_ENA 0 IN1R Input PGA Enable 0 = Disabled 1 = Enabled Table 2 Input PGA Enable For normal operation of the input PGAs, the reference voltage VMID and the bias current must also be enabled. See “Reference Voltages and Master Bias” for details of the associated controls VMID_SEL and BIAS_ENA. w PD, August 2014, Rev 4.2 43 WM1811A Production Data INPUT PGA CONFIGURATION Each of the Input PGAs can operate in a single-ended ordifferential mode. In differential mode, both inputs to the PGA are connected to the input source. In single-ended mode, the non-inverting input to the PGA must be connected to VMID. Configuration of the PGA inputs to the WM1811A input pins is controlled using the register bits shown in Table 3. Single-ended microphone operation is configured by connecting the input source to the inverting input of the applicable PGA. The non-inverting input of the PGA must be connected to the buffered VMID reference. Note that the buffered VMID reference must be enabled, using the VMID_BUF_ENA register, as described in “Reference Voltages and Master Bias”. Differential microphone operation is configured by connecting the input source to both inputs of the applicable PGA. Line inputs to the input pins IN1LN, IN2LN, IN1RN and IN2RN must be connected to the applicable PGA. The non-inverting input of the PGA must be connected to VMID. Line inputs to the input pins IN1LP, IN2LP, IN1RP or IN2RP do not connect to the input PGAs. The non-inverting inputs of the associated PGAs must be connected to VMID. The inverting inputs of the associated PGAs may be used as separate mic/line inputs if required. The maximum available attenuation on any of these input paths is achieved by using register bits shown in Table 3 to disconnect the input pins from the applicable PGA. w PD, August 2014, Rev 4.2 44 WM1811A Production Data REGISTER ADDRESS R40 (0028h) BIT 7 LABEL IN2LP_TO_IN2L DEFAULT 0 Input Mixer (2) DESCRIPTION IN2L PGA Non-Inverting Input Select 0 = Connected to VMID 1 = Connected to IN2LP Note that VMID_BUF_ENA must be set when using IN2L connected to VMID. 6 IN2LN_TO_IN2L 0 IN2L PGA Inverting Input Select 0 = Not connected 1 = Connected to IN2LN 5 IN1LP_TO_IN1L 0 IN1L PGA Non-Inverting Input Select 0 = Connected to VMID 1 = Connected to IN1LP Note that VMID_BUF_ENA must be set when using IN1L connected to VMID. 4 IN1LN_TO_IN1L 0 IN1L PGA Inverting Input Select 0 = Not connected 1 = Connected to IN1LN 3 IN2RP_TO_IN2R 0 IN2R PGA Non-Inverting Input Select 0 = Connected to VMID 1 = Connected to IN2RP Note that VMID_BUF_ENA must be set when using IN2R connected to VMID. 2 IN2RN_TO_IN2R 0 IN2R PGA Inverting Input Select 0 = Not connected 1 = Connected to IN2RN 1 IN1RP_TO_IN1R 0 IN1R PGA Non-Inverting Input Select 0 = Connected to VMID 1 = Connected to IN1RP Note that VMID_BUF_ENA must be set when using IN1R connected to VMID. 0 IN1RN_TO_IN1R 0 IN1R PGA Inverting Input Select 0 = Not connected 1 = Connected to IN1RN Table 3 Input PGA Configuration INPUT PGA VOLUME CONTROL Each of the four Input PGAs has an independently controlled gain range of -16.5dB to +30dB in 1.5dB steps. The gains on the inverting and non-inverting inputs to the PGAs are always equal. Each Input PGA can be independently muted using the PGA mute bits as described in Table 4, with maximum mute attenuation achieved by simultaneously disconnecting the corresponding inputs described in Table 3. Note that, under default conditions (following power-up or software reset), the PGA mute register bits are set to ‘1’, but the mute functions will only become effective after the respective bit has been toggled to ‘0’ and then back to ‘1’. The Input PGAs will be un-muted (Mute disabled) after power-up or software reset, regardless of the readback value of the respective PGA mute bits. To prevent "zipper noise", a zero-cross function is provided on the input PGAs. When this feature is enabled, volume updates will not take place until a zero-crossing is detected. In the case of a long period without zero-crossings, a timeout function is provided. When the zero-cross function is enabled, the volume will update after the timeout period if no earlier zero-cross has occurred. The timeout clock is enabled using TOCLK_ENA, the timeout period is set by TOCLK_DIV. See “Clocking and Sample Rates” for more information on these fields. w PD, August 2014, Rev 4.2 45 WM1811A Production Data The IN1_VU and IN2_VU bits control the loading of the input PGA volume data. When IN1_VU and IN2_VU are set to 0, the PGA volume data will be loaded into the respective control register, but will not actually change the gain setting. The IN1L and IN1R volume settings are both updated when a 1 is written to IN1_VU; the IN2L and IN2R volume settings are both updated when a 1 is written to IN2_VU. This makes it possible to update the gain of the left and right signal paths simultaneously. The Input PGA Volume Control register fields are described in Table 4 and Table 5. REGISTER ADDRESS R24 (0018h) BIT 8 LABEL IN1_VU DEFAULT N/A Left Line Input 1&2 Volume DESCRIPTION Input PGA Volume Update Writing a 1 to this bit will cause IN1L and IN1R input PGA volumes to be updated simultaneously 7 IN1L_MUTE 1 IN1L PGA Mute 0 = Disable Mute 1 = Enable Mute 6 IN1L_ZC 0 IN1L PGA Zero Cross Detector 0 = Change gain immediately 1 = Change gain on zero cross only 4:0 IN1L_VOL [4:0] 01011 IN1L Volume (0dB) -16.5dB to +30dB in 1.5dB steps (See Table 5 for volume range) w PD, August 2014, Rev 4.2 46 WM1811A Production Data REGISTER ADDRESS R25 (0019h) BIT 8 LABEL IN2_VU DEFAULT N/A Left Line Input 3&4 Volume DESCRIPTION Input PGA Volume Update Writing a 1 to this bit will cause IN2L and IN2R input PGA volumes to be updated simultaneously 7 IN2L_MUTE 1 IN2L PGA Mute 0 = Disable Mute 1 = Enable Mute 6 IN2L_ZC 0 IN2L PGA Zero Cross Detector 0 = Change gain immediately 1 = Change gain on zero cross only 4:0 IN2L_VOL[4 :0] 01011 IN2L Volume (0dB) -16.5dB to +30dB in 1.5dB steps (See Table 5 for volume range) R26 (001Ah) 8 IN1_VU N/A Right Line Input 1&2 Volume Input PGA Volume Update Writing a 1 to this bit will cause IN1L and IN1R input PGA volumes to be updated simultaneously 7 IN1R_MUTE 1 IN1R PGA Mute 0 = Disable Mute 1 = Enable Mute 6 IN1R_ZC 0 IN1R PGA Zero Cross Detector 0 = Change gain immediately 1 = Change gain on zero cross only 4:0 IN1R_VOL[4 :0] 01011 IN1R Volume (0dB) -16.5dB to +30dB in 1.5dB steps (See Table 5 for volume range) R27 (001Bh) 8 IN2_VU N/A Right Line Input 3&4 Volume Input PGA Volume Update Writing a 1 to this bit will cause IN2L and IN2R input PGA volumes to be updated simultaneously 7 IN2R_MUTE 1 IN2R PGA Mute 0 = Disable Mute 1 = Enable Mute 6 IN2R_ZC 0 IN2R PGA Zero Cross Detector 0 = Change gain immediately 1 = Change gain on zero cross only 4:0 IN2R_VOL[4 :0] 01011 IN2R Volume (0dB) -16.5dB to +30dB in 1.5dB steps (See Table 5 for volume range) Table 4 Input PGA Volume Control w PD, August 2014, Rev 4.2 47 WM1811A Production Data IN1L_VOL[4:0], IN2L_VOL[4:0], IN1R_VOL[4:0], IN2R_VOL[4:0] VOLUME (dB) 00000 -16.5 00001 -15.0 00010 -13.5 00011 -12.0 00100 -10.5 00101 -9.0 00110 -7.5 00111 -6.0 01000 -4.5 01001 -3.0 01010 -1.5 01011 0 01100 +1.5 01101 +3.0 01110 +4.5 01111 +6.0 10000 +7.5 10001 +9.0 10010 +10.5 10011 +12.0 10100 +13.5 10101 +15.0 10110 +16.5 10111 +18.0 11000 +19.5 11001 +21.0 11010 +22.5 11011 +24.0 11100 +25.5 11101 +27.0 11110 +28.5 11111 +30.0 Table 5 Input PGA Volume Range w PD, August 2014, Rev 4.2 48 WM1811A Production Data INPUT MIXER ENABLE The WM1811A has two analogue input mixers which allow the Input PGAs and Line Inputs to be combined in a number of ways and output to the ADCs, Output Mixers, or directly to the output drivers via bypass paths. The input mixers MIXINL and MIXINR are enabled by the MIXINL_ENA and MIXINR_ENA register bits, as described in Table 6. These control bits also enable the RXVOICE input path, described in the following section. For normal operation of the input mixers, the reference voltage VMID and the bias current must also be enabled. See “Reference Voltages and Master Bias” for details of the associated controls VMID_SEL and BIAS_ENA. REGISTER ADDRESS R2 (0002h) BIT 9 LABEL MIXINL_ENA DEFAULT 0 Power Management (2) DESCRIPTION Left Input Mixer Enable (Enables MIXINL and RXVOICE input to MIXINL) 0 = Disabled 1 = Enabled 8 MIXINR_ENA 0 Right Input Mixer Enable (Enables MIXINR and RXVOICE input to MIXINR) 0 = Disabled 1 = Enabled Table 6 Input Mixer Enable INPUT MIXER CONFIGURATION AND VOLUME CONTROL The left and right channel input mixers MIXINL and MIXINR can be configured to take input from up to five sources: 1. IN1L or IN1R Input PGA 2. IN2L or IN2R Input PGA 3. IN1LP or IN1RP pin (PGA bypass) 4. RXVOICE mono differential input from IN2LP/VRXN and IN2RP/VRXP 5. MIXOUTL or MIXOUTR Output Mixer (Record path) The Input Mixer configuration and volume controls are described in Table 7 for the Left input mixer (MIXINL) and Table 8 for the Right input mixer (MIXINR). The signal levels from the Input PGAs may be set to Mute, 0dB or 30dB boost. Gain controls for the PGA bypass, RXVOICE and Record paths provide adjustment from -12dB to +6dB in 3dB steps. When using the IN1LP or IN1RP signal paths direct to the input mixers (PGA bypass paths), a signal gain of +15dB can be selected using the IN1RP_MIXINR_BOOST or IN1LP_MIXINL_BOOST register bits. See Table 7 and Table 8 for further details. When using the IN1LP or IN1RP signal paths direct to the input mixers (PGA bypass paths), the buffered VMID reference must be enabled, using the VMID_BUF_ENA register, as described in “Reference Voltages and Master Bias”. To prevent pop noise, it is recommended that gain and mute controls for the input mixers are not modified while the signal paths are active. If volume control is required on these signal paths, it is recommended that this is implemented using the input PGA volume controls or the ADC volume controls. The ADC volume controls are described in the “Analogue to Digital Converter (ADC)” section. w PD, August 2014, Rev 4.2 49 WM1811A Production Data REGISTER ADDRESS BIT R21 (0015h) 7 LABEL IN1LP_MIXINL_BOOST DEFAULT 0 Input Mixer (1) DESCRIPTION IN1LP Pin (PGA Bypass) to MIXINL Gain Boost. This bit selects the maximum gain setting of the IN1LP_MIXINL_VOL register. 0 = Maximum gain is +6dB 1 = Maximum gain is +15dB R41 (0029h) Input Mixer (3) 8 IN2L_TO_MIXINL 0 IN2L PGA Output to MIXINL Mute 0 = Mute 1 = Un-Mute 7 IN2L_MIXINL_VOL 0 IN2L PGA Output to MIXINL Gain 0 = 0dB 1 = +30dB 5 IN1L_TO_MIXINL 0 IN1L PGA Output to MIXINL Mute 0 = Mute 1 = Un-Mute 4 IN1L_MIXINL_VOL 0 IN1L PGA Output to MIXINL Gain 0 = 0dB 1 = +30dB 2:0 MIXOUTL_MIXINL_VOL [2:0] 000 (Mute) Record Path MIXOUTL to MIXINL Gain and Mute 000 = Mute 001 = -12dB 010 = -9dB 011 = -6dB 100 = -3dB 101 = 0dB 110 = +3dB 111 = +6dB R43 (002Bh) Input Mixer (5) 8:6 IN1LP_MIXINL_VOL [2:0] 000 (Mute) IN1LP Pin (PGA Bypass) to MIXINL Gain and Mute 000 = Mute 001 = -12dB 010 = -9dB 011 = -6dB 100 = -3dB 101 = 0dB 110 = +3dB 111 = +6dB (see note below). When IN1LP_MIXINL_BOOST is set, then the maximum gain setting is increased to +15dB, ie. 111 = +15dB. Note that VMID_BUF_ENA must be set when using the IN1LP (PGA Bypass) input to MIXINL. w PD, August 2014, Rev 4.2 50 WM1811A Production Data REGISTER ADDRESS BIT 2:0 LABEL IN2LRP_MIXINL_VOL [2:0] DEFAULT 000 (Mute) DESCRIPTION RXVOICE Differential Input (VRXP-VRXN) to MIXINL Gain and Mute 000 = Mute 001 = -12dB 010 = -9dB 011 = -6dB 100 = -3dB 101 = 0dB 110 = +3dB 111 = +6dB Table 7 Left Input Mixer (MIXINL) Volume Control REGISTER ADDRESS R21 (0015h) BIT 8 LABEL IN1RP_MIXINR_BOOST DESCRIPTION DEFAULT 0 Input Mixer (1) IN1RP Pin (PGA Bypass) to MIXINR Gain Boost. This bit selects the maximum gain setting of the IN1RP_MIXINR_VOL register. 0 = Maximum gain is +6dB 1 = Maximum gain is +15dB R42 (002A) 8 IN2R_TO_MIXINR 0 Input Mixer (4) IN2R PGA Output to MIXINR Mute 0 = Mute 1 = Un-Mute 7 IN2R_MIXINR_VOL 0 IN2R PGA Output to MIXINR Gain 0 = 0dB 1 = +30dB 5 IN1R_TO_MIXINR 0 IN1R PGA Output to MIXINR Mute 0 = Mute 1 = Un-Mute 4 IN1R_MIXINR_VOL 0 IN1R PGA Output to MIXINR Gain 0 = 0dB 1 = +30dB 2:0 MIXOUTR_MIXINR_VOL [2:0] 000 (Mute) Record Path MIXOUTR to MIXINR Gain and Mute 000 = Mute 001 = -12dB 010 = -9dB 011 = -6dB 100 = -3dB 101 = 0dB 110 = +3dB 111 = +6dB w PD, August 2014, Rev 4.2 51 WM1811A Production Data REGISTER ADDRESS R44 (002Ch) BIT 8:6 LABEL IN1RP_MIXINR_VOL [2:0] DEFAULT 000 (Mute) Input Mixer (6) DESCRIPTION IN1RP Pin (PGA Bypass) to MIXINR Gain and Mute 000 = Mute 001 = -12dB 010 = -9dB 011 = -6dB 100 = -3dB 101 = 0dB 110 = +3dB 111 = +6dB (see note below). When IN1RP_MIXINR_BOOST is set, then the maximum gain setting is increased to +15dB, ie. 111 = +15dB. Note that VMID_BUF_ENA must be set when using the IN1RP (PGA Bypass) input to MIXINR. 2:0 IN2LRP_MIXINR_VOL [2:0] 000 (Mute) RXVOICE Differential Input (VRXP-VRXN) to MIXINR Gain and Mute 000 = Mute 001 = -12dB 010 = -9dB 011 = -6dB 100 = -3dB 101 = 0dB 110 = +3dB 111 = +6dB Table 8 Right Input Mixer (MIXINR) Volume Control w PD, August 2014, Rev 4.2 52 WM1811A Production Data DIGITAL MICROPHONE INTERFACE The WM1811A supports a stereo digital microphone interface. Two channels of audio data are multiplexed on the DMICDAT pin; the data is clocked using the DMICCLK output pin. The DMICDAT function is shared with the IN2LN pin; the analogue signal paths from IN2LN cannot be used when this pin is used for DMICDAT digital microphone input. The digital microphone interface is referenced to the MICBIAS1 voltage domain; the MICBIAS1 output must be enabled (MICB1_ENA = 1) when using the digital microphone interface. The MICBIAS1 generator is suitable for use as a low noise supply for the digital microphones. Note that, if the capacitive load on the MICBIAS1 generator exceeds the specified limit (eg. due to a decoupling capacitor or long PCB trace), then the MICBIAS1 generator must be configured in Bypass mode. See “Analogue Input Signal Path” for details of the MICBIAS1 generator. When digital microphone input is enabled, the WM1811A outputs a clock signal on the DMICCLK pin. A pair of digital microphones is connected as illustrated in Figure 15. The microphones must be configured to ensure that the Left mic transmits a data bit when DMICCLK is high, and the Right mic transmits a data bit when DMICCLK is low. The WM1811A samples the digital microphone data at the end of each DMICCLK phase. Each microphone must tri-state its data output when the other microphone is transmitting. Figure 15 Digital Microphone Input The DMICDAT digital microphone channels are enabled using DMIC1L_ENA and DMIC1R_ENA. When these signal paths are enabled, the respective ADC path is disconnected and the digital microphone data is routed to the digital mixing input bus, as illustrated in “Digital Mixing”. Two microphone channels are interleaved on DMICDAT; the timing is illustrated in Figure 16. Each microphone must tri-state its data output when the other microphone is transmitting. w PD, August 2014, Rev 4.2 53 WM1811A Production Data DMICCLK pin hi-Z Left Mic output 1 1 Right Mic output DMICDAT pin (Left & Right channels interleaved) 2 1 2 1 2 1 2 2 1 2 Figure 16 Digital Microphone Interface Timing The digital microphone channels can be routed to the AIF1 digital audio interface output paths. Digital volume control of the digital microphone channels in the AIF1 signal paths is provided using the registers described in the “Digital Volume and Filter Control” section. The digital microphone channels can also be routed, in a limited number of configurations, to the digital mixing output bus, via the digital sidetone signal paths. See “Digital Mixing” for further details. Digital volume control of the digital microphone channels in the digital sidetone signal paths is provided using the registers described in the “Digital Mixing” section. The digital microphone interface control fields are described in Table 9. REGISTER ADDRESS R4 (0004h) BIT 3 LABEL DMIC1L_ENA DEFAULT 0 Power Management (4) DESCRIPTION Digital microphone (DMICDAT) Left channel enable 0 = Disabled 1 = Enabled 2 DMIC1R_ENA 0 Digital microphone (DMICDAT) Right channel enable 0 = Disabled 1 = Enabled Table 9 Digital Microphone Interface Control w PD, August 2014, Rev 4.2 54 WM1811A Production Data Clocking for the Digital Microphone interface is derived from SYSCLK. The DMICCLK frequency is configured automatically, according to the AIFn_SR, AIFnCLK_RATE and ADC_OSR128 registers. (See “Clocking and Sample Rates” for further details of the system clocks and control registers.) The DMICCLK is enabled whenever a digital microphone input path is enabled on the DMICDATpin. Note that the SYSDSPCLK_ENA register must also be set. When AIF1CLK is selected as the SYSCLK source (SYSCLK_SRC = 0), then the DMICCLK frequency is controlled by the AIF1_SR and AIF1CLK_RATE registers. When AIF2CLK is selected as the SYSCLK source (SYSCLK_SRC = 1), then the DMICCLK frequency is controlled by the AIF2_SR and AIF2CLK_RATE registers. The DMICCLK frequency is as described in Table 10 (for ADC_OSR128=1) and Table 11 (for ADC_OSR128=0). The ADC_OSR128 bit is set by default, giving best audio performance. Note that the only valid DMICCLK configurations are the ones listed in Table 10 and Table 11. The applicable clocks (SYSCLK, and AIF1CLK or AIF2CLK) must be present and enabled when using the digital microphone interface. SAMPLE RATE (kHz) SYSCLK RATE (AIFnCLK / fs ratio) 128 192 256 384 512 768 1024 8 2.048 2.048 11.025 2.8224 2.8224 12 3.072 16 2.048 2.048 22.05 2.8224 2.8224 24 3.072 3.072 32 2.048 44.1 2.8224 48 3.072 1536 2.048 3.072 2.048 88.2 96 Note that, when ADC_OSR128=1, digital microphone operation is only supported for the above DMICCLK configurations. Table 10 DMICCLK Frequency (MHz) - ADC_OSR128 = 1 (Default) SAMPLE RATE (kHz) SYSCLK RATE (AIFnCLK / fs ratio) 128 192 256 512 768 8 1.024 384 1.024 1.024 1.024 1024 11.025 1.4112 1.4112 1.4112 1.4112 12 1.536 1.536 1.536 1.536 16 1.024 1.024 1.024 1.024 22.05 1.4112 1.4112 1.4112 24 1.536 1.536 1.536 32 2.048 2.048 44.1 2.8224 48 3.072 1536 1.024 88.2 96 Note that, when ADC_OSR128=0, digital microphone operation is only supported for the above DMICCLK configurations. Table 11 DMICCLK Frequency (MHz) - ADC_OSR128 = 0 w PD, August 2014, Rev 4.2 55 WM1811A Production Data DIGITAL PULL-UP AND PULL-DOWN The WM1811A provides integrated pull-up and pull-down resistors on the DMICDAT pin. This provides a flexible capability for interfacing with other devices. Each of the pull-up and pull-down resistors can be configured independently using the register bits described in Table 12. Note that, if the DMICDAT digital microphone channels are disabled, or if DMICDAT1_PU and DMICDAT1_PD are both set, then the pull-up and pull-down will be disabled. REGISTER ADDRESS BIT R1824 (0720h) 9 Pull Control (1) LABEL DEFAULT DMICDAT1_PU 0 DESCRIPTION DMICDAT Pull-Up enable 0 = Disabled 1 = Enabled 8 DMICDAT1_PD 0 DMICDAT Pull-Down enable 0 = Disabled 1 = Enabled Table 12 Digital Pull-Up and Pull-Down Control ANALOGUE TO DIGITAL CONVERTER (ADC) The WM1811A uses stereo 24-bit sigma-delta ADCs. The use of multi-bit feedback and high oversampling rates reduces the effects of jitter and high frequency noise. The oversample rate can be adjusted, if required, to reduce power consumption - see “Clocking and Sample Rates” for details. The ADC full scale input level is proportional to AVDD1 - see “Electrical Characteristics”. Any input signal greater than full scale may overload the ADC and cause distortion. The ADCs are enabled by the ADCL_ENA and ADCR_ENA register bits. REGISTER ADDRESS R4 (0004h) BIT 1 LABEL ADCL_ENA DEFAULT 0 Power Management (4) DESCRIPTION Left ADC Enable 0 = Disabled 1 = Enabled 0 ADCR_ENA 0 Right ADC Enable 0 = Disabled 1 = Enabled Table 13 ADC Enable Control The outputs of the ADCs can be routed to the AIF1 digital audio interface output paths. Digital volume control of the ADC outputs in the AIF1 signal paths is provided using the registers described in the “Digital Volume and Filter Control” section. The outputs of the ADCs can also be routed, in a limited number of configurations, to the digital mixing output bus, via the digital sidetone signal paths. See “Digital Mixing” for further details. Digital volume control of the ADC outputs in the digital sidetone signal paths is provided using the registers described in the “Digital Mixing” section. w PD, August 2014, Rev 4.2 56 WM1811A Production Data ADC CLOCKING CONTROL Clocking for the ADCs is derived from SYSCLK.The required clock is enabled when the SYSDSPCLK_ENA register is set. The ADC clock rate is configured automatically, according to the AIFn_SR, AIFnCLK_RATE and ADC_OSR128 registers. (See “Clocking and Sample Rates” for further details of the system clocks and control registers.) When AIF1CLK is selected as the SYSCLK source (SYSCLK_SRC = 0), then the ADC clocking is controlled by the AIF1_SR and AIF1CLK_RATE registers. When AIF2CLK is selected as the SYSCLK source (SYSCLK_SRC = 1), then the ADC clocking is controlled by the AIF2_SR and AIF2CLK_RATE registers. The supported ADC clocking configurations are described in Table 14(for ADC_OSR128=1) and Table 15(for ADC_OSR128=0). The ADC_OSR128 bit is set by default, giving best audio performance. SAMPLE RATE (kHz) SYSCLK RATE (AIFnCLK / fs ratio) 128 192 256 1024 1536 8 384    11.025   12 512 768  16    22.05    24    32   44.1  48    88.2 96 When ADC_OSR128=1, ADC operation is only supported for the configurations indicated above Table 14 ADC Clocking - ADC_OSR128 = 1 (Default) SAMPLE RATE (kHz) SYSCLK RATE (AIFnCLK / fs ratio) 128 192 256 384 512 768 1024 1536 8       11.025      12      16     22.05    24    32   44.1  48  88.2 96 When ADC_OSR128=0, ADC operation is only supported for the configurationsindicated above Table 15 ADC Clocking - ADC_OSR128 = 0 The clocking requirements in Table 14 and Table 15 are only applicable to the AIFnCLK that is selected as the SYSCLK source. Note that both clocks (AIF1CLK and AIF2CLK) must satisfy the requirements noted in the “Clocking and Sample Rates” section. The applicable clocks (SYSCLK, and AIF1CLK or AIF2CLK) must be present and enabled when using the Analogue to Digital Converters (ADCs). w PD, August 2014, Rev 4.2 57 WM1811A Production Data DIGITAL CORE ARCHITECTURE The WM1811A Digital Core provides an extensive set of mixing and signal processing features. The Digital Core Architecture is illustrated in Figure 17, which also identifies the datasheet sections applicable to each portion of the Digital Core. The digital audio interfaces AIF1 and AIF2 each support one stereo pair of input and output signal paths through the WM1811A DSP functions. The signal mixing for the AIF1 and AIF2 output paths is described in “Audio Interface 1 (AIF1) Output Digital Mixing” and “Audio Interface 2 (AIF2) Output Digital Mixing” respectively. A digital mixing path from the ADCs or Digital Microphones to the DAC and AIF2 output paths provides a high quality sidetone for voice calls or other applications. The sidetone filter and volume controls are described in “Digital Sidetone Volume and Filter Control”. Each of the DACs has a dedicated mixer for controlling the signal paths to that DAC. The configuration of these signal paths is described in “DAC Output Digital Mixing”. A similar pair of mixers is provided for controlling the signal paths to the AIF2 output channels, as described in “Audio Interface 2 (AIF2) Output Digital Mixing”. The DAC and AIF2 output signal paths are each provided with digital volume control andsoft mute / un-mute features. The associated controls are defined in the “Digital Volume (DAC and AIF2 Output Paths)” and the “Digital Volume Soft Mute and Soft Un-Mute” sections. Digital signal processing can be applied to the input and output signal paths. The available features include 5-band equalization (EQ), 3D stereo expansion and dynamic range control (DRC). The EQ provides the capability to tailor the audio path according to the frequency characteristics of an earpiece or loudspeaker, and/or according to user preferences. The EQ controls are described in “ReTuneTM Mobile Parametric Equalizer (EQ)”.The DRC provides adaptive signal level control to improve the handling of unpredictable signal levels and to improve intelligibility in the presence of transients and impulsive noises. The DRC controls are described in “Dynamic Range Control (DRC)”. 3D stereo expansion provides a stereo enhancement effect; the depth of the effect is programmable, as described in “3D Stereo Expansion”. The input signal paths are also equipped with digital volume control and soft mute / un-mute control; see “Digital Volume and Filter Control” for details of these features. The output signal paths are equipped with digital volume control and a programmable high-pass filter (HPF). The Dynamic Range Control (DRC) circuit can also be applied here, with the restriction that a DRC cannot be enabled in the input and output path of one AIF channel at the same time. The AIF output volume and filter controls are described in “Digital Volume and Filter Control”. The WM1811A provides an ultrasonic mode on the output paths of AIF1, allowing high frequency signals (such as ultrasonic microphone signals) to be output. See “Ultrasonic (4FS) AIF Output Mode” for further details. The WM1811A provides two full audio interfaces, AIF1 and AIF2. Each interface supports a number of protocols, including I2S, DSP, MSB-first left/right justified, and can operate in master or slave modes. PCM operation is supported in the DSP mode. A-law and -law companding are also supported. Time division multiplexing (TDM) is available to allow multiple devices to stream data simultaneously on the same bus, saving space and power. Two-channel input and output is supported on AIF1 and on AIF2. A third interface, AIF3, is partially supported, using multiplexers to re-configure alternate connections to AIF1 or AIF2. Signal mixing between audio interfaces is possible. The WM1811A performs stereo full-duplex sample rate conversion between the audio interfaces as required. The audio interfaces AIF1, AIF2 and AIF3 are referenced to DBVDD1, DBVDD2 and DBVDD3 respectively; this provides additional capability to interface between different sub-systems within an application. w PD, August 2014, Rev 4.2 58 Production Data WM1811A Figure 17 Digital Core Architecture w PD, August 2014, Rev 4.2 59 WM1811A Production Data DIGITAL MIXING This section describes the digital mixing functions of the WM1811A. Digital audio mixing is provided on the AIF1 output, digital sidetone, Digital to Analogue converters(DACs) and AIF2 output paths. The digital mixing functions and associated control registers are illustrated in Figure 18. Figure 18 Digital Mixing Block Diagram w PD, August 2014, Rev 4.2 60 WM1811A Production Data AUDIO INTERFACE 1 (AIF1) OUTPUT DIGITAL MIXING There are two digital mixers associated with the AIF1 output channels. The inputs to each AIF1 mixer comprise signals from the ADC / Digital Microphone inputs and from AIF2. Note that the Left/Right channels of AIF1 can be inverted or interchanged if required; see “Digital Audio Interface Control”. The AIF1 Left output channel is derived from the ADCL / DMIC (Left) and AIF2 (Left) inputs.The ADCL / DMIC (Left) path is enabled by ADC1L_TO_AIF1ADC1L, whilst the AIF2 (Left) path is enabled by AIF2DACL_TO_AIF1ADC1L. The AIF1 Right output channel is derived from the ADCR / DMIC (Right) and AIF2 (Right) inputs. The ADCR / DMIC (Right) path is enabled by ADC1R_TO_AIF1ADC1R, whilst the AIF2 (Right) path is enabled by AIF2DACR_TO_AIF1ADC1R. The AIF1 output mixer controls are defined in Table 16. REGISTER ADDRESS R1542 (0606h) BIT 1 AIF1 ADC1 Left Mixer Routing LABEL ADC1L_TO_AIF 1ADC1L DEFAULT 0 DESCRIPTION Enable ADCL / DMIC (Left) to AIF1 (Left) output 0 = Disabled 1 = Enabled 0 AIF2DACL_TO_ AIF1ADC1L 0 Enable AIF2 (Left) to AIF1 (Left) output 0 = Disabled 1 = Enabled R1543 (0607h) 1 AIF1 ADC1 Right Mixer Routing ADC1R_TO_AIF 1ADC1R 0 Enable ADCR / DMIC (Right) to AIF1 (Right) output 0 = Disabled 1 = Enabled 0 AIF2DACR_TO_ AIF1ADC1R 0 Enable AIF2 (Right) to AIF1 (Right) output 0 = Disabled 1 = Enabled Table 16 AIF1 Output Mixing DIGITAL SIDETONE VOLUME AND FILTER CONTROL There are two digital sidetone signal paths, STL and STR. The STL source is either ADCL or DMICDAT (Left). The Left ADC data will be selected if the corresponding ADC is enabled (ie. if ADCL_ENA = 1). The Left digital microphone (DMIC) data will be selected if the corresponding ADC is disabled (ie. if ADCL_ENA = 0). The STR source is either ADCR or DMICDAT (Right). The Right ADC data will be selected if the corresponding ADC is enabled (ie. if ADCR_ENA = 1). The Right digital microphone (DMIC) data will be selected if the corresponding ADC is disabled (ie. if ADCR_ENA = 0). See “Analogue to Digital Converter (ADC)” for details of the ADC control registers. A digital volume control is provided for the digital sidetone paths. The associated register controls are described in Table 17. A digital high-pass filter can be enabled in the sidetone paths to remove DC offsets. This filter is enabled using the ST_HPF register bit; the cut-off frequency is configured using ST_HPF_CUT. When the filter is enabled, it is enabled in both digital sidetone paths. Note that the sidetone filter cut-off frequency scales according to the sample rate of AIF1 or AIF2. When AIF1CLK is selected as the SYSCLK source (SYSCLK_SRC = 0), then the ST_HPF cut-off frequency is scaled according to the AIF1_SR register. When AIF2CLK is selected as the SYSCLK source (SYSCLK_SRC = 1), then the ST_HPF cut-off frequency is scaled according to the AIF2_SR w PD, August 2014, Rev 4.2 61 WM1811A Production Data register.See “Clocking and Sample Rates” for further details of the system clocks and control registers. REGISTER ADDRESS R1536 (0600h) BIT 8:5 DAC1 Mixer Volumes LABEL ADCR_DAC1_V OL [3:0] DEFAULT 0000 DESCRIPTION Sidetone STR to DAC1L and DAC1R Volume 0000 = -36dB 0001 = -33dB …. (3dB steps) 1011 = -3dB 1100 = 0dB (see Table 18for gain range) 3:0 ADCL_DAC1_V OL [3:0] 0000 Sidetone STL to DAC1L and DAC1R Volume 0000 = -36dB 0001 = -33dB …. (3dB steps) 1011 = -3dB 1100 = 0dB (see Table 18for gain range) R1539 (0603h) 8:5 AIF2ADC Mixer Volumes ADCR_AIF2ADC _VOL [3:0] 0000 Sidetone STR to AIF2 Tx Volume 0000 = -36dB 0001 = -33dB …. (3dB steps) 1011 = -3dB 1100 = 0dB (see Table 18for gain range) 3:0 ADCL_AIF2ADC _VOL [3:0] 0000 Sidetone STL to AIF2 Tx Volume 0000 = -36dB 0001 = -33dB …. (3dB steps) 1011 = -3dB 1100 = 0dB (see Table 18for gain range) R1569 (0621h) 9:7 Sidetone ST_HPF_CUT [2:0] 000 Sidetone HPF cut-off frequency (relative to 44.1kHz sample rate) 000 = 2.7kHz 001 = 1.35kHz 010 = 675Hz 011 = 370Hz 100 = 180Hz 101 = 90Hz 110 = 45Hz 111 = Reserved Note - the cut-off frequencies scale with the Digital Mixing (SYSCLK) clocking rate. The quoted figures apply to 44.1kHz sample rate. 6 ST_HPF 0 Digital Sidetone HPF Select 0 = Disabled 1 = Enabled Table 17 Digital Sidetone Volume Control w PD, August 2014, Rev 4.2 62 WM1811A Production Data ADCR_DAC1_VOL, ADCL_AIF2ADC_VOL, ADCR_DAC1_VOL or ADCL_AIF2ADC_VOL 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 SIDETONE GAIN (dB) -36 -33 -30 -27 -24 -21 -18 -15 -12 -9 -6 -3 0 0 0 0 Table 18 Digital Sidetone Volume Range DAC OUTPUT DIGITAL MIXING There are two DAC digital mixers, one for each DAC. The inputs to each DAC mixer comprise signals from AIF1, AIF2 and the digital sidetone signals. Note that the Left/Right channels of the AIF1 and AIF2 inputs can be inverted or interchanged if required; see “Digital Audio Interface Control”. The DAC output mixer controls are defined in Table 19. REGISTER ADDRESS R1537 (0601h) BIT DESCRIPTION ADCR_TO_DAC 1L 0 Enable Sidetone STR to DAC1L 0 = Disabled 1 = Enabled 4 ADCL_TO_DAC 1L 0 Enable Sidetone STL to DAC1L 0 = Disabled 1 = Enabled 2 AIF2DACL_TO_ DAC1L 0 Enable AIF2 (Left) to DAC1L 0 = Disabled 1 = Enabled 0 AIF1DAC1L_TO _DAC1L 0 Enable AIF1 (Left) to DAC1L 0 = Disabled 1 = Enabled 5 ADCR_TO_DAC 1R 0 Enable Sidetone STR to DAC1R 0 = Disabled 1 = Enabled 4 ADCL_TO_DAC 1R 0 Enable Sidetone STL to DAC1R 0 = Disabled 1 = Enabled 2 AIF2DACR_TO_ DAC1R 0 Enable AIF2 (Right) to DAC1R 0 = Disabled DAC1 Right Mixer Routing w DEFAULT 5 DAC1 Left Mixer Routing R1538 (0602h) LABEL PD, August 2014, Rev 4.2 63 WM1811A Production Data REGISTER ADDRESS BIT LABEL DEFAULT DESCRIPTION 1 = Enabled 0 AIF1DAC1R_TO _DAC1R 0 Enable AIF1 (Right) to DAC1R 0 = Disabled 1 = Enabled Table 19 DAC Output Digital Mixing AUDIO INTERFACE 2 (AIF2) OUTPUT DIGITAL MIXING There are two digital mixers associated with the AIF2 output channels. The inputs to each AIF2 mixer comprise signals from AIF1, AIF2 and the digital sidetone signals. Note that the Left/Right channels of the AIF1 and AIF2 inputs can be inverted or interchanged if required; see “Digital Audio Interface Control”. The AIF2 output mixer controls are defined in Table 20. REGISTER ADDRESS R1540 (0604h) BIT 5 AIF2ADC Left Mixer Routing LABEL ADCR_TO_AIF2 ADCL DEFAULT 0 DESCRIPTION Enable Sidetone STR to AIF2 Tx (Left) 0 = Disabled 1 = Enabled 4 ADCL_TO_AIF2 ADCL 0 Enable Sidetone STL to AIF2 Tx (Left) 0 = Disabled 1 = Enabled 2 AIF2DACL_TO_ AIF2ADCL 0 AIF1DAC1L_TO _AIF2ADCL 0 ADCR_TO_AIF2 ADCR 0 Enable AIF2 (Left) to AIF2 Tx (Left) 0 = Disabled 1 = Enabled 0 Enable AIF1 (Left) to AIF2 Tx (Left) 0 = Disabled 1 = Enabled R1541 (0605h) 5 AIF2ADC Right Mixer Routing Enable Sidetone STR to AIF2 Tx (Right) 0 = Disabled 1 = Enabled 4 ADCL_TO_AIF2 ADCR 0 Enable Sidetone STL to AIF2 Tx (Right) 0 = Disabled 1 = Enabled 2 AIF2DACR_TO_ AIF2ADCR 0 Enable AIF2 (Right) to AIF2 Tx (Right) 0 = Disabled 1 = Enabled 0 AIF1DAC1R_TO _AIF2ADCR 0 Enable AIF1 (Right) to AIF2 Tx (Right) 0 = Disabled 1 = Enabled Table 20 AIF2 Output Mixing w PD, August 2014, Rev 4.2 64 WM1811A Production Data DIGITAL VOLUME (DAC AND AIF2 OUTPUT PATHS) The volume level of each DAC output mixer path and each AIF2 output mixer path can be controlled digitally over a range from -71.625dB to +12dBin 0.375dB steps. The level of attenuation for an eightbit code X is given by: 0.375  (X-192) dB for 1  X 224; 12dB to 224  X  255 MUTE for X = 0; Each of the digital output mixer paths can be muted using the soft mute control bits described inTable 21. The WM1811A always applies a soft mute, where the volume is decreased gradually. The unmute behaviour is configurable, as described in the “Digital Volume Soft Mute and Soft Un-Mute” section. The DAC1_VU and AIF2TX_VU bits control the loading of digital volume control data. When DAC1_VU is set to 0, the DAC1L_VOL or DAC1R_VOL control data will be loaded into the respective control register, but will not actually change the digital gain setting. Both left and right gain settings are updated when a 1 is written to DAC1_VU. This makes it possible to update the gain of both channels simultaneously. A similar function for AIF2TXL and AIF2TXR is controlled by the AIF2TX_VU register bit. REGISTER ADDRESS R1552 (0610h) BIT 9 DAC1 Left Volume LABEL DAC1L_MU TE DEFAULT 1 DESCRIPTION DAC1L Soft Mute Control 0 = DAC Un-mute 1 = DAC Mute 8 DAC1_VU N/A DAC1L and DAC1R Volume Update Writing a 1 to this bit will cause the DAC1L and DAC1R volume to be updated simultaneously 7:0 DAC1L_VO L [7:0] C0h (0dB) DAC1L Digital Volume 00h = MUTE 01h = -71.625dB … (0.375dB steps) C0h = 0dB … (0.375dB steps) E0h = 12dB FFh = 12dB (See Table 22for volume range) R1553 (0611h) 9 DAC1 Right Volume DAC1R_MU TE 1 DAC1R Soft Mute Control 0 = DAC Un-mute 1 = DAC Mute 8 DAC1_VU N/A DAC1L and DAC1R Volume Update Writing a 1 to this bit will cause the DAC1L and DAC1R volume to be updated simultaneously 7:0 DAC1R_VO L [7:0] C0h (0dB) DAC1R Digital Volume 00h = MUTE 01h = -71.625dB … (0.375dB steps) C0h = 0dB … (0.375dB steps) E0h = 12dB FFh = 12dB (See Table 22for volume range) R1554 (0612h) AIF2TX Left Volume w 9 AIF2TXL_M UTE 1 AIF2 Tx (Left) Soft Mute Control 0 = Un-mute 1 = Mute PD, August 2014, Rev 4.2 65 WM1811A Production Data REGISTER ADDRESS BIT 8 LABEL AIF2TX_VU DEFAULT N/A DESCRIPTION AIF2 Tx (Left) and AIF2 Tx (Right) Volume Update Writing a 1 to this bit will cause the AIF2TXL and AIF2TXR volume to be updated simultaneously 7:0 AIF2TXL_V OL [7:0] C0h (0dB) AIF2 Tx (Left) Volume Digital Volume 00h = MUTE 01h = -71.625dB … (0.375dB steps) C0h = 0dB … (0.375dB steps) E0h = 12dB FFh = 12dB (See Table 22for volume range) R1555 (0613h) 9 AIF2TX Right Volume AIF2TXR_M UTE 1 AIF2TX_VU N/A AIF2 Tx (Right) Soft Mute Control 0 = DAC Un-mute 1 = DAC Mute 8 AIF2 Tx (Left) and AIF2 Tx (Right) Volume Update Writing a 1 to this bit will cause the AIF2TXL and AIF2TXR volume to be updated simultaneously 7:0 AIF2TXR_V OL [7:0] C0h (0dB) AIF2 Tx (Right) Digital Volume 00h = MUTE 01h = -71.625dB … (0.375dB steps) C0h = 0dB … (0.375dB steps) E0h = 12dB FFh = 12dB (See Table 22for volume range) Table 21 DAC and AIF2 Output Digital Volume Control w PD, August 2014, Rev 4.2 66 WM1811A Production Data DAC / AIF2 Tx Volume Volume (dB) DAC / AIF2 Tx Volume Volume (dB) DAC / AIF2 Tx Volume Volume (dB) DAC / AIF2 Tx Volume Volume (dB) 0h MUTE 40h -48.000 80h -24.000 C0h 0.000 1h -71.625 41h -47.625 81h -23.625 C1h 0.375 2h -71.250 42h -47.250 82h -23.250 C2h 0.750 3h -70.875 43h -46.875 83h -22.875 C3h 1.125 4h -70.500 44h -46.500 84h -22.500 C4h 1.500 5h -70.125 45h -46.125 85h -22.125 C5h 1.875 6h -69.750 46h -45.750 86h -21.750 C6h 2.250 7h -69.375 47h -45.375 87h -21.375 C7h 2.625 8h -69.000 48h -45.000 88h -21.000 C8h 3.000 9h -68.625 49h -44.625 89h -20.625 C9h 3.375 Ah -68.250 4Ah -44.250 8Ah -20.250 CAh 3.750 Bh -67.875 4Bh -43.875 8Bh -19.875 CBh 4.125 Ch -67.500 4Ch -43.500 8Ch -19.500 CCh 4.500 Dh -67.125 4Dh -43.125 8Dh -19.125 CDh 4.875 Eh -66.750 4Eh -42.750 8Eh -18.750 CEh 5.250 Fh -66.375 4Fh -42.375 8Fh -18.375 CFh 5.625 10h -66.000 50h -42.000 90h -18.000 D0h 6.000 11h -65.625 51h -41.625 91h -17.625 D1h 6.375 12h -65.250 52h -41.250 92h -17.250 D2h 6.750 13h -64.875 53h -40.875 93h -16.875 D3h 7.125 14h -64.500 54h -40.500 94h -16.500 D4h 7.500 15h -64.125 55h -40.125 95h -16.125 D5h 7.875 16h -63.750 56h -39.750 96h -15.750 D6h 8.250 17h -63.375 57h -39.375 97h -15.375 D7h 8.625 18h -63.000 58h -39.000 98h -15.000 D8h 9.000 19h -62.625 59h -38.625 99h -14.625 D9h 9.375 1Ah -62.250 5Ah -38.250 9Ah -14.250 DAh 9.750 1Bh -61.875 5Bh -37.875 9Bh -13.875 DBh 10.125 1Ch -61.500 5Ch -37.500 9Ch -13.500 DCh 10.500 1Dh -61.125 5Dh -37.125 9Dh -13.125 DDh 10.875 1Eh -60.750 5Eh -36.750 9Eh -12.750 DEh 11.250 1Fh -60.375 5Fh -36.375 9Fh -12.375 DFh 11.625 20h -60.000 60h -36.000 A0h -12.000 E0h 12.000 21h -59.625 61h -35.625 A1h -11.625 E1h 12.000 22h -59.250 62h -35.250 A2h -11.250 E2h 12.000 23h -58.875 63h -34.875 A3h -10.875 E3h 12.000 24h -58.500 64h -34.500 A4h -10.500 E4h 12.000 25h -58.125 65h -34.125 A5h -10.125 E5h 12.000 26h -57.750 66h -33.750 A6h -9.750 E6h 12.000 27h -57.375 67h -33.375 A7h -9.375 E7h 12.000 28h -57.000 68h -33.000 A8h -9.000 E8h 12.000 29h -56.625 69h -32.625 A9h -8.625 E9h 12.000 2Ah -56.250 6Ah -32.250 AAh -8.250 EAh 12.000 2Bh -55.875 6Bh -31.875 ABh -7.875 EBh 12.000 2Ch -55.500 6Ch -31.500 ACh -7.500 ECh 12.000 2Dh -55.125 6Dh -31.125 ADh -7.125 EDh 12.000 2Eh -54.750 6Eh -30.750 AEh -6.750 EEh 12.000 2Fh -54.375 6Fh -30.375 AFh -6.375 EFh 12.000 30h -54.000 70h -30.000 B0h -6.000 F0h 12.000 31h -53.625 71h -29.625 B1h -5.625 F1h 12.000 32h -53.250 72h -29.250 B2h -5.250 F2h 12.000 33h -52.875 73h -28.875 B3h -4.875 F3h 12.000 34h -52.500 74h -28.500 B4h -4.500 F4h 12.000 35h -52.125 75h -28.125 B5h -4.125 F5h 12.000 36h -51.750 76h -27.750 B6h -3.750 F6h 12.000 37h -51.375 77h -27.375 B7h -3.375 F7h 12.000 38h -51.000 78h -27.000 B8h -3.000 F8h 12.000 39h -50.625 79h -26.625 B9h -2.625 F9h 12.000 3Ah -50.250 7Ah -26.250 BAh -2.250 FAh 12.000 3Bh -49.875 7Bh -25.875 BBh -1.875 FBh 12.000 3Ch -49.500 7Ch -25.500 BCh -1.500 FCh 12.000 3Dh -49.125 7Dh -25.125 BDh -1.125 FDh 12.000 3Eh -48.750 7Eh -24.750 BEh -0.750 FEh 12.000 3Fh -48.375 7Fh -24.375 BFh -0.375 FFh 12.000 Table 22 DAC and AIF2 Output Digital Volume Range w PD, August 2014, Rev 4.2 67 WM1811A Production Data DIGITAL VOLUME SOFT MUTE AND SOFT UN-MUTE The WM1811A has a soft mute function which ensures that a gradual attenuation is applied to the DAC output mixers or AIF2 output mixers when the associated mute is asserted. The soft mute rate can be selected using the DAC_MUTERATE bit. When a mute bit is disabled, the gain will either gradually ramp back up to the digital gain setting, or return instantly to the digital gain setting, depending on the DAC_SOFTMUTEMODE register bit. If the gradual un-mute ramp is selected (DAC_SOFTMUTEMODE = 1), then the un-mute rate is determined by the DAC_MUTERATE bit. Note that each DAC (or AIF2 output mixer) is soft-muted by default. To play back an audio signal, the mute must first be disabled by setting the applicable mute control to 0 (seeTable 21). Soft Mute Mode would typically be enabled (DAC_SOFTMUTEMODE = 1) when using mute during playback of audio data so that when the mute is subsequently disabled, the volume increase will not create pop noise by jumping immediately to the previous volume level (e.g. resuming playback after pausing during a track). Soft Mute Mode would typically be disabled (DAC_SOFTMUTEMODE = 0) when un-muting at the start of a music file, in order that the first part of the track is not attenuated (e.g. when starting playback of a new track, or resuming playback after pausing between tracks). The DAC soft-mute function is illustrated in Figure 19 for DAC1L and DAC1R. The same function is applicable to AIF2TXL and AIF2TXRalso. DAC muting and un-muting using volume control bits DAC1L_VOL and DAC1R_VOL DAC1L_VOL or DAC1R_VOL = [non-zero] = 00000000 = [non-zero] DAC muting and un-muting using soft mute bits DAC1L_MUTE or DAC1R_MUTE Soft mute mode not enabled (DAC_SOFTMUTEMODE = 0). DAC_SOFTMUTEMODE = 0 DAC1L_MUTE = 0 DAC1R_MUTE = 0 DAC1L_MUTE = 1 DAC1R_MUTE = 1 DAC1L_MUTE = 0 DAC1R_MUTE = 0 DAC muting and un-muting using soft mute bit DAC_MUTE. Soft mute mode enabled (DAC_SOFTMUTEMODE = 1). DAC_SOFTMUTEMODE = 1 DAC1L_MUTE = 0 DAC1R_MUTE = 0 DAC1L_MUTE = 1 DAC1R_MUTE = 1 DAC1L_MUTE = 0 DAC1R_MUTE = 0 Figure 19 Digital Volume Soft Mute Control The DAC Soft Mute register controls are defined in Table 23. The volume ramp rate during soft mute and un-mute is controlled by the DAC_MUTERATE bit. Ramp rates of fs/32 and fs/2 are selectable. The ramp rate determines the rate at which the volume will be increased or decreased. Note that the actual ramp time depends on the extent of the difference between the muted and un-muted volume settings. w PD, August 2014, Rev 4.2 68 WM1811A Production Data REGISTER ADDRESS R1556 (0614h) BIT 1 DAC Softmute LABEL DAC_SOFT MUTEMODE DEFAULT 0 DESCRIPTION DAC/AIF2 Digital Output Mixer Unmute Ramp select 0 = Unmuting the DAC / AIF2 volume will immediately apply the DAC1[L/R]_VOLor AIF2TX[L/R]_VOL settings. 1 = Unmuting the DAC / AIF2 volume will cause a gradual ramp up to the DAC1[L/R]_VOLor AIF2TX[L/R]_VOL settings. 0 DAC_MUTE RATE 0 DAC/AIF2 Digital Output Mixer Soft Mute Ramp Rate 0 = Fast ramp (fs/2, maximum ramp time is 10.7ms at fs=48k) 1 = Slow ramp (fs/32, maximum ramp time is 171ms at fs=48k) (Note: ramp rate scales with sample rate.) Table 23 Digital Volume Soft-Mute Control w PD, August 2014, Rev 4.2 69 WM1811A Production Data ULTRASONIC (4FS) AIF OUTPUT MODE The WM1811A provides an ultrasonic mode on the output paths of the AIF1 audio interface. The ultrasonic mode enables high frequency signals (such as ultrasonic microphone signals) to be output. Ultrasonic mode is enabled on AIF1 using the AIF1ADC_4FS register bit. When the ultrasonic mode is selected, the AIF1output sample rate is increased by a factor of 4. For example, a 48kHz sample rate will be output at 192kHz in ultrasonic mode. Ultrasonic mode is only supported in AIF Master mode and uses the ADCLRCLK output (not the LRCLK). When ultrasonic mode is enabled, the AIF1 must be configured in Master mode, as described in “Digital Audio Interface Control”.See “General Purpose Input/Output” to configure the GPIO1 pin as ADCLRCLK1.The ADCLRCLK1 rate is controlled as described in “Digital Audio Interface Control”. When ultrasonic mode is enabled, the audio band filtering and digital volume controls (see “Digital Volume and Filter Control”) are bypassed on the affected output paths. The Dynamic Range Control (DRC) function is not available on the AIF1output signal paths in ultrasonic mode. Note, however, that the DRC is still available on the AIF input paths in this case. The ultrasonic (4FS) signal paths are illustrated in Figure 20. The AIF1ADC_4FS register bit is defined in Table 24. Figure 20 Ultrasonic (4FS) Signal Paths REGISTER ADDRESS R1040 (0410h) BIT 15 LABEL AIF1ADC_4FS AIF1 ADC1 Filters DEFAULT 0 DESCRIPTION Enable AIF1ADC ultrasonic mode (4FS) output, bypassing all AIF1 baseband output filtering 0 = Disabled 1 = Enabled Table 24 Ultrasonic (4FS) Mode Control w PD, August 2014, Rev 4.2 70 WM1811A Production Data DYNAMIC RANGE CONTROL (DRC) The Dynamic Range Control (DRC) is a circuit which can be enabled in the digital playback or digital record paths of the WM1811A audio interfaces. The function of the DRC is to adjust the signal gain in conditions where the input amplitude is unknown or varies over a wide range, e.g. when recording from microphones built into a handheld system. The DRC can apply Compression and Automatic Level Control to the signal path. It incorporates ‘anticlip’ and ‘quick release’ features for handling transients in order to improve intelligibility in the presence of loud impulsive noises. The DRC also incorporates a Noise Gate function, which provides additional attenuation of very lowlevel input signals. This means that the signal path is quiet when no signal is present, giving an improvement in background noise level under these conditions. The WM1811A provides two stereo Dynamic Range Controllers (DRCs); these are associated with AIF1 and AIF2 respectively. Each DRC can be enabled either in the DAC playback (AIF input) path or in the ADC record (AIF output) path, as described in the “Digital Core Architecture” section. The DRCs are enabled in the DAC or ADCs audio signal paths using the register bits described in Table 25. Note that enabling any DRC in the DAC and ADC paths simultaneously is an invalid selection. When the DRC is enabled in any of the ADC (digital record) paths, the associated High Pass Filter (HPF) must be enabled also; this ensures that DC offsets are removed prior to the DRC processing. The output path HPF control registers are described in Table 37 (for AIF1 output paths) and Table 45 (for AIF2 output paths). These are described in the “Digital Volume and Filter Control” section. Note that, when ultrasonic (4FS) mode is selected on AIF1, then the DRC function is bypassed on the respective ADC (output) signal paths. The DRC may still be selected on the AIF1DAC (input) signal paths. REGISTER ADDRESS R1088 (0440h) BIT 2 AIF1DRC1 (1) LABEL AIF1DAC1_DRC _ENA DEFAULT 0 DESCRIPTION Enable DRC in AIF1DAC playback path 0 = Disabled 1 = Enabled 1 AIF1ADC1L_DR C_ENA 0 Enable DRC in AIF1ADC (Left) record path 0 = Disabled 1 = Enabled 0 AIF1ADC1R_DR C_ENA 0 Enable DRC in AIF1ADC (Right) record path 0 = Disabled 1 = Enabled R1344 (0540h) 2 AIF2DRC (1) AIF2DAC_DRC_ ENA 0 Enable DRC in AIF2DAC playback path 0 = Disabled 1 = Enabled 1 AIF2ADCL_DRC _ENA 0 Enable DRC in AIF2ADC (Left) record path 0 = Disabled 1 = Enabled 0 AIF2ADCR_DRC _ENA 0 Enable DRC in AIF2ADC (Right) record path 0 = Disabled 1 = Enabled Table 25 DRC Enable w PD, August 2014, Rev 4.2 71 WM1811A Production Data The following description of the DRC is applicable to both DRCs. The associated register control fields are described inTable 27 and Table 28 for the respective DRCs. Note that, wherethe following description refers to register names, the generic prefix [DRC] is quoted:  For the DRC associated with AIF1, [DRC] = AIF1DRC1.  For the DRC associated with AIF2, [DRC] = AIF2DRC. DRC COMPRESSION / EXPANSION /LIMITING The DRC supports two different compression regions, separated by a “Knee” at a specific input amplitude. In the region above the knee, the compression slope [DRC]_HI_COMP applies; in the region below the knee, the compression slope [DRC]_LO_COMP applies. The DRC also supports a noise gate region, where low-level input signals are heavily attenuated. This function can be enabled or disabled according to the application requirements. The DRC response in this region is defined by the expansion slope [DRC]_NG_EXP. For additional attenuation of signals in the noise gate region, an additional “knee” can be defined (shown as “Knee2” in Figure 21). When this knee is enabled, this introduces an infinitely steep dropoff in the DRC response pattern between the [DRC]_LO_COMP and [DRC]_NG_EXP regions. The overall DRC compression characteristic in “steady state” (i.e. where the input amplitude is nearconstant) is illustrated in Figure 21. Figure 21 DRC Response Characteristic The slope of the DRC response is determined by register fields [DRC]_HI_COMP and [DRC]_LO_COMP. A slope of 1 indicates constant gain in this region. A slope less than 1 represents compression (i.e. a change in input amplitude produces only a smaller change in output amplitude). A slope of 0 indicates that the target output amplitude is the same across a range of input amplitudes; this is infinite compression. When the noise gate is enabled, the DRC response in this region is determined by the [DRC]_NG_EXP register. A slope of 1 indicates constant gain in this region. A slope greater than 1 represents expansion (ie. a change in input amplitude produces a larger change in output amplitude). When the DRC_KNEE2_OP knee is enabled (“Knee2” in Figure 21), this introduces the vertical line in the response pattern illustrated, resulting in infinitely steep attenuation at this point in the response. w PD, August 2014, Rev 4.2 72 WM1811A Production Data The DRC parameters are listed in Table 26. REF PARAMETER DESCRIPTION 1 [DRC]_KNEE_IP Input level at Knee1 (dB) 2 [DRC]_KNEE_OP Output level at Knee2 (dB) 3 [DRC]_HI_COMP Compression ratio above Knee1 4 [DRC]_LO_COMP Compression ratio below Knee1 5 [DRC]_KNEE2_IP Input level at Knee2 (dB) 6 [DRC]_NG_EXP Expansion ratio below Knee2 7 [DRC]_KNEE2_OP Output level at Knee2 (dB) Table 26 DRC Response Parameters The noise gate is enabled when the [DRC]_NG_ENA register is set. When the noise gate is not enabled, parameters 5, 6, 7 above are ignored, and the [DRC]_LO_COMP slope applies to all input signal levels below Knee1. The DRC_KNEE2_OP knee is enabled when the [DRC]_KNEE2_OP_ENA register is set. When this bit is not set, then parameter 7 above is ignored, and the Knee2 position always coincides with the low end of the [DRC]_LO_COMP region. The “Knee1” point in Figure 21 is determined by register fields [DRC]_KNEE_IP and [DRC]_KNEE_OP. Parameter Y0, the output level for a 0dB input, is not specified directly, but can be calculated from the other parameters, using the equation: GAIN LIMITS The minimum and maximum gain applied by the DRC is set by register fields [DRC]_MINGAIN, [DRC]_MAXGAIN and [DRC]_NG_MINGAIN. These limits can be used to alter the DRC response from that illustrated in Figure 21. If the range between maximum and minimum gain is reduced, then the extent of the dynamic range control is reduced. The minimum gain in the Compression regions of the DRC response is set by [DRC]_MINGAIN. The mimimum gain in the Noise Gate region is set by [DRC]_NG_MINGAIN. The minimum gain limit prevents excessive attenuation of the signal path. The maximum gain limit set by [DRC]_MAXGAIN prevents quiet signals (or silence) from being excessively amplified. w PD, August 2014, Rev 4.2 73 WM1811A Production Data DYNAMIC CHARACTERISTICS The dynamic behaviour determines how quickly the DRC responds to changing signal levels. Note that the DRC responds to the average (RMS) signal amplitude over a period of time. The [DRC]_ATK determines how quickly the DRC gain decreases when the signal amplitude is high. The [DRC]_DCY determines how quickly the DRC gain increases when the signal amplitude is low. These register fields are described in Table 27 and Table 28. Note that the register defaults are suitable for general purpose microphone use. ANTI-CLIP CONTROL The DRC includes an Anti-Clip feature to avoid signal clipping when the input amplitude rises very quickly. This feature uses a feed-forward technique for early detection of a rising signal level. Signal clipping is avoided by dynamically increasing the gain attack rate when required. The Anti-Clip feature is enabled using the [DRC]_ANTICLIP bit. Note that the feed-forward processing increases the latency in the input signal path. Note that the Anti-Clip feature operates entirely in the digital domain. It cannot be used to prevent signal clipping in the analogue domain nor in the source signal. Analogue clipping can only be prevented by reducing the analogue signal gain or by adjusting the source signal. Note that the Anti-Clip feature should not be enabled at the same time as the Quick Release feature (described below) on the same DRC. QUICK RELEASE CONTROL The DRC includes a Quick-Release feature to handle short transient peaks that are not related to the intended source signal. For example, in handheld microphone recording, transient signal peaks sometimes occur due to user handling, key presses or accidental tapping against the microphone. The Quick Release feature ensures that these transients do not cause the intended signal to be masked by the longer time constants of [DRC]_DCY. The Quick-Release feature is enabled by setting the [DRC]_QR bit. When this bit is enabled, the DRC measures the crest factor (peak to RMS ratio) of the input signal. A high crest factor is indicative of a transient peak that may not be related to the intended source signal. If the crest factor exceeds the level set by [DRC]_QR_THR, then the normal decay rate ([DRC]_DCY) is ignored and a faster decay rate ([DRC]_QR_DCY) is used instead. Note that the Quick Release feature should not be enabled at the same time as the Anti-Clip feature (described above) on the same DRC. SIGNAL ACTIVITY DETECT The DRC incorporates a configurable signal detect function, allowing the signal level at the DRC input to be monitored and to be used to trigger other events. This can be used to detect the presence of a microphone signal on an ADC or digital mic channel, or can be used to detect an audio signal received over the digital audio interface. The Peak signal level or the RMS signal level of the DRC input can be selected as the detection threshold. When the threshold condition is exceeded, an interrupt or GPIO output can be generated. See “General Purpose Input/Output” for a full description of the applicable control fields. w PD, August 2014, Rev 4.2 74 WM1811A Production Data DRC REGISTER CONTROLS The AIF1DRC control registers are described in Table 27. The AIF2DRC control registers are described in Table 28. REGISTER ADDRESS R1088(0440h) BIT 8 AIF1 DRC1 (1) LABEL DEFAULT AIF1DRC1_NG_ ENA 0 AIF1DRC1_KNE E2_OP_ENA 0 AIF1DRC1_QR 1 DESCRIPTION AIF1 DRC Noise Gate Enable 0 = Disabled 1 = Enabled 5 AIF1 DRCKNEE2_OP Enable 0 = Disabled 1 = Enabled 4 AIF1 DRC Quick-release Enable 0 = Disabled 1 = Enabled 3 AIF1DRC1_ANTI CLIP 1 AIF1DRC1_ATK [3:0] 0100 AIF1 DRC Anti-clip Enable 0 = Disabled 1 = Enabled R1089(0441h) 12:9 AIF1 DRC1 (2) AIF1 DRC Gain attack rate (seconds/6dB) 0000 = Reserved 0001 = 181us 0010 = 363us 0011 = 726us 0100 = 1.45ms 0101 = 2.9ms 0110 = 5.8ms 0111 = 11.6ms 1000 = 23.2ms 1001 = 46.4ms 1010 = 92.8ms 1011 = 185.6ms 1100-1111 = Reserved 8:5 AIF1DRC1_DCY [3:0] 0010 AIF1 DRC Gain decay rate (seconds/6dB) 0000 = 186ms 0001 = 372ms 0010 = 743ms 0011 = 1.49s 0100 = 2.97s 0101 = 5.94s 0110 = 11.89s 0111 = 23.78s 1000 = 47.56s 1001-1111 = Reserved 4:2 AIF1DRC1_MIN GAIN [2:0] 001 AIF1 DRC Minimum gain to attenuate audio signals 000 = 0dB 001 = -12dB (default) 010 = -18dB 011 = -24dB 100 = -36dB 101 = Reserved 11X = Reserved w PD, August 2014, Rev 4.2 75 WM1811A Production Data REGISTER ADDRESS BIT 1:0 LABEL AIF1DRC1_MAX GAIN [1:0] DEFAULT 01 DESCRIPTION AIF1 DRC Maximum gain to boost audio signals (dB) 00 = 12dB 01 = 18dB 10 = 24dB 11 = 36dB R1090(0442h) 15:12 AIF1 DRC1 (3) AIF1DRC1_NG_ MINGAIN [3:0] 0000 AIF1 DRC Minimum gain to attenuate audio signals when the noise gate is active. 0000 = -36dB 0001 = -30dB 0010 = -24dB 0011 = -18dB 0100 = -12dB 0101 = -6dB 0110 = 0dB 0111 = 6dB 1000 = 12dB 1001 = 18dB 1010 = 24dB 1011 = 30dB 1100 = 36dB 1101 to 1111 = Reserved 11:10 AIF1DRC1_NG_ EXP [1:0] 00 AIF1 DRC Noise Gate slope 00 = 1 (no expansion) 01 = 2 10 = 4 11 = 8 9:8 AIF1DRC1_QR_ THR [1:0] 00 AIF1 DRC Quick-release threshold (crest factor in dB) 00 = 12dB 01 = 18dB 10 = 24dB 11 = 30dB 7:6 AIF1DRC1_QR_ DCY [1:0] 00 AIF1 DRC Quick-release decay rate (seconds/6dB) 00 = 0.725ms 01 = 1.45ms 10 = 5.8ms 11 = Reserved 5:3 AIF1DRC1_HI_C OMP [2:0] 000 AIF1 DRC Compressor slope (upper region) 000 = 1 (no compression) 001 = 1/2 010 = 1/4 011 = 1/8 100 = 1/16 101 = 0 110 = Reserved 111 = Reserved w PD, August 2014, Rev 4.2 76 WM1811A Production Data REGISTER ADDRESS BIT 2:0 LABEL AIF1DRC1_LO_ COMP [2:0] DEFAULT 000 DESCRIPTION AIF1 DRC Compressor slope (lower region) 000 = 1 (no compression) 001 = 1/2 010 = 1/4 011 = 1/8 100 = 0 101 = Reserved 11X = Reserved R1091(0443h) 10:5 AIF1 DRC1 (4) AIF1DRC1_KNE E_IP [5:0] 000000 AIF1 DRC Input signal level at the Compressor ‘Knee’. 000000 = 0dB 000001 = -0.75dB 000010 = -1.5dB … (-0.75dB steps) 111100 = -45dB 111101 = Reserved 11111X = Reserved 4:0 AIF1DRC1_KNE E_OP [4:0] 00000 AIF1 DRC Output signal at the Compressor ‘Knee’. 00000 = 0dB 00001 = -0.75dB 00010 = -1.5dB … (-0.75dB steps) 11110 = -22.5dB 11111 = Reserved R1092(0444h) 9:5 AIF1 DRC1 (5) AIF1DRC1_KNE E2_IP [4:0] 00000 AIF1 DRC Input signal level at the Noise Gate threshold ‘Knee2’. 00000 = -36dB 00001 = -37.5dB 00010 = -39dB … (-1.5dB steps) 11110 = -81dB 11111 = -82.5dB Only applicable when AIF1DRC1_NG_ENA = 1. 4:0 AIF1DRC1_KNE E2_OP [4:0] 00000 AIF1 DRC Output signal at the Noise Gate threshold ‘Knee2’. 00000 = -30dB 00001 = -31.5dB 00010 = -33dB … (-1.5dB steps) 11110 = -75dB 11111 = -76.5dB Only applicable when AIF1DRC1_KNEE2_OP_ENA = 1. Table 27 AIF1 DRC Controls w PD, August 2014, Rev 4.2 77 WM1811A Production Data REGISTER ADDRESS R1344 (0540h) BIT 8 AIF2DRC (1) LABEL DEFAULT AIF2DRC_NG_E NA 0 AIF2DRC_KNEE 2_OP_ENA 0 AIF2DRC_QR 1 DESCRIPTION AIF2 DRC Noise Gate Enable 0 = Disabled 1 = Enabled 5 AIF2 DRCKNEE2_OP Enable 0 = Disabled 1 = Enabled 4 AIF2 DRC Quick-release Enable 0 = Disabled 1 = Enabled 3 AIF2DRC_ANTI CLIP 1 AIF2DRC_ATK [3:0] 0100 AIF2 DRC Anti-clip Enable 0 = Disabled 1 = Enabled R1345 (0541h) 12:9 AIF2DRC (2) AIF2 DRC Gain attack rate (seconds/6dB) 0000 = Reserved 0001 = 181us 0010 = 363us 0011 = 726us 0100 = 1.45ms 0101 = 2.9ms 0110 = 5.8ms 0111 = 11.6ms 1000 = 23.2ms 1001 = 46.4ms 1010 = 92.8ms 1011 = 185.6ms 1100-1111 = Reserved 8:5 AIF2DRC_DCY [3:0] 0010 AIF2 DRC Gain decay rate (seconds/6dB) 0000 = 186ms 0001 = 372ms 0010 = 743ms 0011 = 1.49s 0100 = 2.97s 0101 = 5.94s 0110 = 11.89s 0111 = 23.78s 1000 = 47.56s 1001-1111 = Reserved 4:2 AIF2DRC_MING AIN [2:0] 001 AIF2 DRC Minimum gain to attenuate audio signals 000 = 0dB 001 = -12dB (default) 010 = -18dB 011 = -24dB 100 = -36dB 101 = Reserved 11X = Reserved w PD, August 2014, Rev 4.2 78 WM1811A Production Data REGISTER ADDRESS BIT 1:0 LABEL AIF2DRC_MAX GAIN [1:0] DEFAULT 01 DESCRIPTION AIF2 DRC Maximum gain to boost audio signals (dB) 00 = 12dB 01 = 18dB 10 = 24dB 11 = 36dB R1346 (0542h) 15:12 AIF2DRC (3) AIF2DRC_NG_ MINGAIN [3:0] 0000 AIF2 DRC Minimum gain to attenuate audio signals when the noise gate is active. 0000 = -36dB 0001 = -30dB 0010 = -24dB 0011 = -18dB 0100 = -12dB 0101 = -6dB 0110 = 0dB 0111 = 6dB 1000 = 12dB 1001 = 18dB 1010 = 24dB 1011 = 30dB 1100 = 36dB 1101 to 1111 = Reserved 11:10 AIF2DRC_NG_E XP [1:0] 00 AIF2 DRC Noise Gate slope 00 = 1 (no expansion) 01 = 2 10 = 4 11 = 8 9:8 AIF2DRC_QR_T HR [1:0] 00 AIF2 DRC Quick-release threshold (crest factor in dB) 00 = 12dB 01 = 18dB 10 = 24dB 11 = 30dB 7:6 AIF2DRC_QR_D CY [1:0] 00 AIF2 DRC Quick-release decay rate (seconds/6dB) 00 = 0.725ms 01 = 1.45ms 10 = 5.8ms 11 = Reserved 5:3 AIF2DRC_HI_C OMP [2:0] 000 AIF2 DRC Compressor slope (upper region) 000 = 1 (no compression) 001 = 1/2 010 = 1/4 011 = 1/8 100 = 1/16 101 = 0 110 = Reserved 111 = Reserved w PD, August 2014, Rev 4.2 79 WM1811A Production Data REGISTER ADDRESS BIT 2:0 LABEL AIF2DRC_LO_C OMP [2:0] DEFAULT 000 DESCRIPTION AIF2 DRC Compressor slope (lower region) 000 = 1 (no compression) 001 = 1/2 010 = 1/4 011 = 1/8 100 = 0 101 = Reserved 11X = Reserved R1347 (0543h) 10:5 AIF2DRC (4) AIF2DRC_KNEE _IP [5:0] 000000 AIF2 DRC Input signal level at the Compressor ‘Knee’. 000000 = 0dB 000001 = -0.75dB 000010 = -1.5dB … (-0.75dB steps) 111100 = -45dB 111101 = Reserved 11111X = Reserved 4:0 AIF2DRC_KNEE _OP [4:0] 00000 AIF2 DRC Output signal at the Compressor ‘Knee’. 00000 = 0dB 00001 = -0.75dB 00010 = -1.5dB … (-0.75dB steps) 11110 = -22.5dB 11111 = Reserved R1348 (0544h) 9:5 AIF2DRC (5) AIF2DRC_KNEE 2_IP [4:0] 00000 AIF2 DRC Input signal level at the Noise Gate threshold ‘Knee2’. 00000 = -36dB 00001 = -37.5dB 00010 = -39dB … (-1.5dB steps) 11110 = -81dB 11111 = -82.5dB Only applicable when AIF2DRC_NG_ENA = 1. 4:0 AIF2DRC_KNEE 2_OP [4:0] 00000 AIF2 DRC Output signal at the Noise Gate threshold ‘Knee2’. 00000 = -30dB 00001 = -31.5dB 00010 = -33dB … (-1.5dB steps) 11110 = -75dB 11111 = -76.5dB Only applicable when AIF2DRC_KNEE2_OP_ENA = 1. Table 28 AIF2 DRC Controls w PD, August 2014, Rev 4.2 80 WM1811A Production Data RETUNETM MOBILE PARAMETRIC EQUALIZER (EQ) The ReTuneTM Mobile Parametric EQ is a circuit which can be enabled in the digital playback path of the WM1811A audio interfaces. The function of the EQ is to adjust the frequency characteristic of the output in order to compensate for unwanted frequency characteristics in the loudspeaker (or other output transducer). It can also be used to tailor the response according to user preferences, for example to accentuate or attenuate specific frequency bands to emulate different sound profiles or environments e.g. concert hall, rock etc. The WM1811A provides two stereo EQ circuits; these are associated with AIF1 and AIF2 respectively. The EQ is enabled in these signal paths using the register bits described in Table 29. REGISTER ADDRESS R1152 (0480h) BIT 0 AIF1 DAC1 EQ Gains (1) LABEL DEFAULT AIF1DAC1_EQ_E NA 0 DESCRIPTION Enable EQ in AIF1DAC playback path 0 = Disabled 1 = Enabled R1408 (0580h) AIF2 EQ Gains (1) 0 AIF2DAC_EQ_EN A 0 Enable EQ in AIF2DAC playback path 0 = Disabled 1 = Enabled Table 29 ReTuneTM Mobile Parametric EQ Enable The following description of the EQ is applicable to both EQ circuits. The associated register control fields are described in Table 31 and Table 32 for the respective EQs. The EQ provides selective control of 5 frequency bands as described below. The low frequency band (Band 1) filter can be configured either as a peak filter or a shelving filter. When configured as a shelving filter, is provides adjustable gain below the Band 1 cut-off frequency. As a peak filter, it provides adjustable gain within a defined frequency band that is centred on the Band 1 frequency. The mid frequency bands (Band 2, Band 3, Band 4) filters are peak filters, which provide adjustable gain around the respective centre frequency. The high frequency band (Band 5) filter is a shelving filter, which provides adjustable gain above the Band 5 cut-off frequency. The EQ can be configured to operate in two modes - “Default” mode or “ReTuneTM Mobile” mode.The associated register control fields are described in Table 31 and Table 32 for the respective EQs. DEFAULT MODE (5-BAND PARAMETRIC EQ) In default mode, the cut-off/centre frequencies are fixed as per Table 30. The filter bandwidths are also fixed in default mode. The gain of the individual bands (-12dB to +12dB) can be controlled as described in Table 31. The cut-off / centre frequencies noted in Table 30 are applicable to a sample rate of 48kHz. When using other sample rates, these frequencies will be scaled in proportion to the selected sample rate for the associated Audio Interface (AIF1 or AIF2). If AIF1 and AIF2 are operating at different sample rates, then the cut-off / centre frequencies will be different for the two interfaces. Note that the frequencies can be set to other values by using the features described in “ReTuneTM Mobile Mode”. w PD, August 2014, Rev 4.2 81 WM1811A Production Data EQ BAND CUT-OFF/CENTRE FREQUENCY 1 100 Hz 2 300 Hz 3 875 Hz 4 2400 Hz 5 6900 Hz Table 30 EQ Band Cut-off / Centre Frequencies REGISTER ADDRESS R1152 (0480h) BIT 15:11 AIF1 DAC1 EQ Gains (1) LABEL AIF1DAC1_EQ _B1_GAIN DEFAULT 01100 AIF1EQ Band 1 Gain (0dB) -12dB to +12dB in 1dB steps 01100 AIF1EQ Band 2 Gain (0dB) -12dB to +12dB in 1dB steps [4:0] 10:6 (see Table 33 for gain range) AIF1DAC1_EQ _B2_GAIN [4:0] 5:1 (see Table 33 for gain range) AIF1DAC1_EQ _B3_GAIN 01100 AIF1EQ Band 3 Gain (0dB) -12dB to +12dB in 1dB steps 01100 AIF1EQ Band 4 Gain (0dB) -12dB to +12dB in 1dB steps 01100 AIF1 EQ Band 5 Gain (0dB) -12dB to +12dB in 1dB steps [4:0] R1153 (0481h) 15:11 AIF1 DAC1 EQ Gains (2) (see Table 33 for gain range) AIF1DAC1_EQ _B4_GAIN [4:0] 10:6 (see Table 33 for gain range) AIF1DAC1_EQ _B5_GAIN [4:0] 0 DESCRIPTION (see Table 33 for gain range) AIF1DAC1_EQ _MODE 0 AIF1 EQ Band 1 Mode 0 = Shelving filter 1 = Peak filter Table 31 AIF1 EQ Band Gain Control REGISTER ADDRESS R1408 (0580h) BIT 15:11 AIF2 EQ Gains (1) LABEL AIF2DAC_EQ_ B1_GAIN DEFAULT 01100 AIF2 EQ Band 1 Gain (0dB) -12dB to +12dB in 1dB steps 01100 AIF2EQ Band 2 Gain (0dB) -12dB to +12dB in 1dB steps [4:0] 10:6 AIF2DAC_EQ_ B2_GAIN (see Table 33 for gain range) [4:0] 5:1 AIF2DAC_EQ_ B3_GAIN (see Table 33 for gain range) 01100 AIF2EQ Band 3 Gain (0dB) -12dB to +12dB in 1dB steps 01100 AIF2EQ Band 4 Gain (0dB) -12dB to +12dB in 1dB steps 01100 AIF2EQ Band 5 Gain (0dB) -12dB to +12dB in 1dB steps [4:0] R1409 (0581h) 15:11 AIF2 EQ Gains (2) AIF2DAC_EQ_ B4_GAIN (see Table 33 for gain range) [4:0] 10:6 AIF2DAC_EQ_ B5_GAIN (see Table 33 for gain range) [4:0] 0 AIF2DAC_EQ_ MODE DESCRIPTION (see Table 33 for gain range) 0 AIF2 EQ Band 1 Mode 0 = Shelving filter 1 = Peak filter Table 32 AIF2 EQ Band Gain Control w PD, August 2014, Rev 4.2 82 WM1811A Production Data EQ GAIN SETTING GAIN (dB) 00000 -12 00001 -11 00010 -10 00011 -9 00100 -8 00101 -7 00110 -6 00111 -5 01000 -4 01001 -3 01010 -2 01011 -1 01100 0 01101 +1 01110 +2 01111 +3 10000 +4 10001 +5 10010 +6 10011 +7 10100 +8 10101 +9 10110 +10 10111 +11 11000 +12 11001 to 11111 Reserved Table 33 EQ Gain Control Range RETUNETM MOBILE MODE ReTuneTM Mobile mode provides a comprehensive facility for the user to define the cut-off/centre frequencies and filter bandwidth for each EQ band, in addition to the gain controls already described. This enables the EQ to be accurately customised for a specific transducer characteristic or desired sound profile. The EQ enable and EQ gain controls are the same as defined for the default mode. The additional coefficients used in ReTuneTM Mobile mode are held in registers R1154 to R1172 for AIF1, and registers R1410 to R1428 for AIF2. These coefficients are derived using tools provided in Wolfson’s WISCE™ evaluation board control software. Please contact your local Wolfson representative for more details. Note that the WM1811A audio interfaces may operate at different sample rates concurrently. The EQ settings for each interface must be programmed relative to the applicable sample rate of the corresponding audio interface. If the audio interface sample rate is changed, then different EQ register settings will be required to achieve a given EQ response. w PD, August 2014, Rev 4.2 83 WM1811A Production Data EQ FILTER CHARACTERISTICS 15 15 10 10 5 5 Gain (dB) Gain (dB) The filter characteristics for each frequency band are shown in Figure 22 to Figure 26. These figures show the frequency response for all available gain settings, using default cut-off/centre frequencies and bandwidth. Note that EQ Band 1 can also be configured as a Peak Filter if required. 0 0 -5 -5 -10 -10 -15 1 10 100 1000 10000 -15 100000 1 10 Frequency (Hz) 10 10 5 5 Gain (dB) Gain (dB) 15 0 -5 -10 -10 -15 1000 100000 0 -5 100 10000 Figure 23 EQ Band 2 – Peak Filter Response 15 10 1000 Frequency (Hz) Figure 22 EQ Band 1 – Low Freq Shelf Filter Response 1 100 10000 100000 Frequency (Hz) -15 1 10 100 1000 10000 100000 Frequency (Hz) Figure 24 EQ Band 3 – Peak Filter Response Figure 25 EQ Band 4 – Peak Filter Response 15 10 Gain (dB) 5 0 -5 -10 -15 1 10 100 1000 10000 100000 Frequency (Hz) Figure 26 EQ Band 5 – High Freq Shelf Filter Response w PD, August 2014, Rev 4.2 84 WM1811A Production Data 3D STEREO EXPANSION The 3D Stereo Expansion is an audio enhancement feature which can be enabled in the digital playback path of the WM1811A audio interfaces. This feature uses configurable cross-talk mechanisms to adjust the depth or width of the stereo audio. The WM1811A provides two 3D Stereo Expansion circuits; these are associated with AIF1 and AIF2 respectively. The 3D Stereo Expansion is enabled and controlled in these signal paths using the register bits described in Table 34. REGISTER ADDRESS R1057 (0421h) BIT 13:9 AIF1 DAC1 Filters (2) LABEL AIF1DAC1_3D_G AIN DEFAULT 00000 DESCRIPTION AIF1DAC playback path 3D Stereo depth 00000 = Off 00001 = Minimum (-16dB) …(0.915dB steps) 11111 = Maximum (+11.45dB) 8 AIF1DAC1_3D_E NA 0 Enable 3D Stereo in AIF1DAC playback path 0 = Disabled 1 = Enabled R1313 (0521h) 13:9 AIF2 DAC Filters (2) AIF2DAC_3D_GA IN 00000 AIF2DAC playback path 3D Stereo depth 00000 = Off 00001 = Minimum (-16dB) …(0.915dB steps) 11111 = Maximum (+11.45dB) 8 AIF2DAC_3D_EN A 0 Enable 3D Stereo in AIF2DAC playback path 0 = Disabled 1 = Enabled Table 34 3D Stereo Expansion Control w PD, August 2014, Rev 4.2 85 WM1811A Production Data DIGITAL VOLUME AND FILTER CONTROL This section describes the digital volume and filter controls of the WM1811A AIF paths. Digital volume control and High Pass Filter (HPF) control is provided on the AIF1 and AIF2 output (digital record) paths. Note that, when ultrasonic (4FS) mode is selected on AIF1, then the digital volume control and high pass filter (HPF) control are bypassed on the respective ADC (output) signal paths. Digital volume, soft-mute and mono mix control is provided on the AIF1 and AIF2 input (digital playback) paths.A configurable noise gate function is available on each of the digital playback paths. AIF1 - OUTPUT PATH VOLUME CONTROL A digital volume control is provided on the AIF1 output signal paths, allowing attenuation in the range 71.625dB to +17.625dB in 0.375dB steps. The level of attenuation for an eight-bit code X is given by: 0.375  (X-192) dB for 1  X 239; MUTE for X = 0 +17.625dB for 239 X  255 The AIF1ADC1_VU bits control the loading of digital volume control data. When this bit is set to 0, the AIF1ADC1L_VOL and AIF1ADC1R_VOL control data will be loaded into the respective control register, but will not actually change the digital gain setting. The AIF1ADC1L_VOL and AIF1ADC1R_VOL gain settings are updated when a 1 is written to AIF1ADC1_VU. This makes it possible to update the gain of left and right channels simultaneously. REGISTER ADDRESS R1024(0400h ) BIT 8 LABEL AIF1ADC1_ VU DEFAULT N/A AIF1ADC1L _VOL [7:0] AIF1ADC output path Volume Update Writing a 1 to this bit will cause the AIF1ADC1L and AIF1ADC1R volume to be updated simultaneously AIF1 ADC1 Left Volume 7:0 DESCRIPTION C0h (0dB) AIF1ADC (Left) output path Digital Volume 00h = MUTE 01h = -71.625dB … (0.375dB steps) EFh = +17.625dB (See Table 36 for volume range) R1025 (0401h) 8 AIF1ADC1_ VU N/A Writing a 1 to this bit will cause the AIF1ADC1L and AIF1ADC1R volume to be updated simultaneously AIF1 ADC1 Right Volume 7:0 AIF1ADC1R _VOL [7:0] AIF1ADC output path Volume Update C0h (0dB) AIF1ADC (Right) output path Digital Volume 00h = MUTE 01h = -71.625dB … (0.375dB steps) EFh = +17.625dB (See Table 36 for volume range) Table 35 AIF1 Output Path Volume Control w PD, August 2014, Rev 4.2 86 WM1811A Production Data AIF1/AIF2 Output Volume Volume (dB) AIF1/AIF2 Output Volume Volume (dB) AIF1/AIF2 Output Volume Volume (dB) AIF1/AIF2 Output Volume Volume (dB) 0h 1h 2h 3h 4h 5h 6h 7h 8h 9h Ah Bh Ch Dh Eh Fh 10h 11h 12h 13h 14h 15h 16h 17h 18h 19h 1Ah 1Bh 1Ch 1Dh 1Eh 1Fh 20h 21h 22h 23h 24h 25h 26h 27h 28h 29h 2Ah 2Bh 2Ch 2Dh 2Eh 2Fh 30h 31h 32h 33h 34h 35h 36h 37h 38h 39h 3Ah 3Bh 3Ch 3Dh 3Eh 3Fh MUTE -71.625 -71.250 -70.875 -70.500 -70.125 -69.750 -69.375 -69.000 -68.625 -68.250 -67.875 -67.500 -67.125 -66.750 -66.375 -66.000 -65.625 -65.250 -64.875 -64.500 -64.125 -63.750 -63.375 -63.000 -62.625 -62.250 -61.875 -61.500 -61.125 -60.750 -60.375 -60.000 -59.625 -59.250 -58.875 -58.500 -58.125 -57.750 -57.375 -57.000 -56.625 -56.250 -55.875 -55.500 -55.125 -54.750 -54.375 -54.000 -53.625 -53.250 -52.875 -52.500 -52.125 -51.750 -51.375 -51.000 -50.625 -50.250 -49.875 -49.500 -49.125 -48.750 -48.375 40h 41h 42h 43h 44h 45h 46h 47h 48h 49h 4Ah 4Bh 4Ch 4Dh 4Eh 4Fh 50h 51h 52h 53h 54h 55h 56h 57h 58h 59h 5Ah 5Bh 5Ch 5Dh 5Eh 5Fh 60h 61h 62h 63h 64h 65h 66h 67h 68h 69h 6Ah 6Bh 6Ch 6Dh 6Eh 6Fh 70h 71h 72h 73h 74h 75h 76h 77h 78h 79h 7Ah 7Bh 7Ch 7Dh 7Eh 7Fh -48.000 -47.625 -47.250 -46.875 -46.500 -46.125 -45.750 -45.375 -45.000 -44.625 -44.250 -43.875 -43.500 -43.125 -42.750 -42.375 -42.000 -41.625 -41.250 -40.875 -40.500 -40.125 -39.750 -39.375 -39.000 -38.625 -38.250 -37.875 -37.500 -37.125 -36.750 -36.375 -36.000 -35.625 -35.250 -34.875 -34.500 -34.125 -33.750 -33.375 -33.000 -32.625 -32.250 -31.875 -31.500 -31.125 -30.750 -30.375 -30.000 -29.625 -29.250 -28.875 -28.500 -28.125 -27.750 -27.375 -27.000 -26.625 -26.250 -25.875 -25.500 -25.125 -24.750 -24.375 80h 81h 82h 83h 84h 85h 86h 87h 88h 89h 8Ah 8Bh 8Ch 8Dh 8Eh 8Fh 90h 91h 92h 93h 94h 95h 96h 97h 98h 99h 9Ah 9Bh 9Ch 9Dh 9Eh 9Fh A0h A1h A2h A3h A4h A5h A6h A7h A8h A9h AAh ABh ACh ADh AEh AFh B0h B1h B2h B3h B4h B5h B6h B7h B8h B9h BAh BBh BCh BDh BEh BFh -24.000 -23.625 -23.250 -22.875 -22.500 -22.125 -21.750 -21.375 -21.000 -20.625 -20.250 -19.875 -19.500 -19.125 -18.750 -18.375 -18.000 -17.625 -17.250 -16.875 -16.500 -16.125 -15.750 -15.375 -15.000 -14.625 -14.250 -13.875 -13.500 -13.125 -12.750 -12.375 -12.000 -11.625 -11.250 -10.875 -10.500 -10.125 -9.750 -9.375 -9.000 -8.625 -8.250 -7.875 -7.500 -7.125 -6.750 -6.375 -6.000 -5.625 -5.250 -4.875 -4.500 -4.125 -3.750 -3.375 -3.000 -2.625 -2.250 -1.875 -1.500 -1.125 -0.750 -0.375 C0h C1h C2h C3h C4h C5h C6h C7h C8h C9h CAh CBh CCh CDh CEh CFh D0h D1h D2h D3h D4h D5h D6h D7h D8h D9h DAh DBh DCh DDh DEh DFh E0h E1h E2h E3h E4h E5h E6h E7h E8h E9h EAh EBh ECh EDh EEh EFh F0h F1h F2h F3h F4h F5h F6h F7h F8h F9h FAh FBh FCh FDh FEh FFh 0.000 0.375 0.750 1.125 1.500 1.875 2.250 2.625 3.000 3.375 3.750 4.125 4.500 4.875 5.250 5.625 6.000 6.375 6.750 7.125 7.500 7.875 8.250 8.625 9.000 9.375 9.750 10.125 10.500 10.875 11.250 11.625 12.000 12.375 12.750 13.125 13.500 13.875 14.250 14.625 15.000 15.375 15.750 16.125 16.500 16.875 17.250 17.625 17.625 17.625 17.625 17.625 17.625 17.625 17.625 17.625 17.625 17.625 17.625 17.625 17.625 17.625 17.625 17.625 Table 36 AIF1 Output Path Digital Volume Range w PD, August 2014, Rev 4.2 87 WM1811A Production Data AIF1 - OUTPUT PATH HIGH PASS FILTER A digital high-pass filter can be enabled in the AIF1 output paths to remove DC offsets. This filter is enabled independently on each output channel using the register bits described in Table 37. The HPF cut-off frequency for the AIF1 channels is set using AIF1ADC1_HPF_CUT. In hi-fi mode, the high pass filter is optimised for removing DC offsets without degrading the bass response and has a cut-off frequency of 3.7Hz when the sample rate (fs) = 44.1kHz. In voice modes, the high pass filter is optimised for voice communication; it is recommended to set the cut-off frequency below 300Hz. Note that the cut-off frequencies scale with the AIF1 sample rate. (The AIF1 sample rate is set using the AIF1_SR register, as described in the “Clocking and Sample Rates” section.) See Table 38 for the HPF cut-off frequencies at all supported sample rates. REGISTER ADDRESS R1040 (0410h) BIT 14:13 AIF1 ADC1 Filters LABEL DEFAULT AIF1ADC1_ HPF_CUT [1:0] 00 DESCRIPTION AIF1ADC output path Digital HPF cut-off frequency (fc) 00 = Hi-fi mode (fc = 4Hz at fs = 48kHz) 01 = Voice mode 1 (fc = 64Hz at fs = 8kHz) 10 = Voice mode 2 (fc = 130Hz at fs = 8kHz) 11 = Voice mode 3 (fc = 267Hz at fs = 8kHz) 12 AIF1ADC1L_ HPF 0 AIF1ADC (Left) output path Digital HPF Enable 0 = Disabled 1 = Enabled 11 AIF1ADC1R _HPF 0 AIF1ADC (Right) output path Digital HPF Enable 0 = Disabled 1 = Enabled Table 37 AIF1 Output Path High Pass Filter Sample Frequency (kHz) Cut-Off Frequency (Hz) for given value of AIF1ADC1_HPF_CUT or AIF2ADC_HPF_CUT 00 01 64 10 11 130 267 8.000 0.7 11.025 0.9 88 178 367 16.000 1.3 127 258 532 22.050 1.9 175 354 733 24.000 2.0 190 386 798 32.000 2.7 253 514 1063 44.100 3.7 348 707 1464 48.000 4.0 379 770 1594 88.200 7.4 696 1414 2928 96.000 8.0 758 1540 3188 Table 38 AIF1 Output Path High Pass Filter Cut-Off Frequencies w PD, August 2014, Rev 4.2 88 WM1811A Production Data AIF1 - INPUT PATH VOLUME CONTROL A digital volume control is provided on the AIF1 input signal paths, allowing attenuation in the range 71.625dB to 0dB in 0.375dB steps. The level of attenuation for an eight-bit code X is given by: 0.375  (X-192) dB for 1  X  192; MUTE for X = 0 0dB for 192  X  255 The AIF1DAC1_VU bits control the loading of digital volume control data. When this bit is set to 0, the AIF1DAC1L_VOL and AIF1DAC1R_VOLcontrol data will be loaded into the respective control register, but will not actually change the digital gain setting. The AIF1DAC1L_VOL and AIF1DAC1R_VOLgain settings are updated when a 1 is written to AIF1DAC1_VU. This makes it possible to update the gain of left and right channels simultaneously. Note that a digital gain function is also available at the audio interface input, to boost the DAC volume when a small signal is received on DACDAT1. See “Digital Audio Interface Control” for further details. Digital volume control is also possible within the digital core functions, after the audio signal has passed through the DAC output digital mixers or AIF2 output digital mixers. See “Digital Mixing” for further details. REGISTER ADDRESS R1026 (0402h) BIT 8 LABEL DEFAULT AIF1DAC1_ VU N/A AIF1DAC1L _VOL [7:0] AIF1DAC input path Volume Update Writing a 1 to this bit will cause the AIF1DAC1L and AIF1DAC1R volume to be updated simultaneously AIF1 DAC1 Left Volume 7:0 DESCRIPTION C0h (0dB) AIF1DAC (Left) input path Digital Volume 00h = MUTE 01h = -71.625dB … (0.375dB steps) C0h = 0dB FFh = 0dB (See Table 40for volume range) R1027 (0403h) 8 AIF1DAC1_ VU N/A Writing a 1 to this bit will cause the AIF1DAC1L and AIF1DAC1R volume to be updated simultaneously AIF1 DAC1 Right Volume 7:0 AIF1DAC1R _VOL [7:0] AIF1DAC input path Volume Update C0h (0dB) AIF1DAC (Right) input path Digital Volume 00h = MUTE 01h = -71.625dB … (0.375dB steps) C0h = 0dB FFh = 0dB (See Table 40for volume range) Table 39 AIF1 Input Path Volume Control w PD, August 2014, Rev 4.2 89 WM1811A Production Data AIF1/AIF2 Input Volume Volume (dB) AIF1/AIF2 Input Volume Volume (dB) AIF1/AIF2 Input Volume Volume (dB) AIF1/AIF2 Input Volume Volume (dB) 0h 1h 2h 3h 4h 5h 6h 7h 8h 9h Ah Bh Ch Dh Eh Fh 10h 11h 12h 13h 14h 15h 16h 17h 18h 19h 1Ah 1Bh 1Ch 1Dh 1Eh 1Fh 20h 21h 22h 23h 24h 25h 26h 27h 28h 29h 2Ah 2Bh 2Ch 2Dh 2Eh 2Fh 30h 31h 32h 33h 34h 35h 36h 37h 38h 39h 3Ah 3Bh 3Ch 3Dh 3Eh 3Fh MUTE -71.625 -71.250 -70.875 -70.500 -70.125 -69.750 -69.375 -69.000 -68.625 -68.250 -67.875 -67.500 -67.125 -66.750 -66.375 -66.000 -65.625 -65.250 -64.875 -64.500 -64.125 -63.750 -63.375 -63.000 -62.625 -62.250 -61.875 -61.500 -61.125 -60.750 -60.375 -60.000 -59.625 -59.250 -58.875 -58.500 -58.125 -57.750 -57.375 -57.000 -56.625 -56.250 -55.875 -55.500 -55.125 -54.750 -54.375 -54.000 -53.625 -53.250 -52.875 -52.500 -52.125 -51.750 -51.375 -51.000 -50.625 -50.250 -49.875 -49.500 -49.125 -48.750 -48.375 40h 41h 42h 43h 44h 45h 46h 47h 48h 49h 4Ah 4Bh 4Ch 4Dh 4Eh 4Fh 50h 51h 52h 53h 54h 55h 56h 57h 58h 59h 5Ah 5Bh 5Ch 5Dh 5Eh 5Fh 60h 61h 62h 63h 64h 65h 66h 67h 68h 69h 6Ah 6Bh 6Ch 6Dh 6Eh 6Fh 70h 71h 72h 73h 74h 75h 76h 77h 78h 79h 7Ah 7Bh 7Ch 7Dh 7Eh 7Fh -48.000 -47.625 -47.250 -46.875 -46.500 -46.125 -45.750 -45.375 -45.000 -44.625 -44.250 -43.875 -43.500 -43.125 -42.750 -42.375 -42.000 -41.625 -41.250 -40.875 -40.500 -40.125 -39.750 -39.375 -39.000 -38.625 -38.250 -37.875 -37.500 -37.125 -36.750 -36.375 -36.000 -35.625 -35.250 -34.875 -34.500 -34.125 -33.750 -33.375 -33.000 -32.625 -32.250 -31.875 -31.500 -31.125 -30.750 -30.375 -30.000 -29.625 -29.250 -28.875 -28.500 -28.125 -27.750 -27.375 -27.000 -26.625 -26.250 -25.875 -25.500 -25.125 -24.750 -24.375 80h 81h 82h 83h 84h 85h 86h 87h 88h 89h 8Ah 8Bh 8Ch 8Dh 8Eh 8Fh 90h 91h 92h 93h 94h 95h 96h 97h 98h 99h 9Ah 9Bh 9Ch 9Dh 9Eh 9Fh A0h A1h A2h A3h A4h A5h A6h A7h A8h A9h AAh ABh ACh ADh AEh AFh B0h B1h B2h B3h B4h B5h B6h B7h B8h B9h BAh BBh BCh BDh BEh BFh -24.000 -23.625 -23.250 -22.875 -22.500 -22.125 -21.750 -21.375 -21.000 -20.625 -20.250 -19.875 -19.500 -19.125 -18.750 -18.375 -18.000 -17.625 -17.250 -16.875 -16.500 -16.125 -15.750 -15.375 -15.000 -14.625 -14.250 -13.875 -13.500 -13.125 -12.750 -12.375 -12.000 -11.625 -11.250 -10.875 -10.500 -10.125 -9.750 -9.375 -9.000 -8.625 -8.250 -7.875 -7.500 -7.125 -6.750 -6.375 -6.000 -5.625 -5.250 -4.875 -4.500 -4.125 -3.750 -3.375 -3.000 -2.625 -2.250 -1.875 -1.500 -1.125 -0.750 -0.375 C0h C1h C2h C3h C4h C5h C6h C7h C8h C9h CAh CBh CCh CDh CEh CFh D0h D1h D2h D3h D4h D5h D6h D7h D8h D9h DAh DBh DCh DDh DEh DFh E0h E1h E2h E3h E4h E5h E6h E7h E8h E9h EAh EBh ECh EDh EEh EFh F0h F1h F2h F3h F4h F5h F6h F7h F8h F9h FAh FBh FCh FDh FEh FFh 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 Table 40 AIF1 Input Path Digital Volume Range w PD, August 2014, Rev 4.2 90 WM1811A Production Data AIF1 - INPUT PATH SOFT MUTE CONTROL The WM1811A provides a soft mute function for the AIF1 input paths. When the mute function is selected, the WM1811A gradually attenuates the associated signal paths until the path is entirely muted. When the mute function is de-selected, the gain will either return instantly to the digital gain setting, or will gradually ramp back to the digital gain setting, depending on the AIF1DAC1_UNMUTE_RAMP register field. The mute and un-mute ramp rate is selectable between two different rates. The AIF1 input paths are soft-muted by default. To play back an audio signal, the soft-mute must first be de-selected by setting AIF1DAC1_MUTE = 0. The soft un-mute would typically be used during playback of audio data so that when the Mute is subsequently disabled, a smooth transition is scheduled to the previous volume level and pop noise is avoided. This is desirable when resuming playback after pausing during a track. The soft un-mute would typically not be required when un-muting at the start of a music file, in order that the first part of the music track is not attenuated. The instant un-mute behaviour is desirable in this case, when starting playback of a new track. See “Digital Volume Soft Mute and Soft Un-Mute” (Figure 19) for an illustration of the soft mute function. REGISTER ADDRESS R1056 (0420h) BIT 9 AIF1 DAC1 Filters (1) LABEL DEFAULT AIF1DAC1_ MUTE 1 AIF1DAC1_ MUTERAT E 0 DESCRIPTION AIF1DAC input path Soft Mute Control 0 = Un-mute 1 = Mute 5 AIF1DAC input path Soft Mute Ramp Rate 0 = Fast ramp (fs/2, maximum ramp time is 10.7ms at fs=48k) 1 = Slow ramp (fs/32, maximum ramp time is 171ms at fs=48k) (Note: ramp rate scales with sample rate.) 4 AIF1DAC1_ UNMUTE_ RAMP 0 AIF1DAC input path Unmute Ramp select 0 = Unmuting the AIF1DAC path (AIF1DAC1_MUTE=0) will immediately apply the AIF1DAC1L_VOL and AIF1DAC1R_VOL settings. 1 = Unmuting the AIF1DAC path (AIF1DAC1_MUTE=0) will cause a gradual volume ramp up to the AIF1DAC1L_VOL and AIF1DAC1R_VOL settings. Table 41 AIF1 Input Path Soft Mute Control AIF1 - INPUT PATH NOISE GATE CONTROL The WM1811A provides a digital noise gate function for the AIF1 input paths. The noise gate ensures best noise performance when the signal path is idle. When the noise gate is enabled, and the signal level is below the noise gate threshold, then the noise gate is activated, causing the signal path to be muted. The AIF1 input path noise gate is enabled using the AIF1DAC1_NG_ENA register. The noise gate threshold (the signal level below which the noise gate is activated) is set using AIF1DAC1_NG_THR. To prevent erroneous triggering, a time delay is applied before the gate is activated; the signal path is only muted when the signal level stays below the threshold for longer than ‘hold time’, determined by the AIF1DAC1_NG_HLD register. w PD, August 2014, Rev 4.2 91 WM1811A Production Data When the noise gate is activated, the WM1811A gradually attenuates the AIF1 input signal paths until each is entirely muted. When the signal level increases, and the noise gate is de-activated, the gain will return to the AIF1DAC1L_VOL and AIF1DAC1R_VOL digital gain settings. The un-mute behaviour can be immediate or gradual; this is determined by the AIF1DAC1_MUTERATE and AIF1DAC1_UNMUTE_RAMP registers described in Table 41. REGISTER ADDRESS R1072 (0430h) BIT 6:5 AIF1 DAC1 Noise Gate LABEL AIF1DAC1_ NG_HLD [1:0] DEFAULT 11 DESCRIPTION AIF1DAC input path Noise Gate Hold Time (delay before noise gate is activated) 00 = 30ms 01 = 125ms 10 = 250ms 11 = 500ms 3:1 AIF1DAC1_ NG_THR [2:0] 100 AIF1DAC input path Noise Gate Threshold 000 = -60dB 001 = -66dB 010 = -72dB 011 = -78dB 100 = -84dB 101 = -90dB 110 = -96dB 111 = -102dB 0 AIF1DAC1_ NG_ENA 0 AIF1DAC input path Noise Gate Enable 0 = Disabled 1 = Enabled Table 42 AIF1 Input Path Noise Gate Control AIF1 - INPUT PATH MONO MIX CONTROL A digital mono mix can be selected on the AIF1 input channels. The mono mix is generated as the sum of the Left and Right AIF channel data. When the mono mix function is enabled, the combined mono signal is applied to the Left channel and the Right channel of the AIF1 signal processing and digital mixing paths. To prevent clipping, 6dB attenuation is applied to the mono mix. REGISTER ADDRESS R1056 (0420h) AIF1 DAC1 Filters (1) BIT 7 LABEL DEFAULT AIF1DAC1_ MONO 0 DESCRIPTION AIF1DAC input path Mono Mix Control 0 = Disabled 1 = Enabled Table 43 AIF1 Input Path Mono Mix Control AIF2 - OUTPUT PATH VOLUME CONTROL A digital volume control is provided on the AIF2 output signal paths, allowing attenuation in the range 71.625dB to +17.625dB in 0.375dB steps. The level of attenuation for an eight-bit code X is given by: 0.375  (X-192) dB for 1  X  239; MUTE for X = 0 +17.625dB for 239 X  255 The AIF2ADC_VU bits control the loading of digital volume control data. When this bit is set to 0, the AIF2ADCL_VOL and AIF2ADCR_VOL control data will be loaded into the respective control register, but will not actually change the digital gain setting. The AIF2ADCL_VOL and AIF2ADCR_VOL gain settings are updated when a 1 is written to AIF2ADC_VU. This makes it possible to update the gain of left and right channels simultaneously. Digital volume control is also possible within the digital core functions, after the audio signal has passed through the AIF2 output digital mixers. See “Digital Mixing” for further details. w PD, August 2014, Rev 4.2 92 WM1811A Production Data REGISTER ADDRESS R1280 (0500h) BIT 8 LABEL AIF2ADC_V U DEFAULT N/A AIF2ADCL_ VOL [7:0] AIF2ADC output path Volume Update Writing a 1 to this bit will cause the AIF2ADCL and AIF2ADCR volume to be updated simultaneously AIF2 ADC Left Volume 7:0 DESCRIPTION C0h (0dB) AIF2ADC (Left) output path Digital Volume 00h = MUTE 01h = -71.625dB … (0.375dB steps) EFh = +17.625dB (See Table 36 for volume range) R1281 (0501h) 8 AIF2ADC_V U N/A Writing a 1 to this bit will cause the AIF2ADCL and AIF2ADCR volume to be updated simultaneously AIF2 ADC Right Volume 7:0 AIF2ADCR_ VOL [7:0] AIF2ADC output path Volume Update C0h (0dB) AIF2ADC (Right) output path Digital Volume 00h = MUTE 01h = -71.625dB … (0.375dB steps) EFh = +17.625dB (See Table 36 for volume range) Table 44 AIF2 Output Path Volume Control AIF2 - OUTPUT PATH HIGH PASS FILTER A digital high-pass filter can be enabled in the AIF2 output paths to remove DC offsets. This filter is enabled independently on each output channel using the register bits described inTable 45. The HPF cut-off frequency for the AIF2 channels is set using AIF2ADC_HPF_CUT. In hi-fi mode, the high pass filter is optimised for removing DC offsets without degrading the bass response and has a cut-off frequency of 3.7Hz when the sample rate (fs) = 44.1kHz. In voice modes, the high pass filter is optimised for voice communication; it is recommended to set the cut-off frequency below 300Hz. Note that the cut-off frequencies scale with the AIF2 sample rate. (The AIF2 sample rate is set using the AIF2_SR register, as described in the “Clocking and Sample Rates” section.) See Table 38 for the HPF cut-off frequencies at all supported sample rates. REGISTER ADDRESS BIT LABEL R1296(0510h) 14:13 AIF2ADC_ HPF_CUT [1:0] AIF2ADC Filters DEFAULT 00 DESCRIPTION AIF2ADC output path Digital HPF Cut-Off Frequency (fc) 00 = Hi-fi mode (fc = 4Hz at fs = 48kHz) 01 = Voice mode 1 (fc = 127Hz at fs = 8kHz) 10 = Voice mode 2 (fc = 130Hz at fs = 8kHz) 11 = Voice mode 3 (fc = 267Hz at fs = 8kHz) 12 AIF2ADCL_ HPF 0 AIF2ADC (Left) output path Digital HPF Enable 0 = Disabled 1 = Enabled 11 AIF2ADCR _HPF 0 AIF2ADC (Right) output path Digital HPF Enable 0 = Disabled 1 = Enabled Table 45 AIF2 Output Path High Pass Filter w PD, August 2014, Rev 4.2 93 WM1811A Production Data AIF2 - INPUT PATH VOLUME CONTROL A digital volume control is provided on the AIF2 input signal paths, allowing attenuation in the range 71.625dB to 0dB in 0.375dB steps. The level of attenuation for an eight-bit code X is given by: 0.375  (X-192) dB for 1  X  192; MUTE for X = 0 0dB for 192  X  255 The AIF2DAC_VU bits control the loading of digital volume control data. When this bit is set to 0, the AIF2DACL_VOL and AIF2DACR_VOL control data will be loaded into the respective control register, but will not actually change the digital gain setting. The AIF2DACL_VOL and AIF2DACR_VOL gain settings are updated when a 1 is written to AIF2DAC_VU. This makes it possible to update the gain of left and right channels simultaneously. Note that a digital gain function is also available at the audio interface input, to boost the DAC volume when a small signal is received on DACDAT2. See “Digital Audio Interface Control” for further details. Digital volume control is also possible within the digital core functions, after the audio signal has passed through the DAC output digital mixers or AIF2 output digital mixers. See “Digital Mixing” for further details. REGISTER ADDRESS R1282 (0502h) BIT 8 LABEL DEFAULT AIF2DAC_V U N/A AIF2DACL_ VOL [7:0] AIF2DAC input path Volume Update Writing a 1 to this bit will cause the AIF2DACL and AIF2DACR volume to be updated simultaneously AIF2 DAC Left Volume 7:0 DESCRIPTION C0h (0dB) AIF2DAC (Left) input path Digital Volume 00h = MUTE 01h = -71.625dB … (0.375dB steps) C0h = 0dB FFh = 0dB (See Table 40 for volume range) R1283 (0503h) 8 AIF2DAC_V U N/A Writing a 1 to this bit will cause the AIF2DACL and AIF2DACR volume to be updated simultaneously AIF2 DAC Right Volume 7:0 AIF2DACR_ VOL [7:0] AIF2DAC input path Volume Update C0h (0dB) AIF2DAC (Right) input path Digital Volume 00h = MUTE 01h = -71.625dB … (0.375dB steps) C0h = 0dB FFh = 0dB (See Table 40 for volume range) Table 46 AIF2 Input Path Volume Control w PD, August 2014, Rev 4.2 94 WM1811A Production Data AIF2 - INPUT PATH SOFT MUTE CONTROL The WM1811A provides a soft mute function for the AIF2input paths. When the mute function is selected, the WM1811A gradually attenuates the associated signal paths until the path is entirely muted. When the mute function is de-selected, the gain will either return instantly to the digital gain setting, or will gradually ramp back to the digital gain setting, depending on the AIF2DAC_UNMUTE_RAMP register field. The mute and un-mute ramp rate is selectable between two different rates. The AIF2input paths are soft-muted by default. To play back an audio signal, the soft-mute must first be de-selected by setting AIF2DAC_MUTE = 0. The soft un-mute would typically be used during playback of audio data so that when the Mute is subsequently disabled, a smooth transition is scheduled to the previous volume level and pop noise is avoided. This is desirable when resuming playback after pausing during a track. The soft un-mute would typically not be required when un-muting at the start of a music file, in order that the first part of the music track is not attenuated. The instant un-mute behaviour is desirable in this case, when starting playback of a new track. See “Digital Volume Soft Mute and Soft Un-Mute” (Figure 19) for an illustration of the soft mute function. REGISTER ADDRESS R1312 (0520h) BIT 9 AIF2 DAC Filters (1) LABEL DEFAULT AIF2DAC_ MUTE 1 AIF2DAC_ MUTERAT E 0 DESCRIPTION AIF2DAC input path Soft Mute Control 0 = Un-mute 1 = Mute 5 AIF2DAC input path Soft Mute Ramp Rate 0 = Fast ramp (fs/2, maximum ramp time is 10.7ms at fs=48k) 1 = Slow ramp (fs/32, maximum ramp time is 171ms at fs=48k) (Note: ramp rate scales with sample rate.) 4 AIF2DAC_ UNMUTE_ RAMP 0 AIF2DAC input path Unmute Ramp select 0 = Unmuting the AIF2DAC path (AIF2DAC_MUTE=0) will immediately apply the AIF2DACL_VOL and AIF2DACR_VOL settings. 1 = Unmuting the AIF2DAC path (AIF2DAC_MUTE=0) will cause a gradual volume ramp up to the AIF2DACL_VOL and AIF2DACR_VOL settings. Table 47 AIF2 Input Path Soft Mute Control w PD, August 2014, Rev 4.2 95 WM1811A Production Data AIF2 - INPUT PATH NOISE GATE CONTROL The WM1811A provides a digital noise gate function for the AIF2 input paths. The noise gate ensures best noise performance when the signal path is idle. When the noise gate is enabled, and the signal level is below the noise gate threshold, then the noise gate is activated, causing the signal path to be muted. The AIF2 input path noise gate is enabled using the AIF2DAC_NG_ENA register. The noise gate threshold (the signal level below which the noise gate is activated) is set using AIF2DAC_NG_THR. To prevent erroneous triggering, a time delay is applied before the gate is activated; the signal path is only muted when the signal level stays below the threshold for longer than ‘hold time’, determined by the AIF2DAC_NG_HLD register. When the noise gate is activated, the WM1811A gradually attenuates the AIF2 input signal paths until each is entirely muted. When the signal level increases, and the noise gate is de-activated, the gain will return to the AIF2DACL_VOL and AIF2DACR_VOL digital gain settings. The un-mute behaviour can be immediate or gradual; this is determined by the AIF2DAC_MUTERATE and AIF2DAC_UNMUTE_RAMP registers described in Table 47. REGISTER ADDRESS R1328 (0530h) BIT 6:5 AIF2 DAC Noise Gate LABEL AIF2DAC_ NG_HLD [1:0] DEFAULT 11 DESCRIPTION AIF2DAC input path Noise Gate Hold Time (delay before noise gate is activated) 00 = 30ms 01 = 125ms 10 = 250ms 11 = 500ms 3:1 AIF2DAC_ NG_THR [2:0] 100 AIF2DAC input path Noise Gate Threshold 000 = -60dB 001 = -66dB 010 = -72dB 011 = -78dB 100 = -84dB 101 = -90dB 110 = -96dB 111 = -102dB 0 AIF2DAC_ NG_ENA AIF2DAC input path Noise Gate Enable 0 0 = Disabled 1 = Enabled Table 48 AIF2 Input Path Noise Gate Control AIF2- INPUT PATH MONO MIX CONTROL A digital mono mix can be selected on theAIF2input channels. The mono mix is generated as the sum of the Left and Right AIF channel data. When the mono mix function is enabled, the combined mono signal is applied to the Left channel and the Right channel of the AIF2 signal processing and digital mixing paths. To prevent clipping, 6dB attenuation is applied to the mono mix. REGISTER ADDRESS R1312(0520h) AIF2DAC Filters (1) BIT 7 LABEL DEFAULT AIF2DAC_ MONO 0 DESCRIPTION AIF2DAC input path Mono Mix Control 0 = Disabled 1 = Enabled Table 49 AIF2 Input Path Mono Mix Control w PD, August 2014, Rev 4.2 96 WM1811A Production Data DIGITAL TO ANALOGUE CONVERTER (DAC) The WM1811A DACs receive digital input data from the DAC mixers - see “Digital Mixing”. The digital audio data is converted to oversampled bit streams in the on-chip, true 24-bit digital interpolation filters. The bitstream data enters two multi-bit, sigma-delta DACs, which convert them to high quality analogue audio signals. The multi-bit DAC architecture reduces high frequency noise and sensitivity to clock jitter. It also uses a Dynamic Element Matching technique for high linearity and low distortion. A high performance mode of DAC operation can be selected by setting the DAC_OSR128 bit - see “Clocking and Sample Rates” for details. The analogue outputs from the DACs can be mixed with analogue line/mic inputs using the line output mixers MIXOUTL / MIXOUTR and the speaker output mixers SPKMIXL / SPKMIXR. The DACs are enabled using the register bits defined in Table 50. Note that the DAC clock must be enabled whenever the DACs are enabled. REGISTER ADDRESS R5 (0005h) BIT 1 Power Management (5) LABEL DEFAULT DAC1L_EN A 0 DAC1R_EN A 0 DESCRIPTION Left DAC Enable 0 = Disabled 1 = Enabled 0 Right DAC Enable 0 = Disabled 1 = Enabled Table 50 DAC Enable Control DAC CLOCKING CONTROL Clocking for the DACs is derived from SYSCLK.The required clock is enabled when the SYSDSPCLK_ENA register is set. The DAC clock rate is configured automatically, according to the AIFn_SR, AIFnCLK_RATE and DAC_OSR128 registers. (See “Clocking and Sample Rates” for further details of the system clocks and control registers.) When AIF1CLK is selected as the SYSCLK source (SYSCLK_SRC = 0), then the DAC clocking is controlled by the AIF1_SR and AIF1CLK_RATE registers. When AIF2CLK is selected as the SYSCLK source (SYSCLK_SRC = 1), then the DAC clocking is controlled by the AIF2_SR and AIF2CLK_RATE registers. The supported DAC clocking configurations are described in Table 51 (for DAC_OSR128=0) and Table 52 (for DAC_OSR128=1). Under default conditions, the DAC_OSR128 bit is not set. w PD, August 2014, Rev 4.2 97 WM1811A Production Data SAMPLE RATE (kHz) SYSCLK RATE (AIFnCLK / fs ratio) 128 192 256 384 512 768 1024 1536       Note 1       8 11.025 12 Note 1     16 Note 1 Note 1     22.05 Note 1 Note 1    24 Note 1 Note 1    32 Note 1 Note 1   44.1 Note 1 Note 1  48 Note 1 Note 1  88.2 Note 1 96 Note 1 When DAC_OSR128=0, DAC operation is only supported for the configurations indicated above Table 51 DAC Clocking - DAC_OSR128 = 0 (Default) SAMPLE RATE (kHz) SYSCLK RATE (AIFnCLK / fs ratio) 128 192 256 384 8 11.025 12 16 512 768 1024 1536                 22.05 Note 1    24 Note 1     32 Note 1 Note 1  44.1 Note 1 Note 1  48 Note 1 Note 1  88.2 Note 1 96 Note 1 When DAC_OSR128=1, DAC operation is only supported for the configurations indicated above Table 52 DAC Clocking - DAC_OSR128 = 1 Note 1 - These clocking rates are only supported for ‘simple’ DAC-only playback modes, under the following conditions:  AIF input is enabled on a single interface (AIF1 or AIF2) only, or is enabled on AIF1 and AIF2 simultaneously provided AIF1 and AIF2 are synchronised (ie. AIF1CLK_SRC = AIF2CLK_SRC)  All AIF output paths are disabled  All DSP functions (ReTune™ Mobile Parametric Equaliser, 3D stereo expansion and Dynamic Range Control) are disabled The clocking requirements in Table 51 and Table 52 are only applicable to the AIFnCLK that is selected as the SYSCLK source. Note that both clocks (AIF1CLK and AIF2CLK) must satisfy the requirements noted in the “Clocking and Sample Rates” section. The applicable clocks (SYSCLK, and AIF1CLK or AIF2CLK) must be present and enabled when using the Digital to Analogue Converters (DACs). Note that the presence of a suitable clock is automatically detected by the WM1811A; if the clock signal is absent, then any speaker or earpiece output driver(s) associated with the DAC signal paths will be disabled. (This is applicable to the SPKOUTL, SPKOUTR and HPOUT2 outputs only, whenever one or more DAC is routed to these output drivers.) w PD, August 2014, Rev 4.2 98 WM1811A Production Data ANALOGUE OUTPUT SIGNAL PATH The WM1811A output routing and mixers provide a high degree of flexibility, allowing operation of many simultaneous signal paths through the device to a variety of analogue outputs. The outputs include a ground referenced headphone driver, two Class D loudspeaker drivers, an ear speaker driver and four highly flexible line drivers. See “Analogue Outputs” for further details of these outputs. The WM1811A output signal paths and control registers are illustrated in Figure 27. LINEOUTFB HPOUT1FB Figure 27 Control Registers for Output Signal Path w PD, August 2014, Rev 4.2 99 WM1811A Production Data OUTPUT SIGNAL PATHS ENABLE The output mixers and drivers can be independently enabled and disabled as described in Table 53. The supply rails for headphone outputs HPOUT1L and HPOUT1R are generated using an integrated dual-mode Charge Pump, which must be enabled whenever the headphone outputs are used. See the “Charge Pump” section for details on enabling and configuring this circuit. Note that the Headphone Outputs are also controlled by fields located within Register R96, which provide suppression of pops & clicks when enabling and disabling the HPOUT1L and HPOUT1R signal paths. These registers are described in the following “Headphone Signal Paths Enable” section. For normal operation of the output signal paths, the reference voltage VMID and the bias current must also be enabled. See “Reference Voltages and Master Bias” for details of the associated controls VMID_SEL and BIAS_ENA. REGISTER ADDRESS R1 (0001h) BIT 13 LABEL SPKOUTR_ENA DEFAULT 0 Power Management (1) DESCRIPTION SPKMIXR Mixer, SPKRVOL PGA and SPKOUTR Output Enable 0 = Disabled 1 = Enabled 12 SPKOUTL_ENA 0 SPKMIXL Mixer, SPKLVOL PGA and SPKOUTL Output Enable 0 = Disabled 1 = Enabled 11 HPOUT2_ENA 0 HPOUT2 Output Stage Enable 0 = Disabled 1 = Enabled 9 HPOUT1L_ENA 0 Enables HPOUT1L input stage 0 = Disabled 1 = Enabled For normal operation, this bit should be set as the first step of the HPOUT1L Enable sequence. 8 HPOUT1R_ENA 0 Enables HPOUT1R input stage 0 = Disabled 1 = Enabled For normal operation, this bit should be set as the first step of the HPOUT1R Enable sequence. R3 (0003h) 13 LINEOUT1N_ENA 0 Power Management (3) LINEOUT1N Line Out and LINEOUT1NMIX Enable 0 = Disabled 1 = Enabled 12 LINEOUT1P_ENA 0 LINEOUT1P Line Out and LINEOUT1PMIX Enable 0 = Disabled 1 = Enabled 11 LINEOUT2N_ENA 0 LINEOUT2N Line Out and LINEOUT2NMIX Enable 0 = Disabled 1 = Enabled 10 LINEOUT2P_ENA 0 LINEOUT2P Line Out and LINEOUT2PMIX Enable 0 = Disabled 1 = Enabled w PD, August 2014, Rev 4.2 100 WM1811A Production Data REGISTER ADDRESS BIT 9 LABEL SPKRVOL_ENA DEFAULT 0 DESCRIPTION SPKMIXR Mixer and SPKRVOL PGA Enable 0 = Disabled 1 = Enabled Note that SPKMIXR and SPKRVOL are also enabled when SPKOUTR_ENA is set. 8 SPKLVOL_ENA 0 SPKMIXL Mixer and SPKLVOL PGA Enable 0 = Disabled 1 = Enabled Note that SPKMIXL and SPKLVOL are also enabled when SPKOUTL_ENA is set. 7 MIXOUTLVOL_ENA 0 MIXOUTL Left Volume Control Enable 0 = Disabled 1 = Enabled 6 MIXOUTRVOL_ENA 0 MIXOUTR Right Volume Control Enable 0 = Disabled 1 = Enabled 5 MIXOUTL_ENA 0 MIXOUTL Left Output Mixer Enable 0 = Disabled 1 = Enabled 4 MIXOUTR_ENA 0 MIXOUTR Right Output Mixer Enable 0 = Disabled 1 = Enabled R56 (0038h) 6 HPOUT2_IN_ENA AntiPOP (1) 0 HPOUT2MIX Mixer and Input Stage Enable 0 = Disabled 1 = Enabled Table 53 Output Signal Paths Enable HEADPHONE SIGNAL PATHS ENABLE The HPOUT1L and HPOUT1R output paths can be actively discharged to AGND through internal resistors if desired. This is desirable at start-up in order to achieve a known output stage condition prior to enabling the VMID reference voltage. This is also desirable in shutdown to prevent the external connections from being affected by the internal circuits. The HPOUT1L and HPOUT1R outputs are shorted to AGND by default; the short circuit is removed on each of these paths by setting the applicable fields HPOUT1L_RMV_SHORT or HPOUT1R_RMV_SHORT. The ground-referenced Headphone output drivers are designed to suppress pops and clicks when enabled or disabled. However, it is necessary to control the drivers in accordance with a defined sequence in start-up and shutdown to achieve the pop suppression. It is also necessary to schedule the DC Servo offset correction at the appropriate point in the sequence (see “DC Servo”). w PD, August 2014, Rev 4.2 101 WM1811A Production Data Table 54 and Table 55 describe the recommended sequences for enabling and disabling these output drivers. SEQUENCE Step 1 HEADPHONE ENABLE Write 0x0003 to Register R258 (0102h) Write 0x0C07 to Register R86 (0056h) Write 0x007E to Register R93 (005Dh) Write 0x0000 to Register R94 (005Eh) Write 0x0000 to Register R258 (0102h) (These register writes must be executed in the order noted above.) Step 2 HPOUT1L_ENA = 1 HPOUT1R_ENA = 1 Step 3 20s delay Step 4 HPOUT1L_DLY = 1 HPOUT1R_DLY = 1 Step 5 Run the DC Servo in Start-Up mode: Write 0x0033 to R84 (0054h) Step 6 Wait until offset correction is complete: This is indicated when DCS_STARTUP_COMPLETE=11b Step 7 Read back DCS_DAC_WR_VAL_0 and DCS_DAC_WR_VAL_1 from Register R89 (0059h) Step 8 Subtract 0x09 from DCS_DAC_WR_VAL_0 Subtract 0x05 from DCS_DAC_WR_VAL_1 Step 9 Write the updated values of DCS_DAC_WR_VAL_0 and DCS_DAC_WR_VAL_1 to Register R89 (0059h) Step 10 Run the DC Servo in DAC Write mode: Step 11 HPOUT1L_OUTP = 1 Write 0x000F to R84 (0054h) HPOUT1L_RMV_SHORT = 1 HPOUT1R_OUTP = 1 HPOUT1R_RMV_SHORT = 1 Table 54 Headphone Output Enable Sequence SEQUENCE Step 1 HEADPHONE DISABLE HPOUT1L_RMV_SHORT = 0 HPOUT1L_DLY = 0 HPOUT1L_OUTP = 0 HPOUT1R_RMV_SHORT = 0 HPOUT1R_DLY = 0 HPOUT1R_OUTP = 0 Step 2 HPOUT1L_ENA = 0 HPOUT1R_ENA = 0 Table 55 Headphone Output Disable Sequence The register bits relating to pop suppression control are defined in Table 56. w PD, August 2014, Rev 4.2 102 WM1811A Production Data REGISTER ADDRESS R1 (0001h) BIT 9 LABEL DEFAULT HPOUT1L_ENA 0 Power Management (1) DESCRIPTION Enables HPOUT1L input stage 0 = Disabled 1 = Enabled For normal operation, this bit should be set as the first step of the HPOUT1L Enable sequence. 8 HPOUT1R_ENA 0 Enables HPOUT1R input stage 0 = Disabled 1 = Enabled For normal operation, this bit should be set as the first step of the HPOUT1R Enable sequence. R96 (0060h) 7 Analogue HP (1) HPOUT1L_RMV_ SHORT 0 Removes HPOUT1L short 0 = HPOUT1L short enabled 1 = HPOUT1L short removed For normal operation, this bit should be set as the final step of the HPOUT1L Enable sequence. 6 HPOUT1L_OUTP 0 Enables HPOUT1L output stage 0 = Disabled 1 = Enabled For normal operation, this bit should be set to 1 after the DC offset cancellation has been scheduled. 5 HPOUT1L_DLY 0 Enables HPOUT1L intermediate stage 0 = Disabled 1 = Enabled For normal operation, this bit should be set to 1 after the output signal path has been configured, and before DC offset cancellation is scheduled. This bit should be set with at least 20us delay after HPOUT1L_ENA. 3 HPOUT1R_RMV_ SHORT 0 Removes HPOUT1R short 0 = HPOUT1R short enabled 1 = HPOUT1R short removed For normal operation, this bit should be set as the final step of the HPOUT1R Enable sequence. 2 HPOUT1R_OUTP 0 Enables HPOUT1R output stage 0 = Disabled 1 = Enabled For normal operation, this bit should be set to 1 after the DC offset cancellation has been scheduled. 1 HPOUT1R_DLY 0 Enables HPOUT1R intermediate stage 0 = Disabled 1 = Enabled For normal operation, this bit should be set to 1 after the output signal path has been configured, and before DC offset cancellation is scheduled. This bit should be set with at least 20us delay after HPOUT1R_ENA. Table 56 Headphone Output Signal Paths Control w PD, August 2014, Rev 4.2 103 WM1811A Production Data OUTPUT MIXER CONTROL The Output Mixer path select and volume controls are described in Table 57 for the Left Channel (MIXOUTL) and Table 58 for the Right Channel (MIXOUTR). The gain of each of input path may be controlled independently in the range 0dB to -9dB. Note that the DAC input levels may also be controlled by the DAC Output Paths digital volume controls(see “Digital Mixing”) and also (when applicable) by the Audio Interface Input Paths digital volume controls(see “Digital Volume and Filter Control”). When using the IN2LP, IN2LN, IN2RP or IN2RN signal paths to the output mixers, the buffered VMID reference must be enabled, using the VMID_BUF_ENA register, as described in “Reference Voltages and Master Bias”. REGISTER ADDRESS R45 (002Dh) BIT 5 Output Mixer (1) LABEL IN2RN_TO_MIXOUT L DEFAULT 0 DESCRIPTION IN2RN to MIXOUTL Mute 0 = Mute 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN2RN input to MIXOUTL. R49 (0031h) 8:6 Output Mixer (5) IN2RN_MIXOUTL_V OL[2:0] 000 IN2RN to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB R45 (002Dh) 4 IN2LN_TO_MIXOUTL 0 Output Mixer (1) IN2LN to MIXOUTL Mute 0 = Mute 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN2LN input to MIXOUTL. R47 (002Fh) 8:6 Output Mixer (3) IN2LN_MIXOUTL_VO L[2:0] 000 IN2LN to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB R45 (002Dh) 2 IN1L_TO_MIXOUTL 0 Output Mixer (1) R47 (002Fh) IN1LPGA Output to MIXOUTL Mute 0 = Mute 1 = Un-mute 2:0 Output Mixer (3) IN1L_MIXOUTL_VOL [2:0] 000 IN1LPGA Output to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB R45 (002Dh) Output Mixer (1) w 3 IN1R_TO_MIXOUTL 0 IN1RPGA Output to MIXOUTL Mute 0 = Mute 1 = Un-mute PD, August 2014, Rev 4.2 104 WM1811A Production Data REGISTER ADDRESS R47 (002Fh) BIT 5:3 Output Mixer (3) LABEL IN1R_MIXOUTL_VOL [2:0] DEFAULT 000 DESCRIPTION IN1RPGA Output to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB R45 (002Dh) 1 IN2LP_TO_MIXOUTL 0 IN2LP to MIXOUTL Mute 0 = Mute Output Mixer (1) 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN2LP input to MIXOUTL. R47 (002Fh) 11:9 Output Mixer (3) IN2LP_MIXOUTL_VO L[2:0] 000 IN2LP to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB R45 (002Dh) 7 Output Mixer (1) MIXINR_TO_MIXOU TL 0 MIXINR Output (Right ADC bypass) to MIXOUTL Mute 0 = Mute 1 = Un-mute R49 (0031h) 5:3 Output Mixer (5) MIXINR_MIXOUTL_V OL[2:0] 000 MIXINR Output (Right ADC bypass) to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB R45 (002Dh) 6 Output Mixer (1) MIXINL_TO_MIXOUT L 0 MIXINL Output (Left ADC bypass) to MIXOUTL Mute 0 = Mute 1 = Un-mute R49 (0031h) 2:0 Output Mixer (5) MIXINL_MIXOUTL_V OL[2:0] 000 MIXINL Output (Left ADC bypass) to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB R45 (002Dh) 0 Output Mixer (1) R49 (0031h) Output Mixer (5) DAC1L_TO_MIXOUT L 0 DAC1L_MIXOUTL_V OL[2:0] 000 Left DAC to MIXOUTL Mute 0 = Mute 1 = Un-mute 11:9 Left DAC to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB Table 57 Left Output Mixer (MIXOUTL) Control w PD, August 2014, Rev 4.2 105 WM1811A Production Data REGISTER ADDRESS R46 (002Eh) BIT 5 Output Mixer (2) LABEL IN2LN_TO_MIXOUT R DEFAULT 0 DESCRIPTION IN2LN to MIXOUTR Mute 0 = Mute 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN2LN input to MIXOUTR. R50 (0032h) 8:6 Output Mixer (6) IN2LN_MIXOUTR_V OL[2:0] 000 IN2LN to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB R46 (002Eh) 4 Output Mixer (2) IN2RN_TO_MIXOUT R 0 IN2RN to MIXOUTR Mute 0 = Mute 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN2RN input to MIXOUTR. R48 (0030h) 8:6 Output Mixer (4) IN2RN_MIXOUTR_V OL[2:0] 000 IN2RN to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB R46 (002Eh) 3 IN1L_TO_MIXOUTR 0 Output Mixer (2) R48 (0030h) IN1L PGA Output to MIXOUTR Mute 0 = Mute 1 = Un-mute 5:3 Output Mixer (4) IN1L_MIXOUTR_VO L[2:0] 000 IN1L PGA Output to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB R46 (002Eh) 2 IN1R_TO_MIXOUTR 0 Output Mixer (2) IN1R PGA Output to MIXOUTR Mute 0 = Mute 1 = Un-mute R48 (0030h) 2:0 Output Mixer (4) IN1R_MIXOUTR_VO L[2:0] 000 IN1R PGA Output to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB R46 (002Eh) Output Mixer (2) 1 IN2RP_TO_MIXOUT R 0 IN2RP to MIXOUTR Mute 0 = Mute 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN2RP input to MIXOUTR. w PD, August 2014, Rev 4.2 106 WM1811A Production Data REGISTER ADDRESS R48 (0030h) BIT 11:9 Output Mixer (4) LABEL IN2RP_MIXOUTR_V OL[2:0] DEFAULT 000 DESCRIPTION IN2RP to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB R46 (002Eh) 7 Output Mixer (2) MIXINL_TO_MIXOU TR 0 MIXINL Output (LeftADC bypass) to MIXOUTR Mute 0 = Mute 1 = Un-mute R50 (0032h) 5:3 Output Mixer (6) MIXINL_MIXOUTR_ VOL[2:0] 000 MIXINL Output (LeftADC bypass) to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB R46 (002Eh) 6 Output Mixer (2) MIXINR_TO_MIXOU TR 0 MIXINR Output (RightADC bypass) to MIXOUTR Mute 0 = Mute 1 = Un-mute R50 (0032h) 2:0 Output Mixer (6) MIXINR_MIXOUTR_ VOL[2:0] 000 MIXINR Output (RightADC bypass) to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB R46 (002Eh) 0 Output Mixer (2) R50 (0032h) Output Mixer (6) DAC1R_TO_MIXOU TR 0 DAC1R_MIXOUTR_ VOL[2:0] 000 Right DAC to MIXOUTR Mute 0 = Mute 1 = Un-mute 11:9 Right DAC to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB Table 58 Right Output Mixer (MIXOUTR) Control w PD, August 2014, Rev 4.2 107 WM1811A Production Data SPEAKER MIXER CONTROL The Speaker Mixer path select and volume controls are described in Table 59 for the Left Channel (SPKMIXL) and Table 60 for the Right Channel (SPKMIXR). Care should be taken when enabling more than one path to a speaker mixer in order to avoid clipping.The gain of each input path is adjustable using a selectable -6dB control in each path to facilitate this. Each Speaker Mixer output can also be muted using the SPKMIXL_VOL or SPKMIXR_VOL register. Note that the DAC input levels may also be controlled by the DAC Output Paths digital volume controls (see “Digital Mixing”) and also (when applicable) by the Audio Interface Input Paths digital volume controls (see “Digital Volume and Filter Control”). When using the IN1LP or IN1RP signal paths to the speaker mixers, the buffered VMID reference must be enabled, using the VMID_BUF_ENA register, as described in “Reference Voltages and Master Bias”. REGISTER ADDRESS R54 (0034h) BIT 7 LABEL MIXINL_TO_SPKMIXL DEFAULT 0 Speaker Mixer DESCRIPTION MIXINL (Left ADC bypass) to SPKMIXL Mute 0 = Mute 1 = Un-mute 5 IN1LP_TO_SPKMIXL 0 IN1LP to SPKMIXL Mute 0 = Mute 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN1LP input to SPKMIXL. 3 MIXOUTL_TO_SPKMI XL 0 Left Mixer Output to SPKMIXL Mute 0 = Mute 1 = Un-mute 1 DAC1L_TO_SPKMIXL 0 Left DAC to SPKMIXL Mute 0 = Mute 1 = Un-mute R34 (0022h) 5 SPKMIXL Attenuation MIXINL_SPKMIXL_VO L 0 MIXINL (Left ADC bypass) to SPKMIXL Fine Volume Control 0 = 0dB 1 = -6dB 4 IN1LP_SPKMIXL_VOL 0 IN1LP to SPKMIXL Fine Volume Control 0 = 0dB 1 = -6dB 3 MIXOUTL_SPKMIXL_ VOL 0 Left Mixer Output to SPKMIXL Fine Volume Control 0 = 0dB 1 = -6dB 2 DAC1L_SPKMIXL_VO L 0 Left DAC to SPKMIXL Fine Volume Control 0 = 0dB 1 = -6dB 1:0 SPKMIXL_VOL [1:0] 11 Left Speaker Mixer Volume Control 00 = 0dB 01 = Reserved 10 = Reserved 11 = Mute Table 59 Left Speaker Mixer (SPKMIXL) Control w PD, August 2014, Rev 4.2 108 WM1811A Production Data REGISTER ADDRESS R54 (0034h) BIT 6 LABEL MIXINR_TO_SPKMIXR DEFAULT 0 Speaker Mixer DESCRIPTION MIXINR (Right ADC bypass) to SPKMIXR Mute 0 = Mute 1 = Un-mute 4 IN1RP_TO_SPKMIXR 0 IN1RP to SPKMIXR Mute 0 = Mute 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN1RP input to SPKMIXR. 2 MIXOUTR_TO_SPKMI XR 0 Right Mixer Output to SPKMIXR Mute 0 = Mute 1 = Un-mute 0 DAC1R_TO_SPKMIXR 0 Right DAC to SPKMIXR Mute 0 = Mute 1 = Un-mute R35 (0023h) 5 SPKMIXR Attenuation MIXINR_SPKMIXR_V OL 0 MIXINR (Right ADC bypass) to SPKMIXR Fine Volume Control 0 = 0dB 1 = -6dB 4 IN1RP_SPKMIXR_VO L 0 IN1RP to SPKMIXR Fine Volume Control 0 = 0dB 1 = -6dB 3 MIXOUTR_SPKMIXR_ VOL 0 Right Mixer Output to SPKMIXR Fine Volume Control 0 = 0dB 1 = -6dB 2 DAC1R_SPKMIXR_VO L 0 Right DAC to SPKMIXR Fine Volume Control 0 = 0dB 1 = -6dB 1:0 SPKMIXR_VOL [1:0] 11 Right Speaker Mixer Volume Control 00 = 0dB 01 = Reserved 10 = Reserved 11 = Mute Table 60 Right Speaker Mixer (SPKMIXR) Control w PD, August 2014, Rev 4.2 109 WM1811A Production Data OUTPUT SIGNAL PATH VOLUME CONTROL There are six output PGAs - MIXOUTLVOL, MIXOUTRVOL, HPOUT1LVOL, HPOUT1RVOL, SPKLVOL and SPKRVOL. Each can be independently controlled, with MIXOUTLVOL and MIXOUTRVOL providing volume control to both the earpiece and line drivers, HPOUT1LVOL and HPOUT1RVOL to the headphone driver, and SPKLVOL and SPKRVOL to the speaker drivers. The volume control of each of these output PGAs can be adjusted over a wide range of values. To minimise pop noise, it is recommended that only the MIXOUTLVOL, MIXOUTRVOL, HPOUT1LVOL, HPOUT1RVOL, SPKLVOL and SPKRVOL are modified while the output signal path is active. Other gain controls are provided in the signal paths to provide scaling of signals from different sources, and to prevent clipping when multiple signals are mixed. However, to prevent pop noise, it is recommended that those other gain controls should not be modified while the signal path is active. To prevent "zipper noise", a zero-cross function is provided on theoutput PGAs. When this feature is enabled, volume updates will not take place until a zero-crossing is detected. In the case of a long period without zero-crossings, a timeout function is provided. When the zero-cross function is enabled, the volume will update after the timeout period if no earlier zero-cross has occurred. The timeout clock is enabled using TOCLK_ENA; the timeout period is set by TOCLK_DIV. See “Clocking and Sample Rates” for more information on these fields. The mixer output PGA controls are shown in Table 61.The MIXOUT_VU bits control the loading of the output mixer PGA volume data. When MIXOUT_VU is set to 0, the volume control data will be loaded into the respective control register, but will not actually change the gain setting. The output mixer PGA volume settings are both updated when a 1 is written toeither MIXOUT_VU bit. This makes it possible to update the gain of both output paths simultaneously. REGISTER ADDRESS R32 (0020h) BIT 8 LABEL MIXOUT_VU DEFAULT N/A Left OPGA Volume DESCRIPTION Mixer Output PGA Volume Update Writing a 1 to this bit will update MIXOUTLVOL and MIXOUTRVOL volumes simultaneously. 7 MIXOUTL_ZC 0 MIXOUTLVOL (Left Mixer Output PGA) Zero Cross Enable 0 = Zero cross disabled 1 = Zero cross enabled 6 MIXOUTL_MUTE_N 1 MIXOUTLVOL (Left Mixer Output PGA) Mute 0 = Mute 1 = Un-mute 5:0 MIXOUTL_VOL[5:0] 39h (0dB) MIXOUTLVOL(Left Mixer Output PGA) Volume -57dB to +6dB in 1dB steps 00_0000 = -57dB 00_0001 = -56dB … (1dB steps) 11_1111 = +6dB (See Table 64 for output PGA volume control range) R33 (0021h) 8 MIXOUT_VU N/A Right OPGA Volume Mixer Output PGA Volume Update Writing a 1 to this bit will update MIXOUTLVOL and MIXOUTRVOL volumes simultaneously. 7 MIXOUTR_ZC 0 MIXOUTRVOL (Right Mixer Output PGA) Zero Cross Enable 0 = Zero cross disabled 1 = Zero cross enabled 6 MIXOUTR_MUTE_N 1 MIXOUTLVOL (Right Mixer Output PGA) Mute 0 = Mute 1 = Un-mute w PD, August 2014, Rev 4.2 110 WM1811A Production Data REGISTER ADDRESS BIT 5:0 LABEL MIXOUTR_VOL[5:0] DEFAULT 39h (0dB) DESCRIPTION MIXOUTRVOL (Right Mixer Output PGA) Volume -57dB to +6dB in 1dB steps 00_0000 = -57dB 00_0001 = -56dB … (1dB steps) 11_1111 = +6dB (See Table 64 for output PGA volume control range) Table 61 Mixer Output PGA (MIXOUTLVOL, MIXOUTRVOL) Control The headphone output PGA controls are shown inTable 62.The HPOUT1_VU bits control the loading of the headphone PGA volume data. When HPOUT1_VU is set to 0, the volume control data will be loaded into the respective control register, but will not actually change the gain setting. The headphone PGA volume settings are both updated when a 1 is written toeither HPOUT1_VU bit. This makes it possible to update the gain of both output paths simultaneously. The HPOUT1_ATTN register controls a -3dB attenuation function in the HPOUT1L and HPOUT1R signal paths. (Note that this single register applies to the Left and Right output paths.) The output path Signal to Noise Ratio (SNR) may be improved when the HPOUT1_ATTN bit is set, but the maximum signal level is reduced by 3dB. Note that, when the HPOUT1_ATTN register is updated in Register Control mode (CP_DYN_PWR=0), the HPOUT1_ATTN function is not fully implemented until a ‘1’ has been written to HPOUT1_VU. See “Charge Pump” for details of the CP_DYN_PWR register bit. The DAC1L_TO_HPOUT1L and DAC1R_TO_HPOUT1R register bits allow the DACL and DACR outputs to be selected as the single input to the HPOUT1L and HPOUT1R headphone output PGAs respectively. When these bits are asserted, the respective output mixer settings are ignored, and only the DAC path(s) are enabled. Note that these register controls are provided for software compatibility with WM8994; it is not recommended to use these register bits. REGISTER ADDRESS R28 (001Ch) BIT 8 LABEL HPOUT1_VU DEFAULT N/A Left Output Volume DESCRIPTION Headphone Output PGA Volume Update Writing a 1 to this bit will update HPOUT1LVOL and HPOUT1RVOL volumes simultaneously. 7 HPOUT1L_ZC 0 HPOUT1LVOL (Left Headphone Output PGA) Zero Cross Enable 0 = Zero cross disabled 1 = Zero cross enabled 6 HPOUT1L_MUTE_ N 1 HPOUT1LVOL (Left Headphone Output PGA) Mute 0 = Mute 1 = Un-mute 5:0 HPOUT1L_VOL[5:0 ] 2Dh (-12dB) HPOUT1LVOL (Left Headphone Output PGA) Volume -57dB to +6dB in 1dB steps 00_0000 = -57dB 00_0001 = -56dB … (1dB steps) 11_1111 = +6dB (See Table 64 for output PGA volume control range) w PD, August 2014, Rev 4.2 111 WM1811A Production Data REGISTER ADDRESS R45 (002Dh) BIT 8 Output Mixer (1) LABEL DAC1L_TO_HPOU T1L DEFAULT 0 DESCRIPTION HPOUT1LVOL (Left Headphone Output PGA) Input Select 0 = MIXOUTL 1 = DACL R29 (001Dh) 8 HPOUT1_VU N/A Right Output Volume Headphone Output PGA Volume Update Writing a 1 to this bit will update HPOUT1LVOL and HPOUT1RVOL volumes simultaneously. 7 HPOUT1R_ZC 0 HPOUT1RVOL (Right Headphone Output PGA) Zero Cross Enable 0 = Zero cross disabled 1 = Zero cross enabled 6 HPOUT1R_MUTE_ N 1 HPOUT1RVOL (Right Headphone Output PGA) Mute 0 = Mute 1 = Un-mute 5:0 HPOUT1R_VOL[5:0 ] 2Dh (-12dB) HPOUT1RVOL (Right Headphone Output PGA) Volume -57dB to +6dB in 1dB steps 00_0000 = -57dB 00_0001 = -56dB … (1dB steps) 11_1111 = +6dB (See Table 64 for output PGA volume control range) R46 (002Eh) 8 Output Mixer (2) DAC1R_TO_HPOU T1R 0 HPOUT1RVOL (Right Headphone Output PGA) Input Select 0 = MIXOUTR 1 = DACR R96 (0060h) Analogue HP (1) 8 HPOUT1_ATTN 0 HPOUT1L and HPOUT1R Attenuation 0 = 0dB 1 = -3dB Note that, when CP_DYN_PWR=0, then any update to HPOUT1_ATTN is not fully implemented until a ‘1’ is written to HPOUT1_VU. Table 62 Headphone Output PGA (HPOUT1LVOL, HPOUT1RVOL) Control w PD, August 2014, Rev 4.2 112 WM1811A Production Data The speakeroutput PGA controls are shown in Table 63.The SPKOUT_VU bits control the loading of the speaker PGA volume data. When SPKOUT_VU is set to 0, the volume control data will be loaded into the respective control register, but will not actually change the gain setting. The speaker PGA volume settings are both updated when a 1 is written toeither SPKOUT_VU bit. This makes it possible to update the gain of both output paths simultaneously. REGISTER ADDRESS R38 (0026h) BIT 8 LABEL SPKOUT_VU DEFAULT N/A Speaker Volume Left DESCRIPTION SpeakerOutput PGA Volume Update Writing a 1 to this bit will update SPKLVOL and SPKRVOL volumes simultaneously. 7 SPKOUTL_ZC 0 SPKLVOL (Left Speaker Output PGA) Zero Cross Enable 0 = Zero cross disabled 1 = Zero cross enabled 6 SPKOUTL_MUTE_N 1 SPKLVOL (Left Speaker Output PGA) Mute 0 = Mute 1 = Un-mute 5:0 SPKOUTL_VOL[5:0] 39h (0dB) SPKLVOL (Left Speaker Output PGA) Volume -57dB to +6dB in 1dB steps 00_0000 = -57dB 00_0001 = -56dB … (1dB steps) 11_1111 = +6dB (See Table 64 for output PGA volume control range) R39 (0027h) 8 SPKOUT_VU N/A Speaker Volume Right Speaker PGA Volume Update Writing a 1 to this bit will update SPKLVOL and SPKRVOL volumes simultaneously. 7 SPKOUTR_ZC 0 SPKRVOL (Right Speaker Output PGA) Zero Cross Enable 0 = Zero cross disabled 1 = Zero cross enabled 6 SPKOUTR_MUTE_ N 1 SPKRVOL (Right Speaker Output PGA) Mute 0 = Mute 1 = Un-mute 5:0 SPKOUTR_VOL[5:0] 39h (0dB) SPKRVOL (Right Speaker Output PGA) Volume -57dB to +6dB in 1dB steps 00_0000 = -57dB 00_0001 = -56dB … (1dB steps) 11_1111 = +6dB (See Table 64 for output PGA volume control range) Table 63 Speaker Output PGA (SPKLVOL, SPKRVOL) Control w PD, August 2014, Rev 4.2 113 WM1811A Production Data PGA GAIN SETTING VOLUME (dB) PGA GAIN SETTING VOLUME (dB) 00h -57 20h -25 01h -56 21h -24 02h -55 22h -23 03h -54 23h -22 04h -53 24h -21 05h -52 25h -20 06h -51 26h -19 07h -50 27h -18 08h -49 28h -17 09h -48 29h -16 0Ah -47 2Ah -15 0Bh -46 2Bh -14 0Ch -45 2Ch -13 0Dh -44 2Dh -12 0Eh -43 2Eh -11 0Fh -42 2Fh -10 10h -41 30h -9 11h -40 31h -8 12h -39 32h -7 13h -38 33h -6 14h -37 34h -5 15h -36 35h -4 16h -35 36h -3 17h -34 37h -2 18h -33 38h -1 19h -32 39h 0 1Ah -31 3Ah +1 1Bh -30 3Bh +2 1Ch -29 3Ch +3 1Dh -28 3Dh +4 1Eh -27 3Eh +5 1Fh -26 3Fh +6 Table 64 Output PGA Volume Range w PD, August 2014, Rev 4.2 114 WM1811A Production Data SPEAKER BOOST MIXER Each speaker driver has its own boost mixer which performs a dual role. It allows the output from the left speaker mixer (via SPKLVOL) or the right speaker mixer (via SPKRVOL) to be routed to either speaker driver. The speaker boost mixers are controlled using the registers defined in Table 65 below. The second function of the speaker boost mixers is that they provide an additional AC gain (boost) function to shift signal levels between the AVDD1 and SPKVDD voltage domains for maximum output power. The AC gain (boost) function is described in the “Analogue Outputs” section. REGISTER ADDRESS R36 (0024h) BIT 4 SPKOUT Mixers LABEL SPKMIXL_TO_SPK OUTL DEFAULT 1 DESCRIPTION SPKMIXL Left Speaker Mixer to Left Speaker Mute 0 = Mute 1 = Un-mute 3 SPKMIXR_TO_SPK OUTL 0 SPKMIXR Right Speaker Mixer to Left Speaker Mute 0 = Mute 1 = Un-mute 1 SPKMIXL_TO_SPK OUTR 0 SPKMIXL Left Speaker Mixer to Right Speaker Mute 0 = Mute 1 = Un-mute 0 SPKMIXR_TO_SPK OUTR 1 SPKMIXR Right Speaker Mixer to Right Speaker Mute 0 = Mute 1 = Un-mute Table 65 Speaker Boost Mixer (SPKOUTLBOOST, SPKOUTRBOOST) Control EARPIECE DRIVER MIXER The earpiece driver has a dedicated mixer, HPOUT2MIX, which is controlled using the registers defined in Table 66. The earpiece driver is configurable to select output from the left output mixer (via MIXOUTLVOL) or the right output mixer (via MIXOUTRVOL). Care should be taken to avoid clipping when enabling more than one path to the earpiece driver. The HPOUT2VOL volume control can be used to avoid clipping when more than one full scale signal is input to the mixer. w PD, August 2014, Rev 4.2 115 WM1811A Production Data REGISTER ADDRESS R31 (001Fh) BIT 5 LABEL DEFAULT HPOUT2_MUTE 1 DESCRIPTION HPOUT2 (Earpiece Driver) Mute 0 = Un-mute HPOUT2 Volume 1 = Mute 4 HPOUT2_VOL 0 HPOUT2 (Earpiece Driver) Volume 0 = 0dB 1 = -6dB R51 (0033h) 4 HPOUT2 Mixer MIXOUTLVOL_TO_ HPOUT2 0 MIXOUTLVOL (Left Output Mixer PGA) to Earpiece Driver 0 = Mute 1 = Un-mute 3 MIXOUTRVOL_TO_ HPOUT2 0 MIXOUTRVOL (Right Output Mixer PGA) to Earpiece Driver 0 = Mute 1 = Un-mute Table 66 Earpiece Driver Mixer (HPOUT2MIX) Control LINE OUTPUT MIXERS The WM1811A provides two pairsof line outputs, both with highly configurable output mixers. The outputs LINEOUT1N and LINEOUT1P can be configured as two single-ended outputs or as a differential output. In the same manner, LINEOUT2N and LINEOUT2P can be configured either as two single-ended outputs or as a differential output. The respective line output mixers can be configured in single-ended mode or differential mode; each mode supports multiple signal path configurations. LINEOUT1 single-ended mode is selected by setting LINEOUT1_MODE = 1. In single-ended mode, any of three possible signal paths may be enabled:  MIXOUTL (left output mixer) to LINEOUT1P  MIXOUTR (right output mixer) to LINEOUT1N  MIXOUTL (left output mixer) to LINEOUT1N LINEOUT1 differential mode is selected by setting LINEOUT1_MODE = 0. In differential mode, any of three possible signal paths may be enabled:  MIXOUTL (left output mixer) to LINEOUT1N and LINEOUT1P  IN1L (input PGA) to LINEOUT1Nand LINEOUT1P  IN1R (input PGA) to LINEOUT1Nand LINEOUT1P The LINEOUT1output mixers are controlled as described in Table 67. Care should be taken to avoid clipping when enabling more than one path to the line outputmixers. The LINEOUT1_VOL control can be used to provide -6dB attenuation when more than one full scale signal is applied. When using the LINEOUT1 mixers in single-ended mode, a buffered VMID must be enabled. This is achieved by setting LINEOUT_VMID_BUF_ENA, as described in the “Analogue Outputs” section. w PD, August 2014, Rev 4.2 116 WM1811A Production Data REGISTER ADDRESS R30 (001Eh) BIT 6 LABEL LINEOUT1N_MUTE DEFAULT 1 Line Outputs Volume DESCRIPTION LINEOUT1N Line Output Mute 0 = Un-mute 1 = Mute 5 LINEOUT1P_MUTE 1 LINEOUT1P Line Output Mute 0 = Un-mute 1 = Mute 4 LINEOUT1_VOL 0 LINEOUT1 Line Output Volume 0 = 0dB 1 = -6dB Applies to both LINEOUT1N and LINEOUT1P R52 (0034h) 6 Line Mixer (1) MIXOUTL_TO_LIN EOUT1N 0 MIXOUTL to Single-Ended Line Output on LINEOUT1N 0 = Mute 1 = Un-mute (LINEOUT1_MODE = 1) 5 MIXOUTR_TO_LIN EOUT1N 0 MIXOUTR to Single-Ended Line Output on LINEOUT1N 0 = Mute 1 = Un-mute (LINEOUT1_MODE = 1) 4 LINEOUT1_MODE 0 LINEOUT1 Mode Select 0 = Differential 1 = Single-Ended 2 IN1R_TO_LINEOUT 1P 0 IN1RInput PGA to Differential Line Output on LINEOUT1 0 = Mute 1 = Un-mute (LINEOUT1_MODE = 0) 1 IN1L_TO_LINEOUT 1P 0 IN1LInput PGA to Differential Line Output on LINEOUT1 0 = Mute 1 = Un-mute (LINEOUT1_MODE = 0) 0 MIXOUTL_TO_LIN EOUT1P 0 Differential Mode (LINEOUT1_MODE = 0): MIXOUTL to Differential Output on LINEOUT1 0 = Mute 1 = Un-mute Single Ended Mode (LINEOUT1_MODE = 1): MIXOUTL to Single-Ended Line Output on LINEOUT1P 0 = Mute 1 = Un-mute Table 67 LINEOUT1N and LINEOUT1P Control w PD, August 2014, Rev 4.2 117 WM1811A Production Data LINEOUT2 single-ended mode is selected by setting LINEOUT2_MODE = 1. In single-ended mode, any of three possible signal paths may be enabled:  MIXOUTR (right output mixer) to LINEOUT2P  MIXOUTL (left output mixer) to LINEOUT2N  MIXOUTR (right output mixer) to LINEOUT2N LINEOUT2 differential mode is selected by setting LINEOUT2_MODE = 0. In differential mode, any of three possible signal paths may be enabled:  MIXOUTR (right output mixer) to LINEOUT2N and LINEOUT2P  IN1L (input PGA) to LINEOUT2P and LINEOUT2P  IN1R (input PGA) to LINEOUT2N and LINEOUT2P The LINEOUT2output mixers are controlled as described in Table 68. Care should be taken to avoid clipping when enabling more than one path to the line output mixers. The LINEOUT2_VOL control can be used to provide -6dB attenuation when more than one full scale signal is applied. When using the LINEOUT2 mixers in single-ended mode, a buffered VMID must be enabled. This isachieved by setting LINEOUT_VMID_BUF_ENA, as described in the “Analogue Outputs” section. w PD, August 2014, Rev 4.2 118 WM1811A Production Data REGISTER ADDRESS R30 (001Eh) BIT 2 LABEL LINEOUT2N_MUTE DEFAULT 1 Line Outputs Volume DESCRIPTION LINEOUT2N Line Output Mute 0 = Un-mute 1 = Mute 1 LINEOUT2P_MUTE 1 LINEOUT2P Line Output Mute 0 = Un-mute 1 = Mute 0 LINEOUT2_VOL 0 LINEOUT2 Line Output Volume 0 = 0dB 1 = -6dB Applies to both LINEOUT2N and LINEOUT2P R53 (0035h) 6 Line Mixer (2) MIXOUTR_TO_LINE OUT2N 0 MIXOUTR to Single-Ended Line Output on LINEOUT2N 0 = Mute 1 = Un-mute (LINEOUT2_MODE = 1) 5 MIXOUTL_TO_LINE OUT2N 0 MIXOUTL to Single-Ended Line Output on LINEOUT2N 0 = Mute 1 = Un-mute (LINEOUT2_MODE = 1) 4 LINEOUT2_MODE 0 LINEOUT2 Mode Select 0 = Differential 1 = Single-Ended 2 IN1L_TO_LINEOUT 2P 0 IN1L Input PGA to Differential Line Output on LINEOUT2 0 = Mute 1 = Un-mute (LINEOUT2_MODE = 0) 1 IN1R_TO_LINEOUT 2P 0 IN1R Input PGA to Differential Line Output on LINEOUT2 0 = Mute 1 = Un-mute (LINEOUT2_MODE = 0) 0 MIXOUTR_TO_LINE OUT2P 0 Differential Mode (LINEOUT2_MODE = 0): MIXOUTR to Differential Output on LINEOUT2 0 = Mute 1 = Un-mute Single-Ended Mode (LINEOUT2_MODE = 0): MIXOUTR to Single-Ended Line Output on LINEOUT2P 0 = Mute 1 = Un-mute Table 68 LINEOUT2N and LINEOUT2P Control w PD, August 2014, Rev 4.2 119 WM1811A Production Data CHARGE PUMP The WM1811A incorporates a dual-mode Charge Pump which generates the supply rails for the headphone output drivers, HPOUT1L and HPOUT1R. The Charge Pump has a single supply input, CPVDD, and generates split rails CPVOUTP and CPVOUTN according to the selected mode of operation. The Charge Pump connections are illustrated in Figure 28 (see “Applications Information” for external component values). An input decoupling capacitor may also be required at CPVDD, depending upon the system configuration. Figure 28 Charge Pump External Connections The Charge Pump is enabled by setting the CP_ENA bit. When enabled, the charge pump adjusts the output voltages (CPVOUTP and CPVOUTN) as well as the switching frequency in order to optimise the power consumption according to the operating conditions. This can take two forms, which are selected using the CP_DYN_PWR register bit.   Register control (CP_DYN_PWR = 0) Dynamic control (CP_DYN_PWR = 1) Under Register control, the HPOUT1L_VOL and HPOUT1R_VOL register settings are used to control the charge pump mode of operation. Under Dynamic control, the audio signal level in the digital audio interface is used to control the charge pump mode of operation. The CP_DYN_SRC_SEL register determines which of the digital signal paths is used for this function - this may be the AIF1 DAC path or the AIF2 DAC path. The CP_DYN_SRC_SEL should be set according to the active source for the HPOUT1L and HPOUT1R outputs. The Dynamic Charge Pump Control mode is the Wolfson ‘Class W’ mode, which allows the power consumption to be optimised in real time, but can only be used if a single AIF source is the only signal source. The Class W mode should not be used if any of the bypass paths are used to feed analogue inputs into the output signal path, or if more than one AIF source is used to feed the headphone output via the Digital Mixers. The Charge Pump operating mode defaults to Register control; Dynamic control may be selected by setting the CP_DYN_PWR register bit, if appropriate. Note that the charge pump clock is derived from internal clock SYSCLK; either MCLK or the FLL output selectable using the SYSCLK_SRC bit. Under normal circumstances an external clock signal must be present for the charge pump to function. However, the FLL has a free-running mode that does not require an external clock but will generate an internal clock suitable for running the charge pump. The clock division from SYSCLK is handled transparently by the WM1811A without user intervention, as long as SYSCLK and sample rates are set correctly. Refer to the “Clocking and Sample Rates” section for more detail on the FLL and clocking configuration. w PD, August 2014, Rev 4.2 120 WM1811A Production Data When the Charge Pump is disabled, the output can be left floating or can be actively discharged, depending on the CP_DISCH control bit. If the headphone output drivers (HPOUT1L and HPOUT1R) are not used, then the Charge Pump and the associated external components are not required. The Charge Pump and Headphone drivers should not be enabled in this case (CP_ENA=0, HPOUT1L_ENA=0, HPOUT1R_ENA=0). If the Charge Pump is not used, and the associated external components are omitted, then the CPCA and CPCB pins can be left floating; the CPVOUTP and CPVOUTN pins should be grounded as illustrated in Figure 29. Note that, when the Charge Pump is disabled, it is still recommended that the CPVDD pin is kept within its recommended operating conditions. Figure 29 External Configuration when Charge Pump not used The Charge Pump control fields are described in Table 69. REGISTER ADDRESS R76 (004Ch) BIT 15 LABEL CP_ENA DEFAULT 0 Charge Pump (1) R77 (004Dh) DESCRIPTION Enable charge-pump digits 0 = Disable 1 = Enable 15 CP_DISCH 1 Charge Pump (2) Charge Pump Discharge Select 0 = Charge Pump outputs floating when disabled 1 = Charge Pump outputs discharged when disabled R81 (0051h) 9:8 CP_DYN_SRC_SEL 00 Class W (1) Selects the digital audio source for envelope tracking 00 = AIF1, DAC data 01 = Reserved 10 = AIF2, DAC data 11 = Reserved 0 CP_DYN_PWR 0 Enable dynamic charge pump power control 0 = charge pump controlled by volume register settings (Class G) 1 = charge pump controlled by real-time audio level (Class W) Table 69 Charge Pump Control w PD, August 2014, Rev 4.2 121 WM1811A Production Data DC SERVO The WM1811A provides a DC servo circuit on the headphone outputs HPOUT1L and HPOUT1R in order to remove DC offset from these ground-referenced outputs. When enabled, the DC servo ensures that the DC level of these outputs remains within 1mV of ground. Removal of the DC offset is important because any deviation from GND at the output pin will cause current to flow through the load under quiescent conditions, resulting in increased power consumption. Additionally, the presence of DC offsets can result in audible pops and clicks at power up and power down. DC SERVO ENABLE AND START-UP The DC Servo circuit is enabled on HPOUT1L and HPOUT1R by setting DCS_ENA_CHAN_0and DCS_ENA_CHAN_1respectively. When the DC Servo is enabled, the DC offset correction can be commanded in two different ways, as described below. The DCS_TIMER_PERIOD_01 register must be set to 0000 for correct operation of the DC Servo. This register must be set to 0000 before enabling the DC Servo. Writing a logic 1 to DCS_TRIG_STARTUP_n initiates a series of DC offset measurements and applies the necessary correction to the associated output; (‘n’ = 0for Left channel, 1for Right channel). On completion, the headphone output will be within 1mV of AGND. This mode is recommended for typical applications. Completion of the DC offset correction triggered in this way is indicated by the DCS_STARTUP_COMPLETE field, as described in Table 70. Typically, this operation takes 86ms per channel. For correct operation of the DC Servo Start-Up mode, it is important that there is no active audio signal present on the signal path while the mode is running. The DC Servo Start-Up mode should be scheduled at the correct position within the Headphone Output Enable sequence, as described in the Analogue Output Signal Path” section. All other stages of the analogue signal path should be fully enabled prior to commanding the Start-Up mode; the DAC Digital Mute function should be used, where appropriate, to ensure there is no active audio signal present during the DC Servo measurements. Writing a logic 1 to DCS_TRIG_DAC_WR_n causes the DC offset correction to be set to the value contained in the DCS_DAC_WR_VAL_n fields in Register R89. This mode is useful if the required offset correction has already been determined and stored; it is faster than the DCS_TRIG_STARTUP_n mode, but relies on the accuracy of the stored settings. Completion of the DC offset correction triggered in this way is indicated by the DCS_DAC_WR_COMPLETE field, as described in Table 70. Typically, this operation takes 2ms per channel. For pop-free operation of the DC Servo DAC Write mode, it is important that the mode is scheduled at the correct position within the Headphone Output Enable sequence, as described in the “Analogue Output Signal Path” section. The current DC offset value for each Headphone output channel can be read from the DCS_DAC_WR_VAL_nfields. These values may form the basis of settings that are subsequently used by the DC Servo in DAC Write mode. Note that these fields have a different definition for Read and Write, as described in Table 70. When using either of the DC Servo options above, the status of the DC offset correction process is indicated by the DCS_CAL_COMPLETE field; this is the logical OR of the DCS_STARTUP_COMPLETE and DCS_DAC_WR_COMPLETE fields. The DCS_DAC_WR_COMPLETE bits can be used as inputs to the Interrupt control circuit or used to generate an external logic signal on a GPIO pin. See “Interrupts” and “General Purpose Input/Output” for further details. The DC Servo control fields associated with start-up operation are described in Table 70. It is important to note that, to minimise audible pops/clicks, the Start-Up and DAC Write modes of DC Servo operation should be commanded as part of a control sequence which includes muting and shorting of the headphone outputs. w PD, August 2014, Rev 4.2 122 WM1811A Production Data REGISTER ADDRESS R84 (0054h) BIT 5 DC Servo (1) LABEL DCS_TRIG_START UP_1 DEFAULT 0 DESCRIPTION Writing 1 to this bit selects StartUp DC Servo mode for HPOUT1R. In readback, a value of 1 indicates that the DC Servo Start-Up correction is in progress. 4 DCS_TRIG_START UP_0 0 Writing 1 to this bit selects StartUp DC Servo mode for HPOUT1L. In readback, a value of 1 indicates that the DC Servo Start-Up correction is in progress. 3 DCS_TRIG_DAC_W R_1 0 Writing 1 to this bit selects DAC Write DC Servo mode for HPOUT1R. In readback, a value of 1 indicates that the DC Servo DAC Write correction is in progress. 2 DCS_TRIG_DAC_W R_0 0 Writing 1 to this bit selects DAC Write DC Servo mode for HPOUT1L. In readback, a value of 1 indicates that the DC Servo DAC Write correction is in progress. 1 DCS_ENA_CHAN_1 0 DC Servo enable for HPOUT1R 0 = Disabled 1 = Enabled 0 DCS_ENA_CHAN_0 0 DC Servo enable for HPOUT1L 0 = Disabled 1 = Enabled R85 (0055h) 3:0 DC Servo (2) DCS_TIMER_PERI OD_01 [3:0] 1010 This register must be set to 0000 for correct operation of the DC Servo. 0000 = DC Servo enabled All other values are Reserved R88 (0058h) 9:8 DC Servo Readback DCS_CAL_COMPL ETE [1:0] 00 DC Servo Complete status 0 = DAC Write or Start-Up DC Servo mode not completed. 1 = DAC Write or Start-Up DC Servo mode complete. Bit [1] = HPOUT1R Bit [0] = HPOUT1L 5:4 DCS_DAC_WR_CO MPLETE [1:0] 00 DC Servo DAC Write status 0 = DAC Write DC Servo mode not completed. 1 = DAC Write DC Servo mode complete. Bit [1] = HPOUT1R Bit [0] = HPOUT1L w PD, August 2014, Rev 4.2 123 WM1811A Production Data REGISTER ADDRESS BIT 1:0 LABEL DCS_STARTUP_C OMPLETE [1:0] DEFAULT 00 DESCRIPTION DC Servo Start-Up status 0 = Start-Up DC Servo mode not completed. 1 = Start-Up DC Servo mode complete. Bit [1] = HPOUT1R Bit [0] = HPOUT1L R89 (0059h) 15:8 DC Servo (4) DCS_DAC_WR_VA L_1 [7:0] 00h Writing to this field sets the DC Offset value for HPOUT1R in DAC Write DC Servo mode. Reading this field gives the current DC Offset value for HPOUT1R. Two’s complement format. LSB is 0.25mV. Range is -32mV to +31.75mV 7:0 DCS_DAC_WR_VA L_0 [7:0] 00h Writing to this field sets the DC Offset value for HPOUT1L in DAC Write DC Servo mode. Reading this field gives the current DC Offset value for HPOUT1L. Two’s complement format. LSB is 0.25mV. Range is -32mV to +31.75mV Table 70 DC Servo Control GPIO / INTERRUPT OUTPUTS FROM DC SERVO When using the DC Servo Start-Up or DAC Write modes, the DCS_CAL_COMPLETE register provides readback of the status of the DC offset correction. This can be read from register R88 as described in Table 70. The DCS_CAL_COMPLETE bits can also be used as inputs to the Interrupt control circuit and used to trigger an Interrupt event - see “Interrupts”. The DCS_CAL_COMPLETE bits can also be used as inputs to the GPIO function and used to generate external logic signals indicating the DC Servo status. See “General Purpose Input/Output” for details of how to configure a GPIO pin to output the DC Servo status. w PD, August 2014, Rev 4.2 124 WM1811A Production Data ANALOGUE OUTPUTS The speaker, headphone, earpiece and line outputs are highly configurable and may be used in many different ways. SPEAKER OUTPUT CONFIGURATIONS The speaker outputs SPKOUTL and SPKOUTR can be driven by either of the speaker mixers, SPKMIXL or SPKMIXR. Fine volume control is available on the speaker mixer paths using the SPKLVOL and SPKRVOL PGAs. A boost function is available on the speaker output paths. For information on the speaker mixing options, refer to the “Analogue Output Signal Path” section. The speaker outputs SPKOUTL and SPKOUTR operate in a BTL configuration. The speaker outputs can be configured as a pair of stereo outputs, or as a single mono output. Note that, for applications requiring only a single speaker output, it is possible to improve the THD performance by configuring the speaker outputs in mono mode.See “Typical Performance” for further details. The mono configuration is selected by applying a logic high input to the SPKMODE pin (D5), as described in Table 71. For Stereo mode this pin should be connected to GND. Note that SPKMODE is referenced to DBVDD1. An internal pull-up resistor is enabled by default on the SPKMODE pin; this can be configured using the SPKMODE_PU register bit described in Table 72. SPEAKER CONFIGURATION SPKMODE PIN (D5) Stereo Mode GND Mono Mode DBVDD1 Table 71 SPKMODE Pin Function In the mono configuration, the P channels, SPKOUTLP and SPKOUTRP should be connected together on the PCB, and similarly with the N channels, SPKOUTLN and SPKOUTRN, as illustrated in Figure 30. In this configuration bothleft and right speaker drivers should be enabled (SPKOUTL_ENA=1 and SPKOUTR_ENA=1), but path selection and volume controls are available on left channel only (SPKMIXL, SPKLVOL and SPKOUTLBOOST). Note that the minimum speaker load resistance and the maximum power output has a dependency on the SPKMODE output configuration, and also on the Class D/AB mode selection. See “Electrical Characteristics” for further details. Stereo Mono Figure 30 Stereo / Mono Speaker Output Configurations w PD, August 2014, Rev 4.2 125 WM1811A Production Data Eight levels of AC signal boost are provided in order to deliver maximum output power for many commonly-used SPKVDD/AVDD1 combinations. (Note that SPKVDD1 powers the Left Speaker driver, and SPKVDD2 powers the Right Speaker driver; it is assumed that SPKVDD1 = SPKVDD2 = SPKVDD.) The signal boost options are available. The AC boost levels from 0dB to +12dB are selected using register bits SPKOUTL_BOOST and SPKOUTR_BOOST. To prevent pop noise, SPKOUTL_BOOST and SPKOUTR_BOOST should not be modified while the speaker outputs are enabled. Figure 31 illustrates the speaker outputs and the mixing and gain/boost options available. Ultra-low leakage and high PSRR allow the speaker supply SPKVDD to be directly connected to a lithium battery. Note that an appropriate SPKVDD supply voltage must be provided to prevent waveform clipping when speaker boost is used. DC gain is applied automatically, with a shift from VMID to SPKVDD/2. This provides optimum signal swing for maximum output power. The AC and DC gain functions are illustrated in Figure 31. Figure 31 Speaker Output Configuration and AC Boost Operation w PD, August 2014, Rev 4.2 126 WM1811A Production Data REGISTER ADDRESS R37 (0025h) BIT 5:3 ClassD LABEL SPKOUTL_BOOST[ 2:0] DEFAULT DESCRIPTION 000 Left Speaker Gain Boost (1.0x) 000 = 1.00x boost (+0dB) 001 = 1.19x boost (+1.5dB) 010 = 1.41x boost (+3.0dB) 011 = 1.68x boost (+4.5dB) 100 = 2.00x boost (+6.0dB) 101 = 2.37x boost (+7.5dB) 110 = 2.81x boost (+9.0dB) 111 = 3.98x boost (+12.0dB) 2:0 SPKOUTR_BOOST[ 2:0] 000 Right Speaker Gain Boost (1.0x) 000 = 1.00x boost (+0dB) 001 = 1.19x boost (+1.5dB) 010 = 1.41x boost (+3.0dB) 011 = 1.68x boost (+4.5dB) 100 = 2.00x boost (+6.0dB) 101 = 2.37x boost (+7.5dB) 110 = 2.81x boost (+9.0dB) 111 = 3.98x boost (+12.0dB) R1825 (0721h) 1 SPKMODE_PU Pull Control (2) 1 SPKMODE Pull-up enable 0 = Disabled 1 = Enabled Table 72 Speaker Mode and Boost Control Clocking of the Class D output driver is derived from SYSCLK. The clocking frequency division is configured automatically, according to the AIFn_SR and AIFnCLK_RATE registers. (See “Clocking and Sample Rates” for further details of the system clocks and control registers.) The Class D switching clock is enabled whenever SPKOUTL_ENA or SPKOUTR_ENA is set. The frequency is as described in Table 73. When AIF1CLK is selected as the SYSCLK source (SYSCLK_SRC = 0), then the Class D clock frequency is controlled by the AIF1_SR and AIF1CLK_RATE registers. When AIF2CLK is selected as the SYSCLK source (SYSCLK_SRC = 1), then the Class D clock frequency is controlled by the AIF2_SR and AIF2CLK_RATE registers. The applicable clocks (SYSCLK, AIF1CLK or AIF2CLK) must be present and enabled when using the speaker outputs in Class D mode. The presence of a suitable clock is automatically detected by the WM1811A; if the clock signal is absent, then the speaker outputs will be disabled. w PD, August 2014, Rev 4.2 127 WM1811A Production Data SAMPLE RATE (kHz) 8 11.025 SYSCLK RATE (AIFnCLK / fs ratio) 128 192 256 384 512 768 1024 256 256 341.3 256 341.3 256 341.3 352.8 352.8 352.8 352.8 352.8 352.8 352.8 12 384 384 384 384 384 384 384 16 341.3 384 341.3 384 341.3 384 22.05 352.8 352.8 352.8 352.8 352.8 24 384 384 384 384 384 32 341.3 384 341.3 384 44.1 352.8 352.8 352.8 384 384 384 48 88.2 96 1536 256 352.8 384 Table 73 Class D Switching Frequency (kHz) HEADPHONE OUTPUT CONFIGURATIONS The headphone outputs HPOUT1L andHPOUT1R are driven by the headphone output PGAs HPOUT1LVOL and HPOUT1RVOL. Each PGA has its own dedicated volume control, as described in the “Analogue Output Signal Path” section. The input to these PGAs can be either the output mixers MIXOUTL and MIXOUTR or the direct DAC outputs DACL and DACR. The headphone output driver is capable of driving up to 30mW into a 16Ωload or 25mW into a 32Ωload such as a stereo headset or headphones. The outputs are ground-referenced, eliminating any requirement for AC coupling capacitors. This is achieved by having separate positive and negative supply rails powered by an on-chip charge pump.A DC Servo circuit removes any DC offset from the headphone outputs, suppressing ‘pop’ noiseand minimising power consumption. The Charge Pump and DC Servo are described separately (see “Charge Pump” and “DC Servo” respectively). The typical headphone output connection is illustrated in Figure 32. Figure 32 Headphone Output Configuration The headphone output incorporates a common mode, or ground loop, feedback path which provides rejection of system-related ground noise. The return path is via HPOUT1FB. This pin must be connected to ground for normal operation of the headphone output. No register configuration is required. Note that the HPOUT1FB pin should be connected to GND close to the headphone jack, as illustrated in Figure 32. w PD, August 2014, Rev 4.2 128 WM1811A Production Data EARPIECE DRIVER OUTPUT CONFIGURATIONS The earpiece driver outputs HPOUT2P and HPOUT2N are driven by the HPOUT2MIX output mixer, which takes its inputs from the mixer output PGAs MIXOUTLVOL and MIXOUTRVOL. Fine volume control is available using MIXOUTLVOL and MIXOUTRVOL. A selectable -6dB attenuation is available on the HPOUT2MIX output, as described in Table 66 (refer to the “Analogue Output Signal Path” section). The earpiece outputs are designed to operate in a BTL configuration, driving 50mW into a typical 16 ear speaker. For suppression of pop noise there are two separate enables for the earpiece driver; HPOUT2_ENA enables the output stage and HPOUT2_IN_ENA enables the mixer and input stage. HPOUT2_IN_ENA should be enabled a minimum of 50s before HPOUT2_ENA. LINE OUTPUT CONFIGURATIONS The four line outputs LINEOUT1P, LINEOUT1N, LINEOUT2P and LINEOUT2N provide a highly flexible combination of differential and single-ended configurations, each driven by a dedicated output mixer.There is a selectable -6dB gain option in each mixer to avoid clipping when mixing more than one signal into a line output. Additional volume control is available at other locations within each of the supported signal paths. For more information about the line output mixing options, refer to the “Analogue Output Signal Path” section. Typical applications for the line outputs (single-ended or differential) are:  Handset or headset microphone output to external voice CODEC  Stereo line output  Output to external speaker driver(s) to support additional loudspeakers When single-ended mode is selected for either LINEOUT1 or LINEOUT2, a buffered VMID must be enabled as a reference for the outputs. This is enabled by setting the LINEOUT_VMID_BUF_ENA bit as defined in Table 74. REGISTER ADDRESS R56 (0038h) AntiPOP (1) BIT 7 LABEL LINEOUT_VMID_BUF_ ENA DEFAULT 0 DESCRIPTION Enables VMID reference for line outputs in single-ended mode 0 = Disabled 1 = Enabled Table 74 LINEOUT VMID Buffer for Single-Ended Operation Some example line output configurations are listed and illustrated below. w  Differential line output from Mic/Line input on IN1L PGA  Differential line output fromMic/Line input on IN1R PGA  Stereo differential line output from output mixers MIXOUTL and MIXOUTR  Stereo single-ended line output from output mixer to either LINEOUT1 or LINEOUT2  Mono single-ended line output from output mixer PD, August 2014, Rev 4.2 129 WM1811A Production Data LINEOUT1N_MUTE=0, LINEOUT1P_MUTE=0 LINEOUT1N_MUTE=0, LINEOUT1P_MUTE=0 LINEOUT2N_MUTE=0, LINEOUT2P_MUTE=0 LINEOUT2N_MUTE=0, LINEOUT2P_MUTE=0 LINEOUT1_MODE=0 LINEOUT1_MODE=0 LINEOUT2_MODE=0 LINEOUT2_MODE=0 IN1L_TO_LINEOUT1P=1 IN1R_TO_LINEOUT1P=1 IN1R_TO_LINEOUT2P=1 IN1L_TO_LINEOUT2P=1 Figure 33 Differential Line Out from input PGA Figure 34 Differential Line Out from input PGA IN1L (to LINEOUT1) and IN1R (to LINEOUT2) IN1R (to LINEOUT1) and IN1L (to LINEOUT2) LINEOUT1N_MUTE=0, LINEOUT1P_MUTE=0 LINEOUT1N_MUTE=0, LINEOUT1P_MUTE=0 LINEOUT2N_MUTE=0, LINEOUT2P_MUTE=0 LINEOUT2N_MUTE=0, LINEOUT2P_MUTE=0 LINEOUT1_MODE=0 LINEOUT1_MODE=1 LINEOUT2_MODE=0 MIXOUTL_TO_LINEOUT1P=1 MIXOUTL_TO_LINEOUT1P=1 MIXOUTR_TO_LINEOUT1N=1 MIXOUTR_TO_LINEOUT2P=1 LINEOUT_VMID_BUF_ENA=1 Figure 35 Stereo Differential Line Out from Figure 36 Stereo Single-Ended Line Out from MIXOUTL and MIXOUTR MIXOUTL and MIXOUTR to LINEOUT1 w PD, August 2014, Rev 4.2 130 WM1811A Production Data LINEOUT1N_MUTE=0, LINEOUT1P_MUTE=0 LINEOUT1N_MUTE=0, LINEOUT1P_MUTE=0 LINEOUT2N_MUTE=0, LINEOUT2P_MUTE=0 LINEOUT2N_MUTE=0, LINEOUT2P_MUTE=0 LINEOUT1_MODE=1 LINEOUT1_MODE=1 MIXOUTL_TO_LINEOUT2N=1 LINEOUT2_MODE=1 MIXOUTR_TO_LINEOUT2P=1 MIXOUTL_TO_LINEOUT1N=1 and/or LINEOUT_VMID_BUF_ENA=1 MIXOUTL_TO_LINEOUT1P=1 MIXOUTR_TO_LINEOUT2N=1 and/or MIXOUTR_TO_LINEOUT2P=1 LINEOUT_VMID_BUF_ENA=1 Figure 37 Stereo Single-Ended Line Out from MIXOUTL and MIXOUTR to LINEOUT2 Figure 38 Mono Line Out to LINEOUT1N, LINEOUT1P, LINEOUT2N, LINEOUT2P The line outputs incorporate a common mode, or ground loop, feedback path which provides rejection of system-related ground noise. The return path, via LINEOUTFB, is enabled separately for LINEOUT1 and LINEOUT2 using the LINEOUT1_FB and LINEOUT2_FB bits as defined in Table 75. Ground loop feedback is a benefit to single-ended line outputs only; it is not applicable to differential outputs, which already inherently offer common mode noise rejection. REGISTER ADDRESS R55 (0037h) BIT 7 LABEL DEFAULT LINEOUT1_FB 0 Additional Control DESCRIPTION Enable ground loop noise feedback on LINEOUT1 0 = Disabled 1 = Enabled 6 LINEOUT2_FB 0 Enable ground loop noise feedback on LINEOUT2 0 = Disabled 1 = Enabled Table 75 Line Output Ground Loop Feedback Enable w PD, August 2014, Rev 4.2 131 WM1811A Production Data EXTERNAL ACCESSORY DETECTION The WM1811A provides external accessory detection functions which can sense the presence and impedance of external components. This can be used to detect the insertion or removal of an external headphone or headset, and to provide an indication of key/button push events. Jack insertion is detected using the JACKDET pin, which must be connected to switch contacts within the jack socket. An Interrupt event is generated whenever a jack insertion or jack removal event is detected. Microphones, push-buttons and other accessories can be detected via the MICDET pin. The presence of a microphone, and the status of a hookswitch can be detected. This feature can also be used to detect push-button operation. Note that clocking is required for all of the external accessory detection functions.The WM1811A can support accessory detection using a low frequency (eg. 32kHz) clock for reduced power consumption. JACK DETECT The WM1811A provides support for jack insertion switch detection. The Jack Detect function also enables the device to be configured for low power standby modes; typical use cases are where an application is idle in standby mode until a headphone or headset jack is inserted. Jack insertion and removal is detected using the JACKDET pin. The recommended external connection circuit is illustrated in Figure 39. The status of the jack insertion switch can be read using the JACKDET_LVL register. The JACKDET input de-bounce is enabled or disabled using the JACKDET_DB register, as described in Table 77. The Jack Detect function is enabled whenever JACKDET_MODE > 00. An Interrupt Request (IRQ) event is generated whenever a jack insertion or jack removal is detected (see “Interrupts”). Different settings of JACKDET_MODE allow different low power configurations to be selected. Note that audio and/or microphone detection functions are not supported under these low power conditions. The options provided by the JACKDET_MODE register are summarised in Table 76. When JACKDET_MODE = 01, the LDO1 regulator output must be configured to be floating when disabled. The LDO1_DISCH bit (see Table 127) must be set to 0 before setting JACKDET_MODE = 01. Note that, in modes where MICDET (microphone / accessory detect) functionality is required, this must be configured as described in the following section. In modes where the Audio functions are not supported, none of the WM1811A analogue/digital audio record or playback functions are possible. JACKDET_MODE JACK DETECT 00 MICROPHONE / ACCESSORY DETECT  01  10  11  AUDIO FUNCTIONS  TYPICAL USE CASE Full device operation (eg. audio record/playback). (Note that Jack Detect is not supported.) Device in idle mode, monitoring accessory activity (eg. button press, jack removal etc.)  Device in standby mode, awaiting jack insertion Lowest power external accessory detection mode.   Full device operation (eg. audio record/playback). Note that JACKDET_MODE = 01 or 10 are not supported if AVDD1 or DCVDD is supplied externally. These settings must not be selected if AVDD1 or DCVDD is supplied externally (ie. if LDO1 or LDO2 is not used). Table 76 Jack Detect Modes w PD, August 2014, Rev 4.2 132 WM1811A Production Data When JACKDET_MODE = 01, LDO1 and LDO2 are disabled. AVDD1 is powered from AVDD2, and DCVDD is powered from DBVDD1. When JACKDET_MODE = 10, LDO1 and LDO2 are disabled. AVDD1 is unpowered, and DCVDD is powered from DBVDD1. Note that, in both modes described above, the LDO1ENA input pin is ignored. The LDO2ENA pin must be asserted (logic ‘1’) to power DCVDD, although LDO2 will operate in a ‘bypass’ mode, connecting DCVDD to DBVDD1. Note that, in both modes described above, the AVDD1 voltage is below the minimum recommended operating level. Analogue or digital audio functions cannot be supported in these modes. Note that the LDO configuration for JACKDET_MODE = 01 or 10 assumes that AVDD1 and DCVDD are powered from LDO1 and LDO2 respectively. If AVDD1 or DCVDD is powered externally (not from the internal LDOs), then these settings of JACKDET_MODE must not be used. If AVDD1 or DCVDD is powered externally (not from the internal LDOs), then the Jack Detect function, when required, should be enabled by setting JACKDET_MODE = 11. The control registers associated with the Jack Detect function are described in Table 77. REGISTER ADDRESS R1797 (0705h) JACKDET Ctrl BIT 8 LABEL JACKDET_DB DEFAULT 1 DESCRIPTION JACKDETinput de-bounce 0 = Disabled 1 = Enabled 6 JACKDET_LVL 0 JACKDET input status 0 = Jack not detected 1 = Jack is detected R57 (39h) 8:7 JACKDET_MODE AntiPOP (2) 00 JACKDET mode select 00 = Jack Detect disabled 01 = Jack Detect enabled 10 = Jack Detect enabled 11 = Jack Detect enabled MICDET (microphone/accessory detection) is not supported when JACKDET_MODE = 10. Analogue/Digital audio functions are not supported when JACKDET_MODE = 01 or 10. LDO1_DISCH must be set to 0 when JACKDET_MODE=01. Settings 01 and 10 must not be selected if AVDD1 or DCVDD is supplied externally (ie. if LDO1 or LDO2 is not used). Table 77 Jack Detect Control Clocking for the jack detection function is derived from SYSCLK (defined in the “Clocking and Sample Rates” section). The WM1811A can support accessory detection using a low frequency (eg. 32kHz) clock for reduced power consumption. See the “External Accessory Detection Clocking” section below for further details. w PD, August 2014, Rev 4.2 133 WM1811A Production Data To configure the WM1811A in its lowest power condition, also supporting the Jack Detect function, the following actions are recommended:  Select lowest power Jack Detection mode (JACKDET_MODE = 10)  Select 32kHz SYSCLK  Disable the Thermal sensor (TSHUT_ENA = 0)  Configure LDO1 output to float when disabled (LDO1_DISCH = 0)  Minimise any static current leakage paths on digital inputs where internal pull-up or pulldown resistors are enabled (ie. disable the pull-up/pull-down resistors on these inputs) Care should be taken to restore all applicable device settings when normal operation is resumed following the low power jack detection. In particular, note that the thermal sensor should be enabled for normal operation. A recommended connection circuit, including headphone output on HPOUT1 and microphone connections, is shown in Figure 39. See “Applications Information” for details of recommended external components. Figure 39 Jack Detect and External Accessory Connections The internal comparator circuit used to detect the JACKDET status is illustrated in Figure 40. The threshold voltages for the jack detect circuit are noted in the “Electrical Characteristics”. Note that separate thresholds are defined for jack insertion and jack removal. WM1811A AVDD2 Note: The illustrated circuit assumes the jack insertion switch contacts are closed when jack is inserted. 1M Jack Detect logic + - JACKDET reference (jack insertion switch) Figure 40 Jack Detect Comparator w PD, August 2014, Rev 4.2 134 WM1811A Production Data MICROPHONE / ACCESSORY DETECT The WM1811A accessory detection circuit measures the impedance of an external load connected to the MICDET pin. This feature can be used to detect the insertion or removal of a microphone, and the status of the associated hookswitch. It can also be used to detect push-button status or the connection of other external accessories. The microphone detection circuit measures the impedance connected to MICDET, and reports whether the measured impedance lies within one of 9 pre-defined levels (including the ‘no accessory detected’ level). This means it can detect the presence of a typical microphone and up to 7 pushbuttons. One of the impedance levels is specifically designed to detect a video accessory (typical 75) load if required. The microphone detection circuit uses the MICBIAS2 output as a reference. The WM1811A will automatically enable MICBIAS2 when required in order to perform the detection function; this allows the detection function to be supported in low-power standby operating conditions. Microphone detection is enabled by setting the MICD_ENA register. When microphone detection is enabled, the WM1811A performs a number of measurements in order to determine the MICDET impedance. The measurement process is repeated at a cyclic rate controlled by MICD_RATE.(The MICD_RATE register selects the delay between completion of one measurement and the start of the next.) For best accuracy, the measured impedance is only deemed valid after more than one successive measurement has produced the same result. The MICD_DBTIME register provides control of the debounce period; this can be either 2 measurements or 4 measurements. When the microphone detection result has settled (ie. after the applicable de-bounce period), the WM1811A indicates valid data by setting the MICD_VALID bit. The measured impedance is indicated using the MICD_LVL and MICD_STS register bits, as described in Table 78. The MICD_VALID bit, when set, remains asserted for as long as the microphone detection function is enabled (ie. while MICD_ENA = 1). If the detected impedance changes, then the MICD_LVL and MICD_STS fields will change, but the MICD_VALID bit will remain set, indicating valid data at all times. Note that the impedance levels quoted in the MICD_LVL description assume that a microphone (475Ω to 30kΩ impedance) is also present on the MICDET pin. The limits quoted in the “Electrical Characteristics” refer to the combined effective impedance on the MICDET pin. Typical external components are described in the “Applications Information” section. The microphone detection reports a measurement result in one of the pre-defined impedance levels. Each measurement level can be enabled or disabled independently; this provides flexibility according to the required thresholds, and offers a faster measurement time in some applications. The MICD_LVL_SEL register is described in detail later in this section. Clocking for the microphone detection function is derived from SYSCLK (defined in the “Clocking and Sample Rates” section).The WM1811A can support accessory detection using a low frequency (eg. 32kHz) clock for reduced power consumption. See the “External Accessory Detection Clocking” section below for further details. The microphone detection function is an input to the Interrupt control circuit and can be used to trigger an Interrupt event every time an accessory insertion, removal or impedance change is detected. See “Interrupts” for further details. The microphone detection function can also generate a GPIO output, providing an external indication of the microphone detection. This GPIO output is pulsed every time an accessory insertion, removal or impedance change is detected. See “General Purpose Input/Output” for details of how to configure a GPIO pin to output the microphone detection signal. The register fields associated with Microphone Detection (or other accessories) are described in Table 78. The external circuit configuration is illustrated in Figure 41. w PD, August 2014, Rev 4.2 135 WM1811A Production Data REGISTER ADDRESS R208 (00D0h) BIT 15:12 LABEL MICD_BIAS_START TIME [3:0] DEFAULT 0111 DESCRIPTION Mic Detect Bias Startup Delay (If MICBIAS2 is not enabled already, this field selects the delay time allowed for MICBIAS2 to startup prior to performing the MICDET function.) Mic Detect 1 0000 = 0ms (continuous) 0001 = 0.25ms 0010 = 0.5ms 0011 = 1ms 0100 = 2ms 0101 = 4ms 0110 = 8ms 0111 = 16ms 1000 = 32ms 1001 = 64ms 1010 = 128ms 1011 = 256ms 1100 to 1111 = 512ms 11:8 MICD_RATE [3:0] 0110 Mic Detect Rate (Selects the delay between successive Mic Detect measurements.) 0000 = 0ms (continuous) 0001 = 0.25ms 0010 = 0.5ms 0011 = 1ms 0100 = 2ms 0101 = 4ms 0110 = 8ms 0111 = 16ms 1000 = 32ms 1001 = 64ms 1010 = 128ms 1011 = 256ms 1100 to 1111 = 512ms 1 MICD_DBTIME 0 Mic Detect De-bounce 0 = 2 measurements 1 = 4 measurements 0 MICD_ENA 0 Mic Detect Enable 0 = Disabled 1 = Enabled Note that Mic Detect is not supported when JACKDET_MODE = 10. w PD, August 2014, Rev 4.2 136 WM1811A Production Data REGISTER ADDRESS R209 (00D1h) BIT 7:0 LABEL MICD_LVL_SEL [7:0] DEFAULT DESCRIPTION 0111_ Mic Detect Level Select 1111 (enables Mic Detection in specific impedance ranges) Mic Detect 2 [7] = Not used - must be set to 0 [6] = Enable >475 ohm detection [5] = Enable 326 ohm detection [4] = Enable 152 ohm detection [3] = Enable 77 ohm detection [2] = Enable 47.6 ohm detection [1] = Enable 29.4 ohm detection [0] = Enable 14 ohm detection Note that the impedance values quoted assume that a microphone (475ohm-30kohm) is also present on the MICDET pin. R210 (00D2h) 10:2 MICD_LVL [8:0] 0_0000_ 0000 Mic Detect 3 Mic Detect Level (indicates the measured impedance) [8] = Not used [7] = >475 ohm, 0 and FLLn_EFS_ENA = 1), the register fields FLLn_THETA and FLLn_LAMBDA can be calculated as follows: Calculate GCD(FLL) using the ‘Greatest Common Denominator’ function: GCD(FLL) = GCD(FLLn_FRATIO x FREF, FVCO) where GCD(x, y) is the greatest common denominator of x and y Next, calculate FLLn_THETA and FLLn_LAMBDA using the following equations: FLLn_THETA = (FVCO - (FLLn_N x FLLn_FRATIO x FREF)) / GCD(FLL) FLLn_LAMBDA = (FLLn_FRATIO x FREF) / GCD(FLL) Note that, in Fractional Mode, the values of FLLn_THETA and FLLn_LAMBDA must be co-prime (ie. not divisible by any common integer). The calculation above ensures that the values will be co-prime. The value of K must be a fraction less than 1 (ie. FLLn_THETA must be less than FLLn_LAMBDA). The FLL1 control registers are described in Table 115. The FLL2 control registers are described in Table 116. Example settings for a variety of reference frequencies and output frequencies are shown in Table 118. REGISTER ADDRESS R544 (0220h) BIT 0 LABEL FLL1_ENA DEFAULT 0 FLL1 Control (1) DESCRIPTION FLL1 Enable 0 = Disabled 1 = Enabled R545 (0221h) 13:8 FLL1_OUTDIV [5:0] 000000 2:0 FLL1_FRATIO [2:0] 000 FLL1 Control (2) This should be set as the final step of the FLL1 enable sequence, ie. after the other FLL registers have been configured. FLL1 FOUT clock divider 000000 = Reserved 000001 = Reserved 000010 = Reserved 000011 = 4 000100 = 5 000101 = 6 … 111110 = 63 111111 = 64 (FOUT = FVCO / FLL1_OUTDIV) FLL1 FVCO clock divider 000 = 1 001 = 2 010 = 4 011 = 8 1XX = 16 R546 (0222h) 15:0 FLL1 Control (3) FLL1_THETA[15 :0] 0000h FLL1_N[9:0] 000h FLL Fractional multiply for FREF This field sets the numerator (multiply) part of the FLL1_THETA / FLL1_LAMBDA ratio. Coded as LSB = 1. R547 (0223h) FLL1 Control (4) w 14:5 FLL Integer multiply for FREF (LSB = 1) PD, August 2014, Rev 4.2 193 WM1811A Production Data REGISTER ADDRESS R548 (0224h) BIT 15 LABEL FLL1_BYP DEFAULT 0 DESCRIPTION FLL1 Bypass Select 0 = Disabled FLL1 Control (5) 1 = Enabled When FLL1_BYP is set, the FLL1 output is derived directly from BCLK1. In this case, FLL1 can be disabled. 4:3 FLL1_REFCLK_ DIV [1:0] 00 FLL1 Clock Reference Divider 00 = MCLK / 1 01 = MCLK / 2 10 = MCLK / 4 11 = MCLK / 8 MCLK (or other input reference) must be divided down to 0. Table 115 FLL1 Register Map w PD, August 2014, Rev 4.2 194 WM1811A Production Data REGISTER ADDRESS R576 (0240h) BIT 0 LABEL FLL2_ENA DEFAULT 0 FLL2 Control (1) DESCRIPTION FLL2 Enable 0 = Disabled 1 = Enabled This should be set as the final step of the FLL2 enable sequence, ie. after the other FLL registers have been configured. R577 (0241h) 13:8 FLL2 Control (2) FLL2_OUTDIV [5:0] 000000 FLL2 FOUT clock divider 000000 = Reserved 000001 = Reserved 000010 = Reserved 000011 = 4 000100 = 5 000101 = 6 … 111110 = 63 111111 = 64 (FOUT = FVCO / FLL2_OUTDIV) 2:0 FLL2_FRATIO [2:0] 000 FLL2 FVCO clock divider 000 = 1 001 = 2 010 = 4 011 = 8 1XX = 16 R578 (0242h) 15:0 FLL2 Control (3) FLL2_THETA[15 :0] 0000h FLL2_N[9:0] 000h FLL Fractional multiply for FREF This field sets the numerator (multiply) part of the FLL2_THETA / FLL2_LAMBDA ratio. Coded as LSB = 1. R579 (0243h) 14:5 R580 (0244h) FLL Integer multiply for FREF (LSB = 1) FLL2 Control (4) 15 FLL2_BYP 0 FLL2 Control (5) FLL2 Bypass Select 0 = Disabled 1 = Enabled When FLL2_BYP is set, the FLL2 output is derived directly from BCLK2. In this case, FLL2 can be disabled. 4:3 FLL2_REFCLK_ DIV [1:0] 00 FLL2 Clock Reference Divider 00 = MCLK / 1 01 = MCLK / 2 10 = MCLK / 4 11 = MCLK / 8 MCLK (or other input reference) must be divided down to 0. Table 116 FLL2 Register Map FREE-RUNNING FLL CLOCK The FLL can generate a clock signal even when no external reference is available. However, it should be noted that the accuracy of this clock is reduced, and a reference source should always be used where possible. The free-running FLL modes are not sufficiently accurate for hi-fi ADC or DAC operations, but are suitable for clocking most other functions, including the Charge Pump, DC Servo and Class D loudspeaker driver. The free-running FLL operation is ideal for clocking the accessory detection function during low-power standby operating conditions (see “External Accessory Detection”). If an accurate reference clock is initially available, then the FLL should be configured as described above. The FLL will continue to generate a stable output clock after the reference input is stopped or disconnected. If no reference clock is available at the time of starting up the FLL, then an internal clock frequency of approximately 12MHz can be generated by implementing the following sequence:  Enable the FLL Analogue Oscillator (FLLn_OSC_ENA = 1)  Set the FOUT clock divider to divide by 8 (FLLn_OUTDIV = 000111)  Configure the oscillator frequency by setting FLLn_FRC_NCO = 1 and FLLn_FRC_NCO_VAL = 19h Note that the free-running FLL mode is not suitable for hi-fi CODEC applications. In the absence of any reference clock, the FLL output is subject to a very wide tolerance; see “Electrical Characteristics” for details of the FLL accuracy. Note that the free-running FLL clock is selected as SYSCLK using the registers noted inFigure 67. The free-running FLL clock may be used to support analogue functions, for which the digital audio interface is not used, and there is no applicable Sample Rate (fs). When SYSCLK is required for circuits such the Class D, DC Servo or Charge Pump, then valid Sample Rate register settings are still required, even though the digital audio interface is not active. For correct functionality when SYSCLK_SRC = 0, valid settings are required for AIF1_SR and AIF1CLK_RATE. In the case where SYSCLK_SRC = 1, then valid settings are required for AIF2_SR and AIF2CLK_RATE. The control registers applicable to FLL free-running modes are described in Table 117. w PD, August 2014, Rev 4.2 196 WM1811A Production Data REGISTER ADDRESS R544 (0220h) BIT 1 LABEL FLL1_OSC_ENA DEFAULT 0 FLL1 Control (1) DESCRIPTION FLL1Oscillator enable 0 = Disabled 1 = Enabled (Note that this field is required for free-running FLL1 modes only) R548 (0224h) 12:7 FLL1 Control (5) FLL1_FRC_NCO _VAL [5:0] 19h FLL1 Forced oscillator value Valid range is 000000 to 111111 0x19h (011001) = 12MHz approx (Note that this field is required for free-running FLL modes only) 6 FLL1_FRC_NCO 0 FLL1Forced control select 0 = Normal 1 = FLL1 oscillator controlled by FLL1_FRC_NCO_VAL (Note that this field is required for free-running FLL modes only) R576 (0240h) 1 FLL2_OSC_ENA 0 FLL2 Control (1) FLL2 Oscillator enable 0 = Disabled 1 = Enabled (Note that this field is required for free-running FLL2 modes only) R580 (0244h) 12:7 FLL2 Control (5) FLL2_FRC_NCO _VAL [5:0] 19h FLL2 Forced oscillator value Valid range is 000000 to 111111 0x19h (011001) = 12MHz approx (Note that this field is required for free-running FLL modes only) 6 FLL2_FRC_NCO 0 FLL2 Forced control select 0 = Normal 1 = FLL2 oscillator controlled by FLL2_FRC_NCO_VAL (Note that this field is required for free-running FLL modes only) Table 117 FLL Free-Running Mode GPIO OUTPUTS FROM FLL For each FLL, the WM1811A has an internal signal which indicates whether the FLL Lock has been achieved. The FLL Lock status is an input to the Interrupt control circuit and can be used to trigger an Interrupt event - see “Interrupts”. The FLL Lock signal can be output directly on a GPIO pin as an external indication of FLL Lock. See “General Purpose Input/Output” for details of how to configure a GPIO pin to output the FLL Lock signal. The FLL Clock can be output directly on a GPIO pin as a clock signal for other circuits. Note that the FLL Clock may be output even if the FLL is not selected as the WM1811A SYSCLK source. The FLL clocking configuration is illustrated in Figure 70. See “General Purpose Input/Output” for details of how to configure a GPIO pin to output the FLL Clock. w PD, August 2014, Rev 4.2 197 WM1811A Production Data EXAMPLE FLL CALCULATION The following example illustrates how to derive the FLL1 registers to generate 12.288 MHz output (FOUT) from a 12.000 MHz reference clock (FREF): w  Set FLL1_REFCLK_DIV in order to generate FREF 00) Table 123 Disabled Line Output Control w PD, August 2014, Rev 4.2 205 WM1811A Production Data LINE OUTPUT DISCHARGE CONTROL The line output paths can be actively discharged to AGND through internal resistors if desired. This is desirable at start-up in order to achieve a known output stage condition prior to enabling the soft-start VMID reference voltage. This is also desirable in shut-down to prevent the external connections from being affected by the internal circuits. The line outputs LINEOUT1P and LINEOUT1N are discharged to AGND by setting LINEOUT1_DISCH. The line outputs LINEOUT2P and LINEOUT2N are discharged to AGND by setting LINEOUT2_DISCH. The discharge resistance is dependent upon the respective LINEOUTn_ENA bit, and also according to the VROI bit (see Table 123). The discharge resistance is noted in the “Electrical Characteristics” section. REGISTER ADDRESS R56 (0038h) BIT LABEL DEFAULT LINEOUT1_DISC H 5 AntiPOP (1) DESCRIPTION Discharges LINEOUT1P and LINEOUT1N outputs 0 0 = Not active 1 = Actively discharging LINEOUT1P and LINEOUT1N LINEOUT2_DISC H 4 Discharges LINEOUT2P and LINEOUT2N outputs 0 0 = Not active 1 = Actively discharging LINEOUT2P and LINEOUT2N Table 124 Line Output Discharge Control VMID REFERENCE DISCHARGE CONTROL The VMID reference can be actively discharged to AGND through internal resistors. This is desirable at start-up in order to achieve a known initial condition prior to enabling the soft-start VMID reference; this ensures maximum suppression of audible pops associated with start-up. VMID is discharged by setting VMID_DISCH. REGISTER ADDRESS R57 (0039h) BIT LABEL VMID_DISCH 0 DEFAULT DESCRIPTION Connects VMID to ground 0 AntiPOP (2) 0 = Disabled 1 = Enabled Table 125 VMID Reference Discharge Control INPUT VMID CLAMPS The analogue inputs can be clamped to Vmid using the INPUTS_CLAMP bit described below. This allows pre-charging of the input AC coupling capacitors during power-up. Note that all eight inputs are clamped using the same control bit. Note that INPUTS_CLAMP must be set to 0 when the analogue input signal paths are in use. REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R21 (15h) 6 INPUTS_CLAMP Input Mixer (1) 0 Input pad VMID clamp 0 = Clamp de-activated 1 = Clamp activated Table 126 Input VMID Clamps w PD, August 2014, Rev 4.2 206 Production Data WM1811A LDO REGULATORS The WM1811A provides two integrated Low Drop-Out Regulators (LDOs). These are provided to generate the appropriate power supplies for internal circuits, simplifying and reducing the requirements for external supplies and associated components. A reference circuit powered by AVDD2 ensures the accuracy of the LDO regulator voltage settings. Note that the integrated LDOs are only intended for generating the AVDD1 and DCVDD supply rails for the WM1811A; they are not suitable for powering any additional or external loads. LDO1 is intended for generating AVDD1 - the primary analogue power domain of the WM1811A. LDO1 is powered by LDO1VDD and is enabled when a logic ‘1’ is applied to the LDO1ENA pin. The logic level is determined with respect to the DBVDD1 voltage domain. The LDO1 start-up time is dependent on the external AVDD1 and VREFC capacitors; the start-up time is noted in the “Electrical Characteristics” section for the recommended external component conditions. When LDO1 is enabled, the output voltage is controlled by the LDO1_VSEL register field. Note that the LDO1 voltage difference LDO1VDD - AVDD1 must be higher than the LDO1 Drop-Out voltage (see “Electrical Characteristics”). When LDO1 is disabled(by applying a logic ‘0’ to the LDO1ENA pin), the output can be left floating or can be actively discharged, depending on the LDO1_DISCH control bit. It is possible to supply AVDD1 from an external supply. If AVDD1 is supplied externally, then LDO1 should be disabled, and the LDO1 output left floating (LDO1DISCH = 0). Note that the LDO1VDD voltage must be greater than or equal to AVDD1; this ensures that there is no leakage path through the LDO for the external supply. Note that the WM1811A can operate with AVDD1 tied to 0V; power consumption may be reduced, but the analogue audio functions will not be supported. LDO2 is intended for generating the DCVDD power domain which supplies the digital core functions on the WM1811A. LDO2 is powered by DBVDD1 and is enabled when a logic ‘1’ is applied to the LDO2ENA pin. The logic level is determined with respect to the DBVDD1 voltage domain.The LDO2 start-up time is dependent on the external DCVDD and VREFC capacitors; the start-up time is noted in the “Electrical Characteristics” section for the recommended external component conditions. When LDO2 is enabled, the output voltage is controlled by the LDO2_VSEL register field. When LDO2 is disabled (by applying a logic ‘0’ to the LDO2ENA pin), the output can be left floating or can be actively discharged, depending on the LDO2_DISCH control bit. It is possible to supply DCVDD from an external supply. If DCVDD is supplied externally, the LDO2ENA and LDO2DISCH bits should be set to 0. Note that the DBVDD1 voltage must be greater than or equal to DCVDD; this ensures that there is no leakage path through the LDO for the external supply. An internal pull-down resistor is enabled by default on the LDO1ENA and LDO2ENA pins. These pulldown resistors can be configured using the register bits described in Table 127. Decoupling capacitors should be connected to the voltage reference pin, VREFC, and also to the LDO outputs, AVDD1 and DCVDD. See “Applications Information” for further details. The LDO Regulator connections and controls are illustrated in Figure 79. The register controls are defined in Table 127. w PD, August 2014, Rev 4.2 207 WM1811A Production Data AVDD2 Voltage Reference VREFC Analogue Supply LDO1_VSEL[2:0] LDO1_DISCH Digital Core Supply LDO2_VSEL[1:0] LDO2_DISCH LDO1 LDO2 LDO1VDD LDO1ENA AVDD1 DBVDD1 LDO2ENA DCVDD Figure 79 LDO Regulators REGISTER ADDRESS R59 (003Bh) BIT 3:1 LABEL LDO1_VSEL [2:0] DEFAULT 110 LDO 1 DESCRIPTION LDO1 Output Voltage Select 2.4V to 3.1V in 100mV steps 000 = 2.4V 001 = 2.5V 010 = 2.6V 011 = 2.7V 100 = 2.8V 101 = 2.9V 110 = 3.0V 111 = 3.1V 0 LDO1_DISCH 1 LDO1 Discharge Select 0 = LDO1 floating when disabled 1 = LDO1 discharged when disabled R60 (003Ch) 2:1 LDO2_VSEL [1:0] 01 LDO2 Output Voltage Select 1.05V to 1.25V in 100mV steps LDO 2 00 = Reserved 01 = 1.05V 10 = 1.15V 11 = 1.25V 0 LDO2_DISCH 1 LDO2 Discharge Select 0 = LDO2 floating when disabled 1 = LDO2 discharged when disabled R1825 (0721h) Pull Control (2) 6 LDO2ENA_PD 1 LDO2ENA Pull-down enable 0 = Disabled 1 = Enabled 4 LDO1ENA_PD 1 LDO1ENA Pull-down enable 0 = Disabled 1 = Enabled Table 127 LDO Regulator Control w PD, August 2014, Rev 4.2 208 WM1811A Production Data REFERENCE VOLTAGES AND MASTER BIAS This section describes the analogue reference voltage and bias current controls. It also describes the VMID soft-start circuit for pop suppressed start-up and shut-down. The analogue circuits in the WM1811A require a mid-rail analogue reference voltage, VMID. This reference is generated from AVDD1 via a programmable resistor chain. Together with the external VMID decoupling capacitor, the programmable resistor chain determines the charging characteristic on VMID. This is controlled by VMID_SEL[1:0], and can be used to optimise the reference for normal operation or low power standby as described in Table 128. A buffered mid-rail reference voltage is provided. This is required for the single-ended configuration of the Input PGAs, and also for direct signal paths from the input pins to the Input Mixers, Output Mixers or Speaker Mixers. These requirements are noted in the relevant “Analogue Input Signal Path” and “Analogue Output Signal Path” sections. The buffered mid-rail reference is enabled by setting the VMID_BUF_ENA register bit. The analogue circuits in the WM1811A require a bias current. The normal bias current is enabled by setting BIAS_ENA. Note that the normal bias current source requires VMID to be enabled also. REGISTER ADDRESS R1 (0001h) BIT 2:1 Power Management (1) LABEL VMID_SEL [1:0] DEFAUL T 00 DESCRIPTION VMID Divider Enable and Select 00 = VMID disabled (for OFF mode) 01 = 2 x 40k divider (for normal operation) 10 = 2 x 240k divider (for low power standby) 11 = Reserved 0 BIAS_ENA 0 Enables the Normal bias current generator (for all analogue functions) 0 = Disabled 1 = Enabled R57 (0039h) AntiPOP (2) 3 VMID_BUF_ ENA 0 VMID Buffer Enable 0 = Disabled 1 = Enabled (provided VMID_SEL > 00) Table 128 Reference Voltages and Master Bias Enable A pop-suppressed start-up requires VMID to be enabled smoothly, without the step change normally associated with the initial stage of the VMID capacitor charging. A pop-suppressed start-up also requires the analogue bias current to be enabled throughout the signal path prior to the VMID reference voltage being applied. The WM1811A incorporates pop-suppression circuits which address these requirements. An alternate bias current source (Start-Up Bias) is provided for pop-free start-up; this is enabled by the STARTUP_BIAS_ENA register bit. The start-up bias is selected (in place of the normal bias) using the BIAS_SRC bit. It is recommended that the start-up bias is used during start-up, before switching back to the higher quality, normal bias. A soft-start circuit is provided in order to control the switch-on of the VMID reference. The soft-start control circuit offers two slew rates for enabling the VMID reference; these are selected and enabled by VMID_RAMP. When the soft-start circuit is enabled prior to enabling VMID_SEL, the reference voltage rises smoothly, without the step change that would otherwise occur. It is recommended that the soft-start circuit and the output signal path be enabled before VMID is enabled by VMID_SEL. A soft shut-down is provided, using the soft-start control circuit and the start-up bias current generator. The soft shut-down of VMID is achieved by setting VMID_RAMP, STARTUP_BIAS_ENA and BIAS_SRC to select the start-up bias current and soft-start circuit prior to setting VMID_SEL=00. Note that, if the VMID_RAMP function is enabled for soft start-up or soft shut-down then, after setting VMID_SEL = 00 to disable VMID, the soft-start circuit must be reset before re-enabling VMID. The soft-start circuit is reset by setting VMID_RAMP = 00. After resetting the soft-start circuit, the VMID_RAMP register may be updated to the required setting for the next VMID transition. The VMID soft-start register controls are defined in Table 129. w PD, August 2014, Rev 4.2 209 WM1811A Production Data REGISTER ADDRESS R57 (0039h) BIT 6:5 LABEL VMID_RAMP [1:0] DEFAULT 10 AntiPOP (2) DESCRIPTION VMID soft start enable / slew rate control 00 = Normal slow start 01 = Normal fast start 10 = Soft slow start 11 = Soft fast start If VMID_RAMP = 1X is selected for VMID start-up or shut-down, then the soft-start circuit must be reset by setting VMID_RAMP=00 after VMID is disabled, before VMID is re-enabled. VMID is disabled / enabled using the VMID_SEL register. 2 STARTUP_BIAS_ ENA 0 Enables the Start-Up bias current generator 0 = Disabled 1 = Enabled 1 BIAS_SRC 1 Selects the bias current source 0 = Normal bias 1 = Start-Up bias Table 129 Soft Start Control w PD, August 2014, Rev 4.2 210 WM1811A Production Data POWER MANAGEMENT The WM1811A has control registers that allow users to select which functions are active. For minimum power consumption, unused functions should be disabled. To minimise pop or click noise, it is important to enable or disable functions in the correct order. See “Analogue Output Signal Path” for details of recommended output driver control sequences. REGISTER ADDRESS R1 (0001h) BIT 13 LABEL SPKOUTR_ENA DEFAULT 0 Power Management (1) DESCRIPTION SPKMIXR Mixer, SPKRVOL PGA and SPKOUTR Output Enable 0 = Disabled 1 = Enabled 12 SPKOUTL_ENA 0 SPKMIXL Mixer, SPKLVOL PGA and SPKOUTL Output Enable 0 = Disabled 1 = Enabled 11 HPOUT2_ENA 0 HPOUT2 and HPOUT2MIX Enable 0 = Disabled 1 = Enabled 9 HPOUT1L_ENA 0 Enables HPOUT1L input stage 0 = Disabled 1 = Enabled 8 HPOUT1R_ENA 0 Enables HPOUT1R input stage 0 = Disabled 1 = Enabled 5 MICB2_ENA 0 Microphone Bias 2 Enable 0 = Disabled 1 = Enabled 4 MICB1_ENA 0 Microphone Bias 1 Enable 0 = Disabled 1 = Enabled 2:1 VMID_SEL 00 [1:0] VMID Divider Enable and Select 00 = VMID disabled (for OFF mode) 01 = 2 x 40k divider (Normal mode) 10 = 2 x 240k divider (Standby mode) 11 = Reserved 0 BIAS_ENA 0 Enables the Normal bias current generator (for all analogue functions) 0 = Disabled 1 = Enabled R2 (0002h) Power Management (2) 14 TSHUT_ENA 1 Thermal Sensor Enable 0 = Disabled 1 = Enabled 13 TSHUT_OPDIS 1 Thermal Shutdown Control (Causes audio outputs to be disabled if an over-temperature occurs. The thermal sensor must also be enabled.) 0 = Disabled 1 = Enabled 11 OPCLK_ENA 0 GPIO Clock Output (OPCLK) Enable 0 = Disabled 1 = Enabled 9 MIXINL_ENA 0 Left Input Mixer Enable (Enables MIXINL and RXVOICE input to MIXINL) 0 = Disabled w PD, August 2014, Rev 4.2 211 WM1811A Production Data REGISTER ADDRESS BIT LABEL DEFAULT DESCRIPTION 1 = Enabled 8 MIXINR_ENA 0 Right Input Mixer Enable (Enables MIXINR and RXVOICE input to MIXINR) 0 = Disabled 1 = Enabled 7 IN2L_ENA 0 IN2L Input PGA Enable 0 = Disabled 1 = Enabled 6 IN1L_ENA 0 IN1L Input PGA Enable 0 = Disabled 1 = Enabled 5 IN2R_ENA 0 IN2R Input PGA Enable 0 = Disabled 1 = Enabled 4 IN1R_ENA 0 IN1R Input PGA Enable 0 = Disabled 1 = Enabled R3 (0003h) 13 LINEOUT1N_ENA 0 Power Management (3) LINEOUT1N Line Out and LINEOUT1NMIX Enable 0 = Disabled 1 = Enabled 12 LINEOUT1P_ENA 0 LINEOUT1P Line Out and LINEOUT1PMIX Enable 0 = Disabled 1 = Enabled 11 LINEOUT2N_ENA 0 LINEOUT2N Line Out and LINEOUT2NMIX Enable 0 = Disabled 1 = Enabled 10 LINEOUT2P_ENA 0 LINEOUT2P Line Out and LINEOUT2PMIX Enable 0 = Disabled 1 = Enabled 9 SPKRVOL_ENA 0 SPKMIXR Mixer and SPKRVOL PGA Enable 0 = Disabled 1 = Enabled Note that SPKMIXR and SPKRVOL are also enabled when SPKOUTR_ENA is set. 8 SPKLVOL_ENA 0 SPKMIXL Mixer and SPKLVOL PGA Enable 0 = Disabled 1 = Enabled Note that SPKMIXL and SPKLVOL are also enabled when SPKOUTL_ENA is set. 7 MIXOUTLVOL_E NA 0 MIXOUTRVOL_E NA 0 MIXOUTL Left Volume Control Enable 0 = Disabled 1 = Enabled 6 MIXOUTR Right Volume Control Enable 0 = Disabled 1 = Enabled w PD, August 2014, Rev 4.2 212 WM1811A Production Data REGISTER ADDRESS BIT 5 LABEL MIXOUTL_ENA DEFAULT 0 DESCRIPTION MIXOUTL Left Output Mixer Enable 0 = Disabled 1 = Enabled 4 MIXOUTR_ENA 0 MIXOUTR Right Output Mixer Enable 0 = Disabled 1 = Enabled R4 (0004h) 13 AIF2ADCL_ENA 0 Power Management (4) Enable AIF2ADC (Left) output path 0 = Disabled 1 = Enabled This bit must be set for AIF2 or AIF3 output of the AIF2ADC (Left) signal. 12 AIF2ADCR_ENA 0 Enable AIF2ADC (Right) output path 0 = Disabled 1 = Enabled This bit must be set for AIF2 or AIF3 output of the AIF2ADC (Left) signal. 9 AIF1ADC1L_ENA 0 Enable AIF1ADC (Left) output path 0 = Disabled 1 = Enabled 8 AIF1ADC1L_ENA 0 Enable AIF1ADC (Right) output path 0 = Disabled 1 = Enabled 3 DMIC1L_ENA 0 Digital microphone (DMICDAT) Left channel enable 0 = Disabled 1 = Enabled 2 DMIC1R_ENA 0 Digital microphone (DMICDAT) Right channel enable 0 = Disabled 1 = Enabled 1 ADCL_ENA 0 Left ADC Enable 0 = Disabled 1 = Enabled 0 ADCR_ENA 0 Right ADC Enable 0 = Disabled 1 = Enabled R5 (0005h) Power Management (5) 13 AIF2DACL_ENA 0 Enable AIF2DAC (Left) input path 0 = Disabled 1 = Enabled 12 AIF2DACR_ENA 0 Enable AIF2DAC (Right) input path 0 = Disabled 1 = Enabled 9 AIF1DAC1L_ENA 0 Enable AIF1DAC (Left) input path 0 = Disabled 1 = Enabled 8 AIF1DAC1R_ENA 0 Enable AIF1DAC (Right) input path 0 = Disabled 1 = Enabled 1 DAC1L_ENA 0 Left DAC Enable 0 = Disabled 1 = Enabled 0 DAC1R_ENA 0 Right DAC Enable 0 = Disabled w PD, August 2014, Rev 4.2 213 WM1811A Production Data REGISTER ADDRESS BIT LABEL DEFAULT DESCRIPTION 1 = Enabled R76 (004Ch) 15 CP_ENA 0 Charge Pump (1) R84 (0054h) Enable charge-pump digits 0 = Disable 1 = Enable 1 DC Servo (1) DCS_ENA_CHAN _1 0 DCS_ENA_CHAN _0 0 AIF1CLK_ENA 0 DC Servo enable for HPOUT1R 0 = Disabled 1 = Enabled 0 DC Servo enable for HPOUT1L 0 = Disabled 1 = Enabled R512 (0200h) 0 AIF 1 Clocking (1) R516 (0204h) 0 = Disabled 1 = Enabled 0 AIF2CLK_ENA 0 AIF 2 Clocking (1) R520 (0208h) AIF1CLK Enable AIF2CLK Enable 0 = Disabled 1 = Enabled 4 TOCLK_ENA 0 Clocking (1) Slow Clock (TOCLK) Enable 0 = Disabled 1 = Enabled This clock is required for zero-cross timeout. 3 AIF1DSPCLK_EN A 0 AIF2DSPCLK_EN A 0 SYSDSPCLK_EN A 0 FLL1_ENA 0 AIF1 Processing Clock Enable 0 = Disabled 1 = Enabled 2 AIF2 Processing Clock Enable 0 = Disabled 1 = Enabled 1 Digital Mixing Processor Clock Enable 0 = Disabled 1 = Enabled R544 (0220h) 0 FLL1 Control (1) FLL1 Enable 0 = Disabled 1 = Enabled This should be set as the final step of the FLL1 enable sequence, ie. after the other FLL registers have been configured. R576 (0240h) 0 FLL2_ENA FLL2 Control (1) 0 FLL2 Enable 0 = Disabled 1 = Enabled This should be set as the final step of the FLL2 enable sequence, ie. after the other FLL registers have been configured. Table 130 Power Management w PD, August 2014, Rev 4.2 214 WM1811A Production Data THERMAL SHUTDOWN The WM1811A incorporates a temperature sensor which detects when the device temperature is within normal limits or if the device is approaching a hazardous temperature condition. The temperature sensor can be configured to automatically disable the audio outputs of the WM1811A in response to an overtemperature condition (approximately 150ºC). The temperature status can be output directly on a GPIO pin, as described in the “General Purpose Input/Output” section. The temperature sensor can also be used to generate Interrupt events, as described in the “Interrupts” section. The GPIO and Interrupt functions can be used to indicate either a Warning Temperature event or the Shutdown Temperature event. The temperature sensor is enabled by setting the TSHUT_ENA register bit. When the TSHUT_OPDIS is also set, then a device over-temperature condition will cause the speaker outputs (SPKOUTL and SPKOUTR) of the WM1811A to be disabled; this response is likely to prevent any damage to the device attributable to the large currents of the output drivers. Note that, to prevent pops and clicks, TSHUT_ENA and TSHUT_OPDIS should only be updated whilst the speaker and headphone outputs are disabled. REGISTER ADDRESS R2 (0002h) Power Management (2) BIT 14 LABEL TSHUT_ENA DEFAULT 1 DESCRIPTION Thermal sensor enable 0 = Disabled 1 = Enabled 13 TSHUT_OPDIS 1 Thermal shutdown control (Causes audio outputs to be disabled if an overtemperature occurs. The thermal sensor must also be enabled.) 0 = Disabled 1 = Enabled Table 131 Thermal Shutdown w PD, August 2014, Rev 4.2 215 WM1811A Production Data POWER ON RESET The WM1811A includes a Power-On Reset (POR) circuit, which isused to reset the digital logic into a default state after power up. The POR circuit derives its output from AVDD2 and DCVDD. The internal POR ¯¯¯ signal is asserted low when AVDD2 and DCVDD are below minimum thresholds. The specific behaviour of the circuit will vary, depending on relative timing of the supply voltages. Typical scenarios are illustrated in Figure 80 and Figure 81. Figure 80 Power On Reset Timing – AVDD2 enabled/disabled first AVDD2 Vpora Vpora_on 0V DCVDD Vpord_off 0V HI Internal POR LO POR active Device ready POR active POR undefined Figure 81 Power On Reset Timing - DCVDD enabled/disabled first The POR ¯¯¯ signal is undefined until AVDD2 has exceeded the minimum threshold, Vpora. Once this threshold has been exceeded, POR ¯¯¯ is asserted low and the chip is held in reset. In this condition, all writes to the control interface are ignored. Once AVDD2 and DCVDD have reached their respective power on thresholds, POR ¯¯¯ is released high, all registers are in their default state, and writes to the control interface may take place. Note that a power-on reset period, TPOR, applies afterAVDD2 and DCVDD have reached their respective power on thresholds. This specification is guaranteed by design rather than test. On power down, POR ¯¯¯ is asserted low when either AVDD2 or DCVDD falls below their respective power-down thresholds. w PD, August 2014, Rev 4.2 216 WM1811A Production Data Typical Power-On Reset parameters for the WM1811A are defined in Table 132. SYMBOL DESCRIPTION TYP UNIT Vpora_on Power-On threshold (AVDD2) 1.15 V Vpora_off Power-Off threshold (AVDD2) 1.14 V Vpord_on Power-On threshold (DCVDD) 0.56 V Vpord_off Power-Off threshold (DCVDD) 0.55 V Minimum Power-On Reset period 100 ns TPOR Table 132 Typical Power-On Reset Parameters Table 133 describes the status of the WM1811A digital I/O pins when the Power On Reset has completed, prior to any register writes. The same conditions apply on completion of a Software Reset (described in the “Software Reset and Device ID” section). PIN NO NAME TYPE RESET STATUS DBVDD1 power domain D5 SPKMODE Digital Input Pull-up to DBVDD1 A4 LDO1ENA Digital Input Pull-down to DGND F3 ADDR Digital Input Pull-down to DGND D6 LDO2ENA Digital Input Pull-down to DGND H2 SCLK Digital Input Digital input H3 SDA Digital Input/Output Digital input F1 MCLK1 Digital Input Digital input F2 MCLK2 Digital Input Pull-down to DGND G3 BCLK1 Digital Input/Output Digital input G1 LRCLK1 Digital Input/Output Digital input J1 ADCLRCLK1/GPIO1 Digital Input/Output Digital input H1 DACDAT1 Digital Input Digital input F4 ADCDAT1 Digital Output Digital output DBVDD2 power domain K1 BCLK2 Digital Input/Output Digital input, Pull-down to DGND J3 LRCLK2 Digital Input/Output Digital input, Pull-down to DGND G4 DACDAT2 Digital Input Pull-down to DGND H4 ADCDAT2 Digital Output Digital output DBVDD3 power domain K4 GPIO11/BCLK3 Digital Input/Output Digital input, Pull-down to DGND G5 GPIO10/LRCLK3 Digital Input/Output Digital input, Pull-down to DGND K3 GPIO8/DACDAT3 Digital Input/Output Digital input, Pull-down to DGND J4 GPIO9/ADCDAT3 Digital Input/Output Digital input, Pull-down to DGND MICBIAS1 power domain A8 DMICCLK Digital Output Digital output C8 IN2LN/DMICDAT Analogue Input/Digital Input Analogue input Table 133 WM1811A Digital I/O Status in Reset Note that the dual function IN2LN/DMICDAT pin defaults to IN2LN (analogue input) after Power On Reset is completed. The IN2LN function is referenced to the AVDD1 power domain. w PD, August 2014, Rev 4.2 217 WM1811A Production Data SOFTWARE RESET AND DEVICE ID The device ID can be read back from register R0. Writing to this register will reset the device. The software reset causes all control registers to be reset to their default state. The status of the WM1811A digital I/O pins following a software reset is described in Table 133. The Customer ID and Device Revision can be read back from register R256. REGISTER ADDRESS R0 (0000h) BIT LABEL 15:0 SW_RESET [15:0] Software Reset R256 (0100h) DEFAULT 1811h DESCRIPTION Writing to this register resets all registers to their default state. Reading from this register will indicate device ID 1811h. 15:8 CUST_ID [7:0] Customer ID 3:0 CHIP_REV [3:0] Chip revision Chip Revision Table 134 Chip Reset and ID w PD, August 2014, Rev 4.2 218 WM1811A Production Data REGISTER MAP The WM1811A control registers are listed below. Note that only the register addresses described here should be accessed; writing to other addresses may result in undefined behaviour. Register bits that are not documented should not be changed from the default values. REG NAME 15 R0 (0h) Software Reset R1 (1h) Power Management (1) 0 R2 (2h) Power Management (2) 0 R3 (3h) Power Management (3) 0 R4 (4h) Power Management (4) R5 (5h) R6 (6h) 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 SW_RESET [15:0] SPKO SPKO HPOU UTR_ UTL_E T2_EN ENA NA A HPOU HPOU T1L_E T1R_E NA NA MICB2 MICB1 _ENA _ENA 0 VMID_SEL [1:0] 0 MIXIN MIXIN IN2L_ IN1L_ IN2R_ IN1R_ L_ENA R_EN ENA ENA ENA ENA A 0 0 0 LINEO LINEO LINEO LINEO SPKR SPKLV MIXO MIXO MIXO MIXO UT1N_ UT1P_ UT2N_ UT2P_ VOL_E OL_E UTLV UTRV UTL_E UTR_ ENA ENA ENA ENA NA NA OL_E OL_E NA ENA NA NA 0 0 0 0 AIF2A AIF2A DCL_E DCR_ NA ENA 0 0 AIF1A AIF1A DC1L_ DC1R_ ENA ENA 0 0 0 0 Power Management (5) 0 0 AIF2D AIF2D ACL_E ACR_ NA ENA 0 0 AIF1D AIF1D AC1L_ AC1R_ ENA ENA 0 0 0 0 Power Management (6) 0 0 0 0 0 R21 (15h) Input Mixer (1) 0 0 0 0 0 0 0 IN1RP _MIXI NR_B OOST IN1LP INPUT _MIXI S_CLA NL_B MP OOST 0 R24 (18h) Left Line Input 1&2 Volume 0 0 0 0 0 0 0 IN1_V IN1L_ IN1L_ U MUTE ZC 0 IN1L_VOL [4:0] 008Bh R25 (19h) Left Line Input 3&4 Volume 0 0 0 0 0 0 0 IN2_V IN2L_ IN2L_ U MUTE ZC 0 IN2L_VOL [4:0] 008Bh R26 (1Ah) Right Line Input 1&2 Volume 0 0 0 0 0 0 0 IN1_V IN1R_ IN1R_ U MUTE ZC 0 IN1R_VOL [4:0] 008Bh R27 (1Bh) Right Line Input 3&4 Volume 0 0 0 0 0 0 0 IN2_V IN2R_ IN2R_ U MUTE ZC 0 IN2R_VOL [4:0] 008Bh R28 (1Ch) Left Output Volume 0 0 0 0 0 0 0 HPOU HPOU HPOU T1_VU T1L_Z T1L_M C UTE_ N HPOUT1L_VOL [5:0] 006Dh R29 (1Dh) Right Output Volume 0 0 0 0 0 0 0 HPOU HPOU HPOU T1_VU T1R_Z T1R_ C MUTE _N HPOUT1R_VOL [5:0] 006Dh R30 (1Eh) Line Outputs Volume 0 0 0 0 0 0 0 0 0 R31 (1Fh) HPOUT2 Volume 0 0 0 0 0 0 0 0 0 R32 (20h) Left OPGA Volume 0 0 0 0 0 0 0 TSHU TSHU T_ENA T_OP DIS 0 OPCL K_EN A 0 0000h 0 w 0 DEFAULT AIF3ADC_SRC AIF2DAC_SRC [1:0] [1:0] 0 0 MIXO MIXO MIXO UT_V UTL_Z UTL_ U C MUTE _N 0000h 0 0 6000h 0 0 0000h DMIC1 DMIC1 ADCL_ ADCR L_ENA R_EN ENA _ENA A 0 0000h AIF3_ AIF3_ADCDAT AIF2_ AIF2_ AIF1_ TRI _SRC [1:0] ADCD DACD DACD AT_SR AT_SR AT_SR C C C 0000h 0 0 HPOU HPOU T2_M T2_VO UTE L 0 0 0 0000h DAC1L DAC1 _ENA R_EN A LINEO LINEO LINEO UT1N_ UT1P_ UT1_V MUTE MUTE OL 0 BIAS_ ENA 0 0 0 LINEO LINEO LINEO UT2N_ UT2P_ UT2_V MUTE MUTE OL 0 MIXOUTL_VOL [5:0] 0 0 0000h 0066h 0020h 0079h PD, August 2014, Rev 4.2 219 WM1811A REG Production Data 15 14 13 12 11 10 9 R33 (21h) Right OPGA Volume NAME 0 0 0 0 0 0 0 R34 (22h) SPKMIXL Attenuation 0 0 0 0 0 0 0 0 0 0 MIXIN L_SPK MIXL_ VOL IN1LP _SPK MIXL_ VOL MIXO UTL_S PKMIX L_VOL DAC1L SPKMIXL_VOL _SPK [1:0] MIXL_ VOL 0003h R35 (23h) SPKMIXR Attenuation 0 0 0 0 0 0 0 0 0 0 MIXIN R_SP KMIXR _VOL IN1RP _SPK MIXR_ VOL MIXO UTR_ SPKMI XR_V OL DAC1 SPKMIXR_VO R_SP L [1:0] KMIXR _VOL 0003h R36 (24h) SPKOUT Mixers 0 0 0 0 0 0 0 0 0 0 IN2LR P_TO_ SPKO UTL SPKMI XL_TO _SPK OUTL SPKMI XR_T O_SP KOUT L IN2LR P_TO_ SPKO UTR 0011h R37 (25h) ClassD 0 0 0 0 0 0 0 1 0 1 R38 (26h) Speaker Volume Left 0 0 0 0 0 0 0 SPKO SPKO SPKO UT_V UTL_Z UTL_ U C MUTE _N SPKOUTL_VOL [5:0] 0079h R39 (27h) Speaker Volume Right 0 0 0 0 0 0 0 SPKO SPKO SPKO UT_V UTR_Z UTR_ U C MUTE _N SPKOUTR_VOL [5:0] 0079h R40 (28h) Input Mixer (2) 0 0 0 0 0 0 0 R41 (29h) Input Mixer (3) 0 0 0 0 0 0 0 IN2L_ IN2L_ TO_MI MIXIN XINL L_VOL 0 IN1L_ IN1L_ TO_MI MIXIN XINL L_VOL 0 MIXOUTL_MIXINL_VO L [2:0] 0000h R42 (2Ah) Input Mixer (4) 0 0 0 0 0 0 0 IN2R_ IN2R_ TO_MI MIXIN XINR R_VO L 0 IN1R_ IN1R_ TO_MI MIXIN XINR R_VO L 0 MIXOUTR_MIXINR_VO L [2:0] 0000h R43 (2Bh) Input Mixer (5) 0 0 0 0 0 0 0 IN1LP_MIXINL_VOL [2:0] 0 0 0 IN2LRP_MIXINL_VOL [2:0] 0000h R44 (2Ch) Input Mixer (6) 0 0 0 0 0 0 0 IN1RP_MIXINR_VOL [2:0] 0 0 0 IN2LRP_MIXINR_VOL [2:0] 0000h R45 (2Dh) Output Mixer (1) 0 0 0 0 0 0 0 DAC1L _TO_H POUT 1L MIXIN R_TO_ MIXO UTL MIXIN IN2RN IN2LN IN1R_ IN1L_ IN2LP DAC1L L_TO_ _TO_ _TO_ TO_MI TO_MI _TO_ _TO_ MIXO MIXO MIXO XOUT XOUT MIXO MIXO UTL UTL UTL L L UTL UTL 0000h R46 (2Eh) Output Mixer (2) 0 0 0 0 0 0 0 DAC1 R_TO_ HPOU T1R MIXIN L_TO_ MIXO UTR MIXIN R_TO_ MIXO UTR 0000h R47 (2Fh) Output Mixer (3) 0 0 0 0 IN2LP_MIXOUTL_VOL IN2LN_MIXOUTL_VOL IN1R_MIXOUTL_VOL [2:0] [2:0] [2:0] IN1L_MIXOUTL_VOL [2:0] 0000h R48 (30h) Output Mixer (4) 0 0 0 0 IN2RP_MIXOUTR_VOL IN2RN_MIXOUTR_VOL IN1L_MIXOUTR_VOL [2:0] [2:0] [2:0] IN1R_MIXOUTR_VOL [2:0] 0000h R49 (31h) Output Mixer (5) 0 0 0 0 DAC1L_MIXOUTL_VO IN2RN_MIXOUTL_VOL MIXINR_MIXOUTL_VO MIXINL_MIXOUTL_VO L [2:0] [2:0] L [2:0] L [2:0] 0000h R50 (32h) Output Mixer (6) 0 0 0 0 DAC1R_MIXOUTR_VO IN2LN_MIXOUTR_VOL MIXINL_MIXOUTR_VO MIXINR_MIXOUTR_VO L [2:0] [2:0] L [2:0] L [2:0] 0000h w 8 7 6 5 4 MIXO MIXO MIXO UT_V UTR_Z UTR_ U C MUTE _N 0 3 2 1 0 MIXOUTR_VOL [5:0] SPKOUTL_BOOST [2:0] SPKMI XL_TO _SPK OUTR 0079h SPKMI XR_T O_SP KOUT R SPKOUTR_BOOST [2:0] IN2LP IN2LN IN1LP IN1LN IN2RP IN2RN IN1RP IN1RN _TO_I _TO_I _TO_I _TO_I _TO_I _TO_I _TO_I _TO_I N2L N2L N1L N1L N2R N2R N1R N1R IN2LN IN2RN IN1L_ IN1R_ _TO_ _TO_ TO_MI TO_MI MIXO MIXO XOUT XOUT UTR UTR R R DEFAULT IN2RP DAC1 _TO_ R_TO_ MIXO MIXO UTR UTR 0140h 0000h PD, August 2014, Rev 4.2 220 WM1811A Production Data 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 DEFAULT R51 (33h) REG HPOUT2 Mixer NAME 0 0 0 0 0 0 0 0 0 0 IN2LR P_TO_ HPOU T2 MIXO UTLV OL_T O_HP OUT2 MIXO UTRV OL_T O_HP OUT2 0 0 0 0000h R52 (34h) Line Mixer (1) 0 0 0 0 0 0 0 0 0 MIXO UTL_T O_LIN EOUT 1N MIXO LINEO UTR_T UT1_ O_LIN MODE EOUT 1N 0 IN1R_ IN1L_ MIXO TO_LI TO_LI UTL_T NEOU NEOU O_LIN T1P T1P EOUT 1P 0000h R53 (35h) Line Mixer (2) 0 0 0 0 0 0 0 0 0 MIXO UTR_T O_LIN EOUT 2N MIXO LINEO UTL_T UT2_ O_LIN MODE EOUT 2N 0 IN1L_ IN1R_ MIXO TO_LI TO_LI UTR_T NEOU NEOU O_LIN T2P T2P EOUT 2P 0000h R54 (36h) Speaker Mixer 0 0 0 0 0 0 0 0 MIXIN MIXIN IN1LP IN1RP MIXO L_TO_ R_TO_ _TO_S _TO_S UTL_T SPKMI SPKMI PKMIX PKMIX O_SP XL XR L R KMIXL MIXO DAC1L DAC1 UTR_T _TO_S R_TO_ O_SP PKMIX SPKMI KMIXR L XR 0000h R55 (37h) Additional Control 0 0 0 0 0 0 0 0 LINEO LINEO UT1_F UT2_F B B R56 (38h) AntiPOP (1) 0 0 0 0 0 0 0 0 LINEO HPOU LINEO LINEO UT_V T2_IN UT1_D UT2_D MID_B _ENA ISCH ISCH UF_E NA R57 (39h) AntiPOP (2) 0 0 0 0 0 0 0 R59 (3Bh) LDO 1 0 0 0 0 0 0 0 0 0 0 0 0 LDO1_VSEL [2:0] R60 (3Ch) LDO 2 0 0 0 0 0 0 0 0 0 0 0 0 0 R61 (3Dh) MICBIAS1 0 0 0 0 0 0 0 0 0 0 MICB1 MICB1 _RATE _MOD E MICB1_LVL [2:0] MICB1 _DISC H 0039h R62 (3Eh) MICBIAS2 0 0 0 0 0 0 0 0 0 0 MICB2 MICB2 _RATE _MOD E MICB2_LVL [2:0] MICB2 _DISC H 0039h R76 (4Ch) Charge Pump (1) CP_E NA 0 0 1 1 1 1 1 0 0 1 0 0 1 0 1 1F25h R77 (4Dh) Charge Pump (2) CP_DI SCH 0 1 0 1 0 1 1 0 0 0 1 1 0 0 1 AB19h R81 (51h) Class W (1) 0 0 0 0 0 0 0 0 0 0 0 1 0 CP_D YN_P WR 0004h R84 (54h) DC Servo (1) 0 0 0 0 0 0 0 0 0 0 DCS_ TRIG_ STAR TUP_1 DCS_ TRIG_ STAR TUP_0 DCS_ TRIG_ DAC_ WR_1 DCS_ DCS_ DCS_ TRIG_ ENA_ ENA_ DAC_ CHAN CHAN WR_0 _1 _0 0000h R85 (55h) DC Servo (2) 0 0 0 0 0 1 0 1 0 1 0 0 DCS_TIMER_PERIOD_01 [3:0] 054Ah R88 (58h) DC Servo Readback 0 0 0 0 0 0 0 0 R89 (59h) DC Servo (4) w DCS_DAC_WR_VAL_1 [7:0] 0 JACKDET_MO VMID_RAMP DE [1:0] [1:0] CP_DYN_SRC _SEL [1:0] DCS_CAL_CO MPLETE [1:0] 0 0 DCS_DAC_WR _COMPLETE [1:0] 0 0 0 VROI 0000h 0 0 0 0 0000h VMID_ STAR BIAS_ VMID_ BUF_E TUP_B SRC DISCH NA IAS_E NA 0 0000h LDO1_ DISCH 000Dh LDO2_VSEL LDO2_ [1:0] DISCH 0003h 0 DCS_DAC_WR_VAL_0 [7:0] DCS_STARTU P_COMPLETE [1:0] 0000h 0000h PD, August 2014, Rev 4.2 221 WM1811A REG Production Data 15 14 13 12 11 10 9 Analogue HP (1) 0 0 0 0 0 0 0 R197 (C5h) Class D Test (5) 0 0 0 0 0 0 0 R96 (60h) NAME R208 (D0h) Mic Detect 1 MICD_BIAS_STARTTIME [3:0] 8 7 6 5 4 HPOU HPOU HPOU HPOU T1_AT T1L_R T1L_O T1L_D TN MV_S UTP LY HORT 0 MICD_RATE [3:0] 0 3 2 1 0 DEFAULT 0 0000h SPKO UT_CL K_SR C 0000h MICD_ MICD_ DBTIM ENA E 7600h HPOU HPOU HPOU T1R_R T1R_O T1R_D MV_S UTP LY HORT 0 0 0 0 0 0 0 0 0 0 0 0 0 R209 (D1h) Mic Detect 2 0 0 0 0 0 R210 (D2h) Mic Detect 3 0 0 0 0 0 0 0 0 0 R257 (101h) Control Interface 1 0 0 0 0 0 0 0 0 0 0 0 R512 (200h) AIF1 Clocking (1) 0 0 0 0 0 0 0 0 0 0 0 R513 (201h) AIF1 Clocking (2) 0 0 0 0 0 0 0 0 0 0 AIF1DAC_DIV [2:0] R516 (204h) AIF2 Clocking (1) 0 0 0 0 0 0 0 0 0 0 0 AIF2CLK_SRC AIF2C AIF2C AIF2C [1:0] LK_IN LK_DI LK_EN V V A 0000h R520 (208h) Clocking (1) 0 0 0 0 0 0 0 0 0 0 0 TOCL AIF1D AIF2D SYSD SYSC K_EN SPCL SPCL SPCL LK_SR C A K_EN K_EN K_EN A A A 0000h R521 (209h) Clocking (2) 0 0 0 0 0 TOCLK_DIV [2:0] 0 R528 (210h) AIF1 Rate 0 0 0 0 0 0 0 0 AIF1_SR [3:0] AIF1CLK_RATE [3:0] R529 (211h) AIF2 Rate 0 0 0 0 0 0 0 0 AIF2_SR [3:0] AIF2CLK_RATE [3:0] 0083h R530 (212h) Rate Status 0 0 0 0 0 0 0 0 0 0 0 0 SR_ERROR [3:0] 0000h R544 (220h) FLL1 Control (1) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R545 (221h) FLL1 Control (2) 0 0 0 0 0 0 0 FLL1_FRATIO [2:0] 0 0 0 R256 (100h) Chip Revision 0 0 0 MICD_LVL_SEL [7:0] 007Fh MICD_LVL [8:0] CUST_ID [7:0] FLL1_OUTDIV [5:0] R546 (222h) FLL1 Control (3) MICD_ MICD_ VALID STS CHIP_REV [3:0] 0 AUTO _INC XX0Xh 0 0 AIF1CLK_SRC AIF1C AIF1C AIF1C [1:0] LK_IN LK_DI LK_EN V V A DBCLK_DIV [2:0] AIF1ADC_DIV [2:0] 0 OPCLK_DIV [2:0] FLL1_ FLL1_ OSC_ ENA ENA FLL1_THETA [15:0] R548 (224h) FLL1 Control (5) FLL1_ BYP 0 0 R551 (227h) FLL1 EFS 2 0 0 0 0 0 0 0 0 0 0 0 0 0 1 R576 (240h) FLL2Control (1) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R577 (241h) FLL2Control (2) 0 0 0 0 0 0 0 FLL2_FRATIO [2:0] 0 0 0 FLL1_N [9:0] FLL1_ FRC_ NCO 0 FLL1_REFCLK _DIV [1:0] 0 0 0 FLL1_REFCLK _SRC [1:0] FLL1_LAMBDA [15:0] FLL2_OUTDIV [5:0] R578 (242h) FLL2Control (3) 0 R580 (244h) FLL2Control (5) FLL2_ BYP R582 (246h) FLL2 EFS 1 w 0 FLL2_FRC_NCO_VAL [5:0] FLL2_ FRC_ NCO FLL2_LAMBDA [15:0] 0000h 0000h 0000h 0000h 0C80h FLL1_ EFS_E NA 0006h FLL2_ FLL2_ OSC_ ENA ENA 0000h 0000h 0000h FLL2_N [9:0] 0 0000h 0000h 1 FLL2_THETA [15:0] R579 (243h) FLL2 Control (4) 0000h 0000h 0 R550 (226h) FLL1 EFS 1 8004h 0083h R547 (223h) FLL1 Control (4) FLL1_FRC_NCO_VAL [5:0] 0000h 0 FLL2_REFCLK _DIV [1:0] 0 0 0 FLL2_REFCLK _SRC [1:0] 0000h 0C80h 0000h PD, August 2014, Rev 4.2 222 WM1811A Production Data REG NAME R583 (247h) FLL2 EFS 2 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 DEFAULT 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 FLL2_ EFS_E NA 0006h 0 0 0 AIF1_ BCLK_ INV 0 0 0 0 4050h R768 (300h) AIF1 Control (1) AIF1A AIF1A AIF1A AIF1A DCL_S DCR_ DC_T DC_T RC SRC DM DM_C HAN R769 (301h) AIF1 Control (2) AIF1D AIF1D AIF1D AIF1D AIF1DAC_BOO ACL_S ACR_ AC_T AC_T ST [1:0] RC SRC DM DM_C HAN 0 AIF1_ MONO 0 0 0 R770 (302h) AIF1 Master/Slave AIF1_ AIF1_ AIF1_ AIF1_L TRI MSTR CLK_F RCLK_ RC FRC 0 0 0 0 0 0 0 0 0 0 AIF1_WL [1:0] AIF1_FMT [1:0] AIF1D AIF1D AIF1A AIF1A AIF1_L AC_C AC_C DC_C DC_C OOPB OMP OMPM OMP OMPM ACK ODE ODE 0 0 0 0 0 0 0 0 0 4000h 0000h R771 (303h) AIF1 BCLK 0 0 0 R772 (304h) AIF1ADC LRCLK 0 0 0 AIF1A AIF1A DC_LR DC_LR CLK_I CLK_D NV IR AIF1ADC_RATE [10:0] 0040h R773 (305h) AIF1DAC LRCLK 0 0 0 AIF1D AIF1D AC_LR AC_LR CLK_I CLK_D NV IR AIF1DAC_RATE [10:0] 0040h R774 (306h) AIF1DAC Data 0 0 0 0 0 0 0 0 0 0 0 0 0 0 AIF1D AIF1D ACL_D ACR_ AT_IN DAT_I V NV 0000h R775 (307h) AIF1ADC Data 0 0 0 0 0 0 0 0 0 0 0 0 0 0 AIF1A AIF1A DCL_D DCR_ AT_IN DAT_I V NV 0000h 0 0 0 AIF2_ BCLK_ INV 0 0 AIF1_BCLK_DIV [4:0] R784 (310h) AIF2 Control (1) AIF2A AIF2A AIF2A AIF2A DCL_S DCR_ DC_T DC_T RC SRC DM DM_C HAN R785 (311h) AIF2 Control (2) AIF2D AIF2D AIF2D AIF2D AIF2DAC_BOO ACL_S ACR_ AC_T AC_T ST [1:0] RC SRC DM DM_C HAN 0 AIF2_ MONO 0 0 0 R786 (312h) AIF2 Master/Slave AIF2_ AIF2_ AIF2_ AIF2_L TRI MSTR CLK_F RCLK_ RC FRC 0 0 0 0 0 0 0 AIF2_WL [1:0] AIF2_FMT [1:0] 0 0 0 AIF2D AIF2D AIF2A AIF2A AIF2_L AC_C AC_C DC_C DC_C OOPB OMP OMPM OMP OMPM ACK ODE ODE 0 0 0 0040h 4050h 4000h 0 0 0000h 0 0 0 0 0040h 0 0 0 0 0 0040h R787 (313h) AIF2 BCLK 0 0 0 0 0 0 0 R788 (314h) AIF2ADC LRCLK 0 0 0 AIF2A DC_LR CLK_I NV 0 0 0 R789 (315h) AIF2DAC LRCLK 0 0 0 AIF2D AIF2D AC_LR AC_LR CLK_I CLK_D NV IR R790 (316h) AIF2DAC Data 0 0 0 0 0 0 0 0 0 0 0 0 0 0 AIF2D AIF2D ACL_D ACR_ AT_IN DAT_I V NV 0000h R791 (317h) AIF2ADC Data 0 0 0 0 0 0 0 0 0 0 0 0 0 0 AIF2A AIF2A DCL_D DCR_ AT_IN DAT_I V NV 0000h w AIF2_BCLK_DIV [4:0] 0 0 1 0 AIF2DAC_RATE [10:0] 0040h PD, August 2014, Rev 4.2 223 WM1811A REG Production Data 15 14 13 12 11 10 9 8 7 6 5 4 3 2 R792 (318h) AIF2TX Control NAME 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R800 (320h) AIF3 Control (1) 0 0 0 0 0 0 0 0 0 0 0 R801 (321h) AIF3 Control (2) 0 0 0 0 0 0 0 0 0 R802 (322h) AIF3DAC Data 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 AIF3D AC_D AT_IN V 0000h R803 (323h) AIF3ADC Data 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 AIF3A DC_D AT_IN V 0000h R1024 (400h) AIF1 ADC1 Left Volume 0 0 0 0 0 0 0 AIF1A DC1_V U AIF1ADC1L_VOL [7:0] 00C0h R1025 (401h) AIF1 ADC1 Right Volume 0 0 0 0 0 0 0 AIF1A DC1_V U AIF1ADC1R_VOL [7:0] 00C0h R1026 (402h) AIF1 DAC1 Left Volume 0 0 0 0 0 0 0 AIF1D AC1_V U AIF1DAC1L_VOL [7:0] 00C0h R1027 (403h) AIF1 DAC1 Right Volume 0 0 0 0 0 0 0 AIF1D AC1_V U AIF1DAC1R_VOL [7:0] 00C0h 0 0 0 0 0 0 0 0 0 0 0 0000h 0 AIF1D AC1_ MUTE 0 AIF1D AC1_ MONO 0 AIF1D AC1_ MUTE RATE AIF1D AC1_U NMUT E_RA MP 0 0 0 0 0200h AIF1D AC1_3 D_EN A 0 0 0 1 0 0 0 0 0010h 0 0 R1040 (410h) AIF1 ADC1 Filters AIF1A AIF1ADC1_HP AIF1A AIF1A DC_4F F_CUT [1:0] DC1L_ DC1R_ S HPF HPF R1056 (420h) AIF1 DAC1 Filters (1) 0 0 R1057 (421h) AIF1 DAC1 Filters (2) 0 0 R1072 (430h) AIF1 DAC1 Noise Gate 0 0 R1088 (440h) AIF1 DRC1 (1) 0 0 0 AIF1DAC1_3D_GAIN [4:0] 0 0 0 AIF1DRC1_SIG_DET_RMS [4:0] 0 0 0 0 AIF3D AIF3D AIF3A AIF3A AIF3_L AC_C AC_C DC_C DC_C OOPB OMP OMPM OMP OMPM ACK ODE ODE AIF1DAC1_NG _HLD [1:0] AIF1DRC1_SI AIF1D AIF1D AIF1D G_DET_PK RC1_N RC1_S RC1_S [1:0] G_EN IG_DE IG_DE A T_MO T DE 0 0 AIF1DAC1_NG_THR AIF1D [2:0] AC1_N G_EN A AIF1D AIF1D AIF1D AIF1D RC1_K RC1_ RC1_A AC1_D NEE2_ QR NTICLI RC_E OP_E P NA NA 0003h 0040h 0000h 0068h 0098h AIF1DRC1_MINGAIN AIF1DRC1_MA [2:0] XGAIN [1:0] 0845h AIF1DRC1_NG_MINGAIN [3:0] AIF1DRC1_NG AIF1DRC1_QR AIF1DRC1_QR AIF1DRC1_HI_COMP AIF1DRC1_LO_COMP _EXP [1:0] _THR [1:0] _DCY [1:0] [2:0] [2:0] 0000h 0 0 0 AIF1DRC1_ATK [3:0] R1091 (443h) AIF1 DRC1 (4) 0 0 0 0 0 R1092 (444h) AIF1 DRC1 (5) 0 0 0 0 0 w AIF1DRC1_DCY [3:0] AIF1DRC1_KNEE_IP [5:0] 0 AIF1DRC1_KNEE2_IP [4:0] AIF1A DC1L_ DRC_ ENA DEFAULT AIF1A DC1R_ DRC_ ENA R1089 (441h) AIF1 DRC1 (2) R1090 (442h) AIF1 DRC1 (3) AIF3DAC_BOO ST [1:0] AIF3_L AIF3_WL [1:0] RCLK_ INV 1 AIF2T AIF2T XL_EN XR_E A NA AIF1DRC1_KNEE_OP [4:0] 0000h AIF1DRC1_KNEE2_OP [4:0] 0000h PD, August 2014, Rev 4.2 224 WM1811A Production Data REG NAME 15 14 13 12 11 10 9 8 7 R1152 (480h) AIF1 DAC1 EQ Gains (1) AIF1DAC1_EQ_B1_GAIN [4:0] AIF1DAC1_EQ_B2_GAIN [4:0] R1153 (481h) AIF1 DAC1 EQ Gains (2) AIF1DAC1_EQ_B4_GAIN [4:0] AIF1DAC1_EQ_B5_GAIN [4:0] 6 5 4 3 2 1 AIF1DAC1_EQ_B3_GAIN [4:0] 0 0 0 0 0 0 DEFAULT AIF1D AC1_E Q_EN A 6318h AIF1D AC1_E Q_MO DE 6300h R1154 (482h) AIF1 DAC1 EQ Band 1 A AIF1DAC1_EQ_B1_A [15:0] 0FCAh R1155 (483h) AIF1 DAC1 EQ Band 1 B AIF1DAC1_EQ_B1_B [15:0] 0400h R1156 (484h) AIF1 DAC1 EQ Band 1 PG AIF1DAC1_EQ_B1_PG [15:0] 00D8h R1157 (485h) AIF1 DAC1 EQ Band 2 A AIF1DAC1_EQ_B2_A [15:0] 1EB5h R1158 (486h) AIF1 DAC1 EQ Band 2 B AIF1DAC1_EQ_B2_B [15:0] F145h R1159 (487h) AIF1 DAC1 EQ Band 2 C AIF1DAC1_EQ_B2_C [15:0] 0B75h R1160 (488h) AIF1 DAC1 EQ Band 2 PG AIF1DAC1_EQ_B2_PG [15:0] 01C5h R1161 (489h) AIF1 DAC1 EQ Band 3 A AIF1DAC1_EQ_B3_A [15:0] 1C58h R1162 (48Ah) AIF1 DAC1 EQ Band 3 B AIF1DAC1_EQ_B3_B [15:0] F373h R1163 (48Bh) AIF1 DAC1 EQ Band 3 C AIF1DAC1_EQ_B3_C [15:0] 0A54h R1164 (48Ch) AIF1 DAC1 EQ Band 3 PG AIF1DAC1_EQ_B3_PG [15:0] 0558h R1165 (48Dh) AIF1 DAC1 EQ Band 4 A AIF1DAC1_EQ_B4_A [15:0] 168Eh R1166 (48Eh) AIF1 DAC1 EQ Band 4 B AIF1DAC1_EQ_B4_B [15:0] F829h R1167 (48Fh) AIF1 DAC1 EQ Band 4 C AIF1DAC1_EQ_B4_C [15:0] 07ADh R1168 (490h) AIF1 DAC1 EQ Band 4 PG AIF1DAC1_EQ_B4_PG [15:0] 1103h R1169 (491h) AIF1 DAC1 EQ Band 5 A AIF1DAC1_EQ_B5_A [15:0] 0564h R1170 (492h) AIF1 DAC1 EQ Band 5 B AIF1DAC1_EQ_B5_B [15:0] 0559h R1171 (493h) AIF1 DAC1 EQ Band 5 PG AIF1DAC1_EQ_B5_PG [15:0] 4000h R1172 (494h) AIF1 DAC1 EQ Band 1 C AIF1DAC1_EQ_B1_C [15:0] 0000h R1280 (500h) AIF2 ADC Left Volume 0 0 0 0 0 0 0 AIF2A DC_V U AIF2ADCL_VOL [7:0] 00C0h R1281 (501h) AIF2 ADC Right Volume 0 0 0 0 0 0 0 AIF2A DC_V U AIF2ADCR_VOL [7:0] 00C0h R1282 (502h) AIF2 DAC Left Volume 0 0 0 0 0 0 0 AIF2D AC_V U AIF2DACL_VOL [7:0] 00C0h w PD, August 2014, Rev 4.2 225 WM1811A REG Production Data 15 14 13 12 11 10 9 8 R1283 (503h) AIF2 DAC Right Volume NAME 0 0 0 0 0 0 0 AIF2D AC_V U R1296 (510h) AIF2 ADC Filters 0 0 0 0 0 0 0 0 0 0 0 0 0000h R1312 (520h) AIF2 DAC Filters (1) 0 0 0 AIF2D AC_M UTE 0 AIF2D AC_M ONO 0 AIF2D AC_M UTER ATE AIF2D AC_U NMUT E_RA MP 0 0 0 0 0200h R1313 (521h) AIF2 DAC Filters (2) 0 0 AIF2D AC_3D _ENA 0 0 0 1 0 0 0 0 0010h R1328 (530h) AIF2 DAC Noise Gate 0 0 0 0 AIF2D AC_N G_EN A 0068h AIF2DRC_SIG AIF2D AIF2D AIF2D AIF2D AIF2D AIF2D AIF2D AIF2A AIF2A _DET_PK [1:0] RC_N RC_SI RC_SI RC_K RC_Q RC_A AC_D DCL_D DCR_ G_EN G_DE G_DE NEE2_ R NTICLI RC_E RC_E DRC_ A T_MO T OP_E NA ENA P NA DE NA 0098h R1344 (540h) AIF2 DRC (1) 0 0 0 AIF2DAC_3D_GAIN [4:0] 0 0 0 AIF2DRC_SIG_DET_RMS [4:0] R1345 (541h) AIF2 DRC (2) R1346 (542h) AIF2 DRC (3) AIF2ADC_HPF AIF2A AIF2A _CUT [1:0] DCL_H DCR_ PF HPF 0 0 0 0 0 AIF2DRC_ATK [3:0] 7 6 0 0 0 0 0 R1348 (544h) AIF2 DRC (5) 0 0 0 0 0 4 AIF2DAC_NG_ HLD [1:0] AIF2DRC_DCY [3:0] 0 2 1 0 AIF2DRC_KNEE2_IP [4:0] R1408 (580h) AIF2 EQ Gains (1) AIF2DAC_EQ_B1_GAIN [4:0] AIF2DAC_EQ_B2_GAIN [4:0] R1409 (581h) AIF2 EQ Gains (2) AIF2DAC_EQ_B4_GAIN [4:0] AIF2DAC_EQ_B5_GAIN [4:0] AIF2DAC_NG_THR [2:0] AIF2DRC_HI_COMP [2:0] AIF2DRC_MAX GAIN [1:0] AIF2DRC_LO_COMP [2:0] 0 0845h 0000h AIF2DRC_KNEE_OP [4:0] 0000h AIF2DRC_KNEE2_OP [4:0] 0000h AIF2DAC_EQ_B3_GAIN [4:0] 0 DEFAULT 00C0h AIF2DRC_MINGAIN [2:0] AIF2DRC_KNEE_IP [5:0] 0 3 AIF2DACR_VOL [7:0] AIF2DRC_NG_MINGAIN [3:0] AIF2DRC_NG_ AIF2DRC_QR_ AIF2DRC_QR_ EXP [1:0] THR [1:0] DCY [1:0] R1347 (543h) AIF2 DRC (4) 5 0 0 0 AIF2D AC_E Q_EN A 6318h AIF2D AC_E Q_MO DE 6300h R1410 (582h) AIF2 EQ Band 1 A AIF2DAC_EQ_B1_A [15:0] 0FCAh R1411 (583h) AIF2 EQ Band 1 B AIF2DAC_EQ_B1_B [15:0] 0400h AIF2DAC_EQ_B1_PG [15:0] 00D8h R1413 (585h) AIF2 EQ Band 2 A AIF2DAC_EQ_B2_A [15:0] 1EB5h R1414 (586h) AIF2 EQ Band 2 B AIF2DAC_EQ_B2_B [15:0] F145h R1412 (584h) AIF2 EQ Band 1 PG R1415 (587h) AIF2 EQ Band 2 C AIF2DAC_EQ_B2_C [15:0] 0B75h R1416 (588h) AIF2 EQ Band 2 PG AIF2DAC_EQ_B2_PG [15:0] 01C5h AIF2DAC_EQ_B3_A [15:0] 1C58h R1417 (589h) AIF2 EQ Band 3 A R1418 (58Ah) AIF2 EQ Band 3 B AIF2DAC_EQ_B3_B [15:0] F373h R1419 (58Bh) AIF2 EQ Band 3 C AIF2DAC_EQ_B3_C [15:0] 0A54h R1420 (58Ch) AIF2 EQ Band 3 PG AIF2DAC_EQ_B3_PG [15:0] 0558h R1421 (58Dh) AIF2 EQ Band 4 A AIF2DAC_EQ_B4_A [15:0] 168Eh R1422 (58Eh) AIF2 EQ Band 4 B AIF2DAC_EQ_B4_B [15:0] F829h R1423 (58Fh) AIF2 EQ Band 4 C AIF2DAC_EQ_B4_C [15:0] 07ADh R1424 (590h) AIF2 EQ Band 4 PG AIF2DAC_EQ_B4_PG [15:0] 1103h w PD, August 2014, Rev 4.2 226 WM1811A Production Data REG NAME 15 14 13 12 11 10 R1425 (591h) AIF2 EQ Band 5 A 9 8 7 6 5 4 3 2 1 0 AIF2DAC_EQ_B5_A [15:0] R1426 (592h) AIF2 EQ Band 5 B DEFAULT 0564h AIF2DAC_EQ_B5_B [15:0] 0559h R1427 (593h) AIF2 EQ Band 5 PG AIF2DAC_EQ_B5_PG [15:0] 4000h R1428 (594h) AIF2 EQ Band 1 C AIF2DAC_EQ_B1_C [15:0] 0000h R1536 (600h) DAC1 Mixer Volumes 0 0 0 0 0 0 0 R1537 (601h) DAC1 Left Mixer Routing 0 0 0 0 0 0 0 0 0 0 ADCR ADCL_ _TO_D TO_D AC1L AC1L 0 AIF2D ACL_T O_DA C1L 0 AIF1D AC1L_ TO_D AC1L 0000h R1538 (602h) DAC1 Right Mixer Routing 0 0 0 0 0 0 0 0 0 0 ADCR ADCL_ _TO_D TO_D AC1R AC1R 0 AIF2D ACR_ TO_D AC1R 0 AIF1D AC1R_ TO_D AC1R 0000h R1539 (603h) AIF2ADC Mixer Volumes 0 0 0 0 0 0 0 ADCR_AIF2ADC_VOL [3:0] R1540 (604h) AIF2ADC Left Mixer Routing 0 0 0 0 0 0 0 0 0 0 ADCR ADCL_ _TO_A TO_AI IF2AD F2AD CL CL 0 AIF2D ACL_T O_AIF 2ADCL 0 AIF1D AC1L_ TO_AI F2AD CL 0000h R1541 (605h) AIF2ADC Right Mixer Routing 0 0 0 0 0 0 0 0 0 0 ADCR ADCL_ _TO_A TO_AI IF2AD F2AD CR CR 0 AIF2D ACR_ TO_AI F2AD CR 0 AIF1D AC1R_ TO_AI F2AD CR 0000h R1542 (606h) AIF1 ADC1 Left Mixer Routing 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ADC1L _TO_A IF1AD C1L AIF2D ACL_T O_AIF 1ADC1 L 0000h R1543 (607h) AIF1 ADC1 Right Mixer Routing 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ADC1 R_TO_ AIF1A DC1R AIF2D ACR_ TO_AI F1AD C1R 0000h R1552 (610h) DAC1 Left Volume 0 0 0 0 0 0 DAC1L DAC1_ _MUT VU E DAC1L_VOL [7:0] 02C0h R1553 (611h) DAC1 Right Volume 0 0 0 0 0 0 DAC1 DAC1_ R_MU VU TE DAC1R_VOL [7:0] 02C0h R1554 (612h) AIF2TX Left Volume 0 0 0 0 0 0 AIF2T AIF2T XL_M X_VU UTE AIF2TXL_VOL [7:0] 02C0h R1555 (613h) AIF2TX Right Volume 0 0 0 0 0 0 AIF2T AIF2T XR_M X_VU UTE AIF2TXR_VOL [7:0] 02C0h R1556 (614h) DAC Softmute 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DAC_ DAC_ SOFT MUTE MUTE RATE MODE 0000h R1568 (620h) Oversampling 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ADC_ DAC_ OSR1 OSR1 28 28 0002h R1569 (621h) Sidetone 0 0 0 0 0 0 ST_HPF_CUT [2:0] ST_HP F 0 0 0 0 w ADCR_DAC1_VOL [3:0] 0 0 ADCL_DAC1_VOL [3:0] 0000h ADCL_AIF2ADC_VOL [3:0] 0 0 0000h 0000h PD, August 2014, Rev 4.2 227 WM1811A REG Production Data NAME R1792 (700h) GPIO 1 15 14 13 GP1_ GP1_P GP1_P DIR U D 12 11 0 0 10 9 8 GP1_P GP1_ GP1_ OL OP_C DB FG 7 6 5 0 GP1_L VL 0 4 3 2 1 0 GP1_FN [4:0] DEFAULT 8100h R1793 (701h) Pull Control (MCLK2) 1 MCLK MCLK 2_PU 2_PD 0 0 0 0 1 0 0 0 0 0 0 0 1 A101h R1794 (702h) Pull Control (BCLK2) 1 BCLK2 BCLK2 _PU _PD 0 0 0 0 1 0 0 0 0 0 0 0 1 A101h R1795 (703h) Pull Control (DACLRCLK2) 1 DACL DACL RCLK2 RCLK2 _PU _PD 0 0 0 0 1 0 0 0 0 0 0 0 1 A101h R1796 (704h) Pull Control (DACDAT2) 1 DACD DACD AT2_P AT2_P U D 0 0 0 0 1 0 0 0 0 0 0 0 1 A101h R1797 (705h) JACKDET Ctrl 1 0 0 0 0 JACK DET_ DB 0 JACK DET_L VL 0 0 0 0 0 1 A101h 0 1 R1799 (707h) GPIO 8 GP8_ GP8_P GP8_P DIR U D 0 0 GP8_P GP8_ GP8_ OL OP_C DB FG 0 GP8_L VL 0 GP8_FN [4:0] A101h R1800 (708h) GPIO 9 GP9_ GP9_P GP9_P DIR U D 0 0 GP9_P GP9_ GP9_ OL OP_C DB FG 0 GP9_L VL 0 GP9_FN [4:0] A101h R1801 (709h) GPIO 10 GP10_ GP10_ GP10_ DIR PU PD 0 0 GP10_ GP10_ GP10_ POL OP_C DB FG 0 GP10_ LVL 0 GP10_FN [4:0] A101h R1802 (70Ah) GPIO 11 GP11_ GP11_ GP11_ DIR PU PD 0 0 GP11_ GP11_ GP11_ POL OP_C DB FG 0 GP11_ LVL 0 GP11_FN [4:0] A101h R1824 (720h) Pull Control (1) 0 0 0 0 0 0 R1825 (721h) Pull Control (2) 0 0 0 0 0 0 R1840 (730h) Interrupt Status 1 0 0 0 0 0 DMIC DMIC MCLK MCLK DACD DACD DACL DACL BCLK1 BCLK1 DAT1_ DAT1_ 1_PU 1_PD AT1_P AT1_P RCLK1 RCLK1 _PU _PD PU PD U D _PU _PD 0 ADDR _PD 0 GP11_ GP10_ GP9_E GP8_E EINT EINT INT INT 0000h LDO2 ENA_ PD 0 LDO1 ENA_ PD 0 1 SPKM ODE_ PU 0 0156h 0 JACK DET_E INT 0 0 0 0 GP1_E INT 0000h MICD_ TEMP EINT _SHU T_EIN T 0000h R1841 (731h) Interrupt Status 2 TEMP DCS_ _WAR DONE N_EIN _EINT T 0 FIFOS AIF2D _ERR_ RC_SI EINT G_DE T_EIN T 0 AIF1D SRC2_ SRC1_ FLL2_ FLL1_ RC1_S LOCK LOCK LOCK LOCK IG_DE _EINT _EINT _EINT _EINT T_EIN T 0 0 0 R1842 (732h) Interrupt Raw Status 2 TEMP DCS_ _WAR DONE N_STS _STS 0 FIFOS AIF2D _ERR_ RC_SI STS G_DE T_STS 0 AIF1D SRC2_ SRC1_ FLL2_ FLL1_ RC1_S LOCK LOCK LOCK LOCK IG_DE _STS _STS _STS _STS T_STS 0 0 0 0 TEMP _SHU T_STS 0000h IM_JA CKDE T_EIN T 1 1 1 1 IM_GP 1_EIN T 07FFh IM_AIF IM_SR IM_SR IM_FL IM_FL 1DRC1 C2_LO C1_LO L2_LO L1_LO _SIG_ CK_EI CK_EI CK_EI CK_EI DET_E NT NT NT NT INT 0 1 1 IM_MI IM_TE CD_EI MP_S NT HUT_ EINT DBEFh 0 0 0 R1848 (738h) Interrupt Status 1 Mask R1849 (739h) Interrupt Status 2 Mask 0 0 IM_TE IM_DC MP_W S_DO ARN_ NE_EI EINT NT R1856 (740h) Interrupt Control w 0 0 0 0 0 IM_GP IM_GP IM_GP IM_GP 11_EI 10_EI 9_EIN 8_EIN NT NT T T 0 IM_FIF OS_E RR_EI NT IM_AIF 2DRC_ SIG_D ET_EI NT 0 0 0 0 0 0 0 0 1 0 0 0 IM_IR Q 0000h PD, August 2014, Rev 4.2 228 WM1811A Production Data REG NAME R1864 (748h) IRQ Debounce w 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 DEFAULT 0 0 0 0 0 0 0 0 0 0 TEMP _WAR N_DB 1 1 1 1 TEMP _SHU T_DB 003Fh PD, August 2014, Rev 4.2 229 WM1811A Production Data REGISTER BITS BY ADDRESS REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R0 (00h) Software Reset 15:0 SW_RESET [15:0] 0001_1000_00 Writing to this register resets all registers to their default state. 01_0001 Reading from this register will indicate device ID 1811h. Register 00h Software Reset REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R1 (01h) Power Management (1) 13 SPKOUTR_ENA 0 SPKMIXR Mixer, SPKRVOL PGA and SPKOUTR Output Enable 0 = Disabled 1 = Enabled 12 SPKOUTL_ENA 0 SPKMIXL Mixer, SPKLVOL PGA and SPKOUTL Output Enable 0 = Disabled 1 = Enabled 11 HPOUT2_ENA 0 HPOUT2 Output Stage Enable 0 = Disabled 1 = Enabled 9 HPOUT1L_ENA 0 Enables HPOUT1L input stage 0 = Disabled 1 = Enabled For normal operation, this bit should be set as the first step of the HPOUT1L Enable sequence. 8 HPOUT1R_ENA 0 Enables HPOUT1R input stage 0 = Disabled 1 = Enabled For normal operation, this bit should be set as the first step of the HPOUT1R Enable sequence. 5 MICB2_ENA 0 Microphone Bias 2 Enable 0 = Disabled 1 = Enabled 4 MICB1_ENA 0 Microphone Bias 1 Enable 0 = Disabled 1 = Enabled 2:1 VMID_SEL [1:0] 00 VMID Divider Enable and Select 00 = VMID disabled (for OFF mode) 01 = 2 x 40k divider (for normal operation) 10 = 2 x 240k divider (for low power standby) 11 = Reserved 0 BIAS_ENA 0 Enables the Normal bias current generator (for all analogue functions) 0 = Disabled 1 = Enabled Register 01h Power Management (1) w PD, August 2014, Rev 4.2 230 WM1811A Production Data REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R2 (02h) Power Management (2) 14 TSHUT_ENA 1 Thermal sensor enable 0 = Disabled 1 = Enabled 13 TSHUT_OPDIS 1 Thermal shutdown control (Causes audio outputs to be disabled if an overtemperature occurs. The thermal sensor must also be enabled.) 0 = Disabled 1 = Enabled 11 OPCLK_ENA 0 GPIO Clock Output (OPCLK) Enable 0 = Disabled 1 = Enabled 9 MIXINL_ENA 0 Left Input Mixer Enable (Enables MIXINL and RXVOICE input to MIXINL) 0 = Disabled 1 = Enabled 8 MIXINR_ENA 0 Right Input Mixer Enable (Enables MIXINR and RXVOICE input to MIXINR) 0 = Disabled 1 = Enabled 7 IN2L_ENA 0 IN2L Input PGA Enable 0 = Disabled 1 = Enabled 6 IN1L_ENA 0 IN1L Input PGA Enable 0 = Disabled 1 = Enabled 5 IN2R_ENA 0 IN2R Input PGA Enable 0 = Disabled 1 = Enabled 4 IN1R_ENA 0 IN1R Input PGA Enable 0 = Disabled 1 = Enabled Register 02h Power Management (2) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R3 (03h) Power Management (3) 13 LINEOUT1N_EN A 0 LINEOUT1N Line Out and LINEOUT1NMIX Enable 0 = Disabled 1 = Enabled 12 LINEOUT1P_ENA 0 LINEOUT1P Line Out and LINEOUT1PMIX Enable 0 = Disabled 1 = Enabled 11 LINEOUT2N_EN A 0 LINEOUT2P_ENA 0 LINEOUT2N Line Out and LINEOUT2NMIX Enable 0 = Disabled 1 = Enabled 10 LINEOUT2P Line Out and LINEOUT2PMIX Enable 0 = Disabled 1 = Enabled w PD, August 2014, Rev 4.2 231 WM1811A REGISTER Production Data BIT LABEL DEFAULT DESCRIPTION ADDRESS 9 SPKRVOL_ENA 0 SPKMIXR Mixer and SPKRVOL PGA Enable 0 = Disabled 1 = Enabled Note that SPKMIXR and SPKRVOL are also enabled when SPKOUTR_ENA is set. 8 SPKLVOL_ENA 0 SPKMIXL Mixer and SPKLVOL PGA Enable 0 = Disabled 1 = Enabled Note that SPKMIXL and SPKLVOL are also enabled when SPKOUTL_ENA is set. 7 MIXOUTLVOL_E NA 0 MIXOUTRVOL_E NA 0 MIXOUTL_ENA 0 MIXOUTL Left Volume Control Enable 0 = Disabled 1 = Enabled 6 MIXOUTR Right Volume Control Enable 0 = Disabled 1 = Enabled 5 MIXOUTL Left Output Mixer Enable 0 = Disabled 1 = Enabled 4 MIXOUTR_ENA 0 MIXOUTR Right Output Mixer Enable 0 = Disabled 1 = Enabled Register 03h Power Management (3) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R4 (04h) Power Management (4) 13 AIF2ADCL_ENA 0 Enable AIF2ADC (Left) output path 0 = Disabled 1 = Enabled This bit must be set for AIF2 or AIF3 output of the AIF2ADC (Left) signal. 12 AIF2ADCR_ENA 0 Enable AIF2ADC (Right) output path 0 = Disabled 1 = Enabled This bit must be set for AIF2 or AIF3 output of the AIF2ADC (Left) signal. 9 AIF1ADC1L_ENA 0 Enable AIF1ADC (Left) output path 0 = Disabled 1 = Enabled 8 AIF1ADC1R_ENA 0 Enable AIF1ADC (Right) output path 0 = Disabled 1 = Enabled 3 DMIC1L_ENA 0 Digital microphone (DMICDAT) Left channel enable 0 = Disabled 1 = Enabled 2 DMIC1R_ENA 0 Digital microphone (DMICDAT) Right channel enable 0 = Disabled 1 = Enabled 1 ADCL_ENA 0 Left ADC Enable 0 = Disabled 1 = Enabled w PD, August 2014, Rev 4.2 232 WM1811A Production Data REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS 0 ADCR_ENA 0 Right ADC Enable 0 = Disabled 1 = Enabled Register 04h Power Management (4) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R5 (05h) Power Management (5) 13 AIF2DACL_ENA 0 Enable AIF2DAC (Left) input path 0 = Disabled 1 = Enabled 12 AIF2DACR_ENA 0 Enable AIF2DAC (Right) input path 0 = Disabled 1 = Enabled 9 AIF1DAC1L_ENA 0 Enable AIF1DAC (Left) input path 0 = Disabled 1 = Enabled 8 AIF1DAC1R_ENA 0 Enable AIF1DAC (Right) input path 0 = Disabled 1 = Enabled 1 DAC1L_ENA 0 Left DAC Enable 0 = Disabled 1 = Enabled 0 DAC1R_ENA 0 Right DAC Enable 0 = Disabled 1 = Enabled Register 05h Power Management (5) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R6 (06h) Power Management (6) 10:9 AIF3ADC_SRC [1:0] 00 AIF3 Mono PCM output source select 00 = None 01 = AIF2ADC (Left) output path 10 = AIF2ADC (Right) output path 11 = Reserved 8:7 AIF2DAC_SRC [1:0] 00 AIF2 input path select 00 = Left and Right inputs from AIF2 01 = Left input from AIF2; Right input from AIF3 10 = Left input from AIF3; Right input from AIF2 11 = Reserved 5 AIF3_TRI 0 AIF3 Audio Interface tri-state 0 = AIF3 pins operate normally 1 = Tri-state all AIF3 interface pins Note that pins not configured as AIF3 functions are not affected by this register. 4:3 AIF3_ADCDAT_S RC [1:0] 00 GPIO9/ADCDAT3 Source select 00 = AIF1 ADCDAT1 01 = AIF2 ADCDAT2 10 = DACDAT2 11 = AIF3 Mono PCM output Note that GPIO9 must be configured as ADCDAT3. w PD, August 2014, Rev 4.2 233 WM1811A REGISTER Production Data BIT LABEL DEFAULT DESCRIPTION ADDRESS 2 AIF2_ADCDAT_S RC 0 ADCDAT2 Source select 0 = AIF2 ADCDAT2 1 = GPIO8/DACDAT3 For selection 1, the GPIO8 pin must also be configured as DACDAT3. 1 AIF2_DACDAT_S RC 0 AIF2 DACDAT Source select 0 = DACDAT2 1 = GPIO8/DACDAT3 For selection 1, the GPIO8 pin must also be configured as DACDAT3. 0 AIF1_DACDAT_S RC 0 AIF1 DACDAT Source select 0 = DACDAT1 1 = GPIO8/DACDAT3 Note that, for selection 1, the GPIO8 pin must be configured as DACDAT3. Register 06h Power Management (6) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R21 (15h) Input Mixer (1) 8 IN1RP_MIXINR_ BOOST 0 IN1RP Pin (PGA Bypass) to MIXINR Gain Boost. This bit selects the maximum gain setting of the IN1RP_MIXINR_VOL register. 0 = Maximum gain is +6dB 1 = Maximum gain is +15dB 7 IN1LP_MIXINL_B OOST 0 IN1LP Pin (PGA Bypass) to MIXINL Gain Boost. This bit selects the maximum gain setting of the IN1LP_MIXINL_VOL register. 0 = Maximum gain is +6dB 1 = Maximum gain is +15dB 6 INPUTS_CLAMP 0 Input pad VMID clamp 0 = Clamp de-activated 1 = Clamp activated Register 15h Input Mixer (1) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R24 (18h) Left Line Input 1&2 Volume 8 IN1_VU 0 Input PGA Volume Update Writing a 1 to this bit will cause IN1L and IN1R input PGA volumes to be updated simultaneously 7 IN1L_MUTE 1 IN1L PGA Mute 0 = Disable Mute 1 = Enable Mute 6 IN1L_ZC 0 IN1L PGA Zero Cross Detector 0 = Change gain immediately 1 = Change gain on zero cross only 4:0 IN1L_VOL [4:0] 0_1011 IN1L Volume -16.5dB to +30dB in 1.5dB steps Register 18h Left Line Input 1&2 Volume w PD, August 2014, Rev 4.2 234 WM1811A Production Data REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R25 (19h) Left Line Input 3&4 Volume 8 IN2_VU 0 Input PGA Volume Update Writing a 1 to this bit will cause IN2L and IN2R input PGA volumes to be updated simultaneously 7 IN2L_MUTE 1 IN2L PGA Mute 0 = Disable Mute 1 = Enable Mute 6 IN2L_ZC 0 IN2L PGA Zero Cross Detector 0 = Change gain immediately 1 = Change gain on zero cross only 4:0 IN2L_VOL [4:0] 0_1011 IN2L Volume -16.5dB to +30dB in 1.5dB steps Register 19h Left Line Input 3&4 Volume REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R26 (1Ah) Right Line Input 1&2 Volume 8 IN1_VU 0 Input PGA Volume Update Writing a 1 to this bit will cause IN1L and IN1R input PGA volumes to be updated simultaneously 7 IN1R_MUTE 1 IN1R PGA Mute 0 = Disable Mute 1 = Enable Mute 6 IN1R_ZC 0 IN1R PGA Zero Cross Detector 0 = Change gain immediately 1 = Change gain on zero cross only 4:0 IN1R_VOL [4:0] 0_1011 IN1R Volume -16.5dB to +30dB in 1.5dB steps Register 1Ah Right Line Input 1&2 Volume REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R27 (1Bh) Right Line Input 3&4 Volume 8 IN2_VU 0 Input PGA Volume Update Writing a 1 to this bit will cause IN2L and IN2R input PGA volumes to be updated simultaneously 7 IN2R_MUTE 1 IN2R PGA Mute 0 = Disable Mute 1 = Enable Mute 6 IN2R_ZC 0 IN2R PGA Zero Cross Detector 0 = Change gain immediately 1 = Change gain on zero cross only 4:0 IN2R_VOL [4:0] 0_1011 IN2R Volume -16.5dB to +30dB in 1.5dB steps Register 1Bh Right Line Input 3&4 Volume w PD, August 2014, Rev 4.2 235 WM1811A REGISTER Production Data BIT LABEL DEFAULT DESCRIPTION ADDRESS R28 (1Ch) Left Output Volume 8 HPOUT1_VU 0 Headphone Output PGA Volume Update Writing a 1 to this bit will update HPOUT1LVOL and HPOUT1RVOL volumes simultaneously. 7 HPOUT1L_ZC 0 HPOUT1LVOL (Left Headphone Output PGA) Zero Cross Enable 0 = Zero cross disabled 1 = Zero cross enabled 6 HPOUT1L_MUTE _N 1 HPOUT1LVOL (Left Headphone Output PGA) Mute 0 = Mute 1 = Un-mute 5:0 HPOUT1L_VOL [5:0] 10_1101 HPOUT1LVOL (Left Headphone Output PGA) Volume -57dB to +6dB in 1dB steps 00_0000 = -57dB 00_0001 = -56dB … (1dB steps) 11_1111 = +6dB Register 1Ch Left Output Volume REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R29 (1Dh) Right Output Volume 8 HPOUT1_VU 0 Headphone Output PGA Volume Update Writing a 1 to this bit will update HPOUT1LVOL and HPOUT1RVOL volumes simultaneously. 7 HPOUT1R_ZC 0 HPOUT1RVOL (Right Headphone Output PGA) Zero Cross Enable 0 = Zero cross disabled 1 = Zero cross enabled 6 HPOUT1R_MUTE _N 1 HPOUT1RVOL (Right Headphone Output PGA) Mute 0 = Mute 1 = Un-mute 5:0 HPOUT1R_VOL [5:0] 10_1101 HPOUT1RVOL (Right Headphone Output PGA) Volume -57dB to +6dB in 1dB steps 00_0000 = -57dB 00_0001 = -56dB … (1dB steps) 11_1111 = +6dB Register 1Dh Right Output Volume REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R30 (1Eh) Line Outputs Volume 6 LINEOUT1N_MU TE 1 LINEOUT1P_MU TE 1 LINEOUT1_VOL 0 LINEOUT1N Line Output Mute 0 = Un-mute 1 = Mute 5 LINEOUT1P Line Output Mute 0 = Un-mute 1 = Mute 4 LINEOUT1 Line Output Volume 0 = 0dB 1 = -6dB Applies to both LINEOUT1N and LINEOUT1P w PD, August 2014, Rev 4.2 236 WM1811A Production Data REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS 2 LINEOUT2N_MU TE 1 LINEOUT2P_MU TE 1 LINEOUT2_VOL 0 LINEOUT2N Line Output Mute 0 = Un-mute 1 = Mute 1 LINEOUT2P Line Output Mute 0 = Un-mute 1 = Mute 0 LINEOUT2 Line Output Volume 0 = 0dB 1 = -6dB Applies to both LINEOUT2N and LINEOUT2P Register 1Eh Line Outputs Volume REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R31 (1Fh) HPOUT2 Volume 5 HPOUT2_MUTE 1 HPOUT2 (Earpiece Driver) Mute 0 = Mute 1 = Un-mute 4 HPOUT2_VOL 0 HPOUT2 (Earpiece Driver) Volume 0 = 0dB 1 = -6dB Register 1Fh HPOUT2 Volume REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R32 (20h) Left OPGA Volume 8 MIXOUT_VU 0 Mixer Output PGA Volume Update Writing a 1 to this bit will update MIXOUTLVOL and MIXOUTRVOL volumes simultaneously. 7 MIXOUTL_ZC 0 MIXOUTLVOL (Left Mixer Output PGA) Zero Cross Enable 0 = Zero cross disabled 1 = Zero cross enabled 6 MIXOUTL_MUTE _N 1 MIXOUTL_VOL [5:0] 11_1001 MIXOUTLVOL (Left Mixer Output PGA) Mute 0 = Mute 1 = Un-mute 5:0 MIXOUTLVOL (Left Mixer Output PGA) Volume -57dB to +6dB in 1dB steps 00_0000 = -57dB 00_0001 = -56dB … (1dB steps) 11_1111 = +6dB Register 20h Left OPGA Volume w PD, August 2014, Rev 4.2 237 WM1811A REGISTER Production Data BIT LABEL DEFAULT DESCRIPTION ADDRESS R33 (21h) Right OPGA Volume 8 MIXOUT_VU 0 Mixer Output PGA Volume Update Writing a 1 to this bit will update MIXOUTLVOL and MIXOUTRVOL volumes simultaneously. 7 MIXOUTR_ZC 0 MIXOUTRVOL (Right Mixer Output PGA) Zero Cross Enable 0 = Zero cross disabled 1 = Zero cross enabled 6 MIXOUTR_MUTE _N 1 MIXOUTLVOL (Right Mixer Output PGA) Mute 0 = Mute 1 = Un-mute 5:0 MIXOUTR_VOL [5:0] 11_1001 MIXOUTRVOL (Right Mixer Output PGA) Volume -57dB to +6dB in 1dB steps 00_0000 = -57dB 00_0001 = -56dB … (1dB steps) 11_1111 = +6dB Register 21h Right OPGA Volume REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R34 (22h) SPKMIXL Attenuation 5 MIXINL_SPKMIX L_VOL 0 IN1LP_SPKMIXL _VOL 0 MIXOUTL_SPKMI XL_VOL 0 DAC1L_SPKMIXL _VOL 0 SPKMIXL_VOL [1:0] 11 MIXINL (Left ADC bypass) to SPKMIXL Fine Volume Control 0 = 0dB 1 = -6dB 4 IN1LP to SPKMIXL Fine Volume Control 0 = 0dB 1 = -6dB 3 Left Mixer Output to SPKMIXL Fine Volume Control 0 = 0dB 1 = -6dB 2 Left DAC to SPKMIXL Fine Volume Control 0 = 0dB 1 = -6dB 1:0 Left Speaker Mixer Volume Control 00 = 0dB 01 = Reserved 10 = Reserved 11 = Mute Register 22h SPKMIXL Attenuation REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R35 (23h) SPKMIXR Attenuation 5 MIXINR_SPKMIX R_VOL 0 IN1RP_SPKMIXR _VOL 0 MIXOUTR_SPKM IXR_VOL 0 MIXINR (Right ADC bypass) to SPKMIXR Fine Volume Control 0 = 0dB 1 = -6dB 4 IN1RP to SPKMIXR Fine Volume Control 0 = 0dB 1 = -6dB 3 Right Mixer Output to SPKMIXR Fine Volume Control 0 = 0dB 1 = -6dB w PD, August 2014, Rev 4.2 238 WM1811A Production Data REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS 2 DAC1R_SPKMIX R_VOL 0 SPKMIXR_VOL [1:0] 11 Right DAC to SPKMIXR Fine Volume Control 0 = 0dB 1 = -6dB 1:0 Right Speaker Mixer Volume Control 00 = 0dB 01 = Reserved 10 = Reserved 11 = Mute Register 23h SPKMIXR Attenuation REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R36 (24h) SPKOUT Mixers 4 SPKMIXL_TO_SP KOUTL 1 SPKMIXR_TO_S PKOUTL 0 SPKMIXL_TO_SP KOUTR 0 SPKMIXR_TO_S PKOUTR 1 SPKMIXL Left Speaker Mixer to Left Speaker Mute 0 = Mute 1 = Un-mute 3 SPKMIXR Right Speaker Mixer to Left Speaker Mute 0 = Mute 1 = Un-mute 1 SPKMIXL Left Speaker Mixer to Right Speaker Mute 0 = Mute 1 = Un-mute 0 SPKMIXR Right Speaker Mixer to Right Speaker Mute 0 = Mute 1 = Un-mute Register 24h SPKOUT Mixers REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R37 (25h) ClassD 6 Reserved 1 5:3 SPKOUTL_BOOS T [2:0] 000 Reserved - do not change Left Speaker Gain Boost 000 = 1.00x boost (+0dB) 001 = 1.19x boost (+1.5dB) 010 = 1.41x boost (+3.0dB) 011 = 1.68x boost (+4.5dB) 100 = 2.00x boost (+6.0dB) 101 = 2.37x boost (+7.5dB) 110 = 2.81x boost (+9.0dB) 111 = 3.98x boost (+12.0dB) 2:0 SPKOUTR_BOO ST [2:0] 000 Right Speaker Gain Boost 000 = 1.00x boost (+0dB) 001 = 1.19x boost (+1.5dB) 010 = 1.41x boost (+3.0dB) 011 = 1.68x boost (+4.5dB) 100 = 2.00x boost (+6.0dB) 101 = 2.37x boost (+7.5dB) 110 = 2.81x boost (+9.0dB) 111 = 3.98x boost (+12.0dB) Register 25h ClassD w PD, August 2014, Rev 4.2 239 WM1811A REGISTER Production Data BIT LABEL DEFAULT DESCRIPTION ADDRESS R38 (26h) Speaker Volume Left 8 SPKOUT_VU 0 Speaker Output PGA Volume Update Writing a 1 to this bit will update SPKLVOL and SPKRVOL volumes simultaneously. 7 SPKOUTL_ZC 0 SPKLVOL (Left Speaker Output PGA) Zero Cross Enable 0 = Zero cross disabled 1 = Zero cross enabled 6 SPKOUTL_MUTE _N 1 SPKLVOL (Left Speaker Output PGA) Mute 0 = Mute 1 = Un-mute 5:0 SPKOUTL_VOL [5:0] 11_1001 SPKLVOL (Left Speaker Output PGA) Volume -57dB to +6dB in 1dB steps 00_0000 = -57dB 00_0001 = -56dB … (1dB steps) 11_1111 = +6dB Register 26h Speaker Volume Left REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R39 (27h) Speaker Volume Right 8 SPKOUT_VU 0 Speaker Output PGA Volume Update Writing a 1 to this bit will update SPKLVOL and SPKRVOL volumes simultaneously. 7 SPKOUTR_ZC 0 SPKRVOL (Right Speaker Output PGA) Zero Cross Enable 0 = Zero cross disabled 1 = Zero cross enabled 6 SPKOUTR_MUT E_N 1 SPKRVOL (Right Speaker Output PGA) Mute 0 = Mute 1 = Un-mute 5:0 SPKOUTR_VOL [5:0] 11_1001 SPKRVOL (Right Speaker Output PGA) Volume -57dB to +6dB in 1dB steps 00_0000 = -57dB 00_0001 = -56dB … (1dB steps) 11_1111 = +6dB Register 27h Speaker Volume Right REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R40 (28h) Input Mixer (2) 7 IN2LP_TO_IN2L 0 IN2L PGA Non-Inverting Input Select 0 = Connected to VMID 1 = Connected to IN2LP Note that VMID_BUF_ENA must be set when using IN2L connected to VMID. 6 IN2LN_TO_IN2L 0 IN2L PGA Inverting Input Select 0 = Not connected 1 = Connected to IN2LN 5 IN1LP_TO_IN1L 0 IN1L PGA Non-Inverting Input Select 0 = Connected to VMID 1 = Connected to IN1LP Note that VMID_BUF_ENA must be set when using IN1L connected to VMID. 4 IN1LN_TO_IN1L w 0 IN1L PGA Inverting Input Select PD, August 2014, Rev 4.2 240 WM1811A Production Data REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS 0 = Not connected 1 = Connected to IN1LN 3 IN2RP_TO_IN2R 0 IN2R PGA Non-Inverting Input Select 0 = Connected to VMID 1 = Connected to IN2RP Note that VMID_BUF_ENA must be set when using IN2R connected to VMID. 2 IN2RN_TO_IN2R 0 IN2R PGA Inverting Input Select 0 = Not connected 1 = Connected to IN2RN 1 IN1RP_TO_IN1R 0 IN1R PGA Non-Inverting Input Select 0 = Connected to VMID 1 = Connected to IN1RP Note that VMID_BUF_ENA must be set when using IN1R connected to VMID. 0 IN1RN_TO_IN1R 0 IN1R PGA Inverting Input Select 0 = Not connected 1 = Connected to IN1RN Register 28h Input Mixer (2) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R41 (29h) Input Mixer (3) 8 IN2L_TO_MIXINL 0 IN2L PGA Output to MIXINL Mute 0 = Mute 1 = Un-Mute 7 IN2L_MIXINL_VO L 0 IN1L_TO_MIXINL 0 IN2L PGA Output to MIXINL Gain 0 = 0dB 1 = +30dB 5 IN1L PGA Output to MIXINL Mute 0 = Mute 1 = Un-Mute 4 IN1L_MIXINL_VO L 0 MIXOUTL_MIXIN L_VOL [2:0] 000 IN1L PGA Output to MIXINL Gain 0 = 0dB 1 = +30dB 2:0 Record Path MIXOUTL to MIXINL Gain and Mute 000 = Mute 001 = -12dB 010 = -9dB 011 = -6dB 100 = -3dB 101 = 0dB 110 = +3dB 111 = +6dB Register 29h Input Mixer (3) w PD, August 2014, Rev 4.2 241 WM1811A REGISTER Production Data BIT LABEL DEFAULT DESCRIPTION ADDRESS R42 (2Ah) Input Mixer (4) 8 IN2R_TO_MIXIN R 0 IN2R_MIXINR_V OL 0 IN1R_TO_MIXIN R 0 IN1R_MIXINR_V OL 0 MIXOUTR_MIXIN R_VOL [2:0] 000 IN2R PGA Output to MIXINR Mute 0 = Mute 1 = Un-Mute 7 IN2R PGA Output to MIXINR Gain 0 = 0dB 1 = +30dB 5 IN1R PGA Output to MIXINR Mute 0 = Mute 1 = Un-Mute 4 IN1R PGA Output to MIXINR Gain 0 = 0dB 1 = +30dB 2:0 Record Path MIXOUTR to MIXINR Gain and Mute 000 = Mute 001 = -12dB 010 = -9dB 011 = -6dB 100 = -3dB 101 = 0dB 110 = +3dB 111 = +6dB Register 2Ah Input Mixer (4) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R43 (2Bh) Input Mixer (5) 8:6 IN1LP_MIXINL_V OL [2:0] 000 IN1LP Pin (PGA Bypass) to MIXINL Gain and Mute 000 = Mute 001 = -12dB 010 = -9dB 011 = -6dB 100 = -3dB 101 = 0dB 110 = +3dB 111 = +6dB (see note below). When IN1LP_MIXINL_BOOST is set, then the maximum gain setting is increased to +15dB, ie. 111 = +15dB. Note that VMID_BUF_ENA must be set when using the IN1LP (PGA Bypass) input to MIXINL. 2:0 IN2LRP_MIXINL_ VOL [2:0] 000 RXVOICE Differential Input (VRXP-VRXN) to MIXINL Gain and Mute 000 = Mute 001 = -12dB 010 = -9dB 011 = -6dB 100 = -3dB 101 = 0dB 110 = +3dB 111 = +6dB Register 2Bh Input Mixer (5) w PD, August 2014, Rev 4.2 242 WM1811A Production Data REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R44 (2Ch) Input Mixer (6) 8:6 IN1RP_MIXINR_ VOL [2:0] 000 IN1RP Pin (PGA Bypass) to MIXINR Gain and Mute 000 = Mute 001 = -12dB 010 = -9dB 011 = -6dB 100 = -3dB 101 = 0dB 110 = +3dB 111 = +6dB (see note below). When IN1RP_MIXINR_BOOST is set, then the maximum gain setting is increased to +15dB, ie. 111 = +15dB. Note that VMID_BUF_ENA must be set when using the IN1RP (PGA Bypass) input to MIXINR. 2:0 IN2LRP_MIXINR_ VOL [2:0] 000 RXVOICE Differential Input (VRXP-VRXN) to MIXINR Gain and Mute 000 = Mute 001 = -12dB 010 = -9dB 011 = -6dB 100 = -3dB 101 = 0dB 110 = +3dB 111 = +6dB Register 2Ch Input Mixer (6) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R45 (2Dh) Output Mixer (1) 8 DAC1L_TO_HPO UT1L 0 MIXINR_TO_MIX OUTL 0 MIXINL_TO_MIX OUTL 0 IN2RN_TO_MIXO UTL 0 HPOUT1LVOL (Left Headphone Output PGA) Input Select 0 = MIXOUTL 1 = DACL 7 MIXINR Output (Right ADC bypass) to MIXOUTL Mute 0 = Mute 1 = Un-mute 6 MIXINL Output (Left ADC bypass) to MIXOUTL Mute 0 = Mute 1 = Un-mute 5 IN2RN to MIXOUTL Mute 0 = Mute 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN2RN input to MIXOUTL. 4 IN2LN_TO_MIXO UTL 0 IN2LN to MIXOUTL Mute 0 = Mute 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN2LN input to MIXOUTL. 3 IN1R_TO_MIXOU TL 0 IN1L_TO_MIXOU TL 0 IN1R PGA Output to MIXOUTL Mute 0 = Mute 1 = Un-mute 2 IN1L PGA Output to MIXOUTL Mute 0 = Mute 1 = Un-mute w PD, August 2014, Rev 4.2 243 WM1811A REGISTER Production Data BIT LABEL DEFAULT DESCRIPTION ADDRESS 1 IN2LP_TO_MIXO UTL 0 IN2LP to MIXOUTL Mute 0 = Mute 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN2LP input to MIXOUTL. 0 DAC1L_TO_MIX OUTL 0 Left DAC to MIXOUTL Mute 0 = Mute 1 = Un-mute Register 2Dh Output Mixer (1) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R46 (2Eh) Output Mixer (2) 8 DAC1R_TO_HPO UT1R 0 MIXINL_TO_MIX OUTR 0 MIXINR_TO_MIX OUTR 0 IN2LN_TO_MIXO UTR 0 HPOUT1RVOL (Right Headphone Output PGA) Input Select 0 = MIXOUTR 1 = DACR 7 MIXINL Output (Left ADC bypass) to MIXOUTR Mute 0 = Mute 1 = Un-mute 6 MIXINR Output (Right ADC bypass) to MIXOUTR Mute 0 = Mute 1 = Un-mute 5 IN2LN to MIXOUTR Mute 0 = Mute 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN2LN input to MIXOUTR. 4 IN2RN_TO_MIXO UTR 0 IN2RN to MIXOUTR Mute 0 = Mute 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN2RN input to MIXOUTR. 3 IN1L_TO_MIXOU TR 0 IN1R_TO_MIXOU TR 0 IN2RP_TO_MIXO UTR 0 IN1L PGA Output to MIXOUTR Mute 0 = Mute 1 = Un-mute 2 IN1R PGA Output to MIXOUTR Mute 0 = Mute 1 = Un-mute 1 IN2RP to MIXOUTR Mute 0 = Mute 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN2RP input to MIXOUTR. 0 DAC1R_TO_MIX OUTR 0 Right DAC to MIXOUTR Mute 0 = Mute 1 = Un-mute Register 2Eh Output Mixer (2) w PD, August 2014, Rev 4.2 244 WM1811A Production Data REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R47 (2Fh) Output Mixer (3) 11:9 IN2LP_MIXOUTL _VOL [2:0] 000 IN2LP to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB 8:6 IN2LN_MIXOUTL _VOL [2:0] 000 IN2LN to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB 5:3 IN1R_MIXOUTL_ VOL [2:0] 000 IN1R PGA Output to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB 2:0 IN1L_MIXOUTL_ VOL [2:0] 000 IN1L PGA Output to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB Register 2Fh Output Mixer (3) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R48 (30h) Output Mixer (4) 11:9 IN2RP_MIXOUTR _VOL [2:0] 000 IN2RP to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB 8:6 IN2RN_MIXOUTR _VOL [2:0] 000 IN2RN to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB 5:3 IN1L_MIXOUTR_ VOL [2:0] 000 IN1L PGA Output to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB w PD, August 2014, Rev 4.2 245 WM1811A REGISTER Production Data BIT LABEL DEFAULT DESCRIPTION ADDRESS 2:0 IN1R_MIXOUTR_ VOL [2:0] 000 IN1R PGA Output to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB Register 30h Output Mixer (4) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R49 (31h) Output Mixer (5) 11:9 DAC1L_MIXOUT L_VOL [2:0] 000 Left DAC to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB 8:6 IN2RN_MIXOUTL _VOL [2:0] 000 IN2RN to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB 5:3 MIXINR_MIXOUT L_VOL [2:0] 000 MIXINR Output (Right ADC bypass) to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB 2:0 MIXINL_MIXOUT L_VOL [2:0] 000 MIXINL Output (Left ADC bypass) to MIXOUTL Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB Register 31h Output Mixer (5) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R50 (32h) Output Mixer (6) 11:9 DAC1R_MIXOUT R_VOL [2:0] 000 Right DAC to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB 8:6 IN2LN_MIXOUTR _VOL [2:0] 000 IN2LN to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB w PD, August 2014, Rev 4.2 246 WM1811A Production Data REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS 5:3 MIXINL_MIXOUT R_VOL [2:0] 000 MIXINL Output (Left ADC bypass) to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB 2:0 MIXINR_MIXOUT R_VOL [2:0] 000 MIXINR Output (Right ADC bypass) to MIXOUTR Volume 0dB to -9dB in 3dB steps X00 = 0dB X01 = -3dB X10 = -6dB X11 = -9dB Register 32h Output Mixer (6) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R51 (33h) HPOUT2 Mixer 4 MIXOUTLVOL_T O_HPOUT2 0 MIXOUTLVOL (Left Output Mixer PGA) to Earpiece Driver 0 = Mute 1 = Un-mute 3 MIXOUTRVOL_T O_HPOUT2 0 MIXOUTRVOL (Right Output Mixer PGA) to Earpiece Driver 0 = Mute 1 = Un-mute Register 33h HPOUT2 Mixer REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R52 (34h) Line Mixer (1) 6 MIXOUTL_TO_LI NEOUT1N 0 MIXOUTL to Single-Ended Line Output on LINEOUT1N 0 = Mute 1 = Un-mute (LINEOUT1_MODE = 1) 5 MIXOUTR_TO_LI NEOUT1N 0 MIXOUTR to Single-Ended Line Output on LINEOUT1N 0 = Mute 1 = Un-mute (LINEOUT1_MODE = 1) 4 LINEOUT1_MOD E 0 IN1R_TO_LINEO UT1P 0 LINEOUT1 Mode Select 0 = Differential 1 = Single-Ended 2 IN1R Input PGA to Differential Line Output on LINEOUT1 0 = Mute 1 = Un-mute (LINEOUT1_MODE = 0) 1 IN1L_TO_LINEO UT1P 0 IN1L Input PGA to Differential Line Output on LINEOUT1 0 = Mute 1 = Un-mute (LINEOUT1_MODE = 0) 0 MIXOUTL_TO_LI NEOUT1P 0 Differential Mode (LINEOUT1_MODE = 0): MIXOUTL to Differential Output on LINEOUT1 0 = Mute 1 = Un-mute w PD, August 2014, Rev 4.2 247 WM1811A REGISTER Production Data BIT LABEL DEFAULT DESCRIPTION ADDRESS Single Ended Mode (LINEOUT1_MODE = 1): MIXOUTL to Single-Ended Line Output on LINEOUT1P 0 = Mute 1 = Un-mute Register 34h Line Mixer (1) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R53 (35h) Line Mixer (2) 6 MIXOUTR_TO_LI NEOUT2N 0 MIXOUTR to Single-Ended Line Output on LINEOUT2N 0 = Mute 1 = Un-mute (LINEOUT2_MODE = 1) 5 MIXOUTL_TO_LI NEOUT2N 0 MIXOUTL to Single-Ended Line Output on LINEOUT2N 0 = Mute 1 = Un-mute (LINEOUT2_MODE = 1) 4 LINEOUT2_MOD E 0 IN1L_TO_LINEO UT2P 0 LINEOUT2 Mode Select 0 = Differential 1 = Single-Ended 2 IN1L Input PGA to Differential Line Output on LINEOUT2 0 = Mute 1 = Un-mute (LINEOUT2_MODE = 0) 1 IN1R_TO_LINEO UT2P 0 IN1R Input PGA to Differential Line Output on LINEOUT2 0 = Mute 1 = Un-mute (LINEOUT2_MODE = 0) 0 MIXOUTR_TO_LI NEOUT2P 0 Differential Mode (LINEOUT2_MODE = 0): MIXOUTR to Differential Output on LINEOUT2 0 = Mute 1 = Un-mute Single-Ended Mode (LINEOUT2_MODE = 0): MIXOUTR to Single-Ended Line Output on LINEOUT2P 0 = Mute 1 = Un-mute Register 35h Line Mixer (2) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R54 (36h) Speaker Mixer 7 MIXINL_TO_SPK MIXL 0 MIXINL (Left ADC bypass) to SPKMIXL Mute 0 = Mute 1 = Un-mute 6 MIXINR_TO_SPK MIXR 0 MIXINR (Right ADC bypass) to SPKMIXR Mute 0 = Mute 1 = Un-mute 5 IN1LP_TO_SPKM IXL w 0 IN1LP to SPKMIXL Mute 0 = Mute PD, August 2014, Rev 4.2 248 WM1811A Production Data REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN1LP input to SPKMIXL. 4 IN1RP_TO_SPK MIXR 0 IN1RP to SPKMIXR Mute 0 = Mute 1 = Un-mute Note that VMID_BUF_ENA must be set when using the IN1RP input to SPKMIXR. 3 MIXOUTL_TO_S PKMIXL 0 MIXOUTR_TO_S PKMIXR 0 DAC1L_TO_SPK MIXL 0 DAC1R_TO_SPK MIXR 0 Left Mixer Output to SPKMIXL Mute 0 = Mute 1 = Un-mute 2 Right Mixer Output to SPKMIXR Mute 0 = Mute 1 = Un-mute 1 Left DAC to SPKMIXL Mute 0 = Mute 1 = Un-mute 0 Right DAC to SPKMIXR Mute 0 = Mute 1 = Un-mute Register 36h Speaker Mixer REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R55 (37h) Additional Control 7 LINEOUT1_FB 0 Enable ground loop noise feedback on LINEOUT1 0 = Disabled 1 = Enabled 6 LINEOUT2_FB 0 Enable ground loop noise feedback on LINEOUT2 0 = Disabled 1 = Enabled 0 VROI 0 Buffered VMID to Analogue Line Output Resistance (Disabled Outputs) 0 = 20kohm from buffered VMID to output 1 = 500ohm from buffered VMID to output Register 37h Additional Control REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R56 (38h) AntiPOP (1) 7 LINEOUT_VMID_ BUF_ENA 0 HPOUT2_IN_EN A 0 LINEOUT1_DISC H 0 LINEOUT2_DISC H 0 Enables VMID reference for line outputs in single-ended mode 0 = Disabled 1 = Enabled 6 HPOUT2MIX Mixer and Input Stage Enable 0 = Disabled 1 = Enabled 5 Discharges LINEOUT1P and LINEOUT1N outputs 0 = Not active 1 = Actively discharging LINEOUT1P and LINEOUT1N 4 Discharges LINEOUT2P and LINEOUT2N outputs 0 = Not active 1 = Actively discharging LINEOUT2P and LINEOUT2N Register 38h AntiPOP (1) w PD, August 2014, Rev 4.2 249 WM1811A REGISTER Production Data BIT LABEL DEFAULT DESCRIPTION ADDRESS R57 (39h) AntiPOP (2) 8:7 JACKDET_MODE [1:0] 00 JACKDET mode select 00 = Jack Detect disabled 01 = Jack Detect enabled 10 = Jack Detect enabled 11 = Jack Detect enabled MICDET (microphone/accessory detection) is not supported when JACKDET_MODE = 10. Analogue/Digital audio functions are not supported when JACKDET_MODE = 01 or 10. LDO1_DISCH must be set to 0 when JACKDET_MODE = 01. Settings 01 and 10 must not be selected if AVDD1 or DCVDD is supplied externally (ie. if LDO1 or LDO2 is not used). 6:5 VMID_RAMP [1:0] 00 VMID soft start enable / slew rate control 00 = Normal slow start 01 = Normal fast start 10 = Soft slow start 11 = Soft fast start If VMID_RAMP = 1X is selected for VMID start-up or shut-down, then the soft-start circuit must be reset by setting VMID_RAMP=00 after VMID is disabled, before VMID is re-enabled. VMID is disabled / enabled using the VMID_SEL register. 3 VMID_BUF_ENA 0 VMID Buffer Enable 0 = Disabled 1 = Enabled (provided VMID_SEL > 00) 2 STARTUP_BIAS_ ENA 0 BIAS_SRC 0 Enables the Start-Up bias current generator 0 = Disabled 1 = Enabled 1 Selects the bias current source 0 = Normal bias 1 = Start-Up bias 0 VMID_DISCH 0 Connects VMID to ground 0 = Disabled 1 = Enabled Register 39h AntiPOP (2) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R59 (3Bh) LDO 1 3:1 LDO1_VSEL [2:0] 110 LDO1 Output Voltage Select 2.4V to 3.1V in 100mV steps 000 = 2.4V 001 = 2.5V 010 = 2.6V 011 = 2.7V 100 = 2.8V 101 = 2.9V 110 = 3.0V 111 = 3.1V w PD, August 2014, Rev 4.2 250 WM1811A Production Data REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS 0 LDO1_DISCH 1 LDO1 Discharge Select 0 = LDO1 floating when disabled 1 = LDO1 discharged when disabled Register 3Bh LDO 1 REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R60 (3Ch) LDO 2 2:1 LDO2_VSEL [1:0] 01 LDO2 Output Voltage Select 1.05V to 1.25V in 100mV steps 00 = Reserved 01 = 1.05V 10 = 1.15V 11 = 1.25V 0 LDO2_DISCH 1 LDO2 Discharge Select 0 = LDO2 floating when disabled 1 = LDO2 discharged when disabled Register 3Ch LDO 2 REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R61 (3Dh) MICBIAS1 5 MICB1_RATE 1 Microphone Bias 1 Rate 0 = Fast start-up / shut-down 1 = Pop-free start-up / shut-down 4 MICB1_MODE 1 Microphone Bias 1 Mode 0 = Regulator mode 1 = Bypass mode 3:1 MICB1_LVL [2:0] 100 Microphone Bias 1 Voltage Control (when MICB1_MODE = 0) 000 = 1.5V 001 = 1.8V 010 = 1.9V 011 = 2.0V 100 = 2.2V 101 = 2.4V 110 = 2.5V 111 = 2.6V 0 MICB1_DISCH 1 Microphone Bias 1 Discharge 0 = MICBIAS1 floating when disabled 1 = MICBIAS1 discharged when disabled Register 3Dh MICBIAS1 REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R62 (3Eh) MICBIAS2 5 MICB2_RATE 1 Microphone Bias 2 Rate 0 = Fast start-up / shut-down 1 = Pop-free start-up / shut-down 4 MICB2_MODE 1 Microphone Bias 2 Mode 0 = Regulator mode 1 = Bypass mode w PD, August 2014, Rev 4.2 251 WM1811A REGISTER Production Data BIT LABEL DEFAULT DESCRIPTION ADDRESS 3:1 MICB2_LVL [2:0] 100 Microphone Bias 2 Voltage Control (when MICB2_MODE = 0) 000 = 1.5V 001 = 1.8V 010 = 1.9V 011 = 2.0V 100 = 2.2V 101 = 2.4V 110 = 2.5V 111 = 2.6V 0 MICB2_DISCH 1 Microphone Bias 2 Discharge 0 = MICBIAS2 floating when disabled 1 = MICBIAS2 discharged when disabled Register 3Eh MICBIAS2 REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R76 (4Ch) Charge Pump (1) 15 CP_ENA 0 Enable charge-pump digits 0 = Disable 1 = Enable Register 4Ch Charge Pump (1) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R77 (4Dh) Charge Pump (2) 15 CP_DISCH 1 Charge Pump Discharge Select 0 = Charge Pump outputs floating when disabled 1 = Charge Pump outputs discharged when disabled Register 4Dh Charge Pump (2) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R81 (51h) Class W (1) 9:8 CP_DYN_SRC_S EL [1:0] 00 Selects the digital audio source for envelope tracking 00 = AIF1, DAC data 01 = Reserved 10 = AIF2, DAC data 11 = Reserved 0 CP_DYN_PWR 0 Enable dynamic charge pump power control 0 = charge pump controlled by volume register settings (Class G) 1 = charge pump controlled by real-time audio level (Class W) Register 51h Class W (1) w PD, August 2014, Rev 4.2 252 WM1811A Production Data REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R84 (54h) DC Servo (1) 5 4 3 2 1 DCS_TRIG_STA RTUP_1 0 DCS_TRIG_STA RTUP_0 0 DCS_TRIG_DAC _WR_1 0 DCS_TRIG_DAC _WR_0 0 DCS_ENA_CHAN _1 0 Writing 1 to this bit selects Start-Up DC Servo mode for HPOUT1R. In readback, a value of 1 indicates that the DC Servo Start-Up correction is in progress. Writing 1 to this bit selects Start-Up DC Servo mode for HPOUT1L. In readback, a value of 1 indicates that the DC Servo Start-Up correction is in progress. Writing 1 to this bit selects DAC Write DC Servo mode for HPOUT1R. In readback, a value of 1 indicates that the DC Servo DAC Write correction is in progress. Writing 1 to this bit selects DAC Write DC Servo mode for HPOUT1L. In readback, a value of 1 indicates that the DC Servo DAC Write correction is in progress. DC Servo enable for HPOUT1R 0 = Disabled 1 = Enabled 0 DCS_ENA_CHAN _0 0 DC Servo enable for HPOUT1L 0 = Disabled 1 = Enabled Register 54h DC Servo (1) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R85 (55h) DC Servo (2) 3:0 DCS_TIMER_PE RIOD_01 [3:0] 1010 This register must be set to 0000 for correct operation of the DC Servo. 0000 = DC Servo enabled All other values are Reserved Register 55h DC Servo (2) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R88 (58h) DC Servo Readback 9:8 DCS_CAL_COMP LETE [1:0] 00 DC Servo Complete status 0 = DAC Write or Start-Up DC Servo mode not completed. 1 = DAC Write or Start-Up DC Servo mode complete. Bit [1] = HPOUT1R Bit [0] = HPOUT1L 5:4 DCS_DAC_WR_ COMPLETE [1:0] 00 DC Servo DAC Write status 0 = DAC Write DC Servo mode not completed. 1 = DAC Write DC Servo mode complete. Bit [1] = HPOUT1R Bit [0] = HPOUT1L 1:0 DCS_STARTUP_ COMPLETE [1:0] 00 DC Servo Start-Up status 0 = Start-Up DC Servo mode not completed. 1 = Start-Up DC Servo mode complete. Bit [1] = HPOUT1R Bit [0] = HPOUT1L Register 58h DC Servo Readback w PD, August 2014, Rev 4.2 253 WM1811A REGISTER Production Data BIT LABEL DEFAULT DESCRIPTION ADDRESS R89 (59h) DC Servo (4) 15:8 DCS_DAC_WR_ VAL_1 [7:0] 0000_0000 Writing to this field sets the DC Offset value for HPOUT1R in DAC Write DC Servo mode. Reading this field gives the current DC Offset value for HPOUT1R. Two’s complement format. LSB is 0.25mV. Range is -32mV to +31.75mV 7:0 DCS_DAC_WR_ VAL_0 [7:0] 0000_0000 Writing to this field sets the DC Offset value for HPOUT1L in DAC Write DC Servo mode. Reading this field gives the current DC Offset value for HPOUT1L. Two’s complement format. LSB is 0.25mV. Range is -32mV to +31.75mV Register 59h DC Servo (4) w PD, August 2014, Rev 4.2 254 WM1811A Production Data REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R96 (60h) Analogue HP (1) 8 HPOUT1_ATTN 0 HPOUT1L and HPOUT1R Attenuation 0 = 0dB 1 = -3dB Note that, when CP_DYN_PWR=0, then any update to HPOUT1_ATTN is not fully implemented until a ‘1’ is written to HPOUT1_VU. 7 HPOUT1L_RMV_ SHORT 0 Removes HPOUT1L short 0 = HPOUT1L short enabled 1 = HPOUT1L short removed For normal operation, this bit should be set as the final step of the HPOUT1L Enable sequence. 6 HPOUT1L_OUTP 0 Enables HPOUT1L output stage 0 = Disabled 1 = Enabled For normal operation, this bit should be set to 1 after the DC offset cancellation has been scheduled. 5 HPOUT1L_DLY 0 Enables HPOUT1L intermediate stage 0 = Disabled 1 = Enabled For normal operation, this bit should be set to 1 after the output signal path has been configured, and before DC offset cancellation is scheduled. This bit should be set with at least 20us delay after HPOUT1L_ENA. 3 HPOUT1R_RMV_ SHORT 0 Removes HPOUT1R short 0 = HPOUT1R short enabled 1 = HPOUT1R short removed For normal operation, this bit should be set as the final step of the HPOUT1R Enable sequence. 2 HPOUT1R_OUTP 0 Enables HPOUT1R output stage 0 = Disabled 1 = Enabled For normal operation, this bit should be set to 1 after the DC offset cancellation has been scheduled. 1 HPOUT1R_DLY 0 Enables HPOUT1R intermediate stage 0 = Disabled 1 = Enabled For normal operation, this bit should be set to 1 after the output signal path has been configured, and before DC offset cancellation is scheduled. This bit should be set with at least 20us delay after HPOUT1R_ENA. Register 60h Analogue HP (1) REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R197 (C5h) Class D Test (5) 0 SPKOUT_CLK_S RC 0 Selects the source for the CLASSD speaker clock 0: selects undithered clock 1: selects dithered clock Register C5h Class D Test (5) w PD, August 2014, Rev 4.2 255 WM1811A REGISTER Production Data BIT LABEL DEFAULT DESCRIPTION ADDRESS R208 (D0h) Mic Detect 1 15:12 11:8 MICD_BIAS_STA RTTIME [3:0] 0111 MICD_RATE [3:0] 0110 Mic Detect Bias Startup Delay (If MICBIAS2 is not enabled already, this field selects the delay time allowed for MICBIAS2 to startup prior to performing the MICDET function.) 0000 = 0ms (continuous) 0001 = 0.25ms 0010 = 0.5ms 0011 = 1ms 0100 = 2ms 0101 = 4ms 0110 = 8ms 0111 = 16ms 1000 = 32ms 1001 = 64ms 1010 = 128ms 1011 = 256ms 1100 to 1111 = 512ms Mic Detect Rate (Selects the delay between successive Mic Detect measurements.) 0000 = 0ms (continuous) 0001 = 0.25ms 0010 = 0.5ms 0011 = 1ms 0100 = 2ms 0101 = 4ms 0110 = 8ms 0111 = 16ms 1000 = 32ms 1001 = 64ms 1010 = 128ms 1011 = 256ms 1100 to 1111 = 512ms 1 MICD_DBTIME 0 Mic Detect De-bounce 0 = 2 measurements 1 = 4 measurements 0 MICD_ENA 0 Mic Detect Enable 0 = Disabled 1 = Enabled Note that Mic Detect is not supported when JACKDET_MODE = 10. Register D0h Mic Detect 1 w PD, August 2014, Rev 4.2 256 WM1811A Production Data REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R209 (D1h) Mic Detect 2 7:0 MICD_LVL_SEL [7:0] 0111_1111 Mic Detect Level Select (enables Mic Detection in specific impedance ranges) [7] = Not used - must be set to 0 [6] = Enable >475 ohm detection [5] = Enable 326 ohm detection [4] = Enable 152 ohm detection [3] = Enable 77 ohm detection [2] = Enable 47.6 ohm detection [1] = Enable 29.4 ohm detection [0] = Enable 14 ohm detection Note that the impedance values quoted assume that a microphone (475ohm30kohm) is also present on the MICDET pin. Register D1h Mic Detect 2 REGISTER BIT LABEL DEFAULT DESCRIPTION ADDRESS R210 (D2h) Mic Detect 3 10:2 MICD_LVL [8:0] 0_0000_0000 Mic Detect Level (indicates the measured impedance) [8] = Not used [7] = >475 ohm,
CDBWM1811A-M-1 价格&库存

很抱歉,暂时无法提供与“CDBWM1811A-M-1”相匹配的价格&库存,您可以联系我们找货

免费人工找货