109
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 0
Preliminary User’s Manual U16035EJ1V0UM
Figure 6-2. Format of 16-Bit Timer Mode Control Register 0 (TMC0)
TMC03
TMC02
TMC01
Operating mode
TO0 output timing selection
Interrupt request generation
and clear mode selection
0
0
0
Operation stop
No change
Not generated
0
0
1
(TM0 cleared to 0)
0
1
0
Free-running mode
Match between TM0 and
CR00 or match between TM0
and CR01
0
1
1
Match between TM0 and
CR00, match between TM0
and CR01 or TI00 valid edge
1
0
0
Clear & start on TI00 valid
—
1
0
1
edge
1
1
0
Clear & start on match
Match between TM0 and
between TM0 and CR00
CR00 or match between TM0
and CR01
1
1
1
Match between TM0 and
CR00, match between TM0
and CR01 or TI00 valid edge
OVF0
16-bit timer counter 0 (TM0) overflow detection
0
Overflow not detected
1
Overflow detected
Cautions 1. Timer operation must be stopped before writing to bits other than the OVF0 flag.
2. Set the valid edge of the TI00/TO0/P70 pin with prescaler mode register 0 (PRM0).
3. If clear & start mode on match between TM0 and CR00 is selected, when the set value of
CR00 is FFFFH and the TM0 value changes from FFFFH to 0000H, OVF0 flag is set to 1.
Remark
TO0:
16-bit timer/event counter output pin
TI00:
16-bit timer/event counter input pin
TM0:
16-bit timer counter 0
CR00: 16-bit timer capture/compare register 00
CR01: 16-bit timer capture/compare register 01
Generated on match
between TM0 and CR00, or
match between TM0 and
CR01
7
0
6
0
5
0
4
0
3
TMC03
2
TMC02
1
TMC01
0
OVF0
Symbol
TMC0
Address FF60H After reset: 00H R/W