欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC16F777-I/PT 参数 Datasheet PDF下载

PIC16F777-I/PT图片预览
型号: PIC16F777-I/PT
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚, 8位CMOS闪存微控制器与10位A / D和纳瓦技术 [28/40/44-Pin, 8-Bit CMOS Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology]
分类和应用: 闪存微控制器
文件页数/大小: 276 页 / 4898 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16F777-I/PT的Datasheet PDF文件第41页浏览型号PIC16F777-I/PT的Datasheet PDF文件第42页浏览型号PIC16F777-I/PT的Datasheet PDF文件第43页浏览型号PIC16F777-I/PT的Datasheet PDF文件第44页浏览型号PIC16F777-I/PT的Datasheet PDF文件第46页浏览型号PIC16F777-I/PT的Datasheet PDF文件第47页浏览型号PIC16F777-I/PT的Datasheet PDF文件第48页浏览型号PIC16F777-I/PT的Datasheet PDF文件第49页  
PIC16F7X7  
4.7.3  
SEC_RUN/RC_RUN TO PRIMARY  
CLOCK SOURCE  
4.7.3.1  
Returning to Primary Clock Source  
Sequence  
When switching from a SEC_RUN or RC_RUN mode  
back to the primary system clock, following a change of  
SCS<1:0> to ‘00’, the sequence of events that take  
place will depend upon the value of the FOSC bits in  
the Configuration register. If the primary clock source is  
configured as a crystal (HS, XT or LP), then the  
transition will take place after 1024 clock cycles. This is  
necessary because the crystal oscillator has been  
powered down until the time of the transition. In order  
to provide the system with a reliable clock when the  
changeover has occurred, the clock will not be  
released to the changeover circuit until the 1024 counts  
have expired.  
Changing back to the primary oscillator from  
SEC_RUN or RC_RUN can be accomplished by either  
changing SCS<1:0> to ‘00’ or clearing the T1OSCEN  
bit in the T1CON register (if T1OSC was the secondary  
clock).  
The sequence of events that follows is the same for  
both modes:  
1. If the primary system clock is configured as EC,  
RC or INTRC, then the OST time-out is skipped.  
Skip to step 3.  
2. If the primary system clock is configured as an  
external oscillator (HS, XT, LP), then the OST  
will be active, waiting for 1024 clocks of the  
primary system clock.  
During the oscillator start-up time, the system clock  
comes from the current system clock. Instruction  
execution and/or peripheral operation continues using  
the currently selected oscillator as the CPU clock  
source, until the necessary clock count has expired, to  
ensure that the primary system clock is stable.  
3. On the following Q1, the device holds the  
system clock in Q1.  
4. The device stays in Q1 while eight falling edges  
of the primary system clock are counted.  
5. Once the eight counts transpire, the device  
begins to run from the primary oscillator.  
To know when the OST has expired, the OSTS bit  
should be monitored. OSTS = 1 indicates that the  
Oscillator Start-up Timer has timed out and the system  
clock comes from the primary clock source.  
6. If the secondary clock was INTRC and the  
primary clock is not INTRC, the INTRC will be  
shut-down to save current, providing that the  
INTRC is not being used for any other function,  
such as WDT or Fail-Safe Clock Monitoring.  
Following the oscillator start-up time, the internal Q  
clocks are held in the Q1 state until eight falling edge  
clocks are counted from the primary system clock. The  
clock input to the Q clocks is then released and  
operation resumes with the primary system clock  
determined by the FOSC bits (see Figure 4-10).  
7. If the secondary clock was T1OSC, the T1OSC  
will continue to run if T1OSCEN is still set;  
otherwise, the Timer1 oscillator will be shut-down.  
When in SEC_RUN mode, the act of clearing the  
T1OSCEN bit in the T1CON register will cause  
SCS<0> to be cleared, which causes the SCS<1:0>  
bits to revert to ‘00’ or ‘10’ depending on what SCS<1>  
is. Although the T1OSCEN bit was cleared, T1OSC will  
be enabled and instruction execution will continue until  
the OST time-out for the main system clock is com-  
plete. At that time, the system clock will switch from the  
T1OSC to the primary clock or the INTRC. Following  
this, the Timer1 oscillator will be shut-down.  
Note:  
If the primary system clock is either RC or  
EC, an internal delay timer (5-10 µs) will  
suspend operation after exiting Secondary  
Clock mode to allow the CPU to become  
ready for code execution.  
2004 Microchip Technology Inc.  
DS30498C-page 43  
 复制成功!