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

PIC16F818-I/P 参数 Datasheet PDF下载

PIC16F818-I/P图片预览
型号: PIC16F818-I/P
PDF下载: 下载PDF文件 查看货源
内容描述: 二十零分之一十八引脚增强型闪存微控制器采用纳瓦技术 [18/20-Pin Enhanced Flash Microcontrollers with nanoWatt Technology]
分类和应用: 闪存微控制器和处理器外围集成电路光电二极管PC时钟
文件页数/大小: 176 页 / 2941 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16F818-I/P的Datasheet PDF文件第56页浏览型号PIC16F818-I/P的Datasheet PDF文件第57页浏览型号PIC16F818-I/P的Datasheet PDF文件第58页浏览型号PIC16F818-I/P的Datasheet PDF文件第59页浏览型号PIC16F818-I/P的Datasheet PDF文件第61页浏览型号PIC16F818-I/P的Datasheet PDF文件第62页浏览型号PIC16F818-I/P的Datasheet PDF文件第63页浏览型号PIC16F818-I/P的Datasheet PDF文件第64页  
PIC16F818/819  
7.2  
Timer1 Operation in Timer Mode  
7.4  
Timer1 Operation in Synchronized  
Counter Mode  
Timer mode is selected by clearing the TMR1CS  
(T1CON<1>) bit. In this mode, the input clock to the  
timer is FOSC/4. The synchronize control bit, T1SYNC  
(T1CON<2>), has no effect since the internal clock is  
always in sync.  
Counter mode is selected by setting bit TMR1CS. In  
this mode, the timer increments on every rising edge of  
clock input on pin RB7/T1OSI/PGD when bit  
T1OSCEN is set, or on pin RB6/T1OSO/T1CKI/PGC  
when bit T1OSCEN is cleared.  
7.3  
Timer1 Counter Operation  
If T1SYNC is cleared, then the external clock input is  
synchronized with internal phase clocks. The synchro-  
nization is done after the prescaler stage. The  
prescaler stage is an asynchronous ripple counter.  
Timer1 may operate in Asynchronous or Synchronous  
mode depending on the setting of the TMR1CS bit.  
When Timer1 is being incremented via an external  
source, increments occur on a rising edge. After Timer1  
is enabled in Counter mode, the module must first have  
a falling edge before the counter begins to increment.  
In this configuration, during Sleep mode, Timer1 will not  
increment even if the external clock is present, since  
the synchronization circuit is shut-off. The prescaler,  
however, will continue to increment.  
FIGURE 7-1:  
TIMER1 INCREMENTING EDGE  
T1CKI  
(Default High)  
T1CKI  
(Default Low)  
Note: Arrows indicate counter increments.  
FIGURE 7-2:  
TIMER1 BLOCK DIAGRAM  
Set Flag bit  
TMR1IF on  
Overflow  
Synchronized  
0
TMR1  
Clock Input  
TMR1L  
TMR1H  
1
TMR1ON  
On/Off  
T1SYNC  
T1OSC  
1
Synchronize  
det  
Prescaler  
1, 2, 4, 8  
RB6/T1OSO/T1CKI/PGC  
RB7/T1OSI/PGD  
T1OSCEN  
Enable  
FOSC/4  
Internal  
Clock  
0
(1)  
Oscillator  
2
Q Clock  
T1CKPS1:T1CKPS0  
TMR1CS  
Note 1: When the T1OSCEN bit is cleared, the inverter is turned off. This eliminates power drain.  
DS39598E-page 58  
2004 Microchip Technology Inc.