CHAPTER 9 TIMER/COUNTER FUNCTION
302
User’s Manual U15195EJ5V0UD
(2/2)
Bit position
Bit name
Function
Controls TM10 clear operation in UDC mode A.
CLR1
CLR0
Specifies TM10 clear source
0
0
Cleared only by external input (TCLR10)
0
1
Cleared upon match of TM10 count value and CM100
set value
1
0
Cleared by TCLR10 input or upon match of TM10 count
value and CM100 set value
1 1
Not
cleared
1, 0
CLR1, CLR0
Cautions 1. Clearing by match of the TM10 count value and CM100 set value
is valid only during a TM10 up count operation (TM10 is not
cleared during a TM10 down count operation).
2. The CLR1 and CLR0 bit settings are invalid in general-purpose
timer mode (CMD bit of TUM0 register = 0).
3. The CLR1 and CLR0 bit settings are invalid in UDC mode B
(MSEL bit of TUM0 register = 1).
4. When clearing by TCLR10 has been enabled by bits CLR1 and
CLR0, clearing is performed whether the value of the TM1CE0 bit
is 1 or 0.
(4) Capture/compare control register 0 (CCR0)
The CCR0 register specifies the operation mode of the capture/compare registers (CC100, CC101).
CCR0 can be read/written in 8-bit or 1-bit units.
Caution Overwriting the CCR0 register during TM10 operation (TM1CE0 bit = 1) is prohibited.
7
0
CCR0
6
0
5
0
4
0
3
0
2
0
1
CMS1
0
CMS0
Address
FFFFF5EAH
After reset
00H
Bit position
Bit name
Function
1
CMS1
Specifies operation mode of CC101.
0: Capture register
1: Compare register
0
CMS0
Specifies operation mode of CC100.
0: Capture register
1: Compare register