r5f21368sdfp Renesas Electronics Corporation., r5f21368sdfp Datasheet - Page 267

no-image

r5f21368sdfp

Manufacturer Part Number
r5f21368sdfp
Description
Renesas Mcu R8c Family / R8c/3xt-a Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
r5f21368sdfp#V0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Under development
R8C/36T-A Group
R01UH0240EJ0001 Rev.0.01
Apr 28, 2011
Figure 15.6
15.4.5
Measurement pulse
input to TRJIO pin
This example applies when the high-level width of the measurement pulse is measured (TEDGSEL bit in TRJIOC register = 1)
TRJCR register
TRJCR register
TRJCR register
In this mode, the pulse width of an external signal input to the TRJIO pin is measured.
In pulse width measurement mode, when the level specified by the TEDGSEL bit in the TRJIOC register is
input to the TRJIO pin, the decrement is started with the selected count source. When the specified level on the
TRJIO pin ends, the counter is stopped, the TEDGF bit in the TRJCR register is set to 1 (active edge received)
and an interrupt is generated. The measurement of pulse width data is performed by reading the count value
while the counter is stopped. Also, when the counter underflows during measurement, the TUNDF bit in the
TRJCR register is set to 1 (underflow) and an interrupt is generated.
Figure 15.6 shows an Operation Timing Example in Pulse Width Measurement Mode.
When accessing bits TEDGF and TUNDF in the TRJCR register, refer to 15.5 Notes on Timer RJ (4).
TSTART bit in
TEDGF bit in
TUNDF bit in
FFFFh
0000h
Pulse Width Measurement Mode
n
Preliminary document
Specifications in this document are tentative and subject to change.
Operation Timing Example in Pulse Width Measurement Mode
n = TRJ register content
Set to 1 by a program
Measurement starts
Set to 0 by a program
Measurement
Measurement
stops
starts
Set to 0 by a program
Underflow
Set to 0 by a program
Measurement
Measurement
stops
starts
Page 236 of 725
15. Timer RJ
Time

Related parts for r5f21368sdfp