UPD784026 Renesas Electronics Corporation., UPD784026 Datasheet - Page 355

no-image

UPD784026

Manufacturer Part Number
UPD784026
Description
16/8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
10.9 EXAMPLES OF USE
10.9.1 Operation as Interval Timer (1)
1) in the interrupt service routine, TM2 operates as an interval timer with the added fixed value as the cycle (see Figure
10-35).
the interrupt processing routine in Figure 10-38.
When timer register 2 (TM2) is made free-running and a fixed value is added to the compare register (CR2n: n = 0,
The control register settings are shown in Figure 10-36, the setting procedure in Figure 10-37, and the processing in
Remark Interval = n
Compare Register
Interrupt Request
Count Value
INTC20
(CR20)
TM2
0H
1
x/f
n
Timer Start
XX
FFH, x = 8, 16, 32, 64, 128, 256, 512, 1024, 2048
Figure 10-35 Interval Timer Operation (1) Timing
Interval
CHAPTER 10 TIMER/COUNTER 2
n
n
Rewritten by
Interrupt Program
Interval
FFH
MOD(2n)
MOD(2n)
Rewritten by
Interrupt Program
Interval
MOD(3n)
MOD(3n)
FFH
Rewritten by
Interrupt Program
MOD(4n)
315

Related parts for UPD784026