Wolfson WM8581 User manual

w
WM8581
Multichannel CODEC with S/PDIF Transceiver
WOLFSON MICROELECTRONICS plc
To receive regular email updates, sign up at http://www.wolfsonmicro.com/enews/
Product Preview, March 2006, Rev 1.0
Copyright 2006 Wolfson Microelectronics plc
DESCRIPTION
The WM8581 is a multi-channel audio CODEC with S/PDIF
transceiver. The WM8581 is ideal for DVD and surround
sound processing applications for home hi-fi, automotive
and other audiovisual equipment.
Integrated into the device is a stereo 24-bit multi-bit sigma
delta ADC with support for digital audio output word lengths
from 16-bit to 32-bit, and sampling rates from 8kHz to
192kHz.
Also included are four stereo 24-bit multi-bit sigma delta
DACs, each with a dedicated oversampling digital
interpolation filter. Digital audio input word lengths from 16-
bits to 32-bits and sampling rates from 8kHz to 192kHz are
supported. Each DAC channel has independent digital
volume and mute control.
Two independent audio data interfaces support I2S, Left
Justified, Right Justified and DSP digital audio formats.
Each audio interface can operate in either Master Mode or
Slave Mode.
The S/PDIF transceiver is IEC-60958-3 compatible and
supports frame rates from 32k/s to 192k/s. It has four
multiplexed inputs and one output. Status and error
monitoring is built-in and results can reported over the serial
interface or via GPO pins. S/PDIF Channel Block
configuration is also supported.
The device has two PLLs that can be configured
independently to generate two system clocks for internal or
external use.
Device control and setup is via a 2-wire or 3-wire (SPI
compatible) serial interface. The serial interface provides
access to all features including channel selection, volume
controls, mutes, de-emphasis, S/PDIF control/status, and
power management facilities. Alternatively, the device has a
Hardware Control Mode where device features can be
enabled/disabled using selected pins.
The device is available in a 48-lead TQFP package.
FEATURES
•Mutli-channel CODEC with 4 Stereo DACs and 1 Stereo
ADC
•Integrated S/PDIF / IEC-60958-3 transceiver
•Audio Performance
−103dB SNR (‘A’ weighted @ 48kHz) DAC
−-90dB THD (48kHz) DAC
−100dB SNR (‘A’ weighted @ 48kHz) ADC
−-90dB THD (48kHz) ADC
•DAC Sampling Frequency: 8kHz – 192kHz
•ADC Sampling Frequency: 8kHz – 192kHz
•Independent ADC and DAC Sample Rates
•2 and 3-Wire Serial Control Interface with readback, or
Hardware Control Interface
•GPO pins allow visibility of user selected status flags
•Programmable Audio Data Interface Modes
−I
2S, Left, Right Justified or DSP
−16/20/24/32 bit Word Lengths
•Four independent stereo DAC outputs with independent
digital volume controls
•Two Independent Master or Slave Audio Data Interfaces
•Flexible Digital Interface Routing with Clock Selection
Control
•2.7V to 5.5V Analogue, 2.7V to 3.6V Digital Supply
Operation
•48-lead TQFP Package
APPLICATIONS
•Digital TV
•DVD Players and Receivers
•Surround Sound AV Processors and Hi-Fi systems
•Automotive Audio

WM8581 Product Preview
w PP Rev 1.0 March 2006
2
BLOCK DIAGRAM

Product Preview WM8581
w PP Rev 1.0 March 2006
3
TABLE OF CONTENTS
DESCRIPTION ................................................................................................................................................................................. 1
FEATURES ...................................................................................................................................................................................... 1
APPLICATIONS ............................................................................................................................................................................... 1
BLOCK DIAGRAM ........................................................................................................................................................................... 2
TABLE OF CONTENTS.................................................................................................................................................................... 3
PIN CONFIGURATION..................................................................................................................................................................... 4
ORDERING INFORMATION............................................................................................................................................................. 4
PIN DESCRIPTION .......................................................................................................................................................................... 5
MULTI-FUNCTION PINS.............................................................................................................................................................. 6
ABSOLUTE MAXIMUM RATINGS ................................................................................................................................................... 8
RECOMMENDED OPERATING CONDITIONS................................................................................................................................ 9
ELECTRICAL CHARACTERISTICS................................................................................................................................................. 9
TERMINOLOGY......................................................................................................................................................................... 12
MASTER CLOCK TIMING.......................................................................................................................................................... 12
DIGITAL AUDIO INTERFACE – MASTER MODE...................................................................................................................... 13
DIGITAL AUDIO INTERFACE – SLAVE MODE ......................................................................................................................... 14
CONTROL INTERFACE TIMING – 3-WIRE MODE ................................................................................................................... 15
CONTROL INTERFACE TIMING – 2-WIRE MODE ................................................................................................................... 15
DEVICE DESCRIPTION ................................................................................................................................................................. 17
INTRODUCTION........................................................................................................................................................................ 17
CONTROL INTERFACE OPERATION....................................................................................................................................... 18
DIGITAL AUDIO INTERFACES.................................................................................................................................................. 22
AUDIO DATA FORMATS ........................................................................................................................................................... 24
AUDIO INTERFACE CONTROL................................................................................................................................................. 27
DAC FEATURES........................................................................................................................................................................ 30
ADC FEATURES........................................................................................................................................................................ 37
DIGITAL ROUTING OPTIONS ................................................................................................................................................... 38
CLOCK SELECTION.................................................................................................................................................................. 40
PHASE-LOCKED LOOPS AND S/PDIF CLOCKING (SOFTWARE MODE)............................................................................... 46
PHASE-LOCKED LOOPS AND S/PDIF CLOCKING (HARDWARE MODE) .............................................................................. 53
S/PDIF TRANSCEIVER ............................................................................................................................................................. 54
S/PDIF TRANSMITTER ............................................................................................................................................................. 55
S/PDIF RECEIVER .................................................................................................................................................................... 58
POWERDOWN MODES ............................................................................................................................................................ 66
INTERNAL POWER ON RESET CIRCUIT................................................................................................................................. 67
HARDWARE CONTROL MODE ................................................................................................................................................ 70
REGISTER MAP ........................................................................................................................................................................ 73
DIGITAL FILTER CHARACTERISTICS.......................................................................................................................................... 88
DAC FILTER RESPONSES ....................................................................................................................................................... 88
DIGITAL DE-EMPHASIS CHARACTERISTICS ......................................................................................................................... 89
ADC FILTER RESPONSES ....................................................................................................................................................... 90
ADC HIGH PASS FILTER .......................................................................................................................................................... 90
RECOMMENDED EXTERNAL COMPONENTS............................................................................................................................. 91
PACKAGE DIMENSIONS............................................................................................................................................................... 93
IMPORTANT NOTICE .................................................................................................................................................................... 94
ADDRESS:................................................................................................................................................................................. 94

WM8581 Product Preview
w PP Rev 1.0 March 2006
4
PIN CONFIGURATION
ORDERING INFORMATION
DEVICE TEMPERATURE
RANGE PACKAGE MOISTURE
SENSITIVITY LEVEL
PEAK
SOLDERING
TEMPERATURE
WM8581SEFT/V -25 to +85oC 48-lead TQFP
(Pb-free) MSL1 260°C
WM8581SEFT/RV -25 to +85oC 48-lead TQFP
(Pb-free, tape and reel) MSL1 260°C

Product Preview WM8581
w PP Rev 1.0 March 2006
5
PIN DESCRIPTION
PIN NAME TYPE DESCRIPTION
1 VOUT4L Analogue Output DAC channel 4 left output
2 VOUT4R Analogue Output DAC channel 4 right output
3 PGND Supply PLL ground
4 PVDD Supply PLL positive supply
5 XTI Digital Input Crystal or CMOS clock input
6 XTO Digital Output Crystal output
7 MFP7 Digital Input/Output Multi-Function Pin (MFP) 7. See Table 1 for details of all MFP pins.
8 MFP6 Digital Input/Output Multi-Function Pin (MFP) 6. See Table 1 for details of all MFP pins.
9 SPDIFOP Digital Output S/PDIF transmitter output
10 MFP5 Digital Input/Output Multi-Function Pin (MFP) 5. See Table 1 for details of all MFP pins.
11 MFP4 Digital Input/Output Multi-Function Pin (MFP) 4. See Table 1 for details of all MFP pins.
12 MFP3 Digital Input/Output Multi-Function Pin (MFP) 3. See Table 1 for details of all MFP pins.
13 SPDIFIN1 Digital Input S/PDIF Receiver Input 1
14 CLKOUT Digital Output PLL or crystal oscillator clock output
15 DVDD Supply Digital positive supply
16 DGND Supply Digital ground
17 MUTE Digital Input/Output DAC mute-all input/ All-DAC Infinite Zero Detect (IZD) flag output
18 DIN1 Digital Input Primary Audio Interface (PAIF) receiver data input 1
19 DIN2 Digital Input Primary Audio Interface (PAIF) receiver data input 2
20 DIN3 Digital Input Primary Audio Interface (PAIF) receiver data input 3
21 DIN4 Digital Input Primary Audio Interface (PAIF) receiver data input 4
22 PAIFRX_LRCLK Digital Input/Output Primary Audio Interface (PAIF) receiver left/right word clock
23 PAIFRX_BCLK Digital Input/Output Primary Audio Interface (PAIF) receiver bit clock
24 MCLK Digital Input/Output System Master clock; 256, 384, 512, 768, 1024 or 1152 fs
25 DOUT Digital Output Primary Audio Interface (PAIF) transmitter data output
26 PAIFTX_LRCLK Digital Input/Output Primary audio interface transmitter left/right word clock
27 MFP1 Digital Input/Output Multi-Function Pin (MFP) 1. See Table 1 for details of all MFP pins.
28 MFP2 Digital Input/Output Multi-Function Pin (MFP) 2. See Table 1 for details of all MFP pins.
29 HWMODE Digital Input Configures control to be either Software Mode or Hardware Mode
30 SWMODE Digital Input/Output Configures software interface to be either 2-wire or 3-wire. See note 2.
31 SDO Digital Output 3-wire control interface data output. See note 3.
32 SDIN Digital Input/Output Control interface data input (and output under 2-wire control)
33 SCLK Digital Input Control interface clock
34 CSB Digital Input 3-wire control interface latch signal / device address selection
35 AINR Analogue Input ADC Right Channel Input
36 AINL Analogue Input ADC Left Channel Input
37 ADCREFP Analogue Output ADC reference buffer decoupling pin; 10uF external decoupling
38 VMID Analogue Output Midrail divider decoupling pin; 10uF external decoupling
39 AGND Supply Analogue ground
40 AVDD Supply Analogue positive supply
41 VOUT1L Analogue Output DAC channel 1 left output
42 VOUT1R Analogue Output DAC channel 1 right output
43 VOUT2L Analogue Output DAC channel 2 left output
44 VOUT2R Analogue Output DAC channel 2 right output
45 VREFP Analogue Input DAC and ADC positive reference
46 VREFN Analogue Input DAC and ADC ground reference

WM8581 Product Preview
w PP Rev 1.0 March 2006
6
PIN NAME TYPE DESCRIPTION
47 VOUT3L Analogue Output DAC channel 3 left output
48 VOUT3R Analogue Output DAC channel 3 right output
Notes :
1. Digital input pins have Schmitt trigger input buffers. Pins 32, 33, 34 are 5V tolerant.
2. In hardware control mode, pin 30 is used for UNLOCK flag output.
3. In hardware control mode, pin 31 is used for NON_AUDIO flag output.
MULTI-FUNCTION PINS
The WM8581 has 7 Multi-Function Input/Output pins (MFP1 etc.). The function and direction (input/output) of these pins
reconfigured using the HWMODE input pin and software register control as shown below. If HWMODE is set, the MFPs have the
function shown in column 1 of Table 1. If HWMODE is not set, and the register SAIF_EN is set, the MFPs have the function shown
in column 2. Otherwise, the GPOnOP registers determine the MFP function as shown in columns 3 and 4.
PIN NAME HARDWARE
CONTROL MODE
FUNCTION
1
SECONDARY AUDIO
INTERFACE FUNCTION
2
S/PDIF INPUT &
INDEPENDENT
CLOCKING
3
GENERAL PURPOSE
OUTPUT FUNCTION
4
MFP1 PAIFTX_BCLK n/a1PAIFTX_BCLK2GPO1
MFP2 ADCMCLK n/a1ADCMCLK3GPO2
MFP3 DR1 n/a1SPDIFIN2 GPO3
MFP4 DR2 SAIF_DIN SPDIFIN3 GPO4
MFP5 DR3 SAIF_DOUT SPDIFIN4 GPO5
MFP6 DR4 SAIF_BCLK GPO6 GPO6
MFP7 ALLPD SAIF_LRCLK GPO7 GPO7
Table 1 Multi-Function Pin Configuration
Notes:
1. These pins are not used as part of the Secondary Audio Interface, so their function is that of either Column 3 or Column 4.
2. MFP1 can by GPO1 only if ADC_CLKSEL and PAIFTXMST_CLKSEL (if in master mode) source MCLK.
3. MFP2 can be GPO2 if neither ADC_CLKSEL, TX_CLKSEL or SAIFMST_CLKSEL (if in master mode) source ADCMCLK.
HWMODE = 1
GPIOnOP
SAIF_EN = 1
Y
Y
N
N

Product Preview WM8581
w PP Rev 1.0 March 2006
7
PIN FUNCTION TYPE DESCRIPTION
PAIFTX_BCLK Digital Input/Output Primary Audio Interface Transmitter (PAIFTX) Bit Clock
ADCMCLK Digital Input Master ADC clock; 256fs, 384fs, 512fs ,786fs, 1024fs or 1152fs
SAIF_DIN Digital Input Secondary Audio Interface (SAIF) Receiver data input
SAIF_DOUT Digital Output Secondary Audio Interface (SAIF) Transmitter data output
SAIF_BCLK Digital Input/Output Secondary Audio Interface (SAIF) Bit Clock
SAIF_LRCLK Digital Input/Output Secondary Audio Interface (SAIF) Left/Right Word Clock
SPDIFIN2/3/4 Digital Input S/PDIF Receiver Input
GPO1 - GPO7 Digital Output General Purpose Output
DR1/2/3/4 Digital Input Internal Digital Routing Configuration in Hardware Mode
ALLPD Digital Input Chip Powerdown in Hardware Mode
C Digital Output Recovered channel-bit for current S/PDIF sub-frame
SFRM_CLK Digital Output Indicates current S/PDIF sub-frame:
1 = Sub-frame A
0 = Sub-frame B
192BCLK Digital Output Indicates start of S/PDIF 192-frame block. High for duration of frame 0.
Table 2 Multi-Function Pin Description

WM8581 Product Preview
w PP Rev 1.0 March 2006
8
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.
The WM8581 has been classified as MSL1, which has an unlimited floor life at <30oC / 85% Relative Humidity and therefore will
not be supplied in moisture barrier bags.
CONDITION MIN MAX
Digital supply voltage -0.3V +3.63V
Analogue supply voltage -0.3V +7V
PLL supply voltage -0.3V +5V
Voltage range digital inputs (SCLK, CSB & SDIN only) DGND -0.3V +7V
Voltage range digital inputs DGND -0.3V DVDD + 0.3V
Voltage range analogue inputs 1AGND -0.3V
PGND -0.3V
AVDD +0.3V
PVDD +0.3V
Master Clock Frequency 37MHz
Operating temperature range, TA-25°C +85°C
Storage temperature prior to soldering 30°C max / 85% RH max
Storage temperature after soldering -65°C +150°C
Pb Free Package body temperature (soldering 10 seconds) +260°C
Package body temperature (soldering 2 minutes) +183°C
Notes: 1. Analogue and digital grounds must always be within 0.3V of each other.
Table 3 Absolute Maximum Ratings

Product Preview WM8581
w PP Rev 1.0 March 2006
9
RECOMMENDED OPERATING CONDITIONS
PARAMETER SYMBOL TEST CONDITIONS MIN TYP MAX UNIT
Digital supply range DVDD 2.7 3.6 V
Analogue supply range AVDD, PVDD 2.7 5.5 V
Ground AGND, VREFN, DGND.
PGND
0 V
Difference DGND to
AGND/PGND
-0.3 0 +0.3 V
Note: Digital supply DVDD must never be more than 0.3V greater than AVDD.
Table 4 Recommended Operating Conditions
ELECTRICAL CHARACTERISTICS
Test Conditions
AVDD, PVDD, VREFP = 5V, DVDD = 3.3V, AGND, VREFN = 0V, PGND, DGND = 0V, TA = +25oC, 1kHz Signal, fs = 48kHz,
24-Bit Data, Slave Mode, MCLK, ADCMCLK = 256fs, 1Vrms Input Signal Level unless otherwise stated.
PARAMETER SYMBOL TEST CONDITIONS MIN TYP MAX UNIT
DAC Performance (Load = 10kΩ, 50pF)
0dBFs Full scale output voltage 1.0 x
VREFP/5
V
rms
A-weighted,
@ fs = 48kHz
103 dB
Unweighted,
@ fs = 48kHz
100 dB
A-weighted,
@ fs = 48kHz, AVDD =
3.3V
99 dB
A-weighted,
@ fs = 96kHz
101 dB
Unweighted,
@ fs = 96kHz
98 dB
A-weighted,
@ fs = 96kHz, AVDD =
3.3V
99 dB
A-weighted,
@ fs = 192kHz
101 dB
Unweighted,
@ fs = 192kHz
98 dB
Signal to Noise Ratio (Note
1,2,4)
SNR
A-weighted,
@ fs = 192kHz, AVDD
= 3.3V
99 dB
Dynamic Range (Note 2,4) DNR A-weighted, -60dB full
scale input
103 dB
1
kHz, 0dB Full Scale @
fs = 48kHz
-90 dB
1
kHz, 0dB Full Scale @
fs = 96kHz
-87 dB
Total Harmonic Distortion THD
1
kHz, 0dB Full Scale @
fs = 192kHz
-84 dB
DAC Channel separation 100 dB
Mute Attenuation 1kHz Input, 0dB gain 100 dB
Output Offset Error 2 mV

WM8581 Product Preview
w PP Rev 1.0 March 2006
10
Test Conditions
AVDD, PVDD, VREFP = 5V, DVDD = 3.3V, AGND, VREFN = 0V, PGND, DGND = 0V, TA = +25oC, 1kHz Signal, fs = 48kHz,
24-Bit Data, Slave Mode, MCLK, ADCMCLK = 256fs, 1Vrms Input Signal Level unless otherwise stated.
PARAMETER SYMBOL TEST CONDITIONS MIN TYP MAX UNIT
1kHz 100mVp-p 50 dB
Power Supply Rejection Ratio PSRR
20Hz to 20kHz
100mVp-p
45 dB
ADC Performance
Full Scale Input Signal Level (for
ADC 0dB Input)
1.0 x
VREFP/5
V
rms
Input resistance 20 kΩ
Input capacitance 10 pF
A-weighted,
@ fs = 48kHz
100 dB
Unweighted,
@ fs = 48kHz
97 dB
A-weighted,
@ fs = 48kHz, AVDD =
3.3V
97 dB
A-weighted,
@ fs = 96kHz
97 dB
Unweighted,
@ fs = 96kHz
94 dB
A-weighted,
@ fs = 96kHz, AVDD =
3.3V
94 dB
A-weighted,
@ fs = 192kHz
97 dB
Unweighted,
@ fs = 192kHz
94 dB
Signal to Noise Ratio (Note
1,2,4)
SNR
A-weighted,
@ fs = 192kHz, AVDD
= 3.3V
94 dB
1kHz, -1dB Full Scale
@ fs = 48kHz
-90 dB
1kHz, -1dB Full Scale
@ fs = 96kHz
-88 dB
Total Harmonic Distortion THD
1kHz, -1dB Full Scale
@ fs = 192kHz
-85 dB
Dynamic Range DNR -60dB FS 100
ADC Channel Separation 1kHz Input 100 dB
Channel Level Matching (Note
4)
1KHz Signal 0.1 dB
Channel Phase Deviation 1kHz Signal 0.0001 Degree
Offset Error HPF On
HPF Off
0
100
LSB
LSB
1kHz 100mVpp 50 dB
Power Supply Rejection Ratio PSRR
20Hz to 20kHz
100mVpp
45 dB
Digital Logic Levels (CMOS Levels)
Input LOW level VIL 0.3 x DVDD V
Input HIGH level VIH 0.7 x DVDD V
Input leakage current -1 ±0.2 +1 µA
Input capacitance 5 pF
Output LOW VOL IOL=1mA 0.1 x DVDD V
Output HIGH VOH IOH=-1mA 0.9 x DVDD V

Product Preview WM8581
w PP Rev 1.0 March 2006
11
Test Conditions
AVDD, PVDD, VREFP = 5V, DVDD = 3.3V, AGND, VREFN = 0V, PGND, DGND = 0V, TA = +25oC, 1kHz Signal, fs = 48kHz,
24-Bit Data, Slave Mode, MCLK, ADCMCLK = 256fs, 1Vrms Input Signal Level unless otherwise stated.
PARAMETER SYMBOL TEST CONDITIONS MIN TYP MAX UNIT
Analogue Reference Levels
Reference voltage VVMID VREFP/2 –
50mV
VREFP/2 VREFP/2 +
50mV
V
Potential divider resistance RVMID VREFP to VMID and
VMID to VREFN
2050 kΩ
S/PDIF Transceiver Performance
Jitter on recovered clock 50 ps
S/PDIF Input Levels CMOS MODE
Input LOW level VIL 0.3 X DVDD V
Input HIGH level VIH 0.7 X DVDD V
Input capacitance 1.25 pF
Input Frequency 36 MHz
S/PDIF Input Levels Comparator MODE
Input capacitance 1.31 pF
Input resistance 18 Ω
Input frequency 25 MHz
Input Amplitude 200 0.5 X DVDD mV
PLL
Period Jitter 80 ps(rms)
XTAL
Input XTI LOW level VXIL 0 557 mV
Input XTI HIGH level VXIH 853 mV
Input XTI capacitance CXJ 3.32 4.491 pF
Input XTI leakage IXleak 28.92 38.96 mA
Output XTO LOW VXOL 15pF load capacitors 86 278 mV
Output XTO HIGH VXOH 15pF load capacitors 1.458 1.942 V
Supply Current
Analogue supply current AVDD, VREFP = 5V 45 mA
Analogue supply current AVDD, VREFP = 3.3V 30 mA
Digital supply current DVDD = 3.3V 16 mA
Power Down 10 µA
Table 5 Electrical Characteristics
Notes:
1. Ratio of output level with 1kHz full scale input, to the output level with all zeros into the digital input, measured ‘A’ weighted.
2. All performance measurements done with 20kHz low pass filter, and where noted an A-weight filter. Failure to use such a filter
will result in higher THD+N and lower SNR and Dynamic Range 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.
3. VMID decoupled with 10uF and 0.1uF capacitors (smaller values may result in reduced performance).

WM8581 Product Preview
w PP Rev 1.0 March 2006
12
TERMINOLOGY
1. Signal-to-noise ratio (dB) - SNR is a measure of the difference in level between the full scale output and the output with no
signal applied. (No Auto-zero or Automute function is employed in achieving these results).
2. Dynamic range (dB) - DNR is a measure of the difference between the highest and lowest portions of a signal. Normally a
THD+N measurement at 60dB below full scale. The measured signal is then corrected by adding the 60dB to it. (e.g. THD+N
@ -60dB= -32dB, DR= 92dB).
3. THD (dB) - THD is a ratio, of the rms values, of Distortion/Signal.
4. Stop band attenuation (dB) - Is the degree to which the frequency spectrum is attenuated (outside audio band).
5. Channel Separation (dB) - Also known as Cross-Talk. This is a measure of the amount one channel is isolated from the
other. Normally measured by sending a full scale signal down one channel and measuring the other.
6. Pass-Band Ripple - Any variation of the frequency response in the pass-band region.
MASTER CLOCK TIMING
ADCMCLK/
MCLK
t
MCLKL
tMCLKH
t
MCLKY
Figure 1 Master Clock Timing Requirements
Test Conditions
AVDD, PVDD, VREFP = 5V, DVDD = 3.3V, AGND, VREFN = 0V, PGND, DGND = 0V, TA = +25oC
PARAMETER SYMBOL TEST CONDITIONS MIN TYP MAX UNIT
System Clock Timing Information
ADCMCLK and MCLK System clock
pulse width high
tMCLKH 11 ns
ADCMCLK and MCLK System clock
pulse width low
tMCLKL 11 ns
ADCMCLK and MCLK System clock
cycle time
tMCLKY 28 ns
ADCMCLK and MCLK Duty cycle 40:60 60:40
Table 3 Master Clock Timing Requirements

Product Preview WM8581
w PP Rev 1.0 March 2006
13
DIGITAL AUDIO INTERFACE – MASTER MODE
PAIFRX_BCLK/
PAIFTX_BCLK/
SAIF_BCLK
(Output)
DOUT/
SAIF_DOUT
PAIFRX_LRCLK/
PAIFTX_LRCLK/
SAIF_LRCLK
(Outputs)
t
DL
DIN1/2/3/4
SAIF_DIN
t
DDA
t
DHT
t
DST
Figure 2 Digital Audio Data Timing – Master Mode
Test Conditions
AVDD, PVDD, VREFP = 5V, DVDD = 3.3V, AGND, VREFN, PGND, DGND = 0V, TA = +25oC, Master Mode, fs = 48kHz, MCLK
and ADCMCLK = 256fs unless otherwise stated.
PARAMETER SYMBOL TEST CONDITIONS MIN TYP MAX UNIT
Audio Data Input Timing Information
PAIFTX_LRCLK/
PAIFRX_LRCLK/
SAIF_LRCLK propagation
delay from PAIFTX_BCLK/
PAIFRX_BCLK/
SAIF_BCLK falling edge
tDL 0 10 ns
DOUT/SAIF_DOUT
propagation delay from
PAIFTX_BCLK/
SAIF_BCLK falling edge
tDDA 0 10 ns
DIN1/2/3/4/SAIF_DIN setup
time to
PAIFRX_BCLK/SAIF_BCLK
rising edge
tDST 10 ns
DIN1/2/3/4/SAIF_DIN hold
time from
PAIFRX_BCLK/SAIF_BCLK
rising edge
tDHT 10 ns
Table 4 Digital Audio Data Timing – Master Mode

WM8581 Product Preview
w PP Rev 1.0 March 2006
14
DIGITAL AUDIO INTERFACE – SLAVE MODE
Figure 3 Digital Audio Data Timing – Slave Mode
Test Conditions
AVDD, PVDD = 5V, DVDD = 3.3V, AGND = 0V, PGND,DGND = 0V, TA = +25oC, Slave Mode, fs = 48kHz, MCLK and
ADCMCLK = 256fs unless otherwise stated.
PARAMETER SYMBOL TEST CONDITIONS MIN TYP MAX UNIT
Audio Data Input Timing Information
PAIFTX_BCLK/
PAIFRX_BCLK/SAIF_BCLK cycle
time
tBCY 50 ns
PAIFTX_BCLK/
PAIFRX_BCLK/SAIF_BCLK pulse
width high
tBCH 20 ns
PAIFTX_BCLK/
PAIFRX_BCLK/SAIF_BCLK pulse
width low
tBCL 20 ns
PAIFTX_LRCLK/
PAIFRX_LRCLK/SAIF_BCLK set-up
time to PAIFTX_BCLK/
PAIFRX_BCLK/SAIF_BCLK rising
edge
tLRSU 10 ns
PAIFTX_LRCLK/
PAIFRX_LRCLK/
SAIF_LRCLK hold time from
PAIFTX_BCLK/
PAIFRX_BCLK/SAIF_BCLK rising
edge
tLRH 10 ns
DIN1/2/3/4/SAIF_DIN set-up time to
PAIFRX_BCLK/
SAIF_BCLK rising edge
tDS 10 ns
DIN1/2/3/4/SAIF_DIN hold time
from PAIFRX_BCLK/SAIF_BCLK
rising edge
tDH 10 ns
DOUT/SAIF_DOUT propagation
delay from
PAIFTX_BCLK/SAIF_BCLK falling
edge
tDD 0 10 ns
Table 5 Digital Audio Data Timing – Slave Mode

Product Preview WM8581
w PP Rev 1.0 March 2006
15
CONTROL INTERFACE TIMING – 3-WIRE MODE
Figure 4 SPI Compatible Control Interface Input Timing
Test Conditions
AVDD, PVDD = 5V,DVDD = 3.3V, AGND, PGND,DGND = 0V, TA = +25oC, fs = 48kHz, MCLK and ADCMCLK = 256fs unless
otherwise stated
PARAMETER SYMBOL MIN TYP MAX UNIT
SCLK rising edge to CSB rising edge tSCS 60 ns
SCLK pulse cycle time tSCY 80 ns
SCLK duty cycle 40/60 60/40 ns
SDIN to SCLK set-up time tDSU 20 ns
SDIN hold time from SCLK rising edge tDHO 20 ns
SDO propagation delay from SCLK rising
edge
tDL 5 ns
CSB pulse width high tCSH 20 ns
CSB rising/falling to SCLK rising tCSS 20 ns
Pulse width of spikes that will be suppressed tps 2 8 ns
Table 6 3-wire SPI Compatible Control Interface Input Timing Information
CONTROL INTERFACE TIMING – 2-WIRE MODE
Figure 5 Control Interface Timing – 2-Wire Serial Control Mode
t
3
t
1
t
6
t
9
t
2
t
5
t
7
t
3
t
4t
8
SDIN
SCLK
CSB
SCLK
SDIN
t
DHO
t
DSU
t
CSH
t
SC
Y
t
SCS
LSB
t
CSS
SDO
t
DL
LSB
t
CSS

WM8581 Product Preview
w PP Rev 1.0 March 2006
16
Test Conditions
AVDD, PVDD = 5V,DVDD = 3.3V, AGND, PGND,DGND = 0V, TA = +25oC, fs = 48kHz, MCLK and ADCMCLK = 256fs unless
otherwise stated
PARAMETER SYMBOL MIN TYP MAX UNIT
Program Register Input Information
SCLK Frequency 0 526 kHz
SCLK Low Pulse-Width t11.3 us
SCLK High Pulse-Width t2600 ns
Hold Time (Start Condition) t3600 ns
Setup Time (Start Condition) t4600 ns
Data Setup Time t5100 ns
SDIN, SCLK Rise Time t6300 ns
SDIN, SCLK Fall Time t7300 ns
Setup Time (Stop Condition) t8600 ns
Data Hold Time t9900 ns
Pulse width of spikes that will be suppressed tps 0 5 ns
Table 7 2-Wire Control Interface Timing Information

Product Preview WM8581
w PP Rev 1.0 March 2006
17
DEVICE DESCRIPTION
INTRODUCTION
WM8581 is a complete mutli-channel CODEC with integrated S/PDIF transceiver. The device
comprises four separate stereo DACs and a stereo ADC, in a single package, and controlled by
either software or hardware interfaces.
The four stereo DAC outputs are ideal to implement a complete 7.1 channel surround system. Each
DAC has its own digital volume control (adjustable in 0.5dB steps) with zero cross detection. With
zero cross enabled, volume updates occur as a signal transitions through its zero point. This
minimises audible clicks and ‘zipper’ noise as the gain values change.
Each stereo DAC has its own data input (DIN1/2/3/4) and shared word clock (PAIFRX_LRCLK), bit
clock (PAIFRX_BCLK) and master clock (MCLK). The stereo ADC has data output (DOUT), word
clock (PAIFTX_LRCLK), and bit clock (PAIFTX_BCLK). This allows the ADC to operate at a different
sample rate to the DACs. In addition, a separate ADC master clock (ADCMCLK) can be used instead
of MCLK for further flexibility.
There are two independent Digital Audio Interfaces, which may be configured to operate in either
master or slave mode. In Slave mode, the LRCLKs and BCLKs are inputs. In Master mode, the
LRCLKs and BCLKs are outputs.
The Audio Interfaces support Right Justified, Left Justified, I2S and DSP formats. Word lengths of 16,
20, 24 and 32 bits are available (with the exception of 32 bit Right Justified).
Operation using system clocks of 128fs, 192fs, 256fs, 384fs, 512fs, 768fs or 1152fs is provided. In
Slave mode, selection between clock rates is automatically controlled. In master mode, the master
clock to sample rate ratio is set by register control. Sample rates (fs) from less than 8ks/s up to
192ks/s are permitted providing the appropriate system clock is input.
The S/PDIF Transceiver is IEC-60958-3 compatible with 32k frames/s to 192k frames/s support.
S/PDIF data can be input on one of four pins, and routed internally to the Audio Interfaces, DAC1,
and S/PDIF transmitter. Error flags and status information can be read back over the serial interface,
or output on GPO pins. The S/PDIF Transmitter can source data from the ADC, S/PDIF Receiver or
Audio Interfaces. The Transceiver supports Consumer Mode Channel information, and transmitted
Channel bits can be configured via register control.
The Digital Routing paths between all the interfaces can be configured by the user, as can the
corresponding interface clocking schemes.
There are two PLLs, which can be independently configured to generate two system clocks for
internal or external use.
The serial control interface is controlled by pins CSB, SCLK, and SDIN, which are 5V tolerant with
TTL input thresholds, allowing the WM8581 to be used with DVDD = 3.3V and be controlled by a
controller with 5V output.
The WM8581 may also be controlled in hardware mode, selected by the HWMODE pin. In hardware
mode, limited control of internal functionality is available via the Multi-Function Pins (MFPs) and CSB,
SCLK, SDIN and MUTE pins.

WM8581 Product Preview
w PP Rev 1.0 March 2006
18
CONTROL INTERFACE OPERATION
Control of the WM8581 is implemented either in Hardware Control Mode or Software Control Mode.
The method of control is determined by the state of the HWMODE pin. If the HWMODE pin is low,
Software Control Mode is selected. If the HWMODE pin is high, Hardware Control Mode is selected.
The Software Control Interface is described below and Hardware Control Mode is described on page
70.
Software control is implemented with a 3-wire (3-wire write, 4-wire read, SPI compatible) or 2-wire (2-
wire write, 2-wire read) serial interface.
The interface configuration is determined by the state of the SWMODE pin. If the SWMODE pin is
low, the 2-wire configuration is selected. If SWMODE is high the 3-wire SPI compatible configuration
is selected.
HWMODE SWMODE
0 1 0 1
Software Control Hardware Control 2-wire control 3-wire control
Table 8 Hardware/Software Mode Setup
The control interface is 5V tolerant, meaning that the control interface input signals CSB, SCLK and
SDIN may have an input high level of 5V while DVDD is 3V. Input thresholds are determined by
DVDD.
3-WIRE (SPI COMPATIBLE) SERIAL CONTROL MODE WITH READ-BACK
SDIN is used to program data, SCLK is used to clock in the program data and CSB is used to latch
the program data. SDIN is sampled on the rising edge of SCLK. The 3-wire interface write protocol is
shown in Figure 6.
Figure 6 3-Wire SPI Compatible Interface.
1. A[6:0] are Control Address Bits
2. D[8:0] are Control Data Bits
3. CSB is edge sensitive – the data is latched on the rising edge of CSB.
REGISTER READ-BACK
The read-only status registers can be read back via the SDO pin. To enable readback the READEN
control register bit must be set. The status registers can then be read using one of two methods,
selected by the CONTREAD register bit.
With CONTREAD set, a single register can be read back simply by writing to any other register or a
dummy register. The register to be readback is determined by the READMUX[2:0] bits. When a write
to the device is done, the device will respond with the status byte set by the READMUX register bits
in the last 8 bits of the write.

Product Preview WM8581
w PP Rev 1.0 March 2006
19
REGISTER ADDRESS BIT LABEL DEFAULT DESCRIPTION
2:0 READMUX
[2:0]
000 Determines which status register
is to be read back:
000 = Error Register
001 = Channel Status Register 1
010 = Channel Status Register 2
011 = Channel Status Register 3
100 = Channel Status Register 4
101 = Channel Status Register 5
110 = S/PDIF Status Register
3 CONTREAD 0 Continuous Read Enable.
0 = Continuous read-back mode
disabled
1 = Continuous read-back mode
enabled
R52
READBACK
34h
4 READEN 0 Read-back mode enable.
0 = read-back mode disabled
1 = read-back mode enabled
Table 9 Read-back Control Register
The 3-wire interface readback protocol is shown below. Note that the SDO pin is tri-state unless CSB
is held low; therefore CSB must be held low for the duration of the read.
Figure 7 3-Wire SPI Compatible Interface Continuous Readback
If CONTREAD is set to zero, the user can read back directly from the register by writing to the
register address, to which the device will respond with data. The protocol for this system is shown in
Figure 8 below.
Figure 8 3-Wire SPI Compatible Control Interface Non-Continuous Readback

WM8581 Product Preview
w PP Rev 1.0 March 2006
20
2-WIRE SERIAL CONTROL MODE WITH READ-BACK
The WM8581 supports software control via a 2-wire (2-wire write, 3-wire read) serial bus. Many
devices can be controlled by the same bus, and each device has a unique 7-bit address (see Table
10).
The controller indicates the start of data transfer with a high to low transition on SDIN while SCLK
remains high. This indicates that a device address and data will follow. All devices on the 2-wire bus
respond to the start condition and shift in the next eight bits on SDIN (7-bit address + Read/Write bit,
MSB first). If the device address received matches the address of the WM8581, the WM8581
responds by pulling SDIN low on the next clock pulse (ACK). If the address is not recognised, the
WM8581 returns to the idle condition and wait for a new start condition and valid address.
Once the WM8581 has acknowledged a correct address, the controller sends the first byte of control
data (B15 to B8, i.e. the WM8581 register address plus the first bit of register data). The WM8581
then acknowledges the first data byte by pulling SDIN low for one clock pulse. The controller then
sends the second byte of control data (B7 to B0, i.e. the remaining 8 bits of register data), and the
WM8581 acknowledges again by pulling SDIN low.
The transfer of data is complete when there is a low to high transition on SDIN while SCLK is high.
After receiving a complete address and data sequence the WM8581 returns to the idle state and
waits for another start condition. If a start or stop condition is detected out of sequence at any point
during data transfer (i.e. SDIN changes while SCLK is high), the device jumps to the idle condition.
Figure 9 2-Wire Serial Control Interface
The WM8581 has two possible device addresses, which can be selected using the CSB pin.
CSB STATE DEVICE ADDRESS IN 2-
WIRE MODE
Low or Unconnected 0011010
High 0011011
Table 10 2-Wire MPU Interface Address Selection
SDIN
SCLK
address wr ack B15-B8 ack B7-B0 ack
device address
[wr=0]
in
STOPSTART
out out outin in
register
address and
1st data bit
remaining data
bits
This manual suits for next models
5
Table of contents
Other Wolfson Conference System manuals