upd70f3402 Renesas Electronics Corporation., upd70f3402 Datasheet - Page 308

no-image

upd70f3402

Manufacturer Part Number
upd70f3402
Description
32-/16-bit Single-chip Microcontroller With Can Interface
Manufacturer
Renesas Electronics Corporation.
Datasheet
TQ0CCR2
TQ1CCR2
(3)
308
PWM output mode, external trigger pulse output mode,
or triangular wave PWM mode
Free-running mode, external event count mode,
one-shot pulse mode or interval timer mode
Pulse width measurement mode
Capture/compare register 2 (TQnCCR2)
The TQnCCR2 register is a 16-bit register that has a capture function and a compare function.
Whether this register is used as a capture register or a compare register can be specified by using
the TQnCCS2 bit of the TQnOPT0 register, but only in the free-running mode.
In the pulse width measurement mode, this register can be used only as a capture register (it
cannot be used as a compare register).
In all the modes other than the free-running mode and pulse width measurement mode, this
register functions as a compare register.
In the default status, the TQnCCR2 register functions as a compare register.
This register can be read or written in 16-bit units.
RESET input clears this register to 0000H.
• When used as a compare register
TQnCCR2 can be rewritten when TQnCE = 1, as below mentioned:
• When used as capture register
The count value is stored in TQnCCR2 upon capture trigger (TIQn2) input edge detection.
15
15
14
14
TMQ Operation Mode
13
13
Figure 8-4: Capture/Compare Register 2 (TQnCCR2) Format
12
12
11
11
Chapter 8 16-Bit Timer/Event Counter Q
10
10
User’s Manual U16702EE3V2UD00
9
9
8
8
7
7
6
6
Reload
Any time write
Cannot be used because used only as capture register
5
5
4
4
Method of Writing TQnCCR2 Register
3
3
2
2
1
1
0
0
FFFF F54AH R/W 0000H
FFFF F61AH R/W 0000H
Address
Address
R/W
R/W
Initial
Initial
value
value

Related parts for upd70f3402