CHAPTER 9 TIMER/COUNTER FUNCTION
301
User’s Manual U15195EJ5V0UD
(3) Timer control register 10 (TMC10)
The TMC10 register is used to enable/disable TM10 operation and to set transfer and timer clear operations.
TMC10 can be read/written in 8-bit or 1-bit units.
Caution Changing the values of the TMC10 register bits other than the TM1CE0 bit during TM10
operation (TM1CE0 = 1) is prohibited.
(1/2)
7
0
TMC10
<6>
TM1CE0
5
0
4
0
3
RLEN
2
ENMD
1
CLR1
0
CLR0
Address
FFFFF5ECH
After reset
00H
Bit position
Bit name
Function
6
TM1CE0
Enables/disables TM10 operation.
0: TM10 count operation disabled
1: TM10 count operation enabled
3
RLEN
Enables/disables transfer from CM100 to TM10.
0: Transfer disabled
1: Transfer enabled
Cautions 1. When RLEN = 1, the value set to CM100 is transferred to TM10
upon occurrence of a TM10 underflow.
2.
The RLEN bit is valid only in UDC mode A (TUM0 register’s CMD
bit = 1, MSEL bit = 0). In the general-purpose timer mode (CMD
bit = 0) and in UDC mode B (CMD bit = 1, MSEL bit =1), a transfer
operation is not performed even the RLEN bit is set (1).
2
ENMD
Enables/disables clearing of TM10 in general-purpose timer mode (CMD bit of TUM0
register = 0).
0: Clear disabled (free-running mode)
Clearing is not performed even when TM10 and CM100 values match.
1: Clear enabled
Clearing is performed when TM10 and CM100 values match.
Caution
The ENMD bit setting becomes invalid in UDC mode (CMD bit of
TUM0 register = 1).