English
Language : 

UPD78F0411GA-GAM-AX Datasheet, PDF (207/564 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
CHAPTER 6 16-BIT TIMER/EVENT COUNTERS 00
Figure 6-53. Example of Software Processing for Pulse Width Measurement (2/2)
<1> Count operation start flow
START
Register initial setting
PRM00 register,
CRC00 register,
port setting
Initial setting of these registers is performed
before setting the TMC003 and TMC002 bits.
TMC003, TMC002 bits =
01 or 10
Starts count operation
<2> Capture trigger input flow
Edge detection of TI000, TI010 pins
Stores count value to
CR000, CR010 registers
Generates capture interruptNote
Calculated pulse width
from capture value
<3> Count operation stop flow
TMC003, TMC002 bits = 00
The counter is initialized and counting is stopped
by clearing the TMC003 and TMC002 bits to 00.
STOP
Note The capture interrupt signal (INTTM000) is not generated when the reverse-phase edge of the TI000 pin
input is selected to the valid edge of CR000.
User’s Manual U18698EJ1V0UD
205