|
70291E Datasheet, PDF (147/436 Pages) Microchip Technology – High-Performance, 16-bit Digital Signal Controllers | |||
|
◁ |
dsPIC33FJ32MC302/304, dsPIC33FJ64MCX02/X04 AND dsPIC33FJ128MCX02/X04
9.1.4 PLL CONFIGURATION
The primary oscillator and internal FRC oscillator can
optionally use an on-chip PLL to obtain higher speeds
of operation. The PLL provides significant flexibility in
selecting the device operating speed. A block diagram
of the PLL is shown in Figure 9-2.
The output of the primary oscillator or FRC, denoted as
âFINâ, is divided down by a prescale factor (N1) of 2, 3,
... or 33 before being provided to the PLLâs Voltage
Controlled Oscillator (VCO). The input to the VCO must
be selected in the range of 0.8 MHz to 8 MHz. The
prescale factor âN1â is selected using the
PLLPRE<4:0> bits (CLKDIV<4:0>).
The PLL Feedback Divisor, selected using the
PLLDIV<8:0> bits (PLLFBD<8:0>), provides a factor âM,â
by which the input to the VCO is multiplied. This factor
must be selected such that the resulting VCO output
frequency is in the range of 100 MHz to 200 MHz.
The VCO output is further divided by a postscale factor
âN2.â This factor is selected using the PLLPOST<1:0>
bits (CLKDIV<7:6>). âN2â can be either 2, 4 or 8, and
must be selected such that the PLL output frequency
(FOSC) is in the range of 12.5 MHz to 80 MHz, which
generates device operating speeds of 6.25-40 MIPS.
For a primary oscillator or FRC oscillator, output âFINâ,
the PLL output âFOSCâ is given by:
EQUATION 9-2: FOSC CALCULATION
FOSC
=
FI
N
â¢
â
â
N-----1---M-â¢-----N----2-â â
For example, suppose a 10 MHz crystal is being used
with the selected oscillator mode of XT with PLL.
⢠If PLLPRE<4:0> = 0, then N1 = 2. This yields a
VCO input of 10/2 = 5 MHz, which is within the
acceptable range of 0.8 MHz - 8 MHz.
⢠If PLLDIV<8:0> = 0x1E, then
M = 32. This yields a VCO output of 5 x 32 = 160
MHz, which is within the 100 MHz - 200 MHz
ranged needed.
⢠If PLLPOST<1:0> = 0, then N2 = 2. This provides
a Fosc of 160/2 = 80 MHz. The resultant device
operating speed is 80/2 = 40 MIPS.
EQUATION 9-3: XT WITH PLL MODE
EXAMPLE
FCY
=
-F----O---S---C--
2
=
1--
2
â
â
1---0---0---0----02---0-â¢-0---20-----â¢----3---2--â â
= 40MIPS
FIGURE 9-2:
dsPIC33FJ32MC302/304, dsPIC33FJ64MCX02/X04 AND dsPIC33FJ128MCX02/
X04 PLL BLOCK DIAGRAM
(1)
0.8-8.0 MHz
FVCO
100-200 MHz(1)
12.5-80 MHz(1)
Source (Crystal, External Clock
or Internal RC)
PLLPRE
X
N1
Divide by
2-33
VCO
PLLDIV
M
Divide by
2-513
Note 1: This frequency range must be satisfied at all times.
PLLPOST
N2
Divide by
2, 4, 8
FOSC
© 2011 Microchip Technology Inc.
DS70291E-page 147
|
▷ |