PIC18F23K20-E/MLQTP MICROCHIP [Microchip Technology], PIC18F23K20-E/MLQTP Datasheet - Page 30

no-image

PIC18F23K20-E/MLQTP

Manufacturer Part Number
PIC18F23K20-E/MLQTP
Description
28/40/44-Pin Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC18F2XK20/4XK20
2.3
Clock Source modes can be classified as external or
internal.
• External Clock modes rely on external circuitry for
• Internal clock sources are contained internally
The system clock can be selected between external or
internal clock sources via the System Clock Select
(SCS<1:0>) bits of the OSCCON register. See
Section 2.9 “Clock Switching” for additional informa-
tion.
TABLE 2-1:
2.4.2
The External Clock (EC) mode allows an externally
generated logic level as the system clock source. When
operating in this mode, an external clock source is
connected to the OSC1 input and the OSC2 is available
for general purpose I/O. Figure 2-2 shows the pin
connections for EC mode.
The Oscillator Start-up Timer (OST) is disabled when
EC mode is selected. Therefore, there is no delay in
operation after a Power-on Reset (POR) or wake-up
from Sleep. Because the PIC
static, stopping the external clock input will have the
effect of halting the device while leaving all data intact.
Upon restarting the external clock, the device will
resume operation as if no time had elapsed.
DS41303B-page 28
the clock source. Examples are: Clock modules
(EC mode), quartz crystal resonators or ceramic
resonators (LP, XT and HS modes) and Resistor-
Capacitor (RC mode) circuits.
within the Oscillator block. The Oscillator block
has two internal oscillators: the 16 MHz High-
Frequency Internal Oscillator (HFINTOSC) and
the 31 kHz Low-Frequency Internal Oscillator
(LFINTOSC).
LFINTOSC (31 kHz)
LFINTOSC (31 kHz)
Switch From
Sleep/POR
Sleep/POR
Sleep/POR
Sleep/POR
Clock Source Modes
EC MODE
OSCILLATOR DELAY EXAMPLES
®
MCU design is fully
HFINTOSC
HFINTOSC
LFINTOSC
Switch To
LP, XT, HS
EC, RC
EC, RC
HSPLL
Advance Information
250 kHz to 16 MHz
250 kHz to 16 MHz
32 MHz to 64 MHz
32 kHz to 40 MHz
DC – 64 MHz
DC – 64 MHz
Frequency
31 kHz
2.4
2.4.1
When the Oscillator module is configured for LP, XT or
HS modes, the Oscillator Start-up Timer (OST) counts
1024 oscillations from OSC1. This occurs following a
Power-on Reset (POR) and when the Power-up Timer
(PWRT) has expired (if configured), or a wake-up from
Sleep. During this time, the program counter does not
increment and program execution is suspended. The
OST ensures that the oscillator circuit, using a quartz
crystal resonator or ceramic resonator, has started and
is providing a stable system clock to the Oscillator
module. When switching between clock sources, a
delay is required to allow the new clock to stabilize.
These oscillator delays are shown in Table 2-1.
In order to minimize latency between external oscillator
start-up and code execution, the Two-Speed Clock
Start-up mode can be selected (see Section 2.10
“Two-Speed Clock Start-up Mode”).
FIGURE 2-2:
Note 1:
Clock from
Ext. System
External Clock Modes
OSCILLATOR START-UP TIMER (OST)
Alternate pin functions are listed in
Section 1.0 “Device Overview”.
Oscillator Warm-Up Delay (T
2 instruction cycles
1 cycle of each
1024 Clock Cycles (OST)
1024 Clock Cycles (OST) + 2 ms
1 μs (approx.)
I/O
EXTERNAL CLOCK (EC)
MODE OPERATION
© 2007 Microchip Technology Inc.
Oscillator Delay
OSC1/CLKIN
OSC2/CLKOUT
PIC
®
MCU
(1)
WARM
)

Related parts for PIC18F23K20-E/MLQTP