upd70f3402 Renesas Electronics Corporation., upd70f3402 Datasheet - Page 258

no-image

upd70f3402

Manufacturer Part Number
upd70f3402
Description
32-/16-bit Single-chip Microcontroller With Can Interface
Manufacturer
Renesas Electronics Corporation.
Datasheet
TPnCCR0
(1)
Caution:
Remark:
Note: The value of TPnCCR0 register is read when TPnCE bit of TMPn control register 0 (TPnCTL0)
258
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 0 (TPnCCR0)
The TPnCCR0 register is a 16-bit register that operates either as 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 TPnCCSS0 bits of the TMPn option register 0 (TPnOPT0 register), but only in
the 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 a RESET, TPnCCR0 register default status is compare register.
RESET input clears this register to 0000H.
• When used as a compare register
TPnCCR0 can be rewritten when TPnCE = 1, as below mentioned.
• When used as capture register
Count value is stored in TPnCCR0 upon capture trigger (TIPn0) input edge detection.
Address: TP0CCR0: FFFFF596H, TP1CCR0: FFFFF5A6H,
15
equals 1.
When external event counter mode is used, do not set TPnCCR0 register to 0000H.
n = 0 to 3
14
TP2CCR0: FFFFF5B6H, TP3CCR0: FFFFF5C6H
TMP operation mode
13
Figure 7-2: Capture/Compare Register 0 (TPnCCR0) Format
12
11
Chapter 7 16-Bit Timer/Event Counter P
10
9
User’s Manual U16702EE3V2UD00
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 F5C6H
FFFF F596H
Address
to
R/W
R/W 0000H
Initial
value

Related parts for upd70f3402