CHAPTER 6 PERIPHERAL HARDWARE FUNCTION
131
Users Manual U10676EJ3V0UM
Figure 6-28. Format of Timer Counter Mode Register (Channel 2) (2/2)
TM23 Clears counter and IRQT2 flag when "1" is written. Starts count operation
if bit 2 is set to "1".
Timer start command bit
Operation mode
TM22
0
1
Stops (count value retained)
Count operation
Count operation
Operation mode select bit
TM21
0
0
8-bit timer counter mode
PWM pulse generator mode
ModeTM20
0
1
1
1
16-bit timer counter mode
Carrier generator mode
0
1
Caution After a reset, all bits of TM2 become "0", therefore when operating the timer it is necessary toset the count pulse value first. Moreover, when any setting prohibited value is set, the count pulseset becomes 0 and TM0 does not operate as a timer.