Operation Of Tms Measure Input - Mitsubishi Electric M32R Series User Manual

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

Advertisement

10

10.5.7 Operation of TMS Measure Input

(1) Outline of TMS measure input
In TMS measure input, the counter starts counting up clock pulses when the timer is actuated by
writing to the enable bit in software. When event input is entered to TMS while the timer is
operating, the counter value is latched into measure registers 0-3. The timer stops at the same
time count is disabled by writing to the enable bit.
A TIN interrupt can be generated by entering a measure signal from an external device. Also,
when the counter overflows, a TMS interrupt can be generated.
Count clock
Enable bit
H'FFFF
Counter
Indeterminate
value
H'0000
Measure 0 register
TIN15 interrupt
Measure 1 register
TIN14 interrupt
TMS interrupt
by overflow
Figure 10.5.3 Typical Operation in TMS Measure Input
Enabled
Measure
(by writing to
event 0
enable bit)
occurs
Initial value (indeterminate)
Initial value (indeterminate)
Note: This diagram does not show detail timing information.
10-147
MULTIJUNCTION TIMERS
10.5 TMS (Input-related 16-bit Timer)
Measure
Overflow
event 1
occurs
occurs
H'C000
H'8000
H'8000
H'C000
Measure
Measure
event 0
event 1
occurs
occurs
H'D000
H'6000
H'6000
H'D000
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents