Product Info

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 710 of 1852
Nov 30, 2020
RX23W Group 25. 16-Bit Timer Pulse Unit (TPUa)
(2) Examples of Phase Counting Mode Operation
In phase counting mode, TPUm.TCNT counts up or down according to the phase difference between two external clocks.
There are four modes, according to the count conditions.
(a) Phase counting mode 1
Figure 25.25 shows an example of phase counting mode 1 operation, and Table 25.24 lists the TPUm.TCNT up-/
down-count conditions.
Figure 25.25 Example of Phase Counting Mode 1 Operation
: Rising edge
: Falling edge
Table 25.24 Up-/Down-Count Conditions in Phase Counting Mode 1
TCLKA (TPU1, TPU5)
TCLKC (TPU2, TPU4)
TCLKB (TPU1, TPU5)
TCLKD (TPU2, TPU4) Operation
High
Up-count
Low
Low
High
High
Down-count
Low
High
Low
Down-count
TCLKA (TPU1, TPU5)
TCLKC (TPU2, TPU4)
TCLKB (TPU1, TPU5)
TCLKD (TPU2, TPU4)
TCNT value
Time
Up-count