R01UH0822EJ0100 Rev.1.00
Page 410 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
(2) Examples of 16-Bit Phase Counting Mode Operation
In phase counting mode, TCNT is incremented or decremented according to the phase difference between two external
clocks. There are five modes according to the count conditions. Each mode operates under the condition PHCKSEL = 1,
which means the phase clock for MTU1 is input from MTCLKA or MTCLKB and that for MTU2 is input from
MTCLKC or MTCLKD.
(a) Phase Counting Mode 1
shows an example of operation in phase counting mode 1, and
summarizes the TCNT up-
counting and down-counting conditions.
Figure 19.30
Example of Operation in Phase Counting Mode 1
: Rising edge
: Falling edge
Table 19.51
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