UPD784026 Renesas Electronics Corporation., UPD784026 Datasheet - Page 251

no-image

UPD784026

Manufacturer Part Number
UPD784026
Description
16/8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
8.8 EXAMPLES OF USE
8.8.1 Operation as Interval Timer (1)
interrupt processing routine, TM0 operates as an interval timer with the added fixed value as the cycle (see Figure 8-30).
processing routine in Figure 8-33.
When timer register 0 (TM0) is made free-running and a fixed value is added to the compare register (CR0n: n = 0, 1) in the
This interval timer can count within the range shown in Table 8-1 (internal system clock f
Since TM0 has two compare registers, two interval timers with different cycles can be constructed.
The control register settings are shown in Figure 8-31, the setting procedure in Figure 8-32, and the processing in the interrupt
Remark Interval = n
Compare Register
Interrupt Request
TM0
Count Value
INTC00
(CR00)
0H
8/f
Timer Start
XX
, 1
Figure 8-30 Interval Timer Operation (1) Timing
n
Interval
FFFFH
n
CHAPTER 8 TIMER/COUNTER 0
n
Rewritten by
Interrupt Program
Interval
FFFFH
MOD(2n)
MOD(2n)
Rewritten by
Interrupt Program
Interval
MOD(3n)
MOD(3n)
XX
= 25 MHz).
FFFFH
Rewritten by
Interrupt Program
MOD(4n)
211

Related parts for UPD784026