208
CHAPTER 10 8-BIT TIMERS 5, 6
User’s Manual U12697EJ3V0UM
10.3 Control Registers
The following four registers control 8-bit timers 5 and 6.
• 8-bit timer mode control registers 5, 6 (TMC5, TMC6)
• Prescaler mode registers 5, 6 (PRM5, PRM6)
(1) 8-bit timer mode control registers 5, 6 (TMC5, TMC6)
TMC5 and TMC6 make the following three settings.
<1> Controls the counting for 8-bit timer counters 5, 6 (TM5, TM6).
<2> Selects the operation mode of 8-bit timer counters 5, 6 (TM5, TM6).
<3> Selects the discrete mode or cascade connection mode (TMC6 only).
TMC5 and TMC6 are set by a 1-bit or 8-bit memory manipulation instruction.
RESET input sets TMC5 and TMC6 to 00H.
Figures 10-2 and 10-3 show the TMC5 format and TMC6 format respectively.
Figure 10-2. Format of 8-Bit Timer Mode Control Register 5 (TMC5)
Address: 0FF68H After reset: 00H R/W
Symbol
7
6
5
4
3
2
1
0
TMC5
TCE5
TMC56
0
0
0
0
0
0
TCE5
TM5 count control
0
Counting is disabled (prescaler disabled) after the counter is cleared to 0.
1
Start counting
TMC56
TM5 operation mode selection
0
Clear and start mode when TM5 and CR50 match.
1
PWM (free running) mode
Caution
When selecting the TM5 operation mode using TMC56, stop the timer operation in advance.
Remarks 1.
In the PWM mode, the PWM output is set to the inactive level by TCE5 = 0.
2.
If LVS5 and LVR5 are read after setting data, 0 is read.