upd70f3402 Renesas Electronics Corporation., upd70f3402 Datasheet - Page 307

no-image

upd70f3402

Manufacturer Part Number
upd70f3402
Description
32-/16-bit Single-chip Microcontroller With Can Interface
Manufacturer
Renesas Electronics Corporation.
Datasheet
TQ0CCR1
TQ1CCR1
(2)
Caution:
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 1 (TQnCCR1)
The TQnCCR1 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 TQnCCS1 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 TQnCCR1 register functions as a reload 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
TQnCCR1 can be rewritten when TQnCE = 1, as below mentioned:
• When used as a capture register
The count value is stored in TQnCCR1 upon capture trigger (TIQn1) input edge detection.
15
15
In the one-shot pulse mode, it is prohibited to set the TQnCCR1 register to 0000H.
14
14
TMQ Operation Mode
13
13
Figure 8-3: Capture/Compare Register 1 (TQnCCR1) Format
12
12
11
11
Chapter 8 16-Bit Timer/Event Counter Q
User’s Manual U16702EE3V2UD00
10
10
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 TQnCCR1 Register
3
3
2
2
1
1
0
0
FFFF F548H R/W 0000H
FFFF F618H R/W 0000H
Address
Address
R/W
R/W
Initial
Initial
value
value
307

Related parts for upd70f3402