WM8521 Production Data
w
PD, Rev 4.2, February 2013
10
CLOCKING SCHEMES
In a typical digital audio system there is only one central clock source producing a reference clock to
which all audio data processing is synchronised. This clock is often referred to as the audio systems
Master Clock. The external master clock can be applied directly through the MCLK input pin with no
configuration necessary for sample rate selection.
Note that on the WM8521, MCLK is used to derive clocks for the DAC path. The DAC path is affected
by DAC sampling clock, DAC digital filter clock and DAC digital audio interface timing. In a system
where there are a number of possible sources for the reference clock it is recommended that the
clock source with the lowest jitter be used to optimise the performance of the DAC.
The device can be reset by stopping MCLK. In this state the power consumption is substantially
reduced.
DIGITAL AUDIO INTERFACE
Audio data is applied to the internal DAC filters via the Digital Audio Interface. Three interface
formats are supported:
I
2
S mode
Right Justified mode
DSP mode
All formats send the MSB first. The data format is selected with the FORMAT pin. When FORMAT is
LOW, right justified data format is selected and word lengths up to 16-bits may be used. If a word
length shorter than 16-bits is used, the unused bits should be padded with zeroes. When the
FORMAT pin is HIGH, I
2
S format is selected and word length of any value up to 32-bits may be used.
Unless in 16-bit packed mode, if a word length shorter than 24-bits is used, the unused bits should
be padded with zeros. If LRCLK is 4 BCLKs or less duration, the 16bit DSP compatible format is
selected. Mode A and B clock formats are supported, selected by the state of the FORMAT pin.
I
2
S MODE INPUT FORMAT
The WM8521 supports word lengths of 16-32 bits in I
2
S mode.
In I
2
S mode, the digital audio interface receives data on the DIN input. Audio Data is time multiplexed
with LRCLK indicating whether the left or right channel is present. LRCLK is also used as a timing
reference to indicate the beginning or end of the data words.
25-32 bits: LRCLK must be high for a minimum of data wordlength BCLKs and low for a minimum of
data wordlength BCLKs. The LSBs will be truncated and the most significant 24 bits will be used by
the internal processing.
24 bits: LRCLK must be high for a minimum of 24 BCLKs and low for a minimum of 24 BCLKs.
17-23 bits: Data must be zero padded to 24 bits and LRCLK must be high for a minimum of 24 BCLKs
and low for a minimum of 24 BCLKs.
Up to 16 bits: EITHER data must be zero padded to 24 bits and LRCLK must be high for minimum 24
BCLKs and low for 24 BCLKs,
OR data must be zero padded to 16 bits and LRCLK must be high for exactly 16 BCLKs and low for
exactly 16 BCLKs. The device auto-detects this 16-bit packed mode and switches to 16-bit data
length.
Any mark to space ratio on LRCLK is acceptable provided the above requirements are met.
Production Data WM8521
w
PD, Rev 4.2, February 2013
11
In I
2
S mode, the MSB is sampled on the second rising edge of BCLK following a LRCLK transition.
LRCLK is low during the left samples and high during the right samples.
MSB
RIGHT CHANNELLEFT CHANNEL
LRCLK
BCLK
DIN
3
312 312nn-2 n-1 nn-2 n-1
1 BCLK 1 BCLK
LSB MSB
LSB
1/fs
Figure 3 I
2
S Mode Timing Diagram
RIGHT JUSTIFIED MODE INPUT FORMAT
The WM8521 supports word lengths of up to 16-bits in right justified mode. If a word length shorter
than 16-bits is used, the unused bits should be padded with zeroes.
In right justified mode, LRCLK must be high for a minimum of 16 BCLKs and low for a minimum of 16
BCLKs. Any mark to space ratio on LRCLK is acceptable provided the above requirement is met.
The digital audio interface receives data on the DIN input. Audio Data is time multiplexed with LRCLK
indicating whether the left or right channel is present. LRCLK is also used as a timing reference to
indicate the beginning or end of the data words.
In right justified mode, the LSB is sampled on the rising edge of BCLK preceding a LRCLK transition.
LRCLK is high during the left samples and low during the right samples.
RIGHT CHANNELLEFT CHANNEL
LRCLK
BCLK
DIN
1/fs
MSB
3312 14 15 16
LSB MSB
3312 14 15 16
LSB
Figure 4 Right Justified Mode Timing Diagram
DSP MODE INPUT FORMAT
A DSP compatible, time division multiplexed format is also supported by the WM8521.
This format is of the type where a synch pulse is followed by two data words (left and right) of 16 bit
word length. The synch pulse replaces the normal duration LRCLK, and DSP mode is auto-detected
by the shorter than normal duration of the LRCLK. If LRCLK is of 4 BCLK or less duration, the DSP
compatible format is selected. Mode A and Mode B formats are supported, selected by the state of
the FORMAT pin.
WM8521 Production Data
w
PD, Rev 4.2, February 2013
12
RIGHT CHANNELLEFT CHANNEL
LRCLK
BCLK
DIN
1/fs
MSB
12 15 16
LSB
12 15 16
MSB
1
Max 4 BCLKs
NO VALID DATA
Input Word Length (16 bits)
Figure 5 DSP Timing Mode B
RIGHT CHANNELLEFT CHANNEL
LRCLK
BCLK
DIN
1/fs
MSB
12 15 16
LSB
12 15 16
Max 4 BCLKs
NO VALID DATA
Input Word Length (16 bits)
1 BCLK 1 BCLK
Figure 6 DSP Timing Mode A
AUDIO DATA SAMPLING RATES
The master clock for WM8521 supports audio sampling rates from 256fs to 768fs, where fs is the
audio sampling frequency (LRCLK) typically 32kHz, 44.1kHz, 48kHz, 96kHz or 192kHz. The master
clock is used to operate the digital filters and the noise shaping circuits.
The WM8521 has a master clock detection circuit that automatically determines the relationship
between the master clock frequency and the sampling rate (to within +/- 32 master clocks). If there is
a greater than 32 clocks error, the master clock defaults to 768fs. The master clock should be
synchronised with LRCLK, although the WM8521 is tolerant of phase differences or jitter on this
clock.
SAMPLING
RATE
(LRCLK)
MASTER CLOCK FREQUENCY (MHz) (MCLK)
128fs 192fs 256fs 384fs 512fs 768fs
32kHz 4.096 6.144 8.192 12.288 16.384 24.576
44.1kHz 5.6448 8.467 11.2896 16.9344 22.5792 33.8688
48kHz 6.144 9.216 12.288 18.432 24.576 36.864
96kHz 12.288 18.432 24.576 36.864 Unavailable Unavailable
192kHz 24.576 36.864 Unavailable Unavailable Unavailable Unavailable
Table 1 Master Clock Frequencies Versus Sampling Rate
Note:
For sample rates down to 8k, scale MCLK accordingly.

WM8521CH9GED/R

Mfr. #:
Manufacturer:
Cirrus Logic
Description:
Audio D/A Converter ICs Stereo DAC, 2Vrms
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet