CHAPTER 9 TIMER/COUNTER FUNCTION
309
User’s Manual U15195EJ5V0UD
(12) Capture/compare register 101 (CC101)
CC101 is a 16-bit register. It can be specified as a capture register or as a compare register using
capture/compare control register 0 (CCR0). CC101 can be read/written in 16-bit units.
Cautions 1. When used as a capture register (CMS1 bit of CCR0 register = 0), write access is
prohibited.
2. When used as a compare register (CMS1 bit of CCR0 register = 1) during TM10
operation (TM1CE0 bit of TMC10 register = 1), overwriting the CC101 register values is
prohibited.
3. When TM10 has been stopped (TM1CE0 bit of TMC10 register = 0), the capture trigger is
disabled.
4. When the operation mode is changed from capture register to compare register, newly
set a compare value.
5. Continuous reading of CC101 is prohibited. If CC101 is continuously read, the second
read value may differ from the actual value. If CC101 must be read twice, be sure to
read another register between the first and the second read operation.
14
13
12
2
3
4
5
6
7
8
9
10
11
15
1
0
CC101
Address
FFFFF5E8H
After reset
0000H
(a) When set as a capture register
When CC101 is set as a capture register, the valid edge of either corresponding external interrupt signal
(INTP100 or INTP101) is selected with the selector, and the valid edge of the selected external interrupt
signal is detected as the capture trigger. TM10 latches the count value in synchronization with the
capture trigger (capture operation). The latched value is held in the capture register until the next capture
operation.
The valid edge of external interrupts (rising edge, falling edge, both rising and falling edges) is selected
by signal edge selection register 10 (SESA10).
When the CC101 register is specified as a capture register, interrupts are generated upon detection of
the valid edge of either the INTP100 or INTP101 signal.
(b) When set as a compare register
When CC101 is set as a compare register, it always compares its own value with the value of TM10. If
the value of CC101 matches the value of the TM10, CC101 generates an interrupt signal (INTCC101).
Содержание PD703114
Страница 2: ...2 User s Manual U15195EJ5V0UD MEMO ...