R01UH0822EJ0100 Rev.1.00
Page 489 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
19.6.12
Contention between MTU2.TCNT Write Operation and Overflow/Underflow in
Cascaded Operation
With timer counters MTU1.TCNT and MTU2.TCNT in a cascade, when a contention occurs between MTU1.TCNT
counting (an MTU2.TCNT overflow/underflow) and the MTU2.TCNT write operation, the MTU2.TCNT write
operation is performed and the MTU1.TCNT count signal is disabled. In this case, if MTU1.TGRA works as a compare
match register and there is a match between the MTU1.TGRA and MTU1.TCNT values, a compare match signal is
issued.
Furthermore, when the MTU1.TCNT count clock is selected as the input capture source of MTU0, MTU0.TGRA to
MTU0.TGRD work in input capture mode. In addition, when the MTU0.TGRC compare match/input capture is selected
as the input capture source of MTU1.TGRB, MTU1.TGRB works in input capture mode.
shows the timing in this case.
When setting the TCNT clearing function in cascaded operation, be sure to synchronize MTU1 and MTU2.
Figure 19.132
Contention between MTU2.TCNT Write Operation and Overflow/Underflow in Cascaded Operation
MTU2.TCNT
MTU1.TCNT count clock
MTU1.TCNT
MTU1.TGRA
MTU1.TGRB
MTU0.TCNT
MTU0.TGRA to MTU0.TGRD
MTU2.TGRA to MTU2.TGRB
FFFEh
FFFFh
FFFFh
N
N+1
MTU2.TCNT write data
Disabled
M
M
N
P
Q
P
M
MTU2 compare match signals A and B
MTU1 compare match signal A
MTU1 input capture signal B
MTU0 input capture signals A to D
Written by CPU
PCLKB