CHAPTER 7 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U16896EJ2V0UD
261
Figure 7-22. Example of Software Processing in Clear & Start Mode Entered by TI010 Pin Valid Edge Input
TM01 register
0000H
Operable bits
(TMC013, TMC012)
Count clear input
(TI010 pin input)
Compare register
(CR010)
Compare match interrupt
(INTTM010)
Compare register
(CR011)
Compare match interrupt
(INTTM011)
TO01 pin output
M
10
M
N
N
N
N
M
M
M
00
<1>
<2>
<2>
<2>
<3>
<2>
00
N
TMC013, TMC012 bits = 10
Edge input to TI010 pin
Register initial setting
PRM01 register,
SELCNT1 register,
CRC01 register,
TOC01 register
Note
,
CR010, CR011 registers,
TMC01.TMC011 bit,
port setting
Initial setting of these
registers is performed
before setting the
TMC013 and TMC012
bits to 10.
Starts count operation
When the valid edge is input to the TI010 pin,
the value of the TM01 register is cleared.
START
<1> Count operation start flow
<2> TM01 register clear & 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
Care must be exercised when setting the TOC01 register. For details, refer to
7.3 (3) 16-bit timer
output control register 01 (TOC01)
.