參數(shù)資料
型號: PIC10F202T-I/PG
元件分類: 微控制器/微處理器
英文描述: 8-BIT, FLASH, 4 MHz, RISC MICROCONTROLLER, PDIP8
封裝: 0.300 INCH, LEAD FREE, PLASTIC, MS-001, DIP-8
文件頁數(shù): 30/88頁
文件大小: 1127K
代理商: PIC10F202T-I/PG
PIC10F200/202/204/206
DS41239A-page 34
Preliminary
2004 Microchip Technology Inc.
FIGURE 7-2:
TIMER0 TIMING: INTERNAL CLOCK/NO PRESCALE
FIGURE 7-3:
TIMER0 TIMING: INTERNAL CLOCK/PRESCALE 1:2
TABLE 7-1:
REGISTERS ASSOCIATED WITH TIMER0
7.1
Using Timer0 with an External
Clock (PIC10F204/206)
When an external clock input is used for Timer0, it must
meet certain requirements. The external clock require-
ment is due to internal phase clock (TOSC) synchroniza-
tion. 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 input is
the same as the prescaler output. The synchronization
of an external clock with the internal phase clocks is
accomplished by sampling the prescaler output on the
Q2 and Q4 cycles of the internal phase clocks
(Figure 7-4). Therefore, it is necessary for T0CKI or the
comparator output to be high for at least 2 TOSC (and a
small RC delay of 2 Tt0H) and low for at least 2 TOSC
(and a small RC delay of 2 Tt0H). Refer to the electrical
specification of the desired device.
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 or the comparator
output to have a period of at least 4 TOSC (and a small
RC delay of 4 Tt0H) divided by the prescaler value. The
only requirement on T0CKI or the comparator output
high and low time is that they do not violate the
minimum pulse width requirement of Tt0H. Refer to
parameters 40, 41 and 42 in the electrical specification
of the desired device.
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
Power-On
Reset
Value on
All Other
Resets
01h
TMR0
Timer0 – 8-bit Real-Time Clock/Counter
xxxx xxxx
uuuu uuuu
07h
CMCON0
CMPOUT
COUTEN
POL
CMPT0CS CMPON CNREF
CPREF
CWU
1111 1111
uuuu uuuu
N/A
OPTION
GPWU
GPPU
T0CS
T0SE
PSA
PS2
PS1
PS0
1111 1111
N/A
TRISGPIO(1)
I/O Control Register
---- 1111
Legend:
Shaded cells not used by Timer0. — = unimplemented, x = unknown, u = unchanged.
Note
1:
The TRIS of the T0CKI pin is overridden when T0CS = 1.
PC – 1
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
Instruction
Fetch
Timer0
PC
PC + 1
PC + 2
PC + 3
PC + 4
PC + 6
T0
T0 + 1
T0 + 2
NT0
NT0 + 1
NT0 + 2
MOVWF TMR0
MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W
MOVF TMR0,W
Write TMR0
executed
Read TMR0
reads NT0
Read TMR0
reads NT0
Read TMR0
reads NT0
Read TMR0
reads NT0 + 1
Read TMR0
reads NT0 + 2
Instruction
Executed
PC+5
PC
(Program
Counter)
PC – 1
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
Instruction
Fetch
Timer0
PC
PC + 1
PC + 2
PC + 3
PC + 4
PC + 6
T0
T0 + 1
NT0
NT0 + 1
MOVWF TMR0
MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W
MOVF TMR0,W
Write TMR0
executed
Read TMR0
reads NT0
Read TMR0
reads NT0
Read TMR0
reads NT0
Read TMR0
reads NT0 + 1
Read TMR0
reads NT0 + 2
Instruction
Executed
PC + 5
PC
(Program
Counter)
相關PDF資料
PDF描述
PIC10F222T-E/OT 8-BIT, FLASH, 8 MHz, RISC MICROCONTROLLER, PDSO6
PIC10F322T-I/OT 8-BIT, FLASH, 20 MHz, RISC MICROCONTROLLER, PDSO6
PIC12F635T-E/SN 8-BIT, FLASH, 20 MHz, RISC MICROCONTROLLER, PDSO8
PIC16C65B-04I/PQ 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PQFP44
PIC16C73BT-20E/SS 8-BIT, OTPROM, 20 MHz, RISC MICROCONTROLLER, PDSO28
相關代理商/技術參數(shù)
參數(shù)描述
PIC10F204 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:6-Pin, 8-Bit Flash Microcontrollers
PIC10F204-E/MC 功能描述:8位微控制器 -MCU 384B Flash16B RAM 4 I/O Comparator RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率: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 安裝風格:SMD/SMT
PIC10F204-E/OT 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:6-Pin, 8-Bit Flash Microcontrollers
PIC10F204-E/P 功能描述:8位微控制器 -MCU .375kBF 16RM 4I/O Ext Temp PDIP8 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率: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 安裝風格:SMD/SMT
PIC10F204-I/MC 功能描述:8位微控制器 -MCU 0.375KB 16B RAM RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率: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 安裝風格:SMD/SMT