2010-2012 Microchip Technology Inc.
DS41412E-page 41
PIC18(L)F2X/4XK22
TABLE 2-3:
OSC1 AND OSC2 PIN STATES IN SLEEP MODE
2.11
Clock Switching
The system clock source can be switched between
external and internal clock sources via software using
the System Clock Select (SCS<1:0>) bits of the
OSCCON register.
PIC18(L)F2X/4XK22 devices contain circuitry to pre-
vent clock “glitches” when switching between clock
sources. A short pause in the device clock occurs dur-
ing the clock switch. The length of this pause is the sum
of two cycles of the old clock source and three to four
cycles of the new clock source. This formula assumes
that the new clock source is stable.
Clock transitions are discussed in greater detail in
2.11.1
SYSTEM CLOCK SELECT
(SCS<1:0>) BITS
The System Clock Select (SCS<1:0>) bits of the
OSCCON register select the system clock source that
is used for the CPU and peripherals.
When SCS<1:0> = 00, the system clock source is
determined by configuration of the FOSC<3:0>
bits in the CONFIG1H Configuration register.
When SCS<1:0> = 10, the system clock source is
chosen by the internal oscillator frequency
selected by the INTSRC bit of the OSCTUNE
register, the MFIOSEL bit of the OSCCON2
register and the IRCF<2:0> bits of the OSCCON
register.
When SCS<1:0> = 01, the system clock source is
the 32.768 kHz secondary oscillator shared with
Timer1, Timer3 and Timer5.
After a Reset, the SCS<1:0> bits of the OSCCON
register are always cleared.
2.11.2
OSCILLATOR START-UP TIME-OUT
STATUS (OSTS) BIT
The Oscillator Start-up Time-out Status (OSTS) bit of
the OSCCON register indicates whether the system
clock is running from the external clock source, as
defined by the FOSC<3:0> bits in the CONFIG1H
Configuration register, or from the internal clock
source. In particular, when the primary oscillator is the
source of the primary clock, OSTS indicates that the
Oscillator Start-up Timer (OST) has timed out for LP,
XT or HS modes.
OSC Mode
OSC1 Pin
OSC2 Pin
RC, INTOSC with CLKOUT Floating, external resistor should pull high
At logic low (clock/4 output)
RC with IO
Floating, external resistor should pull high
Configured as PORTA, bit 6
INTOSC with IO
Configured as PORTA, bit 7
Configured as PORTA, bit 6
EC with IO
Floating, pulled by external clock
Configured as PORTA, bit 6
EC with CLKOUT
Floating, pulled by external clock
At logic low (clock/4 output)
LP, XT, HS
Feedback inverter disabled at quiescent
voltage level
Feedback inverter disabled at quiescent
voltage level
Note:
See Table 4-2 in Section 4.0 “Reset” for time-outs due to Sleep and MCLR Reset.
Note:
Any automatic clock switch, which may
occur from Two-Speed Start-up or Fail-
Safe Clock Monitor, does not update the
SCS<1:0> bits of the OSCCON register.
The user can monitor the SOSCRUN,
MFIOFS
and
LFIOFS
bits
of
the
OSCCON2 register, and the HFIOFS and
OSTS bits of the OSCCON register to
determine the current system clock source.
相关PDF资料
SFW27R-1STE1 SFW27R-1STE1-FFC/FPC CONN
PIC18F66J15-I/PT IC PIC MCU FLASH 48KX16 64TQFP
PIC24FV32KA302-I/SO MCU 32KB FLASH 2KB RAM 28-SOIC
PIC24HJ64GP204-I/ML IC PIC MCU FLASH 64K 44-QFN
SFW27R-2STE1 SFW27R-2STE1-FFC/FPC CONN
PIC24F16KA302-I/SP MCU 16KB FLASH 2KB RAM 28-SPDIP
PIC18LF45J11-I/ML IC PIC MCU FLASH 32K 2V 44-QFN
PIC24F32KA302-I/SO MCU 32KB FLASH 2KB RAM 28-SOIC
相关代理商/技术参数
PIC18F26J13T-I/ML 功能描述:8位微控制器 -MCU GP 64KB 4KB RAM 12 MIPS 12b ADC nanoWat 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
PIC18F26J13T-I/SO 功能描述:8位微控制器 -MCU GP 64KB 4KB RAM 12 MIPS 12b ADC nanoWat 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
PIC18F26J13T-I/SS 功能描述:8位微控制器 -MCU GP 64KB 4KB RAM 12 MIPS 12b ADC nanoWat 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
PIC18F26J50-EVK 制造商:Embest Info&Tech Co Ltd 功能描述:PIC18F26J50 FLOWCODE 4 DEV KIT 制造商:Microchip Technology Inc 功能描述:PIC18F26J50, FLOWCODE 4, DEV KIT 制造商:Microchip Technology Inc 功能描述:PIC18F26J50, FLOWCODE 4, TEMP SENSOR, DEV KIT; Silicon Manufacturer:Microchip; Core Architecture:PIC; Core Sub-Architecture:PIC18; Silicon Core Number:PIC18F; Silicon Family Name:PIC18FxxJxx ;RoHS Compliant: Yes
PIC18F26J50-I/ML 功能描述:8位微控制器 -MCU Full Spd USB 64KB Flsh 4KBRAM nanoWatt 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
PIC18F26J50-I/SO 功能描述:8位微控制器 -MCU Full Spd USB 64KB Flsh 4KBRAM nanoWatt 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
PIC18F26J50-I/SP 功能描述:8位微控制器 -MCU Full Spd USB 64KB Flsh 4KBRAM nanoWatt 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
PIC18F26J50-I/SS 功能描述:8位微控制器 -MCU Full Spd USB 64KB Flsh 4KBRAM nanoWatt 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