English
Language : 

UPD784938 Datasheet, PDF (383/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
CHAPTER 12 TIMER 3
12.6 Example of Use
Operation as interval timer:
TM3 operates as an interval timer that generates interrupts repeatedly with the preset count time as the interval (see
Figure 12-9). TM3 can also be used for baud rate generation.
This interval timer can count up to a maximum of 20.85 ms at the minimum resolution of 0.32 µs, and up to 5.33 s at
the maximum resolution of 81.40 µs (internal system clock fXX = 12.58 MHz).
The control register settings are shown in Figure 12-10, and the setting procedure in Figure 12-11.
Figure 12-9. Interval Timer Operation Timing
n
n
TM3
count value
0H
Compare register
(CR30)
Count start
Clear
n
Clear
INTC30
interrupt request
Interval
Interrupt acknowledgment Interrupt acknowledgment
Interval
Remark Interval = (n+1) × x/fXX
0 ≤ n ≤ FFH, x = 4, 8, 16, 32, 64, 128, 256, 512, 1,024
Preliminary User’s Manual U13987EJ1V0UM00
383