R01UH0823EJ0100 Rev.1.00
Page 523 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
(3) Input Capture Function
The TCNT value can be transferred to the TGR register on detection of the input edge of the MTIOCnm (n = 0 to 4; m =
A to D) pin.
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, PCLK/1 should not
be selected as the count clock used for input capture input. Input capture will not be generated if PCLK/1 is
selected.
(a) Example of Input Capture Operation Setting Procedure
shows an example of the input capture operation setting procedure.
Figure 23.10
Example of Input Capture Operation Setting Procedure
[1]
[2]
[1] Designate the TGR register as an input capture
register by means of the TIOR register, and
select rising edge, falling edge, or both edges as
the input capture source and input signal edge.
[2] Set the TSTR.CSTn bit to 1 to start the count
operation.
Input selection
Select input capture input
Start count
Input capture operation