R01UH0823EJ0100 Rev.1.00
Page 541 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
(2) Examples of Phase Counting Mode Operation
In phase counting mode, the TCNT counter is incremented or decremented 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 operation in phase counting mode 1, and
lists the TCNT up-counting
and down-counting conditions.
Figure 23.30
Example of Operation in Phase Counting Mode 1
: Rising edge
: Falling edge
Table 23.45
Up-Counting and Down-Counting Conditions in Phase Counting Mode 1
MTCLKA (MTU1)
MTCLKC (MTU2)
MTCLKB (MTU1)
MTCLKD (MTU2)
Operation
High
Up-counting
Low
Low
High
High
Down-counting
Low
High
Low
Time
TCNT value
MTCLKA (MTU1)
MTCLKC (MTU2)
MTCLKB (MTU1)
MTCLKD (MTU2)
Up-counting
Down-counting