CHAPTER 8 TIMER/COUNTER FUNCTION
User’s Manual U15109EJ3V0UD
301
After reset:
04H
R/W
Address: TMC50 FFFFF336H
TMC60 FFFFF286H
<7>
6
5
4
<3>
<2>
1
<0>
TMCn0
TCEn0
TMCn06
0
0
LVSn0
LVRn0
TMCn01
TOEn0
(n = 5, 6)
TCEn0
TMn count operation control
0
Counting is disabled after the counter is cleared to 0 (prescaler disabled)
1
Start count operation
TMCn06
TMn operating mode selection
0
Clear & start mode entered when TMn and CRn match
1
PWM (free-running) mode
LVSn0
LVRn0
Setting state of timer output flip-flop
0
0
Not change
0
1
Reset timer output flip-flop (0)
1
0
Set timer output flip-flop (1)
1
1
Setting prohibited
Other than PWM (free-running) mode
(TMCn06 = 0)
PWM (free-running) mode
(TMCn06 = 1)
TMCn01
Controls timer F/F
Selects active level
0
Disable inversion operation
Active high
1
Enable inversion operation
Active low
TOEn0
Timer output control
0
Disable output (port mode)
1
Enable output
Cautions 1.
When using the timer output pin (TOn), set the port value to 0 (port mode output).
An ORed value (logical OR) of the timer output values is output.
2.
Since TOn and TIn are the same alternate-function pin, only one function can be used.
Remarks 1.
In the PWM mode, the PWM output is set to the inactive level by TCEn0 = 0.
2.
If LVSn0 and LVRn0 are read after setting data, 0 is read.