183
CHAPTER 8 16-BIT TIMER/EVENT COUNTER
8.2 16-Bit Timer/Event Counter Functions
The 16-bit timer/event counter (TM0) has the following functions.
• Interval timer
• PWM output
• Pulse width measurement
• External event counter
• Square-wave output
• One-shot pulse output
TM0 can perform both PWM output and pulse width measurement at the same time.
(1) Interval timer
TM0 generates interrupt requests at the preset time interval.
Table 8-2. 16-Bit Timer/Event Counter Interval Times
Minimum Interval Time
Maximum Interval Time
Resolution
MCS = 1
MCS = 0
MCS = 1
MCS = 0
MCS = 1
MCS = 0
2 x TI00 input cycle
2
16
x TI00 input cycle
TI00 input edge cycle
2 x 1/f
X
2
16
x 1/f
X
1/f
X
(400 ns)
(13.1 ms)
(200 ns)
2 x 1/f
X
2
2
x 1/f
X
2
16
x 1/f
X
2
17
x 1/f
X
1/f
X
2 x 1/f
X
(400 ns)
(800 ns)
(13.1 ms)
(26.2 ms)
(200 ns)
(400 ns)
2
2
x 1/f
X
2
3
x 1/f
X
2
17
x 1/f
X
2
18
x 1/f
X
2 x 1/f
X
2
2
x 1/f
X
(800 ns)
(1.6
µ
s)
(26.2 ms)
(52.4 ms)
(400 ns)
(800 ns)
2
3
x 1/f
X
2
4
x 1/f
X
2
18
x 1/f
X
2
19
x 1/f
X
2
2
x 1/f
X
2
3
x 1/f
X
(1.6
µ
s)
(3.2
µ
s)
(52.4 ms)
(104.9 ms)
(800 ns)
(1.6
µ
s)
2 x watch timer output cycle
2
16
x watch timer output cycle
Watch timer output edge cycle
Remarks 1. f
X
: Main system clock oscillation frequency
2. MCS : Bit 0 of oscillation mode selection register (OSMS)
3. 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.
—
—
—
Summary of Contents for PD78076
Page 2: ...2 MEMO ...
Page 12: ...12 MEMO ...
Page 48: ...48 MEMO ...
Page 64: ...64 MEMO ...
Page 82: ...82 MEMO ...
Page 100: ...100 MEMO ...
Page 130: ...130 MEMO ...
Page 180: ...180 MEMO ...
Page 222: ...222 MEMO ...
Page 248: ...248 MEMO ...
Page 288: ...288 MEMO ...
Page 308: ...308 MEMO ...
Page 364: ...364 MEMO ...
Page 494: ...494 MEMO ...
Page 526: ...526 MEMO ...
Page 544: ...544 MEMO ...
Page 558: ...558 MEMO ...
Page 580: ...580 MEMO ...
Page 596: ...596 MEMO ...
Page 598: ...598 MEMO ...
Page 626: ...626 MEMO ...