Operation In Tio Measure Free-Run/Clear Input Modes - Mitsubishi Electric M32R Series User Manual

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

Advertisement

MULTIJUNCTION TIMERS
10
10.4 TIO (Input/Output-related 16-bit Timer)

10.4.9 Operation in TIO Measure Free-run/Clear Input Modes

(1) Outline of TIO measure free-run/clear input modes
In TIO measure free-run/clear input modes, the timer measures a duration of time from when it
starts counting till when an external capture signal is entered. An interrupt can be generated by a
counter underflow or execution of measure operation.
After the timer is enabled (by writing to the enable bit in software), the counter starts counting
down synchronously with the count clock. When a capture signal is entered from an external
device, the counter value at that point in time is written to the measure register.
Especially in measure clear input mode, the counter value is initialized to H'FFFF upon capture,
from which the counter starts counting down again. When the counter underflows after reaching
the minimum count, it starts counting down from H'FFFF again. In measure free-run input mode,
the counter continues counting down even after capture and upon underflow, recycles to H'FFFF,
from which it starts counting down again.
To stop the counter, disable count by writing to the enable bit in software.
10-125
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents