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

PIC16F57-I/SO 参数 Datasheet PDF下载

PIC16F57-I/SO图片预览
型号: PIC16F57-I/SO
PDF下载: 下载PDF文件 查看货源
内容描述: 基于闪存的8位CMOS微控制器系列 [Flash-Based, 8-Bit CMOS Microcontroller Series]
分类和应用: 闪存微控制器
文件页数/大小: 88 页 / 1373 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16F57-I/SO的Datasheet PDF文件第33页浏览型号PIC16F57-I/SO的Datasheet PDF文件第34页浏览型号PIC16F57-I/SO的Datasheet PDF文件第35页浏览型号PIC16F57-I/SO的Datasheet PDF文件第36页浏览型号PIC16F57-I/SO的Datasheet PDF文件第38页浏览型号PIC16F57-I/SO的Datasheet PDF文件第39页浏览型号PIC16F57-I/SO的Datasheet PDF文件第40页浏览型号PIC16F57-I/SO的Datasheet PDF文件第41页  
PIC16F5X  
When a prescaler is used, the external clock input is  
divided by the asynchronous ripple counter-type  
prescaler so that the prescaler output is symmetrical.  
For the external clock to meet the sampling require-  
ment, the ripple counter must be taken into account.  
Therefore, it is necessary for T0CKI to have a period of  
at least 4TOSC (and a small RC delay of 40 ns) divided  
by the prescaler value. The only requirement on T0CKI  
high and low time is that they do not violate the  
minimum pulse width requirement of 10 ns. Refer to  
parameters 40, 41 and 42 in the electrical specification  
of the desired device.  
7.1  
Using Timer0 with an External  
Clock  
When an external clock input is used for Timer0, it must  
meet certain requirements. The external clock  
requirement is due to internal phase clock (TOSC)  
synchronization. Also, there is a delay in the actual  
incrementing of Timer0 after synchronization.  
7.1.1  
EXTERNAL CLOCK  
SYNCHRONIZATION  
When no prescaler is used, the external clock is the  
Timer0 input. The synchronization of T0CKI with the  
internal phase clocks is accomplished by sampling the  
prescaler output on the Q2 and Q4 cycles of the inter-  
nal phase clocks (Figure 7-4). Therefore, it is neces-  
sary for T0CKI to be high for at least 2TOSC (and a small  
RC delay of 20 ns) and low for at least 2TOSC (and a  
small RC delay of 20 ns). Refer to the electrical  
specification of the desired device.  
7.1.2  
TIMER0 INCREMENT DELAY  
Since the prescaler output is synchronized with the  
internal clocks, there is a small delay from the time the  
external clock edge occurs to the time the Timer0  
module is actually incremented. Figure 7-4 shows the  
delay from the external clock edge to the timer  
incrementing.  
FIGURE 7-4:  
TIMER0 TIMING WITH EXTERNAL CLOCK  
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4  
Small pulse  
misses sampling  
External Clock Input or  
Prescaler Output  
(1)  
(3)  
External Clock/Prescaler  
Output After Sampling  
(2)  
Increment Timer0 (Q4)  
Timer0  
T0  
T0 + 1  
T0 + 2  
Note 1: External clock if no prescaler selected; prescaler output otherwise.  
2: The arrows indicate the points in time where sampling occurs.  
3: Delay from clock input change to Timer0 increment is 3TOSC to 7TOSC (duration of Q = TOSC). Therefore, the error  
in measuring the interval between two edges on Timer0 input = 4TOSC max.  
The PSA and PS<2:0> bits (OPTION<3:0>) determine  
prescaler assignment and prescale ratio.  
7.2  
Prescaler  
An 8-bit counter is available as a prescaler for the  
Timer0 module, or as a postscaler for the Watchdog  
Timer (WDT), respectively (Section 8.2.1 “WDT  
Period”). For simplicity, this counter is being referred  
to as “prescaler” throughout this data sheet. Note that  
the prescaler may be used by either the Timer0 module  
or the WDT, but not both. Thus, a prescaler assignment  
for the Timer0 module means that there is no prescaler  
for the WDT, and vice-versa.  
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. The prescaler is neither readable  
nor writable. On a Reset, the prescaler contains all ‘0’s.  
© 2007 Microchip Technology Inc.  
DS41213D-page 35