Datasheet
2011 Microchip Technology Inc. DS39762F-page 49
PIC18F97J60 FAMILY
3.0 OSCILLATOR
CONFIGURATIONS
3.1 Overview
Devices in the PIC18F97J60 family incorporate an
oscillator and microcontroller clock system that differs
from standard PIC18FXXJXX devices. The addition of
the Ethernet module, with its requirement for a stable
25 MHz clock source, makes it necessary to provide a
primary oscillator that can provide this frequency as
well as a range of different microcontroller clock
speeds. An overview of the oscillator structure is shown
in Figure 3-1.
Other oscillator features used in PIC18FXXJXX
enhanced microcontrollers, such as the internal RC
oscillator and clock switching, remain the same. They
are discussed later in this chapter.
3.2 Oscillator Types
The PIC18F97J60 family of devices can be operated in
five different oscillator modes:
1. HS High-Speed Crystal/Resonator
2. HSPLL High-Speed Crystal/Resonator
with Software PLL Control
3. EC External Clock with F
OSC/4 Output
4. ECPLL External Clock with Software PLL
Control
5. INTRC Internal 31 kHz Oscillator
3.2.1 OSCILLATOR CONTROL
The oscillator mode is selected by programming the
FOSC<2:0> Configuration bits. FOSC<1:0> bits select
the default primary oscillator modes, while FOSC2
selects when INTRC may be invoked.
The OSCCON register (Register 3-2) selects the Active
Clock mode. It is primarily used in controlling clock
switching in power-managed modes. Its use is discussed
in Section 3.7.1 “Oscillator Control Register”.
The OSCTUNE register (Register 3-1) is used to select
the system clock frequency from the primary oscillator
source by selecting combinations of prescaler/postscaler
settings and enabling the PLL. Its use is described in
Section 3.6.1 “PLL Block”.
FIGURE 3-1: PIC18F97J60 FAMILY CLOCK DIAGRAM
PIC18F97J60 Family
5x PLL
FOSC<2:0>
Secondary Oscillator
T1OSCEN
Enable
Oscillator
T1OSO
T1OSI
Clock Source Option
for Other Modules
OSC1
OSC2
Sleep
Primary Oscillator
T1OSC
CPU
Peripherals
IDLEN
MUX
INTRC
Source
WDT, PWRT, FSCM
Internal Oscillator
Clock
Control
OSCCON<1:0>
and Two-Speed Start-up
Ethernet Clock
Prescaler
Postscaler
PLL/Prescaler/Postscaler
PLL
OSCTUNE<7:5>
(1)
PLL
EC, HS, ECPLL, HSPLL
Note 1: See Table 3-2 for OSCTUNE register configurations and their corresponding frequencies.