UPD784026 Renesas Electronics Corporation., UPD784026 Datasheet - Page 296

no-image

UPD784026

Manufacturer Part Number
UPD784026
Description
16/8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
9.7 EXAMPLES OF USE
9.7.1 Operation as Interval Timer (1)
interrupt processing routine, TM1 operates as an interval timer with the added fixed value as the cycle (see Figure 9-19).
processing routine in Figure 9-23.
256
When timer register 1 (TM1) is made free-running and a fixed value is added to the compare register (CR1n: n = 0, 1) in the
Since TM1 has two compare registers, two interval timers with different intervals can be constructed.
The control register settings are shown in Figure 9-20, the setting procedure in Figure 9-21, and the processing in the interrupt
Remark Interval = n
Compare Register
Interrupt Request
TM1
Count Value
x = 8, 16, 32, 64, 128, 256, 512, 1024, 2048
INTC10
(CR10)
0H
x/f
Timer Start
XX
, 1
Figure 9-19 Interval Timer Operation (1) Timing
n
Interval
FFH
n
CHAPTER 9 TIMER/COUNTER 1
n
Rewrittern by
Interrupt Program
Interval
FFH
MOD(2n)
MOD(2n)
Rewrittern by
Interrupt Program
Interval
MOD(3n)
MOD(3n)
FFH
Rewrittern by
Interrupt Program
MOD(4n)

Related parts for UPD784026