r5f21368sdfp Renesas Electronics Corporation., r5f21368sdfp Datasheet - Page 325

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 17.6
Figure 17.7
• TOA bit is 0 and TOB bit is 1 in TRCCR1 register
Figure 17.6 shows an Example of Toggle Output Operation during Period Count. The TRCCNT register is used
for the period count operation, and toggle output is performed at compare matches A and B.
The input capture function can be used to measure the pulse width or period.
By setting the general register to be an input capture register, the value in the TRCCNT register on input edge
detection of pins TRCIOA to TRCIOD is transferred to registers TRCGRA to TRCGRD. This value is used to
measure the period. The detection edge can be selected to be a rising edge, falling edge, or both edges.
Figure 17.7 shows an Example of Input Capture Operation. The TRCCNT register is used for the free-running
operation, and both edges are selected for the input-capture input to the TRCIOA pin and a falling edge is
selected for the input-capture input to the TRCIOB pin.
TRCGRA register
TRCGRB register
TRCGRA register
TRCGRB register
TRCCNT register value
TRCIOA
TRCIOB
Preliminary document
Specifications in this document are tentative and subject to change.
Example of Toggle Output Operation during Period Count
Example of Input Capture Operation
FFFFh
AA55h
55AAh
F000h
1000h
0000h
TRCCNT register value
TRCIOA
TRCIOB
FFFFh
0000h
1000h
Counter cleared by compare match with TRCGRA register
F000h
AA55h
55AAh
Page 294 of 725
Time
17. Timer RC
Time
Toggle
output
Toggle
output

Related parts for r5f21368sdfp