Operation Of Tms Measure Input - Renesas M32R/ECU 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, when the timer is enabled (by writing to the enable bit in software), it starts counting
up synchronously with the count clock. Then when event input to TMS is detected while the timer is operat-
ing, the counter value is latched into measure registers 0–3. The timer stops counting at the same time count
is disabled by writing to the enable bit.
A TIN interrupt request can be generated by measure signal input from an external device. A TMS interrupt
request can be generated when the counter overflows.
Count clock
Enable bit
Counter
Measure 0 register
TIN15 interrupt request
Measure 1 register
TIN14 interrupt request
TMS interrupt request
due to overflow
Figure 10.5.3 Typical Operation of TMS Measure Input
(2) Precautions on using TMS measure input
The following describes precautions to be observed when using TMS measure input.
• If measure event input and write to the counter occur in the same clock period, the write value is set in the
counter while at the same time latched into the measure register.
Enabled
Measure
(by writing to the
enable bit)
H'FFFF
Undefined
value
H'0000
Undefined
Undefined
Note: • This diagram does not show detailed timing information.
10.5 TMS (Input-Related 16-Bit Timer)
Measure
event 0
event 1
Overflow
occurs
occurs
occurs
H'C000
H'8000
H'8000
H'C000
10-131
MULTIJUNCTION TIMERS
Measure
Measure
event 0
event 1
occurs
occurs
H'D000
H'6000
H'6000
H'D000
32180 Group User's Manual (Rev.1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents