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

PIC16C72A-04/SP 参数 Datasheet PDF下载

PIC16C72A-04/SP图片预览
型号: PIC16C72A-04/SP
PDF下载: 下载PDF文件 查看货源
内容描述: 28引脚8位CMOS微控制器 [28-Pin 8-Bit CMOS Microcontrollers]
分类和应用: 微控制器
文件页数/大小: 120 页 / 1994 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16C72A-04/SP的Datasheet PDF文件第22页浏览型号PIC16C72A-04/SP的Datasheet PDF文件第23页浏览型号PIC16C72A-04/SP的Datasheet PDF文件第24页浏览型号PIC16C72A-04/SP的Datasheet PDF文件第25页浏览型号PIC16C72A-04/SP的Datasheet PDF文件第27页浏览型号PIC16C72A-04/SP的Datasheet PDF文件第28页浏览型号PIC16C72A-04/SP的Datasheet PDF文件第29页浏览型号PIC16C72A-04/SP的Datasheet PDF文件第30页  
PIC16C62B/72A  
4.2.1  
SWITCHING PRESCALER ASSIGNMENT  
4.3  
Timer0 Interrupt  
The prescaler assignment is fully under software con-  
trol, (i.e., it can be changed “on-the-fly” during program  
execution).  
The TMR0 interrupt is generated when the TMR0 reg-  
ister overflows from FFh to 00h. This overflow sets bit  
T0IF (INTCON<2>). The interrupt can be masked by  
clearing bit T0IE (INTCON<5>). Bit T0IF must be  
cleared in software by the Timer0 module interrupt ser-  
vice routine before re-enabling this interrupt. The  
TMR0 interrupt cannot awaken the processor from  
SLEEP since the timer is shut off during SLEEP.  
Note: To avoid an unintended device RESET, a  
specific instruction sequence (shown in the  
PICmicro™ Mid-Range Reference Man-  
ual, DS33023) must be executed when  
changing the prescaler assignment from  
Timer0 to the WDT. This sequence must  
be followed even if the WDT is disabled.  
FIGURE 4-2: BLOCK DIAGRAM OF THE TIMER0/WDT PRESCALER  
Data Bus  
8
CLKOUT (= Fosc/4)  
M
U
X
1
0
0
1
M
U
X
RA4/T0CKI  
pin  
SYNC  
2
TCY  
TMR0 reg  
T0SE  
T0CS  
Set flag bit T0IF  
on Overflow  
PSA  
Prescaler  
0
1
8-bit Prescaler  
M
U
X
Watchdog  
Timer  
8
8 - to - 1MUX  
PS2:PS0  
PSA  
1
0
WDT Enable bit  
M U X  
PSA  
WDT  
Time-out  
Note: T0CS, T0SE, PSA, PS2:PS0 are (OPTION_REG<5:0>).  
TABLE 4-1  
REGISTERS ASSOCIATED WITH TIMER0  
Value on:  
POR,  
BOR  
Value on all  
other resets  
Address  
Name  
Bit 7  
Bit 6  
Bit 5 Bit 4  
Bit 3  
Bit 2  
Bit 1  
Bit 0  
01h  
TMR0  
Timer0 module’s register  
GIE PEIE T0IE INTE  
xxxx xxxx uuuu uuuu  
RBIF 0000 000x 0000 000u  
0Bh,8Bh  
81h  
INTCON  
RBIE  
PSA  
T0IF  
PS2  
INTF  
PS1  
OPTION_REG RBPU INTEDG T0CS T0SE  
TRISA  
PS0  
1111 1111 1111 1111  
--11 1111 --11 1111  
85h  
PORTA Data Direction Register  
Legend: x= unknown, u= unchanged, -= unimplemented locations read as '0'. Shaded cells are not used by Timer0.  
DS35008B-page 26  
Preliminary  
1999 Microchip Technology Inc.  
 复制成功!