Wolfson WM8978 Manual

Stereo codec with speaker driver
Hide thumbs Also See for WM8978:

Advertisement

Quick Links

w

DESCRIPTION

The WM8978 is a low power, high quality stereo CODEC
designed for portable applications such as multimedia phone,
digital still camera or digital camcorder.
The device integrates preamps for stereo differential mics, and
includes drivers for speakers, headphone and differential or
stereo line output. External component requirements are
reduced as no separate microphone or headphone amplifiers
are required.
Advanced on-chip digital signal processing includes a 5-band
equaliser, a mixed signal Automatic Level Control for the
microphone or line input through the ADC as well as a purely
digital limiter function for record or playback. Additional digital
filtering options are available in the ADC path, to cater for
application filtering such as 'wind noise reduction'.
The WM8978 digital audio interface can operate as a master or
a slave. An internal PLL can generate all required audio clocks
for the CODEC from common reference clock frequencies, such
as 12MHz and 13MHz.
The WM8978 operates at analogue supply voltages from 2.5V to
3.3V, although the digital core can operate at voltages down to
1.71V to save power. The speaker outputs and OUT3/4 line
outputs can run from a 5V supply if increased output power is
required. Individual sections of the chip can also be powered
down under software control.

BLOCK DIAGRAM

WOLFSON MICROELECTRONICS plc
To receive regular email updates, sign up
Stereo CODEC with Speaker Driver
at
http://www.wolfsonmicro.com/enews

FEATURES

Stereo CODEC:
DAC SNR 98dB, THD -84dB ('A' weighted @ 48kHz)
ADC SNR 95dB, THD -84dB ('A' weighted @ 48kHz)
On-chip Headphone Driver with 'capless' option
-
40mW per channel into 16 / 3.3V SPKVDD
1W output power into 8 BTL speaker / 5V SPKVDD
-
Capable of driving piezo speakers
-
Stereo speaker drive configuration
Mic Preamps:
Stereo Differential or mono microphone Interfaces
-
Programmable preamp gain
-
Psuedo differential inputs with common mode
rejection
-
Programmable ALC / Noise Gate in ADC path
Low-noise bias supplied for electret microphones
Other Features:
Enhanced 3-D function for improved stereo separation
Digital playback limiter
5-band Equaliser (record or playback)
Programmable ADC High Pass Filter (wind noise reduction)
Programmable ADC Notch Filter
Aux inputs for stereo analogue input signals or 'beep'
On-chip PLL supporting 12, 13, 19.2MHz and other clocks
Support for 8, 11.025, 12, 16, 22.05, 24, 32, 44.1 and
48kHz sample rates
Low power, low voltage
-
2.5V to 3.6V (digital: 1.71V to 3.6V)
5x5mm 32-lead QFN package

APPLICATIONS

Stereo Camcorder or DSC
Multimedia Phone
Production Data, October 2011, Rev 4.5
Copyright 2011 Wolfson Microelectronics plc
WM8978

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WM8978 and is the answer not in the manual?

Questions and answers

Summary of Contents for Wolfson WM8978

  • Page 1: Description

    ‘wind noise reduction’. Other Features:  The WM8978 digital audio interface can operate as a master or Enhanced 3-D function for improved stereo separation  a slave. An internal PLL can generate all required audio clocks Digital playback limiter ...
  • Page 2: Table Of Contents

    WM8978 Production Data TABLE OF CONTENTS DESCRIPTION ....................... 1   BLOCK DIAGRAM ....................1   FEATURES ......................1   APPLICATIONS ..................... 1   TABLE OF CONTENTS ..................2   PIN CONFIGURATION ..................4   ORDERING INFORMATION .................. 4   PIN DESCRIPTION ....................5  ...
  • Page 3 WM8978 Production Data 5-BAND EQUALISER ....................111  APPLICATION INFORMATION ................. 115   RECOMMENDED EXTERNAL COMPONENTS ............115  PACKAGE DIAGRAM ..................116   IMPORTANT NOTICE ..................117   ADDRESS ........................117  REVISION HISTORY ..................118   PD, Rev 4.5, October 2011...
  • Page 4: Pin Configuration

    WM8978 Production Data PIN CONFIGURATION ORDERING INFORMATION ORDER CODE TEMPERATURE PACKAGE MOISTURE PEAK SOLDERING RANGE SENSITIVITY LEVEL TEMPERATURE WM8978CGEFL/V -40C to +100C 32-lead QFN (5 x 5 mm) MSL3 (Pb-free) WM8978CGEFL/RV -40C to +100C 32-lead QFN (5 x 5 mm)
  • Page 5: Pin Description

    WM8978 Production Data PIN DESCRIPTION NAME TYPE DESCRIPTION Analogue input Left Mic Pre-amp positive input Analogue input Left Mic Pre-amp negative input Analogue input Left channel line input/secondary mic pre-amp positive input/GPIO2 pin L2/GPIO2 Analogue input Right Mic Pre-amp positive input...
  • Page 6: Absolute Maximum Ratings

    Proper ESD precautions must be taken during handling and storage of this device. Wolfson tests its package types according to IPC/JEDEC J-STD-020B for Moisture Sensitivity to determine acceptable storage conditions prior to surface mount assembly. These levels are: MSL1 = unlimited floor life at <30C / 85% Relative Humidity.
  • Page 7: Electrical Characteristics

    WM8978 Production Data ELECTRICAL CHARACTERISTICS Test Conditions DCVDD=1.8V, AVDD=DBVDD=SPKVDD= 3.3V, T = +25 C, 1kHz signal, fs = 48kHz, 24-bit audio data unless otherwise stated. PARAMETER SYMBOL TEST CONDITIONS UNIT Microphone Preamp Inputs (LIP, LIN, RIP, RIN, L2, R2) Full-scale Input Signal Level –...
  • Page 8 WM8978 Production Data Test Conditions DCVDD=1.8V, AVDD=DBVDD=SPKVDD= 3.3V, T = +25 C, 1kHz signal, fs = 48kHz, 24-bit audio data unless otherwise stated. PARAMETER SYMBOL TEST CONDITIONS UNIT Automatic Level Control (ALC) Target Record Level -22.5 -1.5 Programmable gain 35.25 Gain Hold Time (Note 3,5) MCLK = 12.288MHz...
  • Page 9 WM8978 Production Data Test Conditions DCVDD=1.8V, AVDD=DBVDD=SPKVDD= 3.3V, T = +25 C, 1kHz signal, fs = 48kHz, 24-bit audio data unless otherwise stated. PARAMETER SYMBOL TEST CONDITIONS UNIT Speaker Output (LOUT2, ROUT2 with 8 bridge tied load, INVROUT2=1) Full scale output voltage, 0dB SPKBOOST=0 SPKVDD/3.3...
  • Page 10: Terminology

    WM8978 Production Data TERMINOLOGY Input level to RIP and LIP is limited to a maximum of -3dB or THD+N performance will be reduced. Note when BEEP path is not enabled then AUXL and AUXR have the same input impedances. Hold Time is the length of time between a signal detected being too quiet and beginning to ramp up the gain. It does not apply to ramping down the gain when the signal is too loud, which happens without a delay.
  • Page 11: Speaker Output Thd Versus Power

    WM8978 Production Data SPEAKER OUTPUT THD VERSUS POWER PD, Rev 4.5, October 2011...
  • Page 12: Power Consumption

    WM8978 Production Data POWER CONSUMPTION Typical current consumption for various scenarios is shown below. MODE AVDD DCVDD DBVDD TOTAL (3.0V) (1.8V) (3.0V) POWER (mA) (mA) (mA) (mW) 0.04 0.0008 <0.0001 0.12 Sleep (VREF maintained, no clocks) 0.04 0.0008 <0.0001 0.12 Stereo Record (8kHz) 0.001...
  • Page 13 WM8978 Production Data REGISTER BIT AVDD CURRENT (mA) AVDD=3.3V BUFDCOPEN OUT4MIXEN OUT3MIXEN PLLEN 1.2 (with clocks applied) MICBEN BIASEN BUFIOEN VMIDSEL 5KΩ = >0.3, less than 0.1 for 75KΩ 300KΩ settings ROUT1EN LOUT1EN BOOSTENR BOOSTENL INPPGAENR INPPGAENL ADCENR 2.6 (x64, ADCOSR=0) 4.9 ( x128, ADCOSR=1)
  • Page 14: Audio Paths Overview

    WM8978 Production Data AUDIO PATHS OVERVIEW PD, Rev 4.5, October 2011...
  • Page 15: Signal Timing Requirements

    WM8978 Production Data SIGNAL TIMING REQUIREMENTS SYSTEM CLOCK TIMING MCLKL MCLK MCLKH MCLKY Figure 1 System Clock Timing Requirements Test Conditions DCVDD=1.8V, DBVDD=AVDD=SPKVDD=3.3V, DGND=AGND=SPKGND=0V, T = +25 PARAMETER SYMBOL CONDITIONS UNIT System Clock Timing Information MCLK=SYSCLK (=256fs) 81.38 MCLKY MCLK cycle time...
  • Page 16: Audio Interface Timing - Slave Mode

    WM8978 Production Data Test Conditions DCVDD=1.8V, DBVDD=AVDD=SPKVDD=3.3V, DGND=AGND=SPKGND=0V, =+25 Master Mode, fs=48kHz, MCLK=256fs, 24-bit data, unless otherwise stated. PARAMETER SYMBOL UNIT Audio Data Input Timing Information LRC propagation delay from BCLK falling edge ADCDAT propagation delay from BCLK falling edge...
  • Page 17: Control Interface Timing - 3-Wire Mode

    WM8978 Production Data CONTROL INTERFACE TIMING – 3-WIRE MODE Figure 4 Control Interface Timing – 3-Wire Serial Control Mode Test Conditions DCVDD = 1.8V, DBVDD = AVDD = SPKVDD = 3.3V, DGND = AGND = SPKGND = 0V, T =+25 C, Slave Mode, fs=48kHz, MCLK = 256fs, 24-bit data, unless otherwise stated.
  • Page 18: Control Interface Timing - 2-Wire Mode

    WM8978 Production Data CONTROL INTERFACE TIMING – 2-WIRE MODE SDIN SCLK Figure 5 Control Interface Timing – 2-Wire Serial Control Mode Test Conditions DCVDD=1.8V, DBVDD=AVDD=SPKVDD=3.3V, DGND=AGND=SPKGND=0V, =+25 Slave Mode, fs=48kHz, MCLK = 256fs, 24-bit data, unless otherwise stated. PARAMETER SYMBOL...
  • Page 19: Internal Power On Reset Circuit

    Figure 6 Internal Power on Reset Circuit Schematic The WM8978 includes an internal Power-On-Reset Circuit (POR), as shown in Figure 6, which is used reset the digital logic into a default state after power up. The POR circuit is powered from AVDD and monitors DVDD.
  • Page 20 WM8978 Production Data Figure 8 Typical Power up Sequence where DVDD is Powered before AVDD Figure 8 shows a typical power-up sequence where DVDD comes up first. First it is assumed that DVDD is already up to specified operating voltage. When AVDD goes above the minimum threshold,...
  • Page 21: Device Description

    DEVICE DESCRIPTION INTRODUCTION The WM8978 is a low power audio CODEC combining a high quality stereo audio DAC and ADC, with flexible line and microphone input and output processing. Applications for this device include multimedia phones, stereo digital camcorders, and digital still cameras with either mono or stereo record and playback capability.
  • Page 22 CONTROL INTERFACES To allow full software control over all features, the WM8978 offers a choice of 2 or 3 wire control interface. It is fully compatible and an ideal partner for a wide range of industry standard microprocessors, controllers and DSPs.
  • Page 23: Input Signal Path

    WM8978, and the stereo signal listened to via headphones, or recorded, simultaneously if required. INPUT SIGNAL PATH The WM8978 has a number of flexible analogue inputs. There are two input channels, Left and Right, each of which consists of an input PGA stage followed by a boost/mix stage which drives into the hi-fi ADC.
  • Page 24 WM8978 Production Data The input PGAs are enabled by the IPPGAENL/R register bits. REGISTER LABEL DEFAULT DESCRIPTION ADDRESS INPPGAENL Left channel input PGA enable Power 0 = disabled Management 1 = enabled INPPGAENR Right channel input PGA enable 0 = disabled...
  • Page 25 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS INPPGAVOLL 010000 Left channel input PGA volume Left channel 000000 = -12dB input PGA 000001 = -11.25db volume control 010000 = 0dB 111111 = 35.25dB INPPGAMUTEL Mute control for left channel input PGA:...
  • Page 26 WM8978 Production Data Figure 10 Simultaneous Left and Right Volume Updates If the volume is adjusted while the signal is a non-zero value, an audible click can occur as shown in Figure 11. Figure 11 Click Noise During Volume Update In order to prevent this click noise, a zero cross function is provided.
  • Page 27 Production Data Figure 12 Volume Update Using Zero Cross Detection If there is a long period where no zero-crossing occurs, a timeout circuit in the WM8978 will automatically update the volume. The volume updates will occur between one and two timeout periods, depending on when the INPPGAUPDATE bit is set as shown in Figure 13.
  • Page 28 WM8978 Production Data AUXILIARY INPUTS There are two auxiliary inputs, AUXL and AUXR which can be used for a variety of purposes such as stereo line inputs or as a ‘beep’ input signal to be mixed with the outputs. The AUXL/R inputs can be used as a line input to the input BOOST stage which has gain adjust of - 12dB to +6dB in 3dB steps (plus off).
  • Page 29 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS AUXL2BOOSTVOL Controls the auxiliary amplifier to the left channel input boost stage: Left channel Input BOOST 000=Path disabled (disconnected) control 001=-12dB gain through boost stage 010=-9dB gain through boost stage … 111=+6dB gain through boost...
  • Page 30: Analogue To Digital Converter (Adc)

    Figure 15 Microphone Bias Schematic ANALOGUE TO DIGITAL CONVERTER (ADC) The WM8978 uses stereo multi-bit, oversampled sigma-delta ADCs. The use of multi-bit feedback and high oversampling rates reduces the effects of jitter and high frequency noise. The ADC Full Scale input level is proportional to AVDD. With a 3.3V supply voltage, the full scale level is 1.0V Any voltage greater than full scale may overload the ADC and cause distortion.
  • Page 31 WM8978 Production Data Figure 16 ADC Digital Filter Path The ADCs are enabled by the ADCENL/R register bit. REGISTER LABEL DEFAULT DESCRIPTION ADDRESS ADCENL Enable ADC left channel: Power 0 = ADC disabled management 2 1 = ADC enabled ADCENR...
  • Page 32 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS HPFEN High Pass Filter Enable ADC Control 0=disabled 1=enabled HPFAPP Select audio mode or application mode 0=Audio mode (1 order, fc = ~3.7Hz) 1=Application mode (2 order, fc = HPFCUT) HPFCUT Application mode cut-off frequency See Table 15 for details.
  • Page 33 WM8978 Production Data PROGRAMMABLE NOTCH FILTER A programmable notch filter is provided. This filter has a variable centre frequency and bandwidth, programmable via two coefficients, a0 and a1. The coefficients must be entered in 2’s complement notation. A0 and a1 are represented by the register bits NFA0[13:0] and NFA1[13:0]. Because these coefficient values require four register writes to setup there is an NFU (Notch Filter Update) flag which should be set only when all four registers are setup.
  • Page 34 WM8978 Production Data NOTCH FILTER WORKED EXAMPLE The following example illustrates how to calculate the a0 and a1 coefficients for a desired centre frequency and -3dB bandwidth. Fc = 1000 Hz fb = 100 Hz fs = 48000 Hz ...
  • Page 35 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS ADCVOLL 11111111 Left ADC Digital Volume Control Left channel [7:0] ( 0dB ) 0000 0000 = Digital Mute ADC Digital 0000 0001 = -127dB Volume 0000 0010 = -126.5dB … 0.5dB steps up to...
  • Page 36: Input Limiter / Automatic Level Control (Alc)

    Production Data INPUT LIMITER / AUTOMATIC LEVEL CONTROL (ALC) The WM8978 has an automatic PGA gain control circuit, which can function as an input peak limiter or as an automatic level control (ALC). The Automatic Level Control (ALC) provides continuous adjustment of the input PGA in response to the amplitude of the input signal.
  • Page 37 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS ALCHLD 0000 ALC hold time before gain is increased. [3:0] (0ms) 0000 = 0ms 0001 = 2.67ms 0010 = 5.33ms 0011 = 10.66ms 0100 = 21.32ms 0101 = 42.64ms 0110 = 85.28ms 0111 = 0.17s...
  • Page 38 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS … (time doubles with every step) 1010 23.2ms 186ms 1.34s higher Table 17 ALC Control Registers When the ALC is disabled, the input PGA remains at the last controlled value of the ALC. An input gain update must be made by writing to the INPPGAVOLL/R register bits.
  • Page 39 WM8978 Production Data LIMITER MODE In limiter mode, the ALC will reduce peaks that go above the threshold level, but will not increase the PGA gain beyond the starting level. The starting level is the PGA gain setting when the ALC is enabled in limiter mode.
  • Page 40 WM8978 Production Data ATTACK AND DECAY TIMES The attack and decay times set the update times for the PGA gain. The attack time is the time constant used when the gain is reducing. The decay time is the time constant used when the gain is increasing.
  • Page 41 WM8978 Production Data LIMITER MODE ALCMODE = 1 (Limiter Mode) Attack Time (s) ALCATK ATKLIM ATKLIM6dB ATKLIM90% 0000 22.7µs 182µs 1.31ms 0001 45.4µS 363µs 2.62ms 0010 90.8µS 726µs 5.23ms 0011 182µS 1.45ms 10.5ms 0100 363µS 2.91ms 20.9ms 0101 726µS 5.81ms 41.8ms...
  • Page 42 WM8978 Production Data Figure 19 ALC Min/Max Gain ALCMAX Maximum Gain (dB) 35.25 29.25 23.25 17.25 11.25 5.25 -0.75 -6.75 Table 21 ALC Max Gain Values ALCMIN Minimum Gain (dB) Table 22 ALC Min Gain Values Note that if the ALC gain setting strays outside the ALC operating range, either by starting the ALC outside of the range or changing the ALCMAX or ALCMIN settings during operation, the ALC will immediately adjust the gain to return to the ALC operating range.
  • Page 43 WM8978 Production Data ALC HOLD TIME (NORMAL MODE ONLY) In Normal mode, the ALC has an adjustable hold time which sets a time delay before the ALC begins its decay phase (gain increasing). The hold time is set by the ALCHLD register.
  • Page 44 WM8978 Production Data Figure 21 ALC Hold Time ALCHLD HOLD 0000 0001 2.67ms 0010 5.34ms 0011 10.7ms 0100 21.4ms 0101 42.7ms 0110 85.4ms 0111 171ms 1000 342ms 1001 684ms 1010 1.37s Table 24 ALC Hold Time Values PD, Rev 4.5, October 2011...
  • Page 45 When the signal is very quiet and consists mainly of noise, the ALC function may cause “noise pumping”, i.e. loud hissing noise during silence periods. The WM8978 has a noise gate function that prevents noise pumping by comparing the signal level at the input pins against a noise gate threshold, NGTH.
  • Page 46 WM8978 Production Data Figure 22 ALC Operation Above Noise Gate Threshold PD, Rev 4.5, October 2011...
  • Page 47: Output Signal Path

    WM8978, irrespective of whether the DACs are enabled or not. The WM8978 DACs receive digital input data on the DACDAT pin. The digital filter block processes the data to provide the following functions: ...
  • Page 48 DIGITAL PLAYBACK (DAC) PATH Digital data is passed to the WM8978 via the flexible audio interface and is then passed through a variety of advanced digital filters (as shown in Figure 24) to the hi-fi DACs. The DACs are enabled by the DACENL/R register bits.
  • Page 49 3-D STEREO ENHANCEMENT section for further details on this feature. DAC DIGITAL OUTPUT LIMITER The WM8978 has a digital output limiter function. The operation of this is shown in Figure 25. In this diagram the upper graph shows the envelope of the input/output signals and the lower graph shows the gain characteristic.
  • Page 50 WM8978 Production Data Figure 25 DAC Digital Limiter Operation The limiter has a programmable upper threshold which is close to 0dB. Referring to Figure 25, in normal operation (LIMBOOST=000 => limit only) signals below this threshold are unaffected by the limiter.
  • Page 51 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS LIMATK 0010 Limiter Attack time (per 6dB gain change) for 44.1kHz sampling. Note DAC digital that these will scale proportionally with limiter control sample rate. 0000=94us 0001=188s 0010=375us 0011=750us 0100=1.5ms 0101=3ms 0110=6ms...
  • Page 52 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS LIMLVL Programmable signal threshold level (determines level at which the limiter starts to operate) 000=-1dB 001=-2dB 010=-3dB 011=-4dB 100=-5dB 101 to 111=-6dB Table 29 DAC Digital Limiter Control 5-BAND GRAPHIC EQUALISER A 5-band graphic equaliser (EQ) is provided, which can be applied to the ADC or DAC path, together with 3D enhancement, under control of the EQ3DMODE register bit.
  • Page 53 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS EQ3G 01100 Band 3 Gain Control. See Table 36 for details. EQ Band 3 (0dB) Control EQ3C Band 3 Centre Frequency: 00=650Hz 01=850Hz 10=1.1kHz 11=1.4kHz EQ3BW Band 3 Bandwidth Control 0=narrow bandwidth...
  • Page 54: 3D Stereo Enhancement

    EQ3DMODE. Switching this bit from record to playback or from playback to record may only be done when ADC and DAC are disabled. The WM8978 control interface will only allow EQ3DMODE to be changed when ADC and DAC are disabled (ie ADCENL = 0, ADCENR = 0, DACENL = 0 and DACENR = 0).
  • Page 55 WM8978 Production Data Figure 26 Left/Right Output Channel Mixers PD, Rev 4.5, October 2011...
  • Page 56 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS DACR2LMIX Right DAC output to left output mixer Output mixer 0 = not selected control 1 = selected DACL2RMIX Left DAC output to right output mixer 0 = not selected 1 = selected...
  • Page 57 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS AUXR2RMIX Right Auxiliary input to right channel output mixer: 0 = not selected 1 = selected AUXRMIXVOL Aux right channel input to right mixer volume control: 000 = -15dB 001 = -12dB …...
  • Page 58 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS LOUT1ZC Headphone volume zero cross enable: LOUT1 1 = Change gain on zero cross only Volume control 0 = Change gain immediately LOUT1MUTE Left headphone output mute: 0 = Normal operation 1 = Mute...
  • Page 59 WM8978 Production Data Headphone Output using DC Blocking Capacitors: DC Coupled Headphone Output: Figure 28 Recommended Headphone Output Configurations When DC blocking capacitors are used, then their capacitance and the load resistance together determine the lower cut-off frequency, f . Increasing the capacitance lowers f , improving the bass response.
  • Page 60 WM8978 Production Data Figure 29 Speaker Outputs LOUT2 and ROUT2 PD, Rev 4.5, October 2011...
  • Page 61 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS LOUT2ZC Speaker volume zero cross enable: LOUT2 (SPK) 1 = Change gain on zero cross only Volume 0 = Change gain immediately control LOUT2MUTE Left speaker output mute: 0 = Normal operation...
  • Page 62 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS SPKBOOST 0 = speaker gain = -1; Output control DC = AVDD / 2 1 = speaker gain = +1.5; DC = 1.5 x AVDD / 2 BUFDCOPEN Dedicated buffer for DC level shifting output stages when in 1.5x gain...
  • Page 63 WM8978 Production Data OUT3/OUT4 MIXERS AND OUTPUT STAGES The OUT3/OUT4 pins can provide an additional stereo line output, a mono output, or a pseudo ground connection for headphones. There is a dedicated analogue mixer for OUT3 and one for OUT4 as shown in Figure 31.
  • Page 64 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS OUT3MUTE 0 = Output stage outputs OUT3 mixer OUT3 mixer 1 = Output stage muted – drives out control VMID. Can be used as VMID buffer in this mode. OUT4_2OUT3 OUT4 mixer output to OUT3...
  • Page 65 WM8978 Production Data Figure 33 Outputs OUT3 and OUT4 REGISTER LABEL DEFAULT DESCRIPTION ADDRESS OUT3BOOST 0 = OUT3 output gain = -1; Output control DC = AVDD / 2 1 = OUT3 output gain = +1.5 DC = 1.5 x AVDD / 2 OUT4BOOST 0 = OUT4 output gain = -1;...
  • Page 66 WM8978 Production Data OUTPUT PHASING The relative phases of the analogue outputs will depend upon the following factors: DACPOLL and DACPOLR invert bits: Setting these bits to 1 will invert the DAC output. Mixer configuration: The polarity of the signal will depend upon the route through the mixer path.
  • Page 67 WM8978 Production Data Table 48 shows the polarities of the outputs in various configurations. Unless otherwise stated, polarity is shown with respect to left DAC output in non-inverting mode. Note that only registers relating to the mixer paths are shown here (Mixer enables, volume settings, output enables etc are not shown).
  • Page 68 Production Data ENABLING THE OUTPUTS Each analogue output of the WM8978 can be separately enabled or disabled. The analogue mixer associated with each output has a separate enable. All outputs are disabled by default. To save power, unused parts of the WM8978 should remain disabled.
  • Page 69 WM8978 Production Data A dedicated buffer is available for tying off unused analogue I/O pins as shown in Figure 35. This buffer can be enabled using the BUFIOEN register bit. If the SPKBOOST, OUT3BOOST or OUT4BOOST bits are set then the relevant outputs will be tied to the output of the DC level shift buffer at 1.5xAVDD/2 when disabled.
  • Page 70: Digital Audio Interfaces

     BCLK: Bit clock, for synchronisation The clock signals BCLK, and LRC can be outputs when the WM8978 operates as a master, or inputs when it is a slave (see Master and Slave Mode Operation, below). Five different audio data formats are supported: ...
  • Page 71 WM8978 Production Data In Right Justified mode, the LSB is available on the last rising edge of BCLK before a LRC transition. All other bits are transmitted before (MSB first). Depending on word length, BCLK frequency and sample rate, there may be unused BCLK cycles after each LRC transition.
  • Page 72 WM8978 Production Data In DSP/PCM mode, the left channel MSB is available on either the 1 (mode B) or 2 (mode A) rising edge of BCLK (selectable by LRP) following a rising edge of LRC. Right channel data immediately follows left channel data. Depending on word length, BCLK frequency and sample rate, there may be unused BCLK cycles between the LSB of the right channel data and the next sample.
  • Page 73 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS MONO Selects between stereo and mono device operation: Audio Interface 0=Stereo device operation Control 1=Mono device operation. Data appears in ‘left’ phase of LRC ADCLRSWAP Controls whether ADC data appears in ‘right’ or ‘left’ phases of LRC clock: 0=ADC data appear in ‘left’...
  • Page 74 BCLK Clock Generation 0=BCLK and LRC clock are inputs Control 1=BCLK and LRC clock are outputs generated by the WM8978 (MASTER) BCLKDIV Configures the BCLK output frequency, for use when the chip is master over BCLK. 000=divide by 1 (BCLK=SYSCLK)
  • Page 75: Audio Sample Rates

    Production Data AUDIO SAMPLE RATES The WM8978 sample rates for the ADCs and the DACs are set using the SR register bits. The cutoffs for the digital filters and the ALC attack/decay times stated are determined using these values and assume a 256fs master clock rate.
  • Page 76 WM8978 Production Data Figure 41 PLL and Clock Select Circuit The PLL frequency ratio R = f (see Figure 41) can be set using the register bits PLLK and PLLN: PLLN = int R PLLK = int (2 (R-PLLN)) Note: The PLL is designed to operate with best performance (shortest lock time and optimum stability) when f is between 90 and 100MHz and PLL_N is 8.
  • Page 77: Loopback

    ADC audio interface is fed directly into the DAC data input. COMPANDING The WM8978 supports A-law and -law and companding and linear mode on both transmit (ADC) and receive (DAC) sides. Companding can be enabled on the DAC or ADC audio interfaces by writing the appropriate value to the DAC_COMP or ADC_COMP register bits respectively.
  • Page 78 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS LOOPBACK Digital loopback function Companding 0=No loopback Control 1=Loopback enabled, ADC data output is fed directly into DAC data input. ADC_COMP ADC companding 00=off (linear mode) 01=reserved 10=µ-law 11=A-law DAC_COMP DAC companding...
  • Page 79: General Purpose Input/Output

    Figure 42 u-Law Companding A-law Companding Normalised Input Figure 43 A-Law Companding GENERAL PURPOSE INPUT/OUTPUT The WM8978 has three dual purpose input/output pins.  CSB/GPIO1: CSB / GPIO pin  L2/GPIO2: Left channel line input / headphone detection input ...
  • Page 80: Output Switching (Jack Detect)

    WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION ADDRESS GPIO1SEL CSB/GPIO1 pin function select: GPIO 000= input (CSB/jack detection: depending on MODE setting) Control 001= reserved 010=Temp ok 011=Amute active 100=PLL clk o/p 101=PLL lock 110=logic 0 111=logic 1 GPIO1POL GPIO1 Polarity invert...
  • Page 81 WM8978 Production Data The VMID_EN signal has an OR function performed with the normal VMID driver enable. If the VMID_EN signal is to have no effect to normal functionality when jack detection is enabled, it should set to 0 for all JD_EN0 or JD_EN1 settings.
  • Page 82: Control Interface

    During a write, once the WM8978 has acknowledged a correct address, the controller sends the first byte of control data (B15 to B8, i.e. the WM8978 register address plus the first bit of register data). The WM8978 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.
  • Page 83: Resetting The Chip

    RESETTING THE CHIP The WM8978 can be reset by performing a write of any value to the software reset register (address 0 hex). This will cause all register values to be reset to their default values. In addition to this there is a Power-On Reset (POR) circuit which ensures that the registers are set to default when the device is powered up.
  • Page 84 WM8978 Production Data Power-up when using the output 1.5x boost stage: Turn on external power supplies. Wait for supply voltage to settle. Mute all analogue outputs. Enable unused output chosen from L/ROUT2, OUT3 or OUT4. If unused output not available, chose one of these outputs not required at power up.
  • Page 85 WM8978 Production Data Notes: This step enables the internal device bias buffer and the VMID buffer for unassigned inputs/outputs. This will provide a startup reference voltage for all inputs and outputs. This will cause the inputs and outputs to ramp towards VMID (NOT using output 1.5x boost) or 1.5 x (AVDD/2) (using output 1.5x boost) in a way that is controlled and predictable (see note 2).
  • Page 86 WM8978 Production Data Notes: The analogue input pin charge time, t is determined by the VMID pin charge time. This midrail_on, time is dependent upon the value of VMID decoupling capacitor and VMID pin input resistance and AVDD power supply rise time.
  • Page 87 WM8978 Production Data SYMBOL TYPICAL UNIT line_midrail_on line_midrail_off hp_midrail_on hp__midrail_off 2/fs n/fs dacint DAC Group Delay 29/fs n/fs Table 65 Typical POR Operation (typical simulated values) Notes: The lineout charge time, t is mainly determined by the VMID pin charge time. This time...
  • Page 88: Power Management

    WM8978 Production Data POWER MANAGEMENT SAVING POWER BY REDUCING OVERSAMPLING RATE The default mode of operation of the ADC and DAC digital filters is in 64x oversampling mode. Under the control of ADCOSR and DACOSR the oversampling rate may be doubled. 64x oversampling results in a slight decrease in noise performance compared to 128x but lowers the power consumption of the device.
  • Page 89: Register Map

    WM8978 Production Data REGISTER MAP REGISTER DEF’T ADDR NAME B[15:9] DEC HEX (HEX) Software Reset Software reset Power manage’t 1 BUFDCOP OUT4MIX OUT3MIX PLLEN MICBEN BIASEN BUFIOEN VMIDSEL Power manage’t 2 ROUT1EN LOUT1EN SLEEP BOOST BOOST INPPGA INPPGA ADCENR ADCENL Power manage’t 3...
  • Page 90 OUT3 mixer ctrl OUT3 OUT4_ BYPL2 LMIX2 LDAC2 MUTE 2OUT3 OUT3 OUT3 OUT3 OUT4 (MONO) OUT4 HALFSIG LMIX2 LDAC2 BYPR2 RMIX2 RDAC2 mixer ctrl MUTE OUT4 OUT4 OUT4 OUT4 OUT4 Table 69 WM8978 Register Map PD, Rev 4.5, October 2011...
  • Page 91: Register Bits By Address

    WM8978 Production Data REGISTER BITS BY ADDRESS Notes: 1. Default values of N/A indicate non-latched data bits (e.g. software reset or volume update bits). 2. Register bits marked as “Reserved” should not be changed from the default. REGISTER LABEL DEFAULT...
  • Page 92 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS INPPGAENL Left channel input PGA enable Power Management 0 = disabled 1 = enabled ADCENR Enable ADC right channel: Analogue to Digital 0 = ADC disabled Converter 1 = ADC enabled...
  • Page 93 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS Audio interface Data Format Select: Digital Audio Interfaces 00=Right Justified 01=Left Justified 10=I S format 11= DSP/PCM mode DACLRSWAP Controls whether DAC data appears in ‘right’ or Digital Audio ‘left’ phases of LRC clock: Interfaces 0=DAC data appear in ‘left’...
  • Page 94 Sets the chip to be master over LRC and BCLK Digital Audio Interfaces 0=BCLK and LRC clock are inputs 1=BCLK and LRC clock are outputs generated by the WM8978 (MASTER) 7 (07h) 00000 Reserved Approximate sample rate (configures the Audio Sample...
  • Page 95 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS 9 (09h) JD_VMID [7] VMID_EN_0 Output Switching [8] VMID_EN_1 (Jack Detect) JD_EN Jack Detection Enable Output Switching 0=disabled (Jack Detect) 1=enabled JD_SEL Pin selected as jack detection input Output Switching...
  • Page 96 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS 13 (0Dh) Reserved JD_EN1 0000 Output enabled when selected jack detection Output input is logic 1 Switching (Jack Detect) [4]= OUT1_EN_1 [5]= OUT2_EN_1 [6]= OUT3_EN_1 [7]= OUT4_EN_1 JD_EN0 0000 Output enabled when selected jack detection Output input is logic 0.
  • Page 97 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS 18 (12h) EQ3DMODE 0 = Equaliser and 3D Enhancement applied to Output Signal ADC path Path 1 = Equaliser and 3D Enhancement applied to DAC path Reserved EQ1C EQ Band 1 Cut-off Frequency:...
  • Page 98 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS EQ5G 01100 EQ Band 5 Gain Control. See Table 36 for Output Signal details. Path 24 (18h) LIMEN Output Signal Enable the DAC digital limiter: Path 0=disabled 1=enabled LIMDCY 0011...
  • Page 99 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS 27 (1Bh) Notch filter update. The notch filter values used Analogue to internally only update when one of the NFU bits Digital is set high. Converter (ADC) NFEN Analogue to...
  • Page 100 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS ALCMINGAIN Set minimum gain of PGA Input Limiter/ Automatic 000=-12dB Level Control 001=-6dB (ALC) 010=0dB 011=+6dB 100=+12dB 101=+18dB 110=+24dB 111=+30dB 33 (21h) Reserved ALCHLD 0000 ALC hold time before gain is increased.
  • Page 101 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS 1010 106ms 852ms 6.13s higher 0010 ALC attack (gain ramp-down) time (ALCMODE == 1) Per step Per 6dB 90% of range 0000 22.7us 182us 1.31ms 0001 45.4us 363us 2.62ms 0010 90.8us...
  • Page 102 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS INVROUT2 Mute input to INVROUT2 mixer Analogue Outputs BEEPVOL AUXR input to ROUT2 inverter gain Analogue Outputs 000 = -15dB 111 = +6dB BEEPEN 0 = mute AUXR beep input...
  • Page 103 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS INPPGAVOLL 010000 Left channel input PGA volume Input Signal Path 000000 = -12dB 000001 = -11.25db 010000 = 0dB 111111 = 35.25dB 46 (2Eh) INPPGAUPDATE INPPGAVOLL and INPPGAVOLR volume do not...
  • Page 104 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS R2_2BOOSTVOL Controls the R2 pin to the right channel input Input Signal boost stage: Path 000=Path disabled (disconnected) 001=-12dB gain through boost stage 010=-9dB gain through boost stage … 111=+6dB gain through boost stage...
  • Page 105 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS BYPLMIXVOL Left bypass volume control to output channel Analogue mixer: Outputs 000 = -15dB 001 = -12dB … 101 = 0dB 110 = +3dB 111 = +6dB BYPL2L Left bypass path (from the left channel input...
  • Page 106 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS LOUT1VOL 111001 Left headphone output volume: Analogue Outputs 000000 = -57dB 111001 = 0dB 111111 = +6dB 53 (35h) HPVU LOUT1 and ROUT1 volumes do not update until Analogue a 1 is written to HPVU (in reg 52 or 53)
  • Page 107 WM8978 Production Data REGISTER LABEL DEFAULT DESCRIPTION REFER TO ADDRESS OUT4_2OUT3 OUT4 mixer output to OUT3 Analogue Outputs 0 = disabled 1= enabled BYPL2OUT3 Left ADC input to OUT3 Analogue Outputs 0 = disabled 1= enabled LMIX2OUT3 Left DAC mixer to OUT3...
  • Page 108: Digital Filter Characteristics

    WM8978 Production Data DIGITAL FILTER CHARACTERISTICS PARAMETER TEST CONDITIONS UNIT ADC Filter Passband +/- 0.025dB 0.454fs -6dB 0.5fs Passband Ripple +/- 0.025 Stopband 0.546fs Stopband Attenuation f > 0.546fs Group Delay 21/fs ADC High Pass Filter High Pass Filter Corner...
  • Page 109: Dac Filter Responses

    WM8978 Production Data DAC FILTER RESPONSES 3.05 2.95 2.85 2.75 -100 -120 2.65 -140 -160 0.05 0.15 0.25 0.35 0.45 Frequency (fs) Frequency (fs) Figure 48 DAC Digital Filter Frequency Response Figure 49 DAC Digital Filter Ripple (128xOSR) (128xOSR) 3.05 2.95...
  • Page 110: Highpass Filter

    Production Data HIGHPASS FILTER The WM8978 has a selectable digital highpass filter in the ADC filter path. This filter has two modes, audio and applications. In audio mode the filter is a 1 order IIR with a cut-off of around 3.7Hz. In applications mode the filter is a 2 order high pass filter with a selectable cut-off frequency.
  • Page 111: 5-Band Equaliser

    Production Data 5-BAND EQUALISER The WM8978 has a 5-band equaliser which can be applied to either the ADC path or the DAC path. The plots from Figure 58 to Figure 71 show the frequency responses of each filter with a sampling frequency of 48kHz, firstly showing the different cut-off/centre frequencies with a gain of 12dB, and...
  • Page 112 WM8978 Production Data Frequency (Hz) Frequency (Hz) Figure 63 EQ Band 3 – Peak Filter Centre Frequencies, EQ3B Figure 64 EQ Band 3 – Peak Filter Gains for Lowest Cut-off Frequency, EQ3BW=0 Frequency (Hz) Figure 65 EQ Band 3 – EQ3BW=0, EQ3BW=1...
  • Page 113 WM8978 Production Data Frequency (Hz) Frequency (Hz) Figure 66 EQ Band 4 – Peak Filter Centre Frequencies, EQ3B Figure 67 EQ Band 4 – Peak Filter Gains for Lowest Cut-off Frequency, EQ4BW=0 Frequency (Hz) Figure 68 EQ Band 4 – EQ3BW=0, EQ3BW=1...
  • Page 114 WM8978 Production Data Figure 71 shows the result of having the gain set on more than one channel simultaneously. The blue traces show each band (lowest cut-off/centre frequency) with 12dB gain. The red traces show the cumulative effect of all bands with +12dB gain and all bands -12dB gain, with EqxBW=0 for the peak filters.
  • Page 115: Application Information

    WM8978 Production Data APPLICATION INFORMATION RECOMMENDED EXTERNAL COMPONENTS Figure 72 Recommended External Component Diagram PD, Rev 4.5, October 2011...
  • Page 116: Package Diagram

    WM8978 Production Data PACKAGE DIAGRAM FL: 32 PIN QFN PLASTIC PACKAGE 5 0.9 mm BODY, 0.50 mm LEAD PITCH DM101.A DETAIL 1 INDEX AREA EXPOSED (D/2 X E/2) GROUND PADDLE TOP VIEW BOTTOM VIEW 0.08 SIDE VIEW SEATING PLANE 45°...
  • Page 117: Important Notice

    Wolfson is not liable for applications assistance or customer product design. The customer is solely responsible for its selection and use of Wolfson products. Wolfson is not liable for such selection or use nor for use of any circuitry other than circuitry entirely embodied in a Wolfson product.
  • Page 118: Revision History

    WM8978 Production Data REVISION HISTORY DATE ORIGINATOR CHANGES 26/09/11 JMacD Order codes changed from WM8978GEFL/V and WM8978GEFL/RV to WM8978CGEFL/V and WM8978CGEFL/RV to reflect change to copper wire bonding. 26/09/11 JMacD Package Diagram changed to DM101.A PD, Rev 4.5, October 2011...
  • Page 119 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Cirrus Logic WM8978CGEFL/V WM8978CGEFL/RV WM8978GEFL/V...

This manual is also suitable for:

Wm8978cgefl/vWm8978cgefl/rv

Table of Contents