參數(shù)資料
型號: PIC16F83
廠商: Microchip Technology Inc.
英文描述: 8-Bit CMOS Flash/EEPROM Microcontollrs(每個(gè)I/O口有20mA吸收,25mA驅(qū)動,64字節(jié)數(shù)據(jù)EEPROM,2.0V的微控制器)
中文描述: 8位CMOS閃存/ EEPROM Microcontollrs(每個(gè)的I / O口有20mA的吸收,25mA電流驅(qū)動,64字節(jié)數(shù)據(jù)的EEPROM,2.0伏的微控制器)
文件頁數(shù): 29/120頁
文件大?。?/td> 764K
代理商: PIC16F83
1996 Microchip Technology Inc.
DS30430A-page 29
PIC16F8X
6.2
Using TMR0 with External Clock
When an external clock input is used for TMR0, it must
meet certain requirements. The external clock
requirement is due to internal phase clock (T
synchronization. Also, there is a delay in the actual
incrementing
of
the
synchronization.
OSC
)
TMR0
register
after
6.2.1
EXTERNAL CLOCK SYNCHRONIZATION
When no prescaler is used, the external clock input is
the same as the prescaler output. The synchronization
of pin RA4/T0CKI with the internal phase clocks is
accomplished by sampling the prescaler output on the
Q2 and Q4 cycles of the internal phase clocks
(Figure 6-5). Therefore, it is necessary for T0CKI to be
high for at least 2Tosc (plus a small RC delay) and low
for at least 2Tosc (plus a small RC delay). Refer to the
electrical specification of the desired device.
When a prescaler is used, the external clock input is
divided by an asynchronous ripple counter type
prescaler so that the prescaler output is symmetrical.
For the external clock to meet the sampling
requirement, the ripple counter must be taken into
account. Therefore, it is necessary for T0CKI to have a
period of at least 4Tosc (plus a small RC delay) 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 AC Electrical
Specifications of the desired device.
6.2.2
TMR0 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 6-5 shows the
delay from the external clock edge to the timer
incrementing.
6.3
Prescaler
An 8-bit counter is available as a prescaler for the
Timer0 Module, or as a postscaler for the Watchdog
Timer (Figure 6-6). For simplicity, this counter is being
referred to as “prescaler” throughout this data sheet.
Note that there is only one prescaler available which is
mutually exclusive between the Timer0 Module and the
Watchdog Timer. Thus, a prescaler assignment for the
Timer0 Module means that there is no prescaler for the
Watchdog Timer, and vice-versa.
The PSA and PS2:PS0 bits (OPTION<3:0>) determine
the prescaler assignment and prescale ratio.
When assigned to the Timer0 Module, all instructions
writing to the Timer0 Module (e.g.,
1, BSF 1,x
....etc.) will clear the prescaler. When
assigned to WDT, a
CLRWDT
prescaler along with the Watchdog Timer. The
prescaler is not readable or writable.
CLRF 1, MOVWF
instruction will clear the
FIGURE 6-5:
TIMER0 TIMING WITH EXTERNAL CLOCK
Increment TMR0 (Q4)
Ext. Clock Input or
Prescaler Out (Note 2)
Q1
Q2
Q3 Q4
Q1
Q2
Q3 Q4
Q1
Q2
Q3 Q4
Q1
Q2
Q3 Q4
TMR0
T0
T0 + 1
T0 + 2
Ext. Clock/Prescaler
Output After Sampling
(Note 3)
Note 1:
2:
3:
Delay from clock input change to TMR0 increment is 3Tosc to 7Tosc. (Duration of Q = Tosc).
Therefore, the error in measuring the interval between two edges on TMR0 input =
±
4Tosc max.
External clock if no prescaler selected, Prescaler output otherwise.
The arrows
indicate where sampling occurs. A small clock pulse may be missed by sampling.
相關(guān)PDF資料
PDF描述
PIC16F84 18-pin Flash/EEPROM 8-Bit Microcontrollers
PIC16F85 18/20 Pin, 8-Bit CMOS FLASH Microcontroller with Comparators and A/D Product Brief
PIC16F86 18/20 Pin, 8-Bit CMOS FLASH Microcontroller with Comparators and A/D Product Brief
PIC16F873A 28/40-pin Enhanced FLASH Microcontrollers
PIC16F874A 28/40-pin Enhanced FLASH Microcontrollers
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC16F83-04/P 功能描述:8位微控制器 -MCU .875KB 36 RAM 13 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16F83-04/P 制造商:Microchip Technology Inc 功能描述:IC 8-BIT FLASH MCU
PIC16F83-04/SO 功能描述:8位微控制器 -MCU .875KB 36 RAM 13 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16F83-04I/P 功能描述:8位微控制器 -MCU .875KB 36 RAM 13 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16F83-04I/SO 功能描述:8位微控制器 -MCU .875KB 36 RAM 13 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT