CHAPTER 6 16-BIT TIMER/EVENT COUNTER
121
User’s Manual U11302EJ4V0UM
(1) Interval timer
TM0 generates interrupt requests at the preset time interval.
Table 6-2. 16-Bit Timer/Event Counter Interval Time
Minimum Interval Time
Maximum Interval Time
Resolution
2 x TI0 input cycle
2
16
x TI0 input cycle
TI0 input edge cycle
2 x
1/f
X
(400 ns)
2
16
x 1/f
X
(13.1 ms)
1/f
X
(200 ns)
2
2
x 1/f
X
(800 ns)
2
17
x 1/f
X
(26.2 ms)
2 x 1/f
X
(400 ns)
2
3
x 1/f
X
(1.6
µ
s)
2
18
x 1/f
X
(52.4 ms)
2
2
x 1/f
X
(800 ns)
2
4
x 1/f
X
(3.2
µ
s)
2
19
x 1/f
X
(104.9 ms)
2
3
x 1/f
X
(1.6
µ
s)
Remarks 1.
f
X
: Main system clock oscillation frequency
2.
Figures in parentheses apply to operation with f
X
= 5.0 MHz.
(2) PWM output
TM0 can generate 14-bit resolution PWM output.
(3) Pulse width measurement
TM0 can measure the pulse width of an externally input signal.
(4) External event counter
TM0 can measure the number of pulses of an externally input signal.
(5) Square-wave output
TM0 can output a square wave with any selected frequency.
Table 6-3. 16-Bit Timer/Event Counter Square-Wave Output Ranges
Minimum Pulse Width
Maximum Pulse Width
Resolution
2 x TI0 input cycle
2
16
x TI0 input cycle
TI0 input edge cycle
2 x
1/f
X
(400 ns)
2
16
x 1/f
X
(13.1 ms)
1/f
X
(200 ns)
2
2
x 1/f
X
(800 ns)
2
17
x 1/f
X
(26.2 ms)
2 x 1/f
X
(400 ns)
2
3
x 1/f
X
(1.6
µ
s)
2
18
x 1/f
X
(52.4 ms)
2
2
x 1/f
X
(800 ns)
2
4
x 1/f
X
(3.2
µ
s)
2
19
x 1/f
X
(104.9 ms)
2
3
x 1/f
X
(1.6
µ
s)
Remarks 1.
f
X
: Main system clock oscillation frequency
2.
Figures in parentheses apply to operation with f
X
= 5.0 MHz.