Mitsubishi Electric M32R Series User Manual page 440

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

Advertisement

10
(3) Multiply-by-4 event count mode
In multiply-by-4 event count mode, the timer uses two external input signals in pairs (TIN24 and
TIN25, TIN26 and TIN27, or TIN28 and TIN29) as the clock sources with which to operate the
counter. The count direction is switched between up-count and down-count depending on the
status of the two input signals.
The two externally sourced signals both are sampled to detect rising and falling edges as the
timer generates clock pulses synchronized to the internal clock. When after setting the counter,
the timer is enabled (by writing to the enable bit in software), the counter starts counting up
synchronously with the generated clock. For details on whether the counter counts up or counts
down, see Table 10.7.2 below.
An interrupt can be generated by a counter overflow and/or underflow.
To stop the counter, disable count by writing to the enable bit in software or fix the external input
signals high or low.
Table 10.7.2 Count Direction during Multiply-by-4 Event Count Mode
Input
TIN24
(TIN26, TIN28)
TIN25
(TIN27, TIN29)
Up-count
H
L
H
10-170
MULTIJUNCTION TIMERS
10.7 TID (Input-related 16-bit Timer)
Count Direction
Down-count
H
L
L
L
H
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents