background image

WM8804

 

Production Data

 

PD Rev 4.1 September 2007 

 

24

 

 

REGISTER 

ADDRESS 

BIT LABEL  DEFAULT 

DESCRIPTION 

R6 

PLL4 

06h 

4 PRESCALE 

PLL Pre-scale Divider Select 

0 = Divide by 1 (PLL input clock = 
oscillator clock) 
1 = Divide by 2 (PLL input clock = 
oscillator clock 

÷

 2) 

R7 

PLL5 

07h 

1:0 FREQMODE[1:0] 

 

10 

 

PLL Post-scale Divider Select 

Selects the PLL output divider value 
in conjunction with MCLKDIV and 
CLKOUTDIV. 
Refer to Table 23 for details of 
FREQMODE operation. 

Note: FREQMODE[1:0] bits are 
automatically set in S/PDIF 
Receive Mode.

 

Table 22 Pre and Post PLL Clock Divider Control 

PLL CONFIGURATION EXAMPLE 

Consider the situation where the oscillator clock (OSCCLK) input frequency is fixed at 12MHz and 
the required MCLK frequency is 12.288MHz.  

1.  Calculate the f

2

, FREQMODE and MCLKDIV Values 

The PLL is designed to operate with best performance when the f

clock is between 90 and 100MHz. 

The necessary MCLK frequency is 12.288MHz. Choose MCLKDIV and FREQMODE values to set 
the f

2

 frequency in the range of 90 to 100MHz. In this case, the default values (MCLKDIV = 0 and 

FREQMODE[1:0] = 10) will set the f

2

 frequency at 98.304MHz; this value is within the 90 to 100MHz 

range and is hence acceptable. 

 MCLKDIV 

 FREQMODE[1:0] 

10 

 

f

2

 = 98.304MHz 

2.  Calculate R Value 

Using the relationship: R = (f

÷ f

1

), the value of R can be calculated.  

 R 

(f

2

 ÷ f

1

 

R = (98.304 ÷ 12) 

 R 

8.192 

3.  Calculate PLL_N Value 

The value of PLL_N is the integer (whole number) value of R, ignoring all digits to the right of the 
decimal point. In this case, R is 8.192, hence PLL_N is 8. 

4.  Calculate PLL_K Value 

The PLL_K value is simply the integer value of (2

22

 (R-PLL_N)).  

 

PLL_K = integer part of (2

22

 x (8.192 – 8))  

 

PLL_K = integer part of 805306.368 

 

PLL_K = 805306 (decimal) / C49BA (hex) 

A number of example configurations are shown in Table 23. Many other configurations are possible; 
Table 23 shows only a small number of valid possibilities. 

 

Содержание WM8804

Страница 1: ...trol interface on the GPO pins or streamed over the audio data interface in With Flags mode audio data with status flags appended The audio data interface supports I 2 S left justified right justified...

Страница 2: ...O INTERFACE SLAVE MODE 8 CONTROL INTERFACE 3 WIRE MODE 9 CONTROL INTERFACE 2 WIRE MODE 10 DEVICE DESCRIPTION 11 INTRODUCTION 11 POWER UP CONFIGURATION 12 CONTROL INTERFACE OPERATION 14 HARDWARE CONTRO...

Страница 3: ...Top View ORDERING INFORMATION DEVICE TEMPERATURE RANGE PACKAGE MOISTURE SENSITIVITY LEVEL PEAK SOLDERING TEMPERATURE WM8804GEDS 25 to 85o C 20 lead SSOP Pb free MSL1 260o C WM8804GEDS R 25 to 85o C 2...

Страница 4: ...rol mode or 2 wire software control Mode See note 2 6 RESETB Digital Input System reset active low 7 PVDD Supply PLL core supply 8 PGND Supply PLL ground 9 CLKOUT Digital Out High drive clock output a...

Страница 5: ...ure Sensitivity to determine acceptable storage conditions prior to surface mount assembly These levels are MSL1 unlimited floor life at 30 C 85 Relative Humidity Not normally stored in moisture barri...

Страница 6: ...3V 14 9 mA PLL supply current IPVDD PVDD 3 3V 1 7 mA Power Consumption DVDD PVDD 3 3V 54 8 mW Standby Power Consumption DVDD PVDD 3 3V Device powered down 0 11 mW ELECTRICAL CHARACTERISTICS Test Cond...

Страница 7: ...th low tMLCKL 11 ns MCLK Duty cycle 40 60 60 40 Table 1 Master Clock Timing Requirements DIGITAL AUDIO INTERFACE MASTER MODE BCLK DOUT LRCLK tDL DIN tDDA tDHT tDST Figure 2 Digital Audio Data Timing M...

Страница 8: ...stated PARAMETER SYMBOL TEST CONDITIONS MIN TYP MAX UNIT Audio Data Input Timing Information BCLK cycle time tBCY 50 ns BCLK pulse width high tBCH 20 ns BCLK pulse width low tBCL 20 ns LRCLK set up t...

Страница 9: ...TYP MAX UNIT Program Register Input Information SCLK rising edge to CSB rising edge tSCS 60 ns SCLK cycle time tSCY 80 ns SCLK duty cycle 40 60 60 40 SDIN to SCLK set up time tDSU 20 ns SDIN hold time...

Страница 10: ...ess stated PARAMETER SYMBOL MIN TYP MAX UNIT Program Register Input Information SCLK cycle time tSCY 2500 ns SCLK duty cycle 40 60 60 40 SCLK frequency 400 kHz Hold Time Start Condition tSTHO 600 ns S...

Страница 11: ...onfigured to output all standard MCLK frequencies or it can be configured to maintain the frequency of the last received S PDIF data stream The transmitter generates S PDIF frames where audio data may...

Страница 12: ...rs Table 6 summarises the configuration options HW RESET 0 HW RESET 1 SWMODE HWMODE SWMODE HWMODE SDIN HWMODE SWMODE Select SDIN N A SCLK N A AIF_MS SCLK GPO TRANS_ERR 2 wire 3 wire SDOUT N A AIF_CONF...

Страница 13: ...efault and must be powered up individually by writing to the relevant bits of the PWRDN register Table 7 In hardware control mode all functions of the device are powered up by default REGISTER ADDRESS...

Страница 14: ...he GPO0 SWIFMODE pin on power up or at a hardware reset If the GPO0 SWIFMODE pin is low the interface is configured in 2 wire mode otherwise the interface is configured in 3 wire SPI compatible mode G...

Страница 15: ...register bits This 3 wire interface read back method using a write access is shown in Figure 9 REGISTER ADDRESS BIT LABEL DEFAULT DESCRIPTION 2 0 READMUX 2 0 000 Status Register Select Determines whic...

Страница 16: ...ss does not match that of the WM8804 the device returns to the idle condition and waits for a new start condition and valid address Once the WM8804 has acknowledged a matching address the controller s...

Страница 17: ...ontroller will issue a repeated start condition and resend the device address along with a read bit The WM8804 will acknowledge this and the WM8804 will become a slave transmitter The WM8804 will tran...

Страница 18: ...in either software or hardware control modes The method of control is determined by sampling the state of the SDIN pin during power up or hard reset If SDIN is LOW during power up or hardware reset th...

Страница 19: ...e However in hardware control mode both sides of the interface are combined and the configuration is set using SDOUT and GPO0 pins as described in Table 6 and Table 16 Note that AIF_CONF 1 0 configure...

Страница 20: ...prior to changing the TXSRC control register and powered up again once the routing path has been changed REGISTER ADDRESS BIT LABEL DEFAULT DESCRIPTION R30 PWRDN 1Eh 2 SPDIFTXPD 1 S PDIF Transmitter P...

Страница 21: ...function of the oscillator is to generate the oscillator clock OSCCLK for the PLL input Whenever the PLL or the S PDIF receiver is enabled the oscillator must be used to generate the OSCCLK signal fo...

Страница 22: ...ration S PDIF Receive Mode Automatic PLL Mode Selected if S PDIF Receiver Enabled In S PDIF receive mode the PLL is automatically controlled by the S PDIF receiver to allow the receiver to use the PLL...

Страница 23: ...8 and K is configured to provide a multiplication factor of 0 192 the overall multiplication factor is 8 0 192 8 192 In order to choose and configure the correct values for PLL_N and PLL_K multiplica...

Страница 24: ...ormance when the f2 clock is between 90 and 100MHz The necessary MCLK frequency is 12 288MHz Choose MCLKDIV and FREQMODE values to set the f2 frequency in the range of 90 to 100MHz In this case the de...

Страница 25: ...ples When considering settings not shown in this table the key configuration parameters which must be selected for optimum operation are 90MHz f2 100MHz 5 PLL_N 13 OSCCLOCK 10 to 14 4MHz or 16 28 to 2...

Страница 26: ...OR F2 TO CLK2 DIVISION FACTOR CLKOUTDIV 1 0 MCLKDIV FREQMODE 1 0 00 01 10 11 0 1 00 2 2 4 8 2 4 01 2 4 8 16 4 8 10 4 8 16 32 8 16 11 6 12 24 48 12 24 Table 27 PLL User Mode Clock Divider Configuration...

Страница 27: ...ta SPDIFTXCLK Source MCLK Input Output Signal at MCLK Pin Table 30 S PDIF Transmitter Data MCLK Source Control The S PDIF transmitter requires a clock reference signal either CLK2 or MCLK when enabled...

Страница 28: ...Configuration section for details regarding how to calculate alternative settings OSC CLK MHz PRE SCALE S PDIF RECEIVER SAMPLE RATE S kHz F1 MHz F2 MHz R PLL_N Hex PLL_K Hex COMMENT 11 2896 0 32 44 1...

Страница 29: ...y different The setting up of these different configurations are described in the following paragraphs 176 4KHZ OR 192K MODE ENABLE The difference between a sample rate of 176 4kHz and 192kHz requires...

Страница 30: ...be used Note also that the SPD_192K_EN register bit is set by default thus supporting 192kHz sampling rate The clock source for the S PDIF transmitter is selected by TXSRC which is latched from the C...

Страница 31: ...0 is defined by TXVAL_SF0 validity bit transmitted for subframe 1 is defined by TXVAL_SF1 6 TXSRC 1 S PDIF Transmitter Data Source 0 S PDIF received data 1 Audio interface received data R21 SPDTX4 15...

Страница 32: ...ty for data as a means of basic error detection It is generated by the transmitter REGISTER ADDRESS BIT LABEL CHANNEL STATUS BIT DEFAULT DESCRIPTION 0 CON PRO 0 0 Use Of Channel Status Block 0 Consume...

Страница 33: ...Function 00 Do not use channel number 01 Send to Left Channel 10 Send to Right Channel R20 SPDTX3 14h 7 6 CHNUM2 1 0 21 20 23 22 00 11 Do not use channel number Table 36 S PDIF Transmitter Channel St...

Страница 34: ...EIVER The S PDIF receiver has one input This input can be configured as either single ended CMOS or as a 500mVp p comparator input depending upon the state of the SPDIFINMODE register The S PDIF recei...

Страница 35: ...cation using the WL_MASK In this case all 24 bits of data received are transferred The audio data sample can be transferred to either the AIF or the SPDIF Tx When the audio data sample is transferred...

Страница 36: ...7 6 CHSTMODE 1 0 7 6 00 Channel Status Mode 00 Only valid mode for consumer applications Table 40 S PDIF Receiver Channel Status Register 1 REGISTER ADDRESS BIT LABEL CHANNEL STATUS BIT DEFAULT DESCR...

Страница 37: ...ption of bits 3 1 of this register Audio Sample Word Length 000 Word length not indicated RXWL 2 0 MAXWL 1 MAXWL 0 001 20 bits 16 bits 010 22 bits 18 bits 100 23 bits 19 bits 101 24 bits 20 bits 110 2...

Страница 38: ...egister PCM_N Non PCM Flag Indicates that non audio code defined in IEC 61937 has been detected 0 Sync code not detected 1 Sync code detected received data is not audio PCM S PDIF Status Register ZERO...

Страница 39: ...med transmitted from the digital audio interface When WITHFLAG is set to 1 With Flags mode is enabled and the flags in Table 47 are appended to the LSB of the audio sample If WITHFLAG is set to 0 With...

Страница 40: ...in asserted until they are cleared by reading the Interrupt Status Register REGISTER ADDRESS BIT LABEL DEFAULT DESCRIPTION 0 UPD_UNLOCK UNLOCK update signal 0 INT_N not caused by a toggle of UNLOCK fl...

Страница 41: ...ecovered Frequency Flag Indicates recovered S PDIF clock frequency 00 192kHz 01 96kHz or 88 2kHz 10 48kHz or 44 1kHz 11 32kHz R12 SPDSTAT 0Ch read only 6 UNLOCK Unlock Flag Indicates that the S PDIF R...

Страница 42: ...ation processor is not being interrupted via the INT_N signal leaving the WM8804 to handle the error condition If the TRANS_ERR and INVALID error flags are masked using the MASK register the WM8804 ou...

Страница 43: ...ad does not contain audio PCM data NON_AUDIO data is indicated by a logical OR of the AUDIO_N and PCM_N flags Any change of AUDIO_N or PCM_N status will cause an INT_N interrupt UPD_NON_AUDIO to be ge...

Страница 44: ...e Table 56 In master mode AIF_MS 1 LRCLK and BCLK are generated by the WM8804 As in slave mode DIN is sampled on the rising edge of BCLK and DOUT changes on the falling edge of BCLK and the polarity o...

Страница 45: ...gh for a minimum of n BCLKs and low for a minimum of n BCLKs where n is the number of bits in an audio word Any mark to space ratio on LRCLK is acceptable provided the above requirements are met The d...

Страница 46: ...LEFT CHANNEL RIGHT CHANNEL LRCLK BCLK DIN DOUT 1 fs n 3 2 1 n 2 n 1 LSB MSB n 3 2 1 n 2 n 1 LSB MSB Figure 19 Right Justified Mode I 2 S MODE In I2 S Mode the MSB of DIN is sampled by the WM8804 on t...

Страница 47: ...ata Figure 21 LRCLK BCLK DIN DOUT Input Word Length IWL 1 fs LEFT n 2 1 n 1 LSB MSB n 2 1 n 1 RIGHT NO VALID DATA 1 BCLK 1 BCLK Figure 21 DSP Mode A DSP MODE B In DSP Mode B the MSB of the left channe...

Страница 48: ...status flags within the audio sample for each audio data format when With Flags Mode is enabled With Flags Mode is only available on pin DOUT The WM8804 does not support Right Justified 24 Bit With F...

Страница 49: ...Production Data WM8804 w PD Rev 4 1 September 2007 49 Figure 26 DSP Mode A With Flags Figure 27 DSP Mode B With Flags...

Страница 50: ...ight justified mode 3 2 AIFTX_WL 1 0 01 Audio Data Word Length 11 24 bits see notes 1 2 3 6 10 24 bits see notes 1 2 3 6 01 20 bits 00 16 bits 4 AIFTX_BCP 0 BCLK invert for master and slave modes 0 BC...

Страница 51: ...exactly 32 BCLK cycles occur in one LRCLK 16 high 16 low the chip will auto detect and operate in 16 bit data word length mode Note 3 24 bit Right Justified With Flags Mode is not supported Note 4 Mus...

Страница 52: ...LKOUTSRC 0 0 0 00011000 R9 SPDMODE 09 1 1 1 1 1 1 1 SPDIFINMODE 11111111 R10 INTMASK 0A MASK 7 0 00000000 R11 INTSTAT 0B Interrupt Status read only R12 SPDSTAT 0C S PDIF Status read only R13 RXCHAN1 0...

Страница 53: ...N 3 0 0111 Integer N part of PLL frequency ratio R Use values in the range 5 PLL_N 13 as close as possible to 8 Note PLL_N must be set to specific values when the S PDIF receiver is used Refer to S PD...

Страница 54: ...r MCLKDIV configuration in PLL user mode See Table 28 for MCLKDIV configuration in PLL S PDIF receive mode 5 4 CLKOUTDIV 1 0 01 CLKOUT Divider Select Only valid when CLK1 is selected as CLKOUT output...

Страница 55: ...F specification IEC 60958 3 for full details R10 INTMASK 0Ah 7 0 MASK 7 0 00000000 Interrupt Mask Enable When a flag is masked it does not update the Interrupt Status Register or cause an INT_N interr...

Страница 56: ...toggle of CPY_N flag 1 INT_N caused a toggle of CPY_N flag 6 UPD_DEEMPH DEEMPH Update Signal 0 INT_N not caused by a toggle of DEEMPH flag 1 INT_N caused by a toggle of DEEMPH flag R11 INTSTAT 0Bh rea...

Страница 57: ...is not asserted for Rx data 3 DEEMPH 0 Additional Format Information 0 Recovered S PDIF data has no pre emphasis 1 Recovered S PDIF data has pre emphasis 5 4 Reserved 00 Reserved for additional de emp...

Страница 58: ...3 0 0000 Original Sampling Frequency Refer to S PDIF specification IEC 60958 3 for full details 0 CON PRO 0 Use Of Channel Status Block 0 Consumer Mode 1 Professional Mode not supported by WM8804 1 A...

Страница 59: ...CLKACU 1 0 11 Clock Accuracy of Transmitted Clock 00 Level II 01 Level I 10 Level III 11 Interface frame rate not matched to sampling frequency 6 TXSRC 1 S PDIF Transmitter Data Source 0 S PDIF Receiv...

Страница 60: ...mode 10 I2 S mode 01 Left justified mode 00 Right justified mode 3 2 AIFTX_WL 1 0 01 Audio Data Word Length Select 11 24 bits 10 24 bits 01 20 bits 00 16 bits 4 AIFTX_BCP 0 BCLK Invert for master and...

Страница 61: ...nel Status Register 2 011 Channel Status Register 3 100 Channel Status Register 4 101 Channel Status Register 5 110 S PDIF Status Register 3 CONT 0 Continuous Read Enable 0 Continuous read back mode d...

Страница 62: ...Powerdown 0 S PDIF receiver enabled 1 S PDIF receiver disabled 2 SPDIFTXPD 1 S PDIF Transmitter Powerdown 0 S PDIF transmitter enabled 1 S PDIF transmitter disabled 3 OSCPD 0 Oscillator Power down 0...

Страница 63: ...Production Data WM8804 w PD Rev 4 1 September 2007 63 APPLICATIONS INFORMATION RECOMMENDED EXTERNAL COMPONENTS Figure 28 Recommended External Components for Hardware Control Mode...

Страница 64: ...WM8804 Production Data w PD Rev 4 1 September 2007 64 Figure 29 Recommended External Components for Software Control Mode...

Страница 65: ...XCEED 0 20MM D MEETS JEDEC 95 MO 150 VARIATION AE REFER TO THIS SPECIFICATION FOR FURTHER DETAILS DM0015 C DS 20 PIN SSOP 7 2 x 5 3 x 1 75 mm Symbols Dimensions mm MIN NOM MAX A 2 0 A1 0 05 A2 1 65 1...

Страница 66: ...ms where malfunction can reasonably be expected to result in personal injury death or severe property or environmental damage Any use of products by the customer for such purposes is at the customer s...

Отзывы: