PIC18F2221/2321/4221/4321 FAMILY
DS39689F-page 32
2009 Microchip Technology Inc.
3.6
Internal Oscillator Block
The PIC18F2221/2321/4221/4321 family of devices
includes an internal oscillator block which generates
two different clock signals; either can be used as the
microcontroller’s clock source. This may eliminate the
need for external oscillator circuits on the OSC1 and/or
OSC2 pins.
The main output (INTOSC) is an 8 MHz clock source,
which can be used to directly drive the device clock. It
also drives a postscaler, which can provide a range of
clock frequencies from 31 kHz to 4 MHz. The INTOSC
output is enabled when a clock frequency from 125 kHz
to 8 MHz is selected. The INTOSC output can also be
enabled when 31 kHz is selected, depending on the
INTSRC bit (OSCTUNE<7>).
The other clock source is the internal RC oscillator
(INTRC), which provides a nominal 31 kHz output.
INTRC is enabled if it is selected as the device clock
source; it is also enabled automatically when any of the
following are enabled:
Power-up Timer
Fail-Safe Clock Monitor
Watchdog Timer
Two-Speed Start-up
These features are discussed in greater detail in
The clock source frequency (INTOSC direct, INTRC
direct or INTOSC postscaler) is selected by configuring
the IRCF bits of the OSCCON register (page 37).
3.6.1
INTIO MODES
Using the internal oscillator as the clock source elimi-
nates the need for up to two external oscillator pins,
which can then be used for digital I/O. Two distinct
configurations are available:
In INTIO1 mode, the OSC2 pin outputs FOSC/4,
while OSC1 functions as RA7 (see Figure 3-8) for
digital input and output.
In INTIO2 mode, OSC1 functions as RA7 and
OSC2 functions as RA6 (see Figure 3-9), both for
digital input and output.
FIGURE 3-8:
INTIO1 OSCILLATOR MODE
FIGURE 3-9:
INTIO2 OSCILLATOR MODE
3.6.2
INTOSC OUTPUT FREQUENCY
The internal oscillator block is calibrated at the factory
to produce an INTOSC output frequency of 8 MHz.
The INTRC oscillator operates independently of the
INTOSC source. Any changes in INTOSC across
voltage and temperature are not necessarily reflected
by changes in INTRC or vice versa.
3.6.3
OSCTUNE REGISTER
The INTOSC output has been calibrated at the
factory but can be adjusted in the user’s application.
This
is
done
by
writing
to
TUN<4:0>
(OSCTUNE<4:0>)
in
the
OSCTUNE
register
When the OSCTUNE register is modified, the INTOSC
frequency will begin shifting to the new frequency.
Code execution continues during this shift. There is no
indication that the shift has occurred. The INTRC is not
affected by OSCTUNE.
The OSCTUNE register also implements the INTSRC
(OSCTUNE<7>) and PLLEN (OSCTUNE<6>) bits,
which control certain features of the internal oscillator
block. The INTSRC bit allows users to select which
internal oscillator provides the clock source when the
31 kHz frequency option is selected. This is covered in
The PLLEN bit controls the operation of the Phase
Locked Loop (PLL) in Internal Oscillator modes (see
FIGURE 3-10:
INTOSC AND PLL BLOCK
DIAGRAM
PIC18FXXXX
OSC2
FOSC/4
I/O (OSC1)
RA7
PIC18FXXXX
I/O (OSC2)
RA6
I/O (OSC1)
RA7
MU
X
VCO
Loop
Filter
OSC2
PLLEN
FIN
FOUT
SYSCLK
Phase
Comparator
8 or 4 MHz
÷4
(OSCTUNE<6>)
MUX
RA6
CLKO
INTOSC
相关PDF资料
PIC16F648A-I/P IC MCU FLASH 4KX14 EEPROM 18DIP
PIC18F96J65T-I/PF IC PIC MCU FLASH 48KX16 100TQFP
PIC16CE623-20/P IC MCU OTP 512X14 EE COMP 18DIP
PIC24FJ16MC102-I/SO IC MCU 16BIT 16KB FLASH 28SOIC
DSPIC33FJ16GP102-I/SO IC DSC 16BIT 16KB 28SOIC
PIC16C57C-04/SO IC MCU OTP 2KX12 28SOIC
PIC16F627-20/P IC MCU FLASH 1KX14 COMP 18DIP
PIC24FJ16GA002-I/ML IC PIC MCU FLASH 16K 28-QFN
相关代理商/技术参数
PIC18LF2320-I/SO 功能描述:8位微控制器 -MCU 8KB 512 RAM 25I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF2320-I/SOG 功能描述:8位微控制器 -MCU 8kBF 256RM 16I/O Lead Free Package RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF2320-I/SP 功能描述:8位微控制器 -MCU 8KB 512 RAM 25I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF2320-I/SP 制造商:Microchip Technology Inc 功能描述:ICS MICROCONTROLLERS NUMBER OF I/OS:23
PIC18LF2320T-I/SO 功能描述:8位微控制器 -MCU 8KB 512 RAM 25I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF2321-I/ML 功能描述:8位微控制器 -MCU 8 KB FL 512 RAM RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF2321-I/SO 功能描述:8位微控制器 -MCU 8 KB FL 512 RAM RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18LF2321-I/SO 制造商:Microchip Technology Inc 功能描述:IC 8BIT FLASH MCU SMD 制造商:Microchip Technology Inc 功能描述:IC, 8BIT FLASH MCU, SMD