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

PIC16C62B-04/SO 参数 Datasheet PDF下载

PIC16C62B-04/SO图片预览
型号: PIC16C62B-04/SO
PDF下载: 下载PDF文件 查看货源
内容描述: 28引脚8位CMOS微控制器 [28-Pin 8-Bit CMOS Microcontrollers]
分类和应用: 微控制器外围集成电路光电二极管PC可编程只读存储器时钟
文件页数/大小: 120 页 / 1994 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16C62B-04/SO的Datasheet PDF文件第21页浏览型号PIC16C62B-04/SO的Datasheet PDF文件第22页浏览型号PIC16C62B-04/SO的Datasheet PDF文件第23页浏览型号PIC16C62B-04/SO的Datasheet PDF文件第24页浏览型号PIC16C62B-04/SO的Datasheet PDF文件第26页浏览型号PIC16C62B-04/SO的Datasheet PDF文件第27页浏览型号PIC16C62B-04/SO的Datasheet PDF文件第28页浏览型号PIC16C62B-04/SO的Datasheet PDF文件第29页  
PIC16C62B/72A  
Additional information on external clock requirements  
is available in the Electrical Specifications section of  
this manual, and in the PICmicro™ Mid-Range Refer-  
ence Manual, (DS33023).  
4.0  
TIMER0 MODULE  
The Timer0 module timer/counter has the following fea-  
tures:  
• 8-bit timer/counter  
4.2  
Prescaler  
- Read and write  
- INT on overflow  
An 8-bit counter is available as a prescaler for the  
Timer0 module, or as a postscaler for the Watchdog  
Timer, respectively (Figure 4-2). For simplicity, this  
counter is being referred to as “prescaler” throughout  
this data sheet. There is only one prescaler available  
which is shared between the Timer0 module and the  
Watchdog Timer. A prescaler assignment for the  
Timer0 module means that there is no prescaler for the  
Watchdog Timer, and vice-versa.  
• 8-bit software programmable prescaler  
• INT or EXT clock select  
- EXT clock edge select  
Figure 4-1 is a simplified block diagram of the Timer0  
module.  
Additional information on timer modules is available in  
the PICmicro™ Mid-Range Reference Manual,  
(DS33023).  
The prescaler is not readable or writable.  
The PSA and PS2:PS0 bits (OPTION_REG<3:0>)  
determine the prescaler assignment and prescale ratio.  
4.1  
Timer0 Operation  
Timer0 can operate as a timer or as a counter.  
Clearing bit PSA will assign the prescaler to the Timer0  
module. When the prescaler is assigned to the Timer0  
module, prescale values of 1:2, 1:4, ..., 1:256 are  
selectable.  
Timer mode is selected by clearing bit T0CS  
(OPTION_REG<5>). In timer mode, the Timer0 mod-  
ule will increment every instruction cycle (without pres-  
caler). If the TMR0 register 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.  
Setting bit PSA will assign the prescaler to the Watch-  
dog Timer (WDT). When the prescaler is assigned to  
the WDT, prescale values of 1:1, 1:2, ..., 1:128 are  
selectable.  
Counter mode is selected by setting bit T0CS  
(OPTION_REG<5>). In counter mode, Timer0 will  
increment either on every rising or falling edge of pin  
RA4/T0CKI. The incrementing edge is determined by  
the Timer0 Source Edge Select bit T0SE  
(OPTION_REG<4>). Clearing bit T0SE selects the ris-  
ing edge. Restrictions on the external clock input are  
discussed below.  
When assigned to the Timer0 module, all instructions  
writing to the TMR0 register (e.g. CLRF 1, MOVWF 1,  
BSF  
1,x....etc.) will clear the prescaler. When  
assigned to WDT, a CLRWDT instruction will clear the  
prescaler along with the WDT.  
Note: Writing to TMR0 when the prescaler is  
assigned to Timer0 will clear the prescaler  
count, but will not change the prescaler  
assignment or ratio.  
When an external clock input is used for Timer0, it must  
meet certain requirements. The requirements ensure  
the external clock can be synchronized with the internal  
phase clock (TOSC). Also, there is a delay in the actual  
incrementing of Timer0 after synchronization.  
FIGURE 4-1: TIMER0 BLOCK DIAGRAM  
Data Bus  
FOSC/4  
0
1
PSout  
8
1
0
Sync with  
Internal  
clocks  
TMR0  
Programmable  
Prescaler  
RA4/T0CKI  
pin  
PSout  
(TCY delay)  
T0SE  
3
Set interrupt  
flag bit T0IF  
on overflow  
PS2, PS1, PS0  
PSA  
T0CS  
Note 1: T0CS, T0SE, PSA, PS2:PS0 (OPTION_REG<5:0>).  
2: The prescaler is shared with Watchdog Timer (refer to Figure 4-2 for detailed block diagram).  
1999 Microchip Technology Inc.  
Preliminary  
DS35008B-page 25  
 复制成功!