User’s Manual U12697EJ3V0UM
CHAPTER 9 8-BIT TIMER/EVENT COUNTERS 1, 2
190
Figure 9-3. Format of 8-Bit Timer Mode Control Register 2 (TMC2)
Address: 0FF55H After reset: 00H R/W
Symbol
7
6
5
4
3
2
1
0
TMC2
TCE2
TMC26
0
TMC24
LVS2
LVR2
TMC21
TOE2
TCE2
TM2 count control
0
Counting is disabled (prescaler disabled) after the counter is cleared to 0.
1
Start counting
TMC26
TM2 operation mode selection
0
Clear and start mode when TM2 and CR20 match
1
PWM (free running) mode
TMC24
Discrete mode or cascade connection mode selection
0
Discrete mode
1
Cascade connection mode (connection with TM1)
LVS2
LVR2
Timer output control by software
0
0
No change
0
1
Reset (to 0)
1
0
Set (to 1)
1
1
Setting prohibited
TMC21
Other than PWM mode (TMC26 = 0)
PWM mode (TMC26 = 1)
Timer output control
Active level selection
0
Disable inversion operation
Active high
1
Enable inversion operation
Active low
TOE2
Timer output control
0
Ouput disabled (port mode)
1
Ouput enabled
Caution When selecting the TM2 operation mode using TMC26 or selecting discrete/cascade connection
mode using TMC24, stop timer opeation in advance. To stop the timer operation during
cascade connection, clear both bit 7 (TCE1) of 8-bit timer mode control register 1 (TMC1)
and bit 7 (TCE2) of TMC2.
Remarks 1.
In the PWM mode, the PWM output is set to the inactive level by TCE2 = 0.
2.
If LVS2 and LVR2 are read after setting data, 0 is read.