PIC12C5XX
ds40139e-页 26
1999 微芯 技术 公司
图示 6-2: timer0 定时: 内部的 时钟/非 prescale
图示 6-3: timer0 定时: 内部的 时钟/prescale 1:2
表格 6-1: 寄存器 有关联的 和 timer0
地址 名字 位 7 位 6 位 5 位 4 位 3 位 2 位 1 位 0
值在
电源-在
重置
值 在
所有 其它
Resets
01h TMR0 timer0 - 8-位 real-时间 时钟/计数器
xxxx xxxx uuuu uuuu
n/一个 选项
GPWU GPPU T0CS T0SE PSA PS2 PS1 PS0
1111 1111 1111 1111
n/一个 TRIS
—
—GP5GP4 GP3 GP2 GP1 GP0
--11 1111 --11 1111
legend: shaded cells 不 使用 用 timer0,
-
= unimplemented,
x
= unknown,
u
= 不变,
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
PC
(程序
计数器)
操作指南
Fetch
Timer0
PC PC+1 PC+2 PC+3 PC+4 PC+5 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
写 tmr0
executed
读 tmr0
读 nt0
读 tmr0
读 nt0
读 tmr0
读 nt0
读 tmr0
读 nt0 + 1
读 tmr0
读 nt0 + 2
操作指南
Executed
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
PC
(程序
计数器)
操作指南
Fetch
Timer0
PC PC+1 PC+2 PC+3 PC+4 PC+5 PC+6
T0 NT0+1
movwf tmr0
movf tmr0,w movf tmr0,w movf tmr0,w movf tmr0,w movf tmr0,w
写 tmr0
executed
读 tmr0
读 nt0
读 tmr0
读 nt0
读 tmr0
读 nt0
读 tmr0
读 nt0
读 tmr0
读 nt0 + 1
T0+1
NT0
操作指南
Execute
T0