CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 50 AND 51
Preliminary User’s Manual U19014EJ1V0UD
184
Figure 7-8. Format of 8-Bit Timer Mode Control Register 51 (TMC51)
Address: FF43H After reset: 00H R/W
Note
Symbol
<7> 6 5 4 <3>
<2> 1 <0>
TMC51 TCE51
TMC516 0
0 LVS51
LVR51
TMC511
TOE51
TCE51
TM51 count operation control
0
After clearing to 0, count operation disabled (counter stopped)
1 Count
operation
start
TMC516
TM51 operating mode selection
0
Mode in which clear & start occurs on a match between TM51 and CR51
1
PWM (free-running) mode
LVS51
LVR51
Timer output F/F status setting
0 0
No
change
0
1
Timer output F/F clear (0) (default output value of TO51 pin: low)
1
0
Timer output F/F set (1) (default output value of TO51 pin: high)
1 1
Setting
prohibited
In other modes (TMC516 = 0)
In PWM mode (TMC516 = 1)
TMC511
Timer F/F control
Active level selection
0
Inversion operation disabled
Active-high
1
Inversion operation enabled
Active-low
TOE51 Timer
output
control
0
Output disabled (TM51 output is low level)
1 Output
enabled
Note
Bits 2 and 3 are write-only.
Cautions 1. The settings of LVS5n and LVR5n are valid in other than PWM mode.
2. Perform <1> to <4> below in the following order, not at the same time.
<1> Set TMC5n1, TMC5n6:
Operation mode setting
<2> Set TOE5n to enable output:
Timer output enable
<3> Set LVS5n, LVR5n (see Caution 1): Timer F/F setting
<4> Set TCE5n
3. Stop operation before rewriting TMC5n6.
4. When 8-bit timer H1 is used in the carrier generator mode, set TMC516 to 0.
Remarks 1.
In PWM mode, PWM output is made inactive by clearing TCE5n to 0.
2.
If LVS5n and LVR5n are read, the value is 0.
3.
The values of the TMC5n6, LVS5n, LVR5n, TMC5n1, and TOE5n bits are reflected at the TO5n pin
regardless of the value of TCE5n.
4.
n = 0, 1
electronic components distributor