CHAPTER 7 TIMER/COUNTER FUNCTION
User’s Manual U13850EJ4V0UM
217
Figure 7-40. 8-Bit Timer Mode Control Registers 2 to 7 (TMC2 to TMC7)
After reset:
04H
R/W
Address: TMC2
FFFFF246H
TMC5
FFFFF276H
TMC3
FFFFF256H
TMC6
FFFFF286H
TMC4
FFFFF266H
TMC7
FFFFF296H
<7>
6
5
4
<3>
<2>
1
<0>
TMCn
TCEn
TMCn6
0
TMCn4
LVSm
LVRm
TMCm1
TOEm
(n = 2 to 7, m = 2 to 5)
TCEn
TMn count operation control
0
Counting is disabled after the counter is cleared to 0 (prescaler disabled)
1
Start count operation
TMCn6
TMn operating mode selection
0
Clear & Start mode when TMn and CRn0 match
1
PWM (free-running) mode
TMCn4
Individual mode or cascade connection mode selection
0
Individual mode (fixed to 0 when n = 2, 4, 6)
1
Cascade connection mode (connection to lower timer)
LVSm
LVRm
Setting state of timer output flip-flop
0
0
Not change
0
1
Reset timer output flip-flop to 0
1
0
Set timer output flip-flop to 1
1
1
Setting prohibited
Other than PWM (free-running) mode
(TMCn6 = 0)
PWM (free-running) mode
(TMCn6 = 1)
TMCm1
Controls timer F/F
Selects active level
0
Disable inversion operation
Active high
1
Enable inversion operation
Active low
TOEm
Timer output control
0
Disable output (port mode)
1
Enable output
Cautions 1. When using as the timer output pin (TOm), set the port value to 0 (port mode output).
An ORed value of the timer output value is output.
2. Since TOm and TIm share the same pin, only one of the functions can be used.
Remarks 1.
In the PWM mode, the PWM output is set to the inactive level by TCEm = 0.
2.
If LVSm and LVRm are read after setting data, 0 is read.
Содержание MPD703030A
Страница 2: ...User s Manual U13850EJ4V0UM 2 MEMO ...
Страница 514: ...User s Manual U13850EJ4V0UM 514 MEMO ...