80
CHAPTER 6 8-BIT TIMER/EVENT COUNTERS 5 AND 6
6.1 8-Bit Timer/Event Counters 5 and 6 Functions
The 8-bit timer/event counters 5 and 6 (TM5 and TM6) have the following functions.
Interval timer
External event counter
Square-wave output
PWM output
(1) 8-bit interval timer
Interrupt requests are generated at the preset time intervals.
Table 6-2. 8-Bit Timer/Event Counters 5 and 6 Interval Times
Minimum Interval Time
Maximum Interval Time
Resolution
MCS = 1
MCS = 0
MCS = 1
MCS = 0
MCS = 1
MCS = 0
—
1/f
X
—
2
8
×
1/f
X
(51.2
μ
s)
—
1/f
X
(200 ns)
(200 ns)
1/f
X
2
×
1/f
X
(400 ns)
2
8
×
1/f
X
(51.2
μ
s)
2
9
×
1/f
X
(102.4
μ
s)
1/f
X
2
×
1/f
X
(400 ns)
(200 ns)
(200 ns)
2
×
1/f
X
(400 ns)
2
2
×
1/f
X
(800 ns)
2
9
×
1/f
X
(102.4
μ
s)
2
10
×
1/f
X
(204.8
μ
s)
2
×
1/f
X
(400 ns)
2
2
×
1/f
X
(800 ns)
2
2
×
1/f
X
(800 ns)
2
3
×
1/f
X
(1.6
μ
s)
2
10
×
1/f
X
(204.8
μ
s)
2
11
×
1/f
X
(409.6
μ
s)
2
2
×
1/f
X
(800 ns)
2
3
×
1/f
X
(1.6
μ
s)
2
3
×
1/f
X
(1.6
μ
s)
2
4
×
1/f
X
(3.2
μ
s)
2
11
×
1/f
X
(409.6
μ
s)
2
12
×
1/f
X
(819.2
μ
s)
2
3
×
1/f
X
(1.6
μ
s)
2
4
×
1/f
X
(3.2
μ
s)
2
4
×
1/f
X
(3.2
μ
s)
2
5
×
1/f
X
(6.4
μ
s)
2
12
×
1/f
X
(819.2
μ
s)
2
13
×
1/f
X
(1.64 ms)
2
4
×
1/f
X
(3.2
μ
s)
2
5
×
1/f
X
(6.4
μ
s)
2
5
×
1/f
X
(6.4
μ
s)
2
6
×
1/f
X
(12.8
μ
s)
2
13
×
1/f
X
(1.64 ms)
2
14
×
1/f
X
(3.28 ms)
2
5
×
1/f
X
(6.4
μ
s)
2
6
×
1/f
X
(12.8
μ
s)
2
6
×
1/f
X
(12.8
μ
s)
2
7
×
1/f
X
(25.6
μ
s)
2
14
×
1/f
X
(3.28 ms)
2
15
×
1/f
X
(6.55 ms)
2
6
×
1/f
X
(12.8
μ
s)
2
7
×
1/f
X
(25.6
μ
s)
2
7
×
1/f
X
(25.6
μ
s)
2
8
×
1/f
X
(51.2
μ
s)
2
15
×
1/f
X
(6.55 ms)
2
16
×
1/f
X
(13.1 ms)
2
7
×
1/f
X
(25.6
μ
s)
2
8
×
1/f
X
(51.2
μ
s)
2
8
×
1/f
X
(51.2
μ
s)
2
9
×
1/f
X
(102.4
μ
s)
2
16
×
1/f
X
(13.1 ms)
2
17
×
1/f
X
(26.2 ms)
2
8
×
1/f
X
(51.2
μ
s)
2
9
×
1/f
X
(102.4
μ
s)
2
9
×
1/f
X
(102.4
μ
s)
2
10
×
1/f
X
(204.8
μ
s)
2
17
×
1/f
X
(26.2 ms)
2
18
×
1/f
X
(52.4 ms)
2
9
×
1/f
X
(102.4
μ
s)
2
10
×
1/f
X
(204.8
μ
s)
2
11
×
1/f
X
(409.6
μ
s)
2
12
×
1/f
X
(819.2
μ
s)
2
19
×
1/f
X
(104.9 ms)
2
20
×
1/f
X
(209.7 ms)
2
11
×
1/f
X
(409.6
μ
s)
2
12
×
1/f
X
(819.2
μ
s)
Remarks 1.
f
X
: Main system clock oscillation frequency
2.
MCS : Oscillation mode selection register (OSMS) bit 0
3.
Values in parentheses when operated at f
X
= 5.0 MHz.