English
Language : 

UPD70F3740GC-UEU-AX Datasheet, PDF (308/889 Pages) Renesas Technology Corp – RENESAS MCU
V850ES/JG3
CHAPTER 8 16-BIT TIMER/EVENT COUNTER Q (TMQ)
(a) Function as compare register
The TQ0CCR2 register can be rewritten even when the TQ0CTL0.TQ0CE bit = 1.
The set value of the TQ0CCR2 register is transferred to the CCR2 buffer register. When the value of the 16-bit
counter matches the value of the CCR2 buffer register, a compare match interrupt request signal (INTTQ0CC2)
is generated. If TOQ02 pin output is enabled at this time, the output of the TOQ02 pin is inverted.
(b) Function as capture register
When the TQ0CCR2 register is used as a capture register in the free-running timer mode, the count value of
the 16-bit counter is stored in the TQ0CCR2 register if the valid edge of the capture trigger input pin (TIQ02
pin) is detected. In the pulse-width measurement mode, the count value of the 16-bit counter is stored in the
TQ0CCR2 register and the 16-bit counter is cleared (0000H) if the valid edge of the capture trigger input pin
(TIQ02 pin) is detected.
Even if the capture operation and reading the TQ0CCR2 register conflict, the correct value of the TQ0CCR2
register can be read.
The following table shows the functions of the capture/compare register in each mode, and how to write data to the
compare register.
Table 8-4. Function of Capture/Compare Register in Each Mode and How to Write Compare Register
Operation Mode
Interval timer
External event counter
External trigger pulse output
One-shot pulse output
PWM output
Free-running timer
Pulse width measurement
Capture/Compare Register
Compare register
Compare register
Compare register
Compare register
Compare register
Capture/compare register
Capture register
How to Write Compare Register
Anytime write
Anytime write
Batch write
Anytime write
Batch write
Anytime write
−
R01UH0015EJ0300 Rev.3.00
Sep 30, 2010
Page 292 of 870