English
Language : 

PIC24FJ256GB106-I Datasheet, PDF (118/328 Pages) Microchip Technology – 64/80/100-Pin, 16-Bit Flash Microcontrollers with USB On-The-Go (OTG)
PIC24FJ256GB110 FAMILY
7.5 Oscillator Modes and USB
Operation
Because of the timing requirements imposed by USB,
an internal clock of 48 MHz is required at all times while
the USB module is enabled. Since this is well beyond
the maximum CPU clock speed, a method is provided
to internally generate both the USB and system clocks
from a single oscillator source. PIC24FJ256GB110
family devices use the same clock structure as other
PIC24FJ devices, but include a two-branch PLL system
to generate the two clock signals.
The USB PLL block is shown in Figure 7-2. In this
system, the input from the primary oscillator is divided
down by a PLL prescaler to generate a 4 MHz output.
This is used to drive an on-chip 96 MHz PLL frequency
multiplier to drive the two clock branches. One branch
uses a fixed divide-by-2 frequency divider to generate
the 48 MHz USB clock. The other branch uses a fixed
divide-by-3 frequency divider and configurable PLL
prescaler/divider to generate a range of system clock
frequencies. The CPDIV bits select the system clock
speed; available clock options are listed in Table 7-2.
The USB PLL prescaler does not automatically sense
the incoming oscillator frequency. The user must man-
ually configure the PLL divider to generate the required
4 MHz output, using the PLLDIV2:PLLDIV0 Configura-
tion bits. This limits the choices for primary oscillator
frequency to a total of 8 possibilities, shown in
Table 7-3.
TABLE 7-2: SYSTEM CLOCK OPTIONS
DURING USB OPERATION
MCU Clock Division
(CPDIV1:CPDIV0)
Microcontroller
Clock Frequency
None (00)
÷2 (01)
÷4 (10)
÷8 (11)
32 MHz
16 MHz
8 MHz
4 MHz
TABLE 7-3:
VALID PRIMARY
OSCILLATOR
CONFIGURATIONS FOR USB
OPERATIONS
Input Oscillator
Frequency
Clock Mode
PLL Division
(PLLDIV2:
PLLDIV0)
48 MHz
40 MHz
24 MHz
20 MHz
16 MHz
12 MHz
8 MHz
4 MHz
ECPLL
ECPLL
HSPLL, ECPLL
HSPLL, ECPLL
HSPLL, ECPLL
HSPLL, ECPLL
HSPLL, ECPLL
HSPLL, ECPLL,
XTPLL
÷12 (111)
÷10 (110)
÷6 (101)
÷5 (100)
÷4 (011)
÷3 (010)
÷2 (001)
÷1 (000)
FIGURE 7-2:
USB PLL BLOCK
FNOSC2:FNOSC0
Input from
POSC
Input from
FRC
(4 MHz or
8 MHz)
PLLDIV2:PLLDIV0
÷ 12
÷ 10
÷6
÷5
÷4
÷3
÷2
÷1
111
110
101
100 4 MHz
011
010
001
000
96 MHz
PLL
÷2
32 MHz
÷3
48 MHz Clock
for USB Module
÷ 8 11
÷4
÷2
10
01
÷1
00
PLL Output
for System Clock
CPDIV1:CPDIV0
DS39897B-page 116
Preliminary
© 2008 Microchip Technology Inc.