NEC V850E/RS1 User Manual page 259

32-/16-bit single-chip microcontroller with can interface
Table of Contents

Advertisement

(2)
TMP capture/compare register 1 (TPnCCR1)
The TPnCCR1 register is a 16-bit register that operates either both as a capture register or as a
compare register.
Whether this register is used as a capture register or as a compare register can be specified with
the TPnCCS1 and TPnCCS0 bits of the TMPn option register 0 (TPnOPT0 register), but only in
free-running mode.
In the pulse width measurement mode, this register can be used only as a capture register (the
compare function cannot be used.)
In all modes other than free-running mode and pulse width measurement mode, this register is
used as a compare register.
After RESET, TPnCCR1 register default status is compare register.
RESET input clears this register to 0000H.
Caution:
TPnCCR1
Remark:
• When used as a compare register
TPnCCR1 can be rewritten when TPnCE = 1, as below mentioned.
PWM mode, external trigger pulse output mode
Free-running mode, external event count mode,
one-shot pulse mode, interval timer mode
Pulse width measurement mode
• When used as a capture register
Count value is stored in TPnCCR1 upon capture trigger (TIPn1) input edge detection.
Note: The value of TPnCCR1 register is read when TPnCE bit of TMPn control register 0 (TPnCTL0)
Downloaded from
Elcodis.com
electronic components distributor
Chapter 7 16-Bit Timer/Event Counter P
When external event counter mode is used, do not set TPnCCR1 register to 0000H.
Figure 7-3: Capture/Compare Register 1 (TPnCCR1) Format
Address: TP0CCR1: FFFFF598H, TP1CCR1: FFFFF5A8H
TP2CCR1: FFFFF5B8H, TP3CCR1: FFFFF5C8H
15
14
13
12
11
10
n = 0 to 3
TMP operation mode
equals 1.
User's Manual U16702EE3V2UD00
9
8
7
6
5
4
TPnCCR0 register writing method
Reload
Any time write
Cannot be used because it is only used as capture
register
3
2
1
0
Address
FFFF F598H
to
FFFF F5C8H
Initial
R/W
value
R/W 0000H
259

Advertisement

Table of Contents
loading

Table of Contents