Mitsubishi Electric M32R Series User Manual page 439

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

Advertisement

10
(2) Event count mode
In event count mode, the timer uses an external input signal (TIN24, TIN26, or TIN28) as the
clock source with which to operate the counter.
Note: TIN25, TIN27, and TIN29 cannot be used as the clock source.
By detecting rising and falling edges of the external input signal (TIN24, TIN26, or TIN28), 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 from
the set count value synchronously with the generated clock. An interrupt can be generated by a
counter overflow.
To stop the counter, disable count by writing to the enable bit in software or fix the external input
signal high or low.
TIN24
Counter value 7FFF
Figure 10.7.4 Typical Operation in TID Event Count Mode (Basic Operation)
TIN24
Counter value
TID interrupt
by overflow
Figure 10.7.5 Typical Operation in TID Event Count Mode (when Overflow Occurs)
8000
FFFD
FFFE
FFFF
10-169
MULTIJUNCTION TIMERS
10.7 TID (Input-related 16-bit Timer)
8002
8001
0000
0001
8003
8004
0002
0003
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents