103
CHAPTER 6 8-BIT TIMER/EVENT COUNTERS 50 TO 53
User’s Manual U15104EJ2V0UD
Figure 6-7. Format of 8-Bit Timer Mode Control Registers 50 to 52 (TMC50 to TMC52)
TCE5n
Control of count operation of TM5n
0
Clears counter to 0 and disables count operation (disables prescaler)
1
Starts count operation
TMC5n6
Selection of operating mode of TM5n
0
Mode of clearing and starting TM5n on match between TM5n and CR5n
1
PWM (free-running) mode
TMC5n4
Selection of single mode or cascade mode
0
Single mode
1
Note
Cascade mode (connected to lower timer)
LVS5n LVR5n
Setting status of timer output F/F
0
0
Not affected
0
1
Resets timer output F/F to 0
1
0
Sets timer output F/F to 1
1
1
Setting prohibited
TMC5n1 Other than PWM mode (TMC5n6 = 0)
PWM mode (TMC5n6 = 1)
Control of timer F/F
Selection of active level
0
Disables inversion operation
High active
1
Enables inversion operation
Low active
TOE5n
Control of timer output
0
Disables output (port mode)
1
Enables output
Note
Since the higher timer settings become valid, the lower timer TMC504/TMC524 settings become
invalid.
Caution
Be sure to reset bit 4 (TMC5n4) to 0.
Remarks 1. The PWM output becomes inactive when TCE5n = 0 in the PWM mode.
2. LVS5n and LVR5n are 0 when read after data has been set.
3. n = 0 to 2
<7>
TCE50
6
TMC506
5
0
4
TMC504
<3>
LVS50
<2>
LVR50
1
TMC501
<0>
TOE50
Symbol
TMC50
Address
FF85H
After reset
00H
R/W
R/W
<7>
TCE51
6
TMC516
5
0
4
TMC514
<3>
LVS51
<2>
LVR51
1
TMC511
<0>
TOE51
TMC51
FF88H
00H
R/W
<7>
TCE52
6
TMC526
5
0
4
TMC524
<3>
LVS52
<2>
LVR52
1
TMC521
<0>
TOE52
TMC52
FF75H
00H
R/W