(5) Square-wave output
TM0 can output a square wave with any selected frequency.
Table 8-3. 16-Bit Timer/Event Counter Square-Wave Output Ranges
Minimum Pulse Width
MCS = 1
MCS = 0
2 x TI00 input cycle
2 x 1/f
—
(400 ns)
2 x 1/f
2
2
x 1/f
X
(400 ns)
(800 ns)
2
2
x 1/f
2
3
x 1/f
X
(800 ns)
(1.6 s)
3
4
2
x 1/f
2
x 1/f
X
(1.6 s)
(3.2 s)
2 x watch timer output cycle
Remarks 1. f
: Main system clock oscillation frequency
X
2. MCS : Bit 0 of oscillation mode selection register (OSMS)
3. Figures in parentheses operation with f
(6) One-shot pulse output
TM0 is able to output one-shot pulse which can set any width of output pulse.
184
CHAPTER 8 16-BIT TIMER/EVENT COUNTER
Maximum Pulse Width
MCS = 1
2
16
x TI00 input cycle
X
—
2
16
x 1/f
X
X
(13.1 ms)
2
17
x 1/f
X
X
(26.2 ms)
18
2
x 1/f
X
X
(52.4 ms)
2
16
x watch timer output cycle
X
MCS = 0
MCS = 1
TI00 input edge cycle
16
2
x 1/f
X
—
(13.1 ms)
2
17
x 1/f
1/f
X
(26.2 ms)
(200 ns)
2
18
x 1/f
2 x 1/f
X
(52.4 ms)
(400 ns)
19
2
2
x 1/f
2
x 1/f
X
(104.9 ms)
(800 ns)
Watch timer output edge cycle
= 5.0 MHz.
Resolution
MCS = 0
1/f
X
(200 ns)
2 x 1/f
X
X
(400 ns)
2
2
x 1/f
X
X
(800 ns)
3
2
x 1/f
X
X
(1.6 s)