WM8940
56
Rev 4.4
MCLK
PLL1
R=f
2
/f
1
f/4
SYSCLK
(=256fs)
CSB/GPIO
f
2
f
1
GPIOSEL
R8[2:1]
...
PLLPRESCALE
R36[5:4]
f/N
MCLKDIV
R6[7:5]
OPCLKDIV
R8[5:4]
ADC
DAC
f/4
MASTER
MODE
FRAME
BCLK
CLKSEL
R6[8]
f/4
BCLKDIV
R6[4:2]
MS
R6[0]
MS
R6[0]
f
PLLOUT
f/N
f*2
f/4
f/2
Figure 30 PLL and Clock Select Circuit
The PLL frequency ratio R = f
2
/f
1
(see Figure 30) can be set using the register bits PLLK and PLLN:
N = int R
K = int (2
24
(R - N))
N controls the ratio of the division, and K the fractional part.
The PLL output then passes through a fixed divide by 4, and can also be further divided by
MCLKDIV[3:0] (see figure 34). The divided clock (SYSCLK) can be used to clock the WM8940 DSP.
REGISTER
ADDRESS
BIT
LABEL
DEFAULT
DESCRIPTION
R36
PLL N value
7
PLL_POWERDOWN
0
PLL POWER
0=ON
1=OFF
6
FRACEN
1
Fractional Divide within the PLL
0=Disabled (Lower Power)
1=Enabled
5:4
PLLPRESCALE
00
00 = MCLK input multiplied by 2
01 = MCLK input not divided
10 = Divide MCLK by 2 before input to
PLL
11 = Divide MCLK by 4 before input to
PLL
3:0
PLLN
1100
Integer (N) part of PLL input/output
frequency ratio. Use values greater
than 5 and less than 13.
R37
PLL K value 1
5:0
PLLK [23:18]
0Ch
Fractional (K) part of PLL1
input/output frequency ratio (treat as
one 24-digit binary number).
R38
PLL K Value 2
8:0
PLLK [17:9]
093h
R39
PLL K Value 3
8:0
PLLK [8:0]
0E9h
Table 47 PLL Frequency Ratio Control