RX610 Group
15. 16-Bit Timer Pulse Unit (TPU)
R01UH0032EJ0120 Rev.1.20
Page 504 of 1006
Feb 20, 2013
(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 15.26 shows an example of phase counting mode 1 operation, and table 15.27 lists the TCNTn up-/down-count
conditions.
TCLKA (TPU1, TPU5)
TCLKC (TPU2, TPU4)
TCLKB (TPU1, TPU5)
TCLKD (TPU2, TPU4)
TCNT value
Up-count
Down-count
Time
Figure 15.26 Example of Phase Counting Mode 1 Operation
Table 15.27 Up-/Down-Count Conditions in Phase Counting Mode 1
TCLKA (TPU1, TPU5)
TCLKC (TPU2, TPU4)
TCLKB (TPU1, TPU5)
TCLKD (TPU2, TPU4)
Operation
High level
Up-count
Low level
Low level
High level
High level
Down-count
Low level
High level
Low level
[Legend]
: Rising edge
: Falling edge