Product Info

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 532 of 1852
Nov 30, 2020
RX23W Group 23. Multi-Function Timer Pulse Unit 2 (MTU2a)
(b) Example of Input Capture Operation
Figure 23.11 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)