NEC PD703114 User Manual page 308

V850e/ia2 32-bit single-chip microcontrollers
Table of Contents

Advertisement

(11) Capture/compare register 100 (CC100)
CC100 is a 16-bit register.
capture/compare control register 0 (CCR0). CC100 can be read/written in 16-bit units.
Cautions 1. When used as a capture register (CMS0 bit of CCR0 register = 0), write access is
prohibited.
2. When used as a compare register (CMS0 bit of CCR0 register = 1) during TM10
operation (TM1CE0 bit of TMC10 register = 1), overwriting the CC100 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, set a
new compare value.
5. Continuous reading of CC100 is prohibited. If CC100 is continuously read, the second
read value may differ from the actual value. If CC100 must be read twice, be sure to
read another register between the first and the second read operation.
15
14
13
CC100
(a) When set as a capture register
When CC100 is set as a capture register, the valid edge of the corresponding external interrupt signal
(INTP100) 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 CC100 register is specified as a capture register, interrupts are generated upon detection of
the valid edge of the INTP100 signal.
(b) When set as a compare register
When CC100 is set as a compare register, it always compares its own value with the value of TM10. If
the value of CC100 matches the value of the TM10, CC100 generates an interrupt signal (INTCC100).
308
CHAPTER 9 TIMER/COUNTER FUNCTION
It can be specified as a capture register or as a compare register using
12
11
10
9
8
7
User's Manual U15195EJ5V0UD
6
5
4
3
2
1
0
Address
After reset
FFFFF5E6H
0000H

Advertisement

Table of Contents
loading

Table of Contents