![Microchip Technology PIC12F1501 Скачать руководство пользователя страница 51](http://html1.mh-extra.com/html/microchip-technology/pic12f1501/pic12f1501_manual_1785833051.webp)
PIC16(L)F1508/9
DS40001609E-page 52
2011-2015 Microchip Technology Inc.
5.2.2.4
Peripheral Clock Sources
The clock sources described in this chapter and the
Timer’s are available to different peripherals.
lists the clocks and timers available for each peripheral.
5.2.2.5
Internal Oscillator Frequency
Selection
The system clock speed can be selected via software
using the Internal Oscillator Frequency Select bits
IRCF<3:0> of the OSCCON register.
The postscaled output of the 16 MHz HFINTOSC and
31 kHz LFINTOSC connect to a multiplexer (see
). The Internal Oscillator Frequency Select
bits IRCF<3:0> of the OSCCON register (
select the frequency output of the internal oscillators.
The IRCF<3:0> bits of the OSCCON register allow
duplicate selections for some frequencies. These dupli-
cate choices can offer system design trade-offs. Lower
power consumption can be obtained when changing
oscillator sources for a given frequency. Faster transi-
tion times can be obtained between frequency changes
that use the same oscillator source.
5.2.2.6
Internal Oscillator Clock Switch
Timing
When switching between the HFINTOSC and the
LFINTOSC, the new oscillator may already be shut
down to save power (see
). If this is the case,
there is a delay after the IRCF<3:0> bits of the
OSCCON register are modified before the frequency
selection takes place. The OSCSTAT register will
reflect the current active status of the HFINTOSC and
LFINTOSC oscillators. The sequence of a frequency
selection is as follows:
1.
IRCF<3:0> bits of the OSCCON register are
modified.
2.
If the new clock is shut down, a clock start-up
delay is started.
3.
Clock switch circuitry waits for a falling edge of
the current clock.
4.
The current clock is held low and the clock
switch circuitry waits for a rising edge in the new
clock.
5.
The new clock is now active.
6.
The OSCSTAT register is updated as required.
7.
Clock switch is complete.
See
for more details.
If the internal oscillator speed is switched between two
clocks of the same source, there is no start-up delay
before the new frequency is selected. Clock switching
time delays are shown in
.
Start-up delay specifications are located in
“Oscillator Parameters”.
TABLE 5-1:
PERIPHERAL CLOCK
SOURCES
FO
SC
FRC
HF
INT
O
SC
LF
IN
TO
S
C
TM
R
0
TM
R
1
TM
R
2
SOSC
ADC
●
●
CLC
●
●
●
●
●
●
●
●
COMP
●
●
CWG
●
●
EUSART
●
●
MSSP
●
●
NCO
●
●
PWM
●
●
PWRT
●
TMR0
●
TMR1
●
●
●
TMR2
●
WDT
●
Note:
Following any Reset, the IRCF<3:0> bits
of the OSCCON register are set to ‘
0111
’
and the frequency selection is set to
500 kHz. The user can modify the IRCF
bits to select a different frequency.
Содержание PIC12F1501
Страница 307: ...PIC16 L F1508 9 DS40001609E page 308 2011 2015 Microchip Technology Inc NOTES...
Страница 392: ...2011 2015 Microchip Technology Inc DS40001609E page 393 PIC16 L F1508 9 1RWH 6 7 7 588 8 7...
Страница 399: ...PIC16 L F1508 9 DS40001609E page 400 2011 2015 Microchip Technology Inc NOTES...