upd70f3402 Renesas Electronics Corporation., upd70f3402 Datasheet - Page 306

no-image

upd70f3402

Manufacturer Part Number
upd70f3402
Description
32-/16-bit Single-chip Microcontroller With Can Interface
Manufacturer
Renesas Electronics Corporation.
Datasheet
TQ0CCR0
TQ1CCR0
(1)
306
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 0 (TQnCCR0)
The TQnCCR0 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 TQnCCS0 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 TQnCCR0 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
TQnCCR0 can be rewritten when TQnCE = 1 as below mentioned:
• When used as capture register
The count value is stored in TQnCCR0 upon capture trigger (TIQn0) input edge detection.
15
15
14
14
TMQ Operation Mode
13
13
Figure 8-2: Capture/Compare Register 0 (TQnCCR0) 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 TQnCCR0 Register
3
3
2
2
1
1
0
0
FFFF F546H R/W 0000H
FFFF F616H R/W 0000H
Address
Address
R/W
R/W
Initial
Initial
value
value

Related parts for upd70f3402