R01UH0822EJ0100 Rev.1.00
Page 400 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
(1) Example of Cascaded Operation Setting Procedure
shows an example of the cascaded operation setting procedure.
Figure 19.20
Cascaded Operation Setting Procedure
(2) Cascaded Operation Example (a)
shows the operation when MTU1.TCNT is set for counting at MTU2.TCNT overflow/underflow and
MTU2 is set for phase counting mode 1 while MTU1.TCNT and MTU2.TCNT are cascaded.
MTU1.TCNT is incremented by MTU2.TCNT overflow and decremented by MTU2.TCNT underflow.
Figure 19.21
Cascaded Operation Example (a)
[1]
[2]
[1] Set bits TPSC[2:0] in TCR to 111b in MTU1 to
select MTU2.TCNT overflow/underflow counting.
[2] Set the CSTn bit in TSTRA for the upper and lower
channels to 1 to start the count operation.
Cascaded operation
Set cascading
Start count
<Cascaded operation>
0001h
0000h
0000h
FFFDh
FFFEh
FFFFh
0000h 0001h
0002h
0001h 0000h FFFFh
MTCLKC
MTU2.TCNT
MTU1.TCNT
MTCLKD