MC80F0304/08/16
November 4, 2011 Ver 2.12
59
Figure 13-1 TM0, TM1 Registers
BTCL
7
6
5
4
3
2
1
0
16BIT
POL
T1CN
INITIAL VALUE: 00
H
ADDRESS: 0D2
H
TM1
T1ST
T1CK0
T1CK1
PWM1E
CAP1
Bit Name
Bit Position
Description
POL
TM1.7
0: PWM Duty Active Low
1: PWM Duty Active High
16BIT
TM1.6
0: 8-bit Mode
1: 16-bit Mode
PWM1E
TM1.5
0: Disable PWM
1: Enable PWM
CAP1
TM1.4
0: Timer/Counter mode
1: Capture mode selection flag
T1CK1
T1CK0
TM1.3
TM1.2
00: 8-bit Timer, Clock source is f
XIN
01: 8-bit Timer, Clock source is f
XIN
÷
2
10: 8-bit Timer, Clock source is f
XIN
÷
8
11: 8-bit Timer, Clock source is Using the Timer 0 Clock
T1CN
TM1.1
0: Timer count pause
1: Timer count start
T1ST
TM1.0
0: When cleared, stop the counting.
1: When set, Timer 0 Count Register is cleared and start again.
BTCL
5
4
3
2
1
0
-
-
T0CN
INITIAL VALUE: --00 0000
B
ADDRESS: 0D0
H
TM0
T0ST
T0CK0
T0CK1
CAP0 T0CK2
Bit Name
Bit Position
Description
CAP0
TM0.5
0: Timer/Counter mode
1: Capture mode selection flag
T0CK2
T0CK1
T0CK0
TM0.4
TM0.3
TM0.2
000: 8-bit Timer, Clock source is f
XIN
÷
2
001: 8-bit Timer, Clock source is f
XIN
÷
4
010: 8-bit Timer, Clock source is f
XIN
÷
8
011: 8-bit Timer, Clock source is f
XIN
÷
32
100: 8-bit Timer, Clock source is f
XIN
÷
128
101: 8-bit Timer, Clock source is f
XIN
÷
512
110: 8-bit Timer, Clock source is f
XIN
÷
2048
111: EC0 (External clock)
T0CN
TM0.1
0: Timer count pause
1: Timer count start
T0ST
TM0.0
0: When cleared, stop the counting.
1: When set, Timer 0 Count Register is cleared and start again.
7
6
5
4
3
2
1
0
INITIAL VALUE: 0FF
H
ADDRESS: 0D1
H
TDR0
Read: Count value read
Write: Compare data write
R/W R/W R/W R/W R/W R/W R/W R/W
R/W R/W
R/W R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
7
6
5
4
3
2
1
0
INITIAL VALUE: 0FF
H
ADDRESS: 0D3
H
TDR1
R/W R/W R/W R/W R/W R/W R/W R/W