R01UH0823EJ0100 Rev.1.00
Page 702 of 1823
Jul 31, 2019
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
shows an example of phase counting mode 1 operation, and
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