AC97 WM9710 Datasheet
AC97 WM9710 Datasheet
DESCRIPTION FEATURES
The WM9710 is a high-quality stereo audio codec with an • AC’97 rev2.2 compliant, 18-bit stereo codec
integrated headphone driver. • Integrated headphone driver
The device is compliant with the Intel AC’97 Rev 2.2 • Automatic headset detection and switching (for stereo
headphones / mono phone headsets)
specification. It performs full-duplex 18-bit codec functions and
supports variable sample rates from 8kHz to 48kHz with high • Separately mixed mono output for phone TX path (also
signal to noise ratio. Analogue mixers are included to mix includes headphone buffer for mono earpiece)
external analogue signals into the playback or record path. • Multiple channel input mixer
The WM9710 allows designers to easily integrate phone • Mono inputs for phone RX and PCBEEP signals
functions with other audio functions such as MP3 playback and • On-chip sample rate conversion, supports rates from 8kHz
voice recording. Mono inputs and outputs are provided to to 48kHz. DAC and ADC rates are fully independent.
connect to an external voice codec. The on-chip headphone • Optional S/PDIF or I2S digital audio output
driver can distinguish between a stereo headphone and mono • 3V to 5V operation
headset, and route the signals accordingly.
• Each circuit block can be separately powered on or off
Optional AC’97 features include 3D sound enhancement, • Leadless 7mm × 7mm × 0.9mm QFN or 48-pin TQFP
2
primary/secondary mode operation and S/PDIF or I S output. package
The 5-pin bi-directional AC-Link interface transfers control data, APPLICATIONS
DAC and ADC words to and from the AC’97 controller. The
WM9710 is fully operable on 3V or 5V or mixed 3/5V supplies, • Personal Digital Assistants and ‘Smartphones’
and is packaged in a leadless, chip scale QFN package with • WinCE systems
7mm body size or 48-pin TQFP package.
BLOCK DIAGRAM
DGND1 DVDD1 DGND2 DVDD2 CX3D1 CX3D2
W
WM9710 ADCNDAC MUX
LINEINVOL (Reg 10h) HPND 16 / 32Ohm
(Reg 5Ch) (Reg 5Ch) HPVOL headphone
(Reg 04h)
CDVOL (Reg 12h)
M HPOUTL
U
MICVOL (Reg 0Eh) X HPOUTR
3D
HPGND
(Reg 5Ah)
MPM
MIXVOL
(Reg 72h)
POP
RECORD ADC DIGITAL DAC (Reg 20h)
LINEINL GAIN FILTERS
(Reg 1Ch) L L MASTER VOL
LINEINR M (Reg 02h)
Σ∆
CDL U MODULATION
LINEOUTL
CDGND X LINEOUTR
MIC BOOST ADC DAC DACVOL
CDR MIC SELECT
(Reg 0Eh) PHONE VARIABLE (Reg 18h)
(Reg 20h) M RECORD R R
RATE AUDIO
MIC2 0/20 SELECT
U (Reg 1Ah)
dB MIX
M X
MIC1 (Reg 20h)
U
X headset autodetect M
(Reg 0Ah) (Reg 0Ch) MONO_OUT
U
HPOUTL X (TX)
M MONO VOL
U (Reg 06h)
X PSEL
VREFOUT VREF
AC'97 CLOCK (Reg 5Ch)
CONTROL LOGIC
INTERFACE OSC PHIZ
(Reg 78h)
XTLOUT
XTLIN
HSDET
CID0
VREF
AGND
AVDD
EAPD
PWRUP/LRC
RESETB
PCBEEP
PHONE
SYNC
CAP2
(RX)
SDATAOUT
SPEN/I2S
SPDIF
BITCLK
SDATAIN
24.576MHz
TABLE OF CONTENTS
DESCRIPTION ............................................................................................................1
FEATURES..................................................................................................................1
APPLICATIONS ..........................................................................................................1
BLOCK DIAGRAM ......................................................................................................1
TABLE OF CONTENTS ..............................................................................................2
ORDERING INFORMATION .......................................................................................3
ABSOLUTE MAXIMUM RATINGS..............................................................................3
RECOMMENDED OPERATING CONDITIONS ..........................................................4
PIN CONFIGURATION................................................................................................5
PIN DESCRIPTION .....................................................................................................6
ELECTRICAL CHARACTERISTICS ...........................................................................7
POWER CONSUMPTION ...........................................................................................9
DETAILED TIMING DIAGRAMS ...............................................................................11
AC-LINK LOW POWER MODE .........................................................................................11
COLD RESET....................................................................................................................11
WARM RESET ..................................................................................................................12
CLOCK SPECIFICATIONS ...............................................................................................12
DATA SETUP AND HOLD (50PF EXTERNAL LOAD).......................................................13
SIGNAL RISE AND FALL TIMES ......................................................................................13
DEVICE DESCRIPTION............................................................................................14
INTRODUCTION ...............................................................................................................14
AC’97 FEATURES.............................................................................................................14
NON - AC’97 FEATURES..................................................................................................14
3-D STEREO ENHANCEMENT.........................................................................................15
VARIABLE SAMPLE RATE SUPPORT .............................................................................15
2
SPDIF OR I S DIGITAL AUDIO DATA OUTPUT...............................................................16
PRIMARY/SECONDARY ID SUPPORT ............................................................................16
HEADPHONE DRIVE AND HEADSET AUTODETECT .....................................................17
DATA SLOT MAPPING .....................................................................................................18
AC-LINK DIGITAL SERIAL INTERFACE PROTOCOL ......................................................18
REGISTER 28H – EXTENDED AUDIO ID.........................................................................24
REGISTER 2AH – EXTENDED AUDIO STATUS AND CONTROL REGISTER ................24
REGISTER 2CH AND 32H – AUDIO SAMPLE RATE CONTROL REGISTERS................25
REGISTERS 3AH – SPDIF CONTROL REGISTER ..........................................................25
VENDOR SPECIFIC REGISTERS (INDEX 5AH - 7AH) ....................................................25
SERIAL INTERFACE REGISTER MAP ....................................................................28
PACKAGE DIMENSIONS – TQFP............................................................................30
PACKAGE DIMENSIONS – QFN..............................................................................31
IMPORTANT NOTICE ...............................................................................................32
ADDRESS: ........................................................................................................................32
ORDERING INFORMATION
MOISTURE
DEVICE TEMP. RANGE PACKAGE
SENSITIVITY LEVEL
XWM9710EFT/V -25 to 85oC 48-pin TQFP MSL1
o 48-pin TQFP MSL1
WM9710SEFT/V -25 to 85 C
(lead free)
48-pin TQFP MSL1
XWM9710EFT/RV -25 to 85oC
(tape and reel)
48-pin TQFP MSL1
WM9710SEFT/RV -25 to 85oC
(lead free, tape and reel)
MOISTURE
DEVICE TEMP. RANGE PACKAGE
SENSITIVITY LEVEL
XWM9710EFL/V -25 to 85oC 48-pin QFN MSL3
o 48-pin QFN MSL3
WM9710SEFL/V -25 to 85 C
(lead free)
48-pin QFN MSL3
XWM9710EFL/RV -25 to 85oC
(tape and reel)
48-pin QFN MSL3
WM9710SEFL/RV -25 to 85oC
(lead free, tape and reel)
Note:
Reel quantity = 2,200
The Moisture Sensitivity Level for each package type is specified in Ordering Information.
Note:
The TQFP version is classified as MSL1 and does not require to be drybagged but will be supplied as such, labelled as MSL1.
PIN CONFIGURATION
PWRUP / LRC
MONO_OUT
SPEN / I2S
HPOUTR
HPOUTL
HPGND
HSDET
SPDIF
AGND
AVDD
EAPD
CID0
48 47 46 45 44 43 42 41 40 39 38 37
DVDD1 1 36 LINEOUTR
XTLIN 2 35 LINEOUTL
XTLOUT 3 34 CX3D2
DGND1 4 33 CX3D1
SDATAOUT 5 32 CAP2
SDATAIN 8 29 DNC
DVDD2 9 28 VREFOUT
SYNC 10 27 VREF
RESETB 11 26 DNC
PCBEEP 12 25 DNC
13 14 15 16 17 18 19 20 21 22 23 24
PHONE
CDL
MIC1
MIC2
LINEINL
DNC
DNC
DNC
DNC
CDGND
CDR
LINEINR
MONOOUT
SPEN/I2S
HPOUTR
HPOUTL
HPGND
AGND2
AVDD2
HSDET
SPDIF
EAPD
CID0
48 47 46 45 44 43 42 41 40 39 38 37
DVDD1 1 36 LINEOUTR
XTLIN 2 35 LINEOUTL
XTLOUT 3 34 CX3D2
DGND1 4 33 CX3D1
SDATAOUT 5 32 CAP2
BITCLK 6 WM9710
WM9710 31 DNC
TQFP
DGND2 7
QFN 30 DNC
SDATAIN 8 29 DNC
DVDD2 9 28 VREFOUT
SYNC 10 27 VREF
RESETB 11 26 DNC
PCBEEP 12 25 DNC
13 14 15 16 17 18 19 20 21 22 23 24
DNC
CDGND
DNC
DNC
CDR
PHONE
CDL
LINEINL
LINEINR
MIC1
MIC2
DNC
PIN DESCRIPTION
PIN 48 PIN TQFP TYPE DESCRIPTION
OR 48 QFN
1 DVDD1 Supply Digital supply
2 XTLIN Digital input Clock crystal connection or clock input (if XTAL not used)
3 XTLOUT Digital output Clock crystal connection
4 DGND1 Supply Digital ground
5 SDATAOUT Digital input Serial data input (AC-Link signal)
6 BITCLK Digital I/O Serial interface clock (AC-Link signal)
7 DGND2 Supply Digital ground
8 SDATAIN Digital output Serial data output (AC-Link signal)
9 DVDD2 Supply Digital supply
10 SYNC Digital input Serial interface sync pulse (AC-Link signal)
11 RESETB Digital input Reset input (active low, resets registers)
12 PCBEEP Analogue input PCBEEP input (mono input to mixer)
13 PHONE Analogue input Phone RX input (mono input to mixer)
14 DNC Do Not Connect Leave this pin floating
15 DNC Do Not Connect Leave this pin floating
16 DNC Do Not Connect Leave this pin floating
17 DNC Do Not Connect Leave this pin floating
18 CDL Analogue input CD Left (stereo input to mixer)
19 CDGND Analogue input CD input common mode reference (ground)
20 CDR Analogue input CD Right (stereo input to mixer)
21 MIC1 Analogue input Microphone input 1 – also HSET detect input
22 MIC2 Analogue input Microphone input 2
23 LINEINL Analogue input Line-in Left (stereo mixer input)
24 LINEINR Analogue input Line-in Right (stereo mixer input)
25 DNC Do Not Connect Leave this pin floating
26 DNC Do Not Connect Leave this pin floating
27 VREF Analogue output Internal reference (buffered CAP2)
28 VREFOUT Analogue output Microphone bias voltage (buffered CAP2)
29 DNC Do Not Connect Leave this pin floating
30 DNC Do Not Connect Leave this pin floating
31 DNC Do Not Connect Leave this pin floating
32 CAP2 Analogue I/O Reference input/output; pulls to AVDD/2 if not overdriven
33 CX3D1 Analogue output Output pin for 3D enhancement function
34 CX3D2 Analogue input Input pin for 3D enhancement function
35 LINEOUTL Analogue output Line-out Left
36 LINEOUTR Analogue output Line-out Right
37 MONOOUT Analogue output Mono output (Phone TX or mono earpiece)
38 AVDD Supply Analogue supply
39 HPOUTL Analogue output Headphone output Left (or headset mic input if headset detect
function is enabled)
40 HPGND Supply Headphone ground
41 HPOUTR Analogue output Headphone output Right
42 AGND Supply Analogue ground
43 PWRUP/LRC Digital I/O Power-up control (or LRCLK signal for I2S output)
2
44 SPEN/I S Digital I/O SPDIF hardware enable pin and I2S data output
45 CID0 Digital input Primary/Secondary codec select (internal pull-up) Hi = Primary
46 HSDET Digital output Headset detect signal
47 EAPD Digital output External amplifier powerdown (or general purpose control output)
48 SPDIF Digital output S/PDIF output
ELECTRICAL CHARACTERISTICS
Test Characteristics:
AVDD = 3.3V, DVDD = 3.3V, 48kHz audio sampling, TA = 25oC, unless otherwise stated.
Test Characteristics:
AVDD = 3.3V, DVDD = 3.3V, 48kHz audio sampling, TA = 25oC, unless otherwise stated.
Note:
1. Harmonic distortion on the headphone output decreases with output power – see Figure 3.
2. SNR is the ratio of 0dB signal amplitude to noise floor with no signal present (all 0s input code to DACs).
3. ADC sampling capacitance allows the user to calculate the minimum external capacitance required for a stable ADC value.
-100
-90
-80
THD+Noise (dB)
-70
-60
-50
-40
Output Power (mW)
-30
0 5 10 15 20 25 30
Figure 3 Distortion Versus Power on Headphone Outputs, using 32Ω Load and AVDD = HPVDD = 3.3V
POWER CONSUMPTION
MODE CURRENT
RECORD MUX
DIGITISER PD
EAPD
PR0
PR1
PR2
PR3
PR5
PR6
PR4
AVDD DVDD TOTAL
(mA (mA) POWER
(mW)
Record and Playback
Mic Record (note 1) 000L
0 0 0 0 0 0 0 X 00 14.8 14.3 96
000R
Other Input Record 001L
0 0 0 0 0 0 0 X 00 17.7 14.3 105.6
001R
Other Input Record 001L
0 0 0 0 0 0 1 X 00 16.3 14.3 101
PR6 001R
Other Input Record 001L
0 0 1 0 0 0 1 X 00 10.7 14.3 82.5
PR6 and PR2 001R
Other Input Record 001L
0 0 0 1 0 0 1 X 00 0.5 14.1 48.2
PR6 and PR3 001R
Playback Only
Low Power 001L
1 0 1 0 0 0 0 X 00 5.5 11.5 56.1
Playback (note 2) 001R
Playback Only 001L
1 0 0 0 0 0 0 X 00 11.1 11.5 74.6
001R
Playback Only 001L
1 0 0 0 0 0 1 X 00 9.7 11.5 70
PR6 001R
Playback Only 001L
1 0 1 0 0 0 1 X 00 4.0 11.5 51.2
PR6 and PR2 001R
Playback Only 001L
1 0 0 1 0 0 1 X 00 0.4 11.5 39.3
PR6 and PR3 001R
Record Only
000L
Mic Record (note 1) 0 1 0 0 0 0 0 X 00 12.9 13.3 86.5
000R
100L
Other Input Record 0 1 0 0 0 0 0 X 00 15.8 13.3 96
100R
Other Input Record 100L
0 1 0 0 0 0 1 X 00 14.3 11.3 84.5
PR6 100R
Other Input Record 100L
0 1 1 0 0 0 1 X 00 7.2 13.3 67.7
PR6 and PR2 100R
Other Input Record 100L
0 1 0 1 0 0 1 X 00 0.3 12.9 43.6
PR6 and PR3 100R
Power Down
Power Down XXXL
1 1 1 1 1 1 1 X 00 0.0001 0.002 0.007
(note 3) XXXR
Pen Digitiser
Pen Digitiser XXXL
1 1 1 1 0 1 1 X 11 0.1 3.6 12.2
(Note 4) XXXR
Notes:
1. When the ADC input mux is set to mic input to BOTH ADC channels, (SR2-0 and SL2-0 both set to ‘0’), one ADC is
shared between both channels and the other is powered off to save current. The same digital data is output to both slots.
2. The POP bit (reg 20h) also needs to be set for this mode.
3. These values are recorded with no external clocks applied to the WM9705.
4. Pen active duty cycle is approximately 10%. Average analogue current consumption is approximately 10% of stated figure.
Test Characteristics:
AVDD = 3.3V, DVDD = 3.3V, AGND = 0V …………..TA = 0oC to +70oC, unless otherwise stated.
All measurements are taken at 10% to 90% DVDD, unless otherwise stated. All the following timing information is guaranteed,
not tested.
SLOT 1 SLOT 2
SYNC
BITCLK
WRITE DON'T
DATA PR4
SDATAOUT TO 0X20 CARE
tS2_PDOWN
SDATAIN
tRST_LOW tRST2CLK
RESETB
BITCLK
Note:
For correct operation SDATAOUT and SYNC must be held LOW for entire RESETB active low
period otherwise the device may enter test mode. See AC’97 specification or Wolfson
applications note WAN104 for more details.
WARM RESET
tSYNC_HIGH tSYNC2CLK
SYNC
BITCLK
CLOCK SPECIFICATIONS
tCLK_HIGH tCLK_LOW
BITCLK
tCLK_PERIOD
tSYNC_HIGH tSYNC_LOW
SYNC
tSYNC_PERIOD
tSETUP
BITCLK
tHOLD
SDATAIN
SDATAOUT
tSETUP tHOLD
SYNC
Note:
Setup and hold time parameters for SDATAIN are with respect to AC’97 Controller.
triseCLK tfallCLK
BITCLK
triseSYNC tfallSYNC
SYNC
triseDIN tfallDIN
SDATAIN
triseDOUT tfallDOUT
SDATAOUT
DEVICE DESCRIPTION
INTRODUCTION
This specification describes the WM9710 audio codec, which is designed to be software and
hardware compatible with the Intel AC’97 rev2.2 component specification. The device is a
derivative of the basic AC’97 codec. Variable Rate Audio (VRA) is supported at rates defined in
the Intel rev2.1 or rev2.2 specification, and a SPDIF output port is provided which may optionally
be used to output the PCM DAC information to external processors.
Stereo Audio Codec with Intel specified VRA support of different audio sample rates
Optional SPDIF and I2S audio outputs (SPDIF output may be hardware enabled so needing no
driver support)
Headphone drive capability and optional auto detection of headset or headphone plug in
It is highly recommended that the Intel AC’97 rev2.2 specification be studied in parallel with this
document: This specification can be downloaded from the Intel web site.
The WM9710 is fully operable on 3V or 5V or mixed 3/5V supplies, and is packaged in the
industry standard 48pin TQFP package with 7mm body size.
AC’97 FEATURES
WM9710 implements the base set of AC’97 rev2.2 features, plus several enhancements:
Headphone drive capability on MONO output, with extra signal routing switch PSEL, allowing
PHONE input to be routed to MONO output
Extra switch HPND after the mixer allowing MIX without DAC signal to be output to headphone
outputs, and so allowing DAC with no MIX to be output to LINE outputs.
I2S audio output capability, in addition to SPDIF output, allowing support of an extra external
audio DAC for multi-channel solutions. SPDIF output may be hardware enabled.
Option to route the stereo audio ADC output to the SPDIF and/or I2S digital outputs
Auto-detect of headphones or headset plugged into the HPOUT headphone outputs, with internal
routing of microphone signal from the headphone pin to the MIC1 input.
MPM switch allowing mix of DAC + mixer output onto MONOUT and independent mix of DAC +
PHONE and/or PCBEEP onto LINEOUT or HPOUT.
Reset powerdown override – holding PWRUP/LRC (PIN 43) high in reset overrides the PR bits
forcing the WM9710 into a low power mode.
The filtered difference signal is gain adjusted by an amount set using the 4-bit value written to
Register 22h bits 3 to 0. Value 0h is disable, value Fh is maximum effect. Typically a value of 8h
is optimum. The user interface would most typically use a slider type of control to allow the user to
adjust the level of enhancement to suit the program material. Bit D13 3D in Register 20h is the
overall 3D enable bit. The Reset Register 00h reads back the value 11000 in bits D14 to D10.
This corresponds to decimal 24, which is registered with Intel as Wolfson Stereo Enhancement.
Note that the external capacitors setting the filtering poles applied to the difference signal may be
adjusted in value, or even replaced with a direct connection between the pins. If such adjustments
are made, then the amount of difference signal fed back into the main signal paths may be
significant, and can cause large signals which may limit, distort, or overdrive signal paths or
speakers. Adjust these values with care, to select the preferred acoustic effect. There is no
provision for pseudo-stereo effects. Mono signals will have no enhancement applied (if the signals
are in phase and of the same amplitude). Signals from the PCM DAC channels can have stereo
enhancement applied. It can also be bypassed if desired. This function is enabled by setting the
bit POP in Register 20h.
Variable rates are selected by writing to registers 2Ch (DAC) and 32h (ADC). ADC and DAC rates
may be set independently, with left and right channels always at the same rate. The device
supports on demand sampling. That is, when the DAC signal processing circuits need another
sample, a sample request is sent to the controller which must respond with a data sample in the
next frame it sends. For example, if a rate of 24kHz is selected, on average the device will
request a sample from the controller every other frame, for each of the stereo DACs. Note that if
an unsupported rate is written to one of the rate registers, the rate will default to the nearest rate
supported. The Register will then respond, when interrogated, with the supported rate the device
has defaulted to.
The WM9710 clocks will scale automatically dependent upon the MCLK frequency, where MCLK
is not equal to 24.576MHz. With a 24MHz clock the BCLK frequency expected will be 12MHz and
the sampling frequency (SYNC0 expected is BCLK/256 = 46.875kHz.
Additionally the digital audio may be output in I2S format using pin 44 (SPEN) as the data output,
and outputting a frame clock or LRCLK onto pin 43. The data is clocked onto pin 44 using the
regular BITCLK at 256fs, which would also then be used as the MCLK if the data is taken to an
external DAC. Operation in this mode is selected by setting bit I2S in register 5Ch. A 64fs bitclk is
also available and can be output on SPDIF by setting bit I2S64 in register 74h. Note that I2S
operation is only supported for 48kHz operation. Hardware selection of SPDIF operation by pulling
pin SPEN ‘hi’ is compatible with I2S operation, provided a weak pull-up (circa 100k) was used to
2 2
hold SPEN high at start-up. The SPEN pin becomes I S data output pin when I S is enabled, and
the weak pull-up on this pin is overdriven.
For both SPDIF and I2S modes the data that is output may be sent from the WM9710 via the AC
link in the same slots as normal DAC data or may be sent in different slots. The output slots that
contain the SPDIF/I2S data are selected by bits SPSA[1:0] in register 2Ah. WM9710 is compliant
with AC’97 rev2.2 specification with regard to slot mapping; therefore the default mode of
operation is to output SPDIF or I2S data from the next data slots available after the audio data
slots currently in use. Alternatively if required, data may be mapped from any of the available
slots by selection using SPSA bits. The following table shows the default slot mapping for audio
DACs and SPDIF/I2S data: (further details in the register description section later).
2
SPEN STATE AT CODEC ID (PIN 45 STRAPPING) AUDIO DAC SLOT SPDIF OR I S
START-UP DEFAULT DATASLOT DEFAULT
‘lo’ (rev2.2 compliant) ‘hi’ = ID = 0 = primary Slots 3 & 4 - front channels Slots 7 & 8
‘lo’ (rev2.2 compliant) ‘lo’ = ID = 1 = secondary Slots 7 & 8 – surround Slots 6 & 9
‘hi’ (WM proprietary) ‘hi’ = ID = 0 = primary Slots 3 & 4 - front channels Slots 3 & 4
‘hi’ (WM proprietary) ‘lo’ = ID = 1 = secondary Slots 7 & 8 – surround Slots 3 & 4
Table 2 DAC and SPDIF Slot Mapping Defaults
However, an exception to the rev2.2 mapping table is made when SPDIF operation is enabled
using the SPEN hardware enable pin (being held high at start-up): in this case SPDIF data is
immediately output from the DAC primary slots 3 & 4. This allows for driver-less SPDIF operation,
where the SPDIF or I2S output is simply the data contained in the main audio DAC channels.
Channel status and control bits output along with the SPDIF data are as set in the SPDIF control
register 3Ah. If required SPDIF data channel slot mapping may be then changed by setting
SPSA bits as required. See tables 18, 19 and 20 for further details.
A mode is provided where the output from the ADC is sent out as the SPDIF or I2S data as
above, rather than the data sent to the DACs over the AC link. This mode is enabled by setting bit
ADCO in register 5Ch. ADC data continues to be sent via the AC link to the controller as normal.
WM9710 supports SPDIF and I2S data only at the default 48kHz frame rate. Writing to SPSR bits
in register 3Ah any value other than the default 48kHz rate will result in a fail to write, with the
48kHz value being returned on subsequent reads of these values.
PRIMARY/SECONDARY ID SUPPORT
WM9710 supports operation as either a primary or a secondary codec. Configuration of the
device as either a primary or as a secondary, is selected by tying the CID0 pin 45 on the package.
Fundamentally, a device identified as a primary (ID = 0, CID0 = ‘hi’) produces BITCLK as an
output, whereas a secondary (any other ID) must be provided with BITCLK as an input. This has
the obvious implication that if the primary device on an AC link is disabled, the secondary devices
cannot function. The AC’97 Revision 2.2 specification defines that the CID0 pin has inverting
sense, and are provided with internal weak pull ups. Therefore, if no connections are made to the
CID0 pin, then the pin pull hi and an ID = 0 is selected, i.e. primary. External connect to ground
(with pull-down from 0 to 10kΩ) will select codec ID = ‘1’.
MS '1'
MIC AMP '0'
reg 20h MIC1
'0' HPGND
'1'
MIC2
HSEN
reg 5Ch
INTERNAL
MIC
HSCP +
reg 5Ch - VMID
HSDET
HSCMP
reg 5Ch
5mA MPUEN
reg 5Ch
Figure 10 shows this function schematically. The output signal from the comparator is accessible
by reading bit HSCP in register 5Ch. Auto detect may be used by setting HSEN bit, or external
control by using the HSDT bit which is an over-ride that forces the headset tri-state and
microphone path switching function to occur.
This function would allow, for example, a stereo headphone to be used that had a microphone in
the connecting lead, and a switch. The switch changes the headphone into a mono headset with
microphone connected via the tip connection on the jack. If used in a product such as an MP3
capable phone it would allow the user to switch from headphone use to headset use by simply
switching a single switch in the headphone cable, so at the same time answering or initiating
telephone calls. It may also be possible to use the pull-up current to provide so called ‘phantom
power’ to dynamic microphones with appropriate choice of microphone.
Default values and functional behavior are further described in the Serial Interface Register Map
description. DAC slot mapping defaults are in Table 2.
The WM9710 incorporates a 5-pin digital serial interface that links it to the AC’97 controller. AC-
link is a bi-directional, fixed rate, serial PCM digital stream. It handles multiple input and output
audio streams, as well as control register accesses employing a time division multiplexed (TDM)
scheme. The AC-link architecture divides each audio frame into 12 outgoing and 12 incoming
data streams, each with 20-bit sample resolution. With a minimum required DAC and ADC
resolution of 16-bits, AC’97 may also be implemented with 18 or 20-bit DAC/ADC resolution,
given the headroom that the AC-link architecture provides. The WM9710 provides support for 18-
bit audio operation.
SLOT
0 1 2 3 4 5 6 7 8 9 10 11 12
NUMBER
SYNC
DATA PHASE
TAG PHASE
20.8µS (48kHz)
SYNC
12.288MHz
81.4nS
BITCLK
VALID
SLOT(1) SLOT(2) SLOT(12) '0' '0' '0' 19 0 19 0 19 0 19 0
SDATAOUT FRAME
TIME SLOT 'VALID' BITS SLOT (1) SLOT (2) SLOT (3) SLOT (12)
END OF PREVIOUS ('1' = TIME SLOT CONTAINS
AUDIO FRAME VALID PCM DATA)
Synchronisation of all AC-link data transactions is signalled by the WM9710 controller. The
WM9710 drives the serial bit clock onto AC-link, which the AC’97 controller then qualifies with a
synchronisation signal to construct audio frames.
SYNC, fixed at 48kHz, is derived by dividing down the serial clock (BITCLK). BITCLK, fixed at
12.288MHz, provides the necessary clocking granularity to support 12, 20-bit outgoing and
incoming time slots. AC-link serial data is transitioned on each rising edge of BITCLK. The
receiver of AC-link data, (WM9710 for outgoing data and AC’97 controller for incoming data),
samples each serial bit on the falling edges of BITCLK.
The AC-link protocol provides for a special 16-bit time slot (slot 0) wherein each bit conveys a
valid tag for its corresponding time slot within the current audio frame. A 1 in a given bit position
of slot 0 indicates that the corresponding time slot within the current audio frame has been
assigned to a data stream, and contains valid data. If a slot is tagged invalid, it is the
responsibility of the source of the data, (the WM9710 for the input stream, AC’97 controller for the
output stream), to stuff all bit positions with 0s during that slot’s active time.
SYNC remains high for a total duration of 16 BITCLKs at the beginning of each audio frame.
The portion of the audio frame where SYNC is high is defined as the Tag Phase. The remainder
of the audio frame where SYNC is low is defined as the Data Phase. Additionally, for power
savings, all clock, sync, and data signals can be halted. This requires that the WM9710 be
implemented as a static design to allow its Register contents to remain intact when entering a
power savings mode.
ML4 to ML0 is for left channel level, MR4 to MR0 is for the right channel and MM4 to MM0 is for
the mono out channel.
Support for the MSB of the volume level is not provided by the WM9710. If the MSB is written to,
then the WM9710 detects when that bit is set and sets all 4 LSBs to 1s. Example: If the driver
writes a 1xxxxx the WM9710 interprets that as x11111. It will also respond when read with x11111
rather than 1xxxxx, the value written to it. The driver can use this feature to detect if support for
the 6th bit is there or not.
The default value of both the mono and the stereo registers is 8000h (1000 0000 0000 0000),
which corresponds to 0dB gain with mute on.
The Headphone out has an additional 6dB boost, selectable by setting HPB in register 74h.
WM9710 defaults to the PC-beep path being muted, so an external speaker should be provided
within the PC to alert the user to power on self-test problems.
ANALOGUE MIXER INPUT GAIN REGISTERS (INDEX 0CH - 18H AND 72H)
This controls the gain/attenuation for each of the analogue inputs and mixer PGA. Each step
corresponds to approximately 1.5dB. The MSB of the register is the mute bit. When this bit is set
to 1 the level for that channel is set at -∞dB. Note that the gain for the VID and AUX input
channels is fixed at 0dB. Writes to the gain control bits for these channels are ignored, and the
value of readback for these registers is always the default, with the exception of the mute bit 15
which may be written to and read from.
The default value for the mono registers is 8008h, which corresponds to 0dB gain with mute on.
The default value for stereo registers is 8808h, which corresponds to 0dB gain with mute on.
SR2 TO SR0 RIGHT RECORD SOURCE SL2 TO SL0 LEFT RECORD SOURCE
0 Mic 0 Mic
1 CD in (R) 1 CD in (L)
3 Line in (R) 4 Line in (L)
4 Stereo mix (R) 5 Stereo mix (L)
5 Mono mix 6 Mono mix
6 Phone 7 Phone
Table 8 Record Select Register Function
The default value is 8000h, which corresponds to 0dB gain with mute on.
Below is a summary of each bit and its function. Only the POP, 3D, MIX, MS and LPBK bits are
supported by the WM9710. The MS bit controls the Mic selector. The LPBK bit enables loopback
of the ADC output to the DAC input without involving the AC-link, allowing for full system
performance measurements. The function default value is 0000h which is all off.
BIT FUNCTION
POP PCM out path and mute, 0 = pre-3D, 1 = post-3D
3D 3D stereo enhancement on/off, 1 = on
MIX Mono output select 0 = Mix, 1 = Mic
MS Mic select 0 = Mic1, 1 = Mic2
LPBK ADC/DAC loopback mode
DP3…DP0 DEPTH
0 0%
1
-
8 Typical value
-
15 100%
Table 10 3D Control Register
When the AC-link Codec Ready indicator bit (SDATAIN slot 0, bit 15) is a 1 it indicates that the
AC-link and the WM9710 control and status registers are in a fully operational state. The AC’97
controller must further probe this Powerdown Control/Status Register to determine exactly which
subsections, if any, are ready.
Note that the normal default condition of WM9710 when RESETB is applied is ‘all active’.
However, if pin 43 (PWRUP/LRC) is pulled ‘hi’ during RESETB active, all PR bits are overridden
and the device enters a low power mode. This allows a low power standby mode to be entered
without writing to the device, a condition that is desirable for example, if batteries are changed in
a PDA. The state of pin 43 is latched on the rising edge of RESETB and if the pin is ‘hi’ then the
WM9710 will remain in low power mode until register 26h is written to.
The Powerdown modes are as follows. The first three bits are to be used individually rather than
in combination with each other. The last bit PR3 can be used in combination with PR2 or by itself.
PR0 and PR1 control the PCM ADCs and DACs only. PR6 powers down just the stereo Line
Level output headphone amps on pins 39/41.
The WM9710 also includes a low power DAC to headphone mode, whereby resetting PR1and
PR6 enables the DAC and the path from the DAC to HPOUTL/R without having to power up the
main mixer (PR2). The POP bit (reg 20h) also needs to be set for this mode. The headphone
amplifier on the MONO output pin in not powered down by PR6, rather by PR2 or alternatively
may be enabled by setting MONOEN in register 74h.
Figure 11 illustrates one example procedure to do a complete Powerdown of the WM9710. From
normal operation sequential writes to the Powerdown Register are performed to Powerdown the
WM9710 a piece at a time. After everything has been shut off (PR0 to PR3 set), a final write (of
PR4) can be executed to shut down the WM9710’s digital interface (AC-link).
The part will remain in sleep mode with all its registers holding their static values. To wake up the
WM9710, the AC’97 controller will send a pulse on the sync line issuing a warm reset. This will
restart the WM9710’s digital interface (resetting PR4 to 0). The WM9710 can also be woken up
with a cold reset. A cold reset will cause a loss of values of the registers, as a cold reset will set
them to their default states. When a section is powered back on, the Powerdown Control/Status
Register (index 26h) should be read to verify that the section is ready (i.e. stable) before
attempting any operation that requires it.
Figure 12 illustrates a state when all the mixers should work with the static volume settings that
are contained in their associated registers. This is used when the user could be playing a CD (or
external LINEIN source) through WM9710 to the speakers but have most of the system in low
power mode. The procedure for this follows the previous except that the analogue mixer is never
shut down.
Note that in order to go into ultimate low power mode, PR4 and PR5 are required to be set which
turns off the oscillator circuit. Asserting SYNC resets the PR4 and PR5 bit and re-starts the
oscillator in the same way as the AC link is restarted.
DAC slot mapping to slots 7 and 8 or slots 6 and 9 cannot be used in variable rate mode (VRA=1)
for sample rates other than 48kHz.
CONTROL FUNCTION
BIT
PRO Professional; ‘0’ indicates consumer, ‘1’ indicates professional
AUDIB Non-audio; ‘0’ indicates data is PCM, ‘1’ indicates non-PCM format (eg DD or DTS)
COPY Copyright; ‘0’ indicates copyright is not asserted, ‘1’ indicates copyright
PRE Pre-emphasis; ‘0’ indicates not pre-emphasis, ‘1’ indicates 50/15us pre-emphasis
CC[6-0] Category code; programmed as required by user
L Generation level; programmed as required by user
V Validity bit; ‘0’ indicates frame valid, ‘1’ indicates frame not valid
Table 17 SPDIF Control Register
When writing to this register all bits (except MPM) must be written as a 0 or device function can
not be guaranteed.
CONTROL FUNCTION
BIT
AMUTE Indicates automute has been detected in the audio DAC (all ‘0’ data) – read only
HSCP Headset detect comparator output – read only
MPUEN Mic pull up enable
MHPZ Mono headphone tristate enable
PSEL PHONE to MONO path switch enable
HSDT Overrides Headset detect comparator, forcing left headphone amp to tristate
HSEN Headset auto-detect enable
HPND Headphone with no DAC enable
AMEN Automute enable bit
I 2S I2S data output enable
ADCNDAC ADC no DAC path enable
ADCO ADC to SPDIF and/or I2S output
HPF ADC high pass filter disable;
HSCMP Headset comparator enable bit
ASS1 ADC slot map control
ASS0 ADC slot map control
Table 18 Vendor Specific Control Register 5Ch
AMUTE indicates automute state has been detected. This is a read-only bit. 1 = automute
detected.
HSCP is a read only bit, indicating headset detected. It is the output from the headset autodetect
comparator. 0 = headset detected.
MPUEN enables a 5mA (typ) pull up current on the MIC1 input pin, which when a headset
microphone of high impedance is plugged in, causes the MIC1 pin to pull up to above Vmid, and
be detected. 1 = enable.
PSEL enables the switch from PHONE input to MONO output; see block diagram. 1 = enable.
HSDT overrides the headset auto-detect comparator, forcing the left headphone output to tristate
and the HPLOUTL pin to be used as a headset microphone input path to the mic1 preamplifier
input. 1 = autodetect comparator override.
HSEN enables headset auto-detect function. HSCMP enables the headset detect comparator. 1 =
enable.
HPND enables the switch which outputs only the analog mixer output to the HPHONE outputs,
without the DAC signal being summed in. See block diagram. 1 = enable.
AMEN enables the DAC automute function, which detects zero data on both dac channels and
auto-mutes the outputs under this condition. 1 = enable.
Bit I2S enables I2S output, sending an LRCLK to pin 43 (PWRUP/LRC) and I2S data to the
SPEN/I2S pin (pin 44). BITCLK is used to clock out the data. Only 48kHz data is supported. 1 =
enable.
ADCNDAC selects input to the ADC from before the point where the DAC signal is summed in. 1
= select.
2
Bit ADCO is used to select data from the internal ADCs to be output as SPDIF or I S data on
these pins rather than the data from the selected AC link slot. 1 = select.
HPF turns off the digital high pass filter in the ADC output when set to ‘1’.
ASS1, ASS0 are ADC slot mapping control bits. See table below. Default is slots 3 and 4.
I2S64 enables a 64fs bitclk output on SPDIF for i2s data output. 1 = enabled.
MONOEN enables the mono output independently of PR2 (MIXER Powerdown). This allows the
DAC to MONOUT path to be powered up by resetting PR1 and setting MONOEN while the Mixer
is powered down (PR2 set), providing a lower power mode when the mixer function is not
required.
BIT FUNCTION
PHIZ PHONE and PCBEEP input enable; 0 = disabled, 1 = enabled
Note:
1. Default values of register 28h and 2Ah depend on whether the device is a primary or secondary, and whether SPDIF
capability is enabled by pulling pin 44 SPEN high. The conditions shown are for a primary codec with SPDIF capability.
2. When writing to register 5Ah all bits except MPM (bit 4) must be written as 0, otherwise device function can not be
guaranteed.
DVDD
AVDD
1
DVDD1 38
9 AVDD
100nF
DVDD2
100nF
100nF
10uF
+
10uF
4 42
DGND1 AGND
7 40
DGND2 HPGND
DGND
43 AGND
DVDD PWRUP/LRC
27
VREF
1uF 12 28
PCBEEP VREFOUT
100nF
100nF
1uF 13
10uF
10uF
PHONE + +
MIXER 1uF 18
CDL
INPUTS 1uF 19 32
CDGND CAP2
1uF 20 100nF + 10uF AGND
CDR
33
1uF 21 CX3D1
MIC1 100nF
34
1uF 22 CX3D2
MIC2 AGND
1uF 23
LINEINL
WM9710 47nF
1uF 24 29 AGND
LINEINR DNC
30
14 DNC
DNC 31
15 DNC
DNC
16
DNC
35 + 2.2uF
17 LINEOUTL STEREO OUTPUT
DNC
36 + 2.2uF
25 LINEOUTR
DNC
37 + 2.2uF
26
DNC
MONOOUT MONO OUTPUT
39 + 220uF
MASTER/ HPOUTL
45 41 + 220uF
SLAVE CID0 HPOUTR LINE LEVEL STEREO
SELECT AVDD
AVSS 5
SDATAOUT
6 SPEN/I2S 44
BITCLK
8 46
AC-LINK SDATAIN HSDET
10 47
SYNC EAPD
11 48
RESETB SPDIF
XTLIN XTLOUT
Notes: 2 24.576MHz 3
1. All decoupling capacitors should
be as close to WM9710 as possible.
XTAL
2. AGND and DGND should be
22pF 22pF
connected as close to WM9710
as possible.
DGND
b e
36 25
37 24
E1 E
48 13
Θ
1 12
D1 c
D
A A2 A1
-C-
Dimensions
Symbols (mm)
MIN NOM MAX
A ----- ----- 1.20
A1 0.05 ----- 0.15
A2 0.95 1.00 1.05
b 0.17 0.22 0.27
c 0.09 ----- 0.20
D 9.00 BSC
D1 7.00 BSC
E 9.00 BSC
E1 7.00 BSC
e 0.50 BSC
L 0.45 0.60 0.75
o o o
Θ 0 3.5 7
Tolerances of Form and Position
ccc 0.08
FL: 48 PIN QFN PLASTIC PACKAGE 7 X 7 X 0.9 mm BODY, 0.50 mm LEAD PITCH DM029.C
D2 SEE DETAIL 1
D
D2/2
37 48
L
INDEX AREA
36 1 (D/2 X E/2)
E2/2
E2 E
SEE DETAIL 2
25 12
2X aaa C
24 13
b
2X aaa C
e TOP VIEW
ccc C
(A3) A
0.08 C
A1
C SEATING PLANE DETAIL 1 DETAIL 2
DETAIL 3
1
Terminal
Datum
W tip
45
degrees
T 0.35mm e/2
(A3)
H G e
b R
Exposed lead Half etch tie bar
DETAIL 3
NOTES:
1. DIMENSION b APPLIED TO METALLIZED TERMINAL AND IS MEASURED BETWEEN 0.15 mm AND 0.30 mm FROM TERMINAL TIP.
2. ALL DIMENSIONS ARE IN MILLIMETRES
3. THE TERMINAL #1 IDENTIFIER AND TERMINAL NUMBERING CONVENTION SHALL CONFORM TO JESD 95-1 SPP-002.
4. COPLANARITY APPLIES TO THE EXPOSED HEAT SINK SLUG AS WELL AS THE TERMINALS.
5. THIS DRAWING IS SUBJECT TO CHANGE WITHOUT NOTICE.
IMPORTANT NOTICE
Wolfson Microelectronics plc (WM) reserve the right to make changes to their products or to discontinue any product or service
without notice, and advise customers to obtain the latest version of relevant information to verify, before placing orders, that
information being relied on is current. All products are sold subject to the WM terms and conditions of sale supplied at the time
of order acknowledgement, including those pertaining to warranty, patent infringement, and limitation of liability.
WM warrants performance of its products to the specifications applicable at the time of sale in accordance with WM’s standard
warranty. Testing and other quality control techniques are utilised to the extent WM deems necessary to support this warranty.
Specific testing of all parameters of each device is not necessarily performed, except those mandated by government
requirements.
In order to minimise risks associated with customer applications, adequate design and operating safeguards must be used by
the customer to minimise inherent or procedural hazards. Wolfson products are not authorised for use as critical components in
life support devices or systems without the express written approval of an officer of the company. Life support devices or
systems are devices or systems that are intended for surgical implant into the body, or support or sustain life, and whose failure
to perform when properly used in accordance with instructions for use provided, can be reasonably expected to result in a
significant injury to the user. A critical component is any component of a life support device or system whose failure to perform
can be reasonably expected to cause the failure of the life support device or system, or to affect its safety or effectiveness.
WM assumes no liability for applications assistance or customer product design. WM does not warrant or represent that any
license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property
right of WM covering or relating to any combination, machine, or process in which such products or services might be or are
used. WM’s publication of information regarding any third party’s products or services does not constitute WM’s approval,
license, warranty or endorsement thereof.
Reproduction of information from the WM web site or datasheets is permissible only if reproduction is without alteration and is
accompanied by all associated warranties, conditions, limitations and notices. Representation or reproduction of this information
with alteration voids all warranties provided for an associated WM product or service, is an unfair and deceptive business
practice, and WM is not responsible nor liable for any such use.
Resale of WM’s products or services with statements different from or beyond the parameters stated by WM for that product or
service voids all express and any implied warranties for the associated WM product or service, is an unfair and deceptive
business practice, and WM is not responsible nor liable for any such use.
ADDRESS: