CHAPTER 7 16-BIT TIMER/EVENT COUNTERS 00 AND 01
Preliminary User’s Manual U17260EJ3V1UD
238
Figure 7-57. Example of Software Processing for Pulse Width Measurement (2/2)
<2> Capture trigger input flow
Edge detection of TI00n, TI01n pins
Calculated pulse width
from capture value
Stores count value to
CR00n, CR01n registers
Generates capture interrupt
Note
TMC0n3, TMC0n2 bits =
01 or 10
Register initial setting
PRM0n register,
CRC0n register,
port setting
Initial setting of these registers is performed
before setting the TMC0n3 and TMC0n2 bits.
Starts count operation
START
<1> Count operation start flow
TMC0n3, TMC0n2 bits = 00
The counter is initialized and counting is stopped
by clearing the TMC0n3 and TMC0n2 bits to 00.
STOP
<3> Count operation stop flow
Note
The capture interrupt signal (INTTM00n) is not generated when the reverse-phase edge of the TI00n pin
input is selected to the valid edge of CR00n.
Remark
n = 0:
µ
PD78F0531, 78F0532, 78F0533
n = 0, 1:
µ
PD78F0534, 78F0535, 78F0536, 78F0537, 78F0537D