R01UH0822EJ0100 Rev.1.00
Page 483 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
19.6
Usage Notes
19.6.1
Module Stop Function Setting
MTU operation can be disabled or enabled using the module stop control register. MTU operation is stopped with the
initial setting. Register access is enabled by releasing the module clock stop state. For details, refer to
19.6.2
Count Clock Restrictions
The count clock source pulse width must be at least three PCLKB cycles for single-edge detection, and at least five
PCLKB cycles for both-edge detection. The MTU will not operate properly at narrower pulse widths.
In phase counting mode, the phase difference and overlap between the two input clocks must be at least three PCLKB
cycles, and the pulse width must be at least five PCLKB cycles.
shows the input clock conditions in
phase counting mode.
Figure 19.122
Phase Difference, Overlap, and Pulse Width in Phase Counting Mode
19.6.3
Note on Period Setting
When counter clearing on compare match is set, TCNT is cleared in the final state in which it matches the TGR value
(the point at which TCNT updates the matched count value). Consequently, the actual counter frequency is given by the
following formula:
MTU0 to MTU4
MTU5
f: Counter frequency
CNTCLK: The count clock frequency set by TCR.TPSC[2:0] and TCR2.TPSC2[2:0]
N: TGR setting
Pulse width
MTCLKA (MTCLKC)
Overlap
Phase
differ-
ence
Overlap
Phase
differ-
ence
Pulse width
Pulse width
Pulse width
MTCLKB (MTCLKD)
Note: Phase difference and overlap: 3 PCLKB cycles or more
Note: Pulse width: 5 PCLKB cycles or more
f
CNTCLK
N 1
+
-------------------------
=
f
CNTCLK
N
-------------------------
=