Outline Of Each Mode Of Tid - Mitsubishi Electric M32R Series User Manual

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

10

10.7.6 Outline of Each Mode of TID

Each mode of TID is outlined below. TID modes can be selected from the following, only one at a time:
(1) Fixed period count mode
In fixed period count mode, the timer uses a reload register to generate an interrupt at intervals of
(reload register set value + 1).
When after setting the reload register (initial value being indeterminate), the timer is enabled (by
writing to the enable bit in software), it loads the content of the reload register into the counter
synchronously with the count clock, letting the counter start counting. The counter counts down
clockpulses and when it underflows after reaching the minimum count, the counter is reloaded
with the content of the reload register again and continues counting. To stop the counter, disable
count by writing to the enable bit. Also, an interrupt can be generated each time the counter
underflows.
The valid count value is the (reload register set value + 1).
Count clock
Enable bit
H'FFFF
Counter
H'0000
Reload register
TID0 interrupt
by underflow
Note: This diagram does not show detail timing information.
Figure 10.7.3 Typical Operation in TID Fixed Period Count Mode
Enabled
by writing to enable bit
(
)
Enable-
synchronized
write
H'E000
Down-count
starting from
reload register
set value
H'E000
10-168
MULTIJUNCTION TIMERS
10.7 TID (Input-related 16-bit Timer)
Underflow
(first time)
H'DFFF
H'E000
Down-count
starting from
reload register
set value
Underflow
(second time)
H'DFFF
Down-count
starting from
reload register
set value
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents