R01UH0823EJ0100 Rev.1.00 Page 687 of 1823
Jul 31, 2019
RX23W Group 25. 16-Bit Timer Pulse Unit (TPUa)
(a) Example of setting procedure for input capture operation
Figure 25.8 shows an example of the setting procedure for input capture operation.
Figure 25.8 Example of Setting Procedure for Input Capture Operation
Select input capture input
Input selection
Start count
<Input capture operation>
[2]
[3]
Set the noise filter [1]
[1] Enable or disable the noise filter by setting the
NFAEN to NFDEN bits in NFCR while an output
compare function is set for the corresponding pins
with TIOR or a mode other than normal operation
(0000b) is set with the TMDR.MD[3:0] bits. When
enabling the noise filter, select the sampling clock
by the NFCS[1:0] bits.
[2] Set TGRy as an input capture register by TIOR,
and select the input capture source and input
signal edge (rising edge, falling edge, or both
edges (y = A to D).
[3] Set the TPU.TSTR.CSTj bit (j = 0 to 5) to 1 to start
the counter operation.