CHAPTER 9 TIMER/COUNTER FUNCTION
307
User’s Manual U15195EJ5V0UD
(9) Compare register 100 (CM100)
CM100 is a 16-bit register that always compares its value with the value of TM10. When the value of a
compare register matches the value of TM10, an interrupt signal is generated. The interrupt generation
timing in the various modes is described below.
•
In the general-purpose timer mode (CMD bit of TUM0 register = 0) and UDC mode A (MSEL bit of TUM0
register = 0), an interrupt signal (INTCM100) is generated upon occurrence of a match.
•
In UDC mode B (MSEL bit of TUM0 register = 1), an interrupt signal (INTCM100) is generated only upon
occurrence of a match during a down count operation.
CM100 can be read/written in 16-bit units.
Caution When the TM1CE0 bit of the TMC10 register is 1, it is prohibited to overwrite the value of the
CM100 register.
14
13
12
2
3
4
5
6
7
8
9
10
11
15
1
0
CM100
Address
FFFFF5E2H
After reset
0000H
(10) Compare register 101 (CM101)
CM101 is a 16-bit register that always compares its value with the value of TM10. When the value of the
compare register matches the value of TM10, an interrupt signal is generated. The interrupt generation
timing in the various modes is described below.
•
In the general-purpose timer mode (CMD bit of TUM0 register = 0) and UDC mode A (MSEL bit of TUM0
register = 0), an interrupt signal (INTCM101) is generated upon occurrence of a match.
•
In UDC mode B (MSEL bit of TUM0 register = 1), an interrupt signal (INTCM101) is generated only upon
occurrence of a match during a down count operation.
CM101 can be read/written in 16-bit units.
Caution When the TM1CE0 bit of the TMC10 register is “1”, it is prohibited to overwrite the value of
the CM101 register.
14
13
12
2
3
4
5
6
7
8
9
10
11
15
1
0
CM101
Address
FFFFF5E4H
After reset
0000H