185
CHAPTER 8 16-BIT TIMER/EVENT COUNTER
0000
TMC03TMC02 TMC01
OVF0
7654321<0>Symbol
TMC0 FF48H 00H R/W
Address After Reset R/W
OVF0 16-Bit Timer Register Overflow Detection
0 Overflow not detected
1 Overflow detected
TMC03TMC02 TMC01
Operating Mode
Clear Mode Selection TO0 Output Timing Selection Interrupt Generation
000
Operation stop
(TM0 cleared to 0) No change Not Generated
001
PWM mode
(free running) PWM pulse output
010
011
100
101
110
111
Free running mode
Match between TM0 and
CR00 or match between
TM0 and CR01
Match between TM0 and
CR00, match between
TM0 and CR01 or TI00
valid edge
Match between TM0 and
CR00 or match between
TM0 and CR01
Match between TM0 and
CR00, match between
TM0 and CR01 or TI00
valid edge
Match between TM0 and
CR00 or match between
TM0 and CR01
Match between TM0 and
CR00, match between
TM0 and CR01 or TI00
valid edge
Clear & start on TI00
valid edge
Clear & start on match
between TM0 and CR00
Generated on match
between TM0 and CR00,
or match between TM0
and CR01
Figure 8-4. 16-Bit Timer Mode Control Register Format
Remarks 1. TO0 : 16-bit timer/event counter output pin
2. TI00 : 16-bit timer/event counter input pin
3. TM0 : 16-bit timer register
4. CR00 : Compare register 00
5. CR01 : Compare register 01
Cautions 1. Switch the clear mode and the T00 output timing after stopping the timer operation
(by setting TMC01 to TMC03 to 0, 0, 0).
2. Set the valid edge of the TI00/INTP0 pin with an external interrupt mode register 0
(INTM0) and select the sampling clock frequency with a sampling clock select register
(SCS).
3. When using the PWM mode, set the PWM mode and then set data to CR00.
4. 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.