CHAPTER 7 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U16896EJ2V0UD
240
Figure 7-5. Example of Software Processing for Interval Timer Function
TM01 register
0000H
Operable bits
(TMC013, TMC012)
Compare register
(CR010)
Compare match interrupt
(INTTM010)
N
11
00
00
N
N
N
<1>
<2>
TMC013, TMC012 bits = 11
TMC013, TMC012 bits = 00
Register initial setting
PRM01 register,
SELCNT1 register,
CRC01 register,
CR010 register,
port setting
Initial setting of these registers is performed before
setting the TMC013 and TMC012 bits to 11.
Starts count operation
The counter is initialized and counting is stopped
by clearing the TMC013 and TMC012 bits to 00.
START
STOP
<1> Count operation start flow
<2> Count operation stop flow