upd70f3402 Renesas Electronics Corporation., upd70f3402 Datasheet - Page 259

no-image

upd70f3402

Manufacturer Part Number
upd70f3402
Description
32-/16-bit Single-chip Microcontroller With Can Interface
Manufacturer
Renesas Electronics Corporation.
Datasheet
TPnCCR1
(2)
Caution:
Remark:
Note: The value of TPnCCR1 register is read when TPnCE bit of TMPn control register 0 (TPnCTL0)
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
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.
• When used as a compare register
TPnCCR1 can be rewritten when TPnCE = 1, as below mentioned.
• When used as a capture register
Count value is stored in TPnCCR1 upon capture trigger (TIPn1) input edge detection.
Address: TP0CCR1: FFFFF598H, TP1CCR1: FFFFF5A8H
15
equals 1.
When external event counter mode is used, do not set TPnCCR1 register to 0000H.
n = 0 to 3
14
TP2CCR1: FFFFF5B8H, TP3CCR1: FFFFF5C8H
TMP operation mode
13
Figure 7-3: Capture/Compare Register 1 (TPnCCR1) Format
12
11
Chapter 7 16-Bit Timer/Event Counter P
10
User’s Manual U16702EE3V2UD00
9
8
7
6
Reload
Any time write
Cannot be used because it is only used as capture
register
5
4
TPnCCR0 register writing method
3
2
1
0
FFFF F5C8H
FFFF F598H
Address
to
R/W
R/W 0000H
259
Initial
value

Related parts for upd70f3402