R01UH0822EJ0100 Rev.1.00
Page 391 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
(3) Input Capture Function
The TCNT value can be transferred to TGR on detection of the MTIOCnm pin (n = 0 to 4; m = A to D) or MTIC5m pin
(m = U, V, W) input edge.
The rising edge, falling edge, or both edges can be selected as the detection edge. For MTU0 and MTU1, another
channel’s count clock or compare match signal can also be specified as the input capture source.
Note:
When another channel’s count clock is used as the input capture input for MTU0 and MTU1, PCLKB/1 should not
be selected as the count clock used for input capture input. Input capture will not be generated if PCLKB/1 is
selected.
(a) Example of Input Capture Operation Setting Procedure
shows an example of the input capture operation setting procedure.
Figure 19.10
Example of Input Capture Operation Setting Procedure
[1]
[2]
Input selection
Select input capture input
Start count
<Input capture operation>
[1] Designate TGR as an input capture register
by means of TIOR, and select rising edge,
falling edge, or both edges as the input
capture source and input signal edge.
[2] Set the CSTn bit in TSTRA or MTU5.TSTR to
1 to start the count operation.