Microchip Technology AC244045 Data Sheet

Page of 302
PIC16F72X/PIC16LF72X
DS41341E-page 90
© 2009 Microchip Technology Inc.
7.2
Clock Source Modes
Clock source modes can be classified as external or
internal.
• Internal clock source (INTOSC) is contained 
within the oscillator module and derived from a 
500 kHz high precision oscillator. The oscillator 
module has eight selectable output frequencies, 
with a maximum internal frequency of 16 MHz.
• External clock modes rely on external circuitry for 
the clock source. Examples are: oscillator mod-
ules (EC mode), quartz crystal resonators or 
ceramic resonators (LP, XT and HS modes) and 
Resistor-Capacitor (RC) mode circuits.
The system clock can be selected between external or
internal clock sources via the FOSC bits of the
Configuration Word 1.
7.3
Internal Clock Modes
The oscillator module has eight output frequencies
derived from a 500 kHz high precision oscillator. The
IRCF bits of the OSCCON register select the
postscaler applied to the clock source dividing the
frequency by 1, 2, 4 or 8. Setting the PLLEN bit of the
Configuration Word 1 locks the internal clock source to
16 MHz before the postscaler is selected by the IRCF
bits. The PLLEN bit must be set or cleared at the time
of programming; therefore, only the upper or low four
clock source frequencies are selectable in software.
7.3.1
INTOSC AND INTOSCIO MODES
The INTOSC and INTOSCIO modes configure the
internal oscillators as the system clock source when
the device is programmed using the oscillator selection
or the FOSC<2:0> bits in the CONFIG1 register. See
Section 8.0 “Device Configuration” for more
information.
In INTOSC mode, OSC1/CLKIN is available for general
purpose I/O. OSC2/CLKOUT outputs the selected
internal oscillator frequency divided by 4. The CLKOUT
signal may be used to provide a clock for external
circuitry, synchronization, calibration, test or other
application requirements.
In INTOSCIO mode, OSC1/CLKIN and
OSC2/CLKOUT are available for general purpose I/O.
7.3.2
FREQUENCY SELECT BITS (IRCF)
The output of the 500 kHz INTOSC and 16 MHz
INTOSC, with Phase Locked Loop enabled, connect to
a postscaler and multiplexer (see Figure 7-1). The
Internal Oscillator Frequency Select bits (IRCF) of the
OSCCON register select the frequency output of the
internal oscillator. Depending upon the PLLEN bit, one
of four frequencies of two frequency sets can be
selected via software:
If PLLEN = 1, frequency selection is as follows:
• 16  MHz
• 8 MHz (Default after Reset)
• 4  MHz
• 2  MHz
If PLLEN = 0, frequency selection is as follows:
• 500  kHz
• 250 kHz (Default after Reset)
• 125  kHz
• 62.5  kHz
There is no start-up delay before a new frequency
selected in the IRCF bits takes effect. This is because
the old and new frequencies are derived from INTOSC
via the postscaler and multiplexer.
Start-up delay specifications are located in the
Table 23-2 in Section 23.0 “Electrical
Specifications”
.
Note:
Following any Reset, the IRCF<1:0> bits of
the OSCCON register are set to ‘10’ and
the frequency selection is set to 8 MHz or
250 kHz. The user can modify the IRCF
bits to select a different frequency.