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

PIC16F688-I/P 参数 Datasheet PDF下载

PIC16F688-I/P图片预览
型号: PIC16F688-I/P
PDF下载: 下载PDF文件 查看货源
内容描述: 14引脚基于闪存的8位CMOS微控制器采用纳瓦技术 [14-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology]
分类和应用: 闪存微控制器和处理器外围集成电路光电二极管时钟
文件页数/大小: 174 页 / 2918 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16F688-I/P的Datasheet PDF文件第43页浏览型号PIC16F688-I/P的Datasheet PDF文件第44页浏览型号PIC16F688-I/P的Datasheet PDF文件第45页浏览型号PIC16F688-I/P的Datasheet PDF文件第46页浏览型号PIC16F688-I/P的Datasheet PDF文件第48页浏览型号PIC16F688-I/P的Datasheet PDF文件第49页浏览型号PIC16F688-I/P的Datasheet PDF文件第50页浏览型号PIC16F688-I/P的Datasheet PDF文件第51页  
PIC16F688  
Counter mode is selected by setting the T0CS bit  
(OPTION_REG<5>). In this mode, the Timer0 module  
will increment either on every rising or falling edge of  
pin RA2/T0CKI. The incrementing edge is determined  
5.0  
TIMER0 MODULE  
The Timer0 module timer/counter has the following  
features:  
by  
the  
source  
edge  
(T0SE)  
control  
bit  
• 8-bit timer/counter  
(OPTION_REG<4>). Clearing the T0SE bit selects the  
rising edge.  
• Readable and writable  
• 8-bit software programmable prescaler  
• Internal or external clock select  
• Interrupt on overflow from FFh to 00h  
• Edge select for external clock  
Note:  
Counter mode has specific external clock  
requirements. Additional information on  
these requirements is available in the  
”PICmicro® Mid-Range MCU Family  
Reference Manual” (DS33023).  
Figure 5-1 is a block diagram of the Timer0 module and  
the prescaler shared with the WDT.  
5.2  
Timer0 Interrupt  
Note:  
Additional information on the Timer0  
module is available in the “PICmicro® Mid-  
Range MCU Family Reference Manual”  
(DS33023).  
A Timer0 interrupt is generated when the TMR0 regis-  
ter timer/counter overflows from FFh to 00h. This over-  
flow sets the T0IF bit (INTCON<2>). The interrupt can  
be masked by clearing the T0IE bit (INTCON<5>). The  
T0IF bit must be cleared in software by the Timer0  
module Interrupt Service Routine before re-enabling  
this interrupt. The Timer0 interrupt cannot wake the  
processor from Sleep, since the timer is shut off during  
Sleep.  
5.1  
Timer0 Operation  
Timer mode is selected by clearing the T0CS bit  
(OPTION_REG<5>). In Timer mode, the Timer0  
module will increment every instruction cycle (without  
prescaler). If TMR0 is written, the increment is inhibited  
for the following two instruction cycles. The user can  
work around this by writing an adjusted value to the  
TMR0 register.  
FIGURE 5-1:  
BLOCK DIAGRAM OF THE TIMER0/WDT PRESCALER  
CLKOUT  
(= FOSC/4)  
Data Bus  
0
1
8
1
SYNC 2  
Cycles  
TMR0  
T0CKI  
pin  
0
0
1
Set Flag bit T0IF  
on Overflow  
T0CS  
T0SE  
8-bit  
Prescaler  
PSA  
8
PSA  
WDTE  
SWDTEN  
1
0
PS<2:0>  
WDT  
Time-out  
16-bit  
Prescaler  
16  
Watchdog  
Timer  
31 kHz  
INTRC  
PSA  
WDTPS<3:0>  
Note 1: T0SE, T0CS, PSA, PS<2:0> are bits in the Option register, WDTPS<3:0> are bits in the WDTCON register.  
2004 Microchip Technology Inc.  
Preliminary  
DS41203B-page 45  
 复制成功!