English
Language : 

UPD784938 Datasheet, PDF (305/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
CHAPTER 11 TIMER/EVENT COUNTER 2
11.1 Functions
Timer/event counter 2 is 16-bit or 8-bit timer/event counter, and has the following function which the other three timer/
counters do not have:
• One-shot timerNote
Note The one-shot timer function is a count operation of timer/event counter 2 (TM2/TM2W), and is thus different in
nature from the one-shot pulse output function of timer/event counter 0.
In this section, the following four basic functions are described in order:
• Interval timer
• Programmable square-wave output
• Pulse width measurement
• External event counter
(1) Interval timer
Generates internal interrupts at preset intervals.
Table 11-1. Timer/Event Counter 2 Intervals
Minimum Interval
4/fXX
(0.32 µs)
8/fXX
(0.64 µs)
16/fXX
(1.27 µs)
32/fXX
(2.54 µs)
64/fXX
(5.09 µs)
128/fXX
(10.17 µs)
256/fXX
(20.35 µs)
512/fXX
(40.70 µs)
1,024/fXX
(81.40 µs)
Maximum Interval
Resolution
216 × 4/fXX
(20.8 ms)
4/fXX
(0.32 µs)
216 × 8/fXX
(41.7 ms)
8/fXX
(0.64 µs)
216 × 16/fXX
(83.4 ms)
16/fXX
(1.27 µs)
216 × 32/fXX
(167 ms)
32/fXX
(2.54 µs)
216 × 64/fXX
(333 ms)
64/fXX
(5.09 µs)
216 × 128/fXX
(667 ms)
128/fXX
(10.17 µs)
216 × 256/fXX
(1.33 s)
256/fXX
(20.35 µs)
216 × 512/fXX
(2.67 s)
512/fXX
(40.70 µs)
216 × 1,024/fXX
1,024/fXX
(5.33 s)
(81.40 µs)
( ): When fXX = 12.58 MHz
Preliminary User’s Manual U13987EJ1V0UM00
305