R01UH0823EJ0100 Rev.1.00
Page 524 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
(b) Example of Input Capture Operation
shows an example of input capture operation.
In this example, both rising and falling edges have been selected as the MTIOCnA pin input capture input edge, the
falling edge has been selected as the MTIOCnB pin input capture input edge, and counter clearing by the TGRB input
capture has been designated for the TCNT counter.
Figure 23.11
Example of Input Capture Operation
TCNT value
0180h
0000h
MTIOCnA
TGRA
Time
0010h
0005h
0160h
0005h
0160h
0010h
TGRB
0180h
MTIOCnB
Counter cleared by MTIOCB input
(falling edge)
(n = 0 to 4)