CHAPTER 7 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U16896EJ2V0UD
286
Figure 7-43. Example of Software Processing for Pulse Width Measurement (2/2)
<2> Capture trigger input flow
Edge detection of TI010, TI011 pins
Calculated pulse width
from capture value
Stores count value to
CR010, CR011 registers.
Generates capture interrupt
Note
.
TMC013, TMC012 bits =
01 or 10
Register initial setting
PRM01 register,
SELCNT1 register,
CRC01 register,
port setting
Initial setting of these registers is performed
before setting the TMC013 and TMC012 bits.
Starts count operation
START
<1> Count operation start flow
TMC013, TMC012 bits = 00
The counter is initialized and counting is stopped
by clearing the TMC013 and TMC012 bits to 00.
STOP
<3> Count operation stop flow
Note
The capture interrupt signal (INTTM010) is not generated when the reverse-phase edge of the TI010 pin
input is selected to the valid edge of the CR010 register.
Содержание ?PD703302
Страница 2: ...User s Manual U16896EJ2V0UD 2 MEMO ...