R01UH0822EJ0100 Rev.1.00
Page 464 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
19.3.10
Synchronous Operation of MTU0 to MTU4
(1) Synchronous Counter Start for MTU0 to MTU4
The counters in MTU0 to MTU4 can be started synchronously by making the TCSYSTR settings.
(a) Example of Procedure for Setting Synchronous Counter Start for MTU0 to MTU4
shows an example of procedure for setting synchronous counter start for MTU0 to MTU4.
Figure 19.90
Example of Procedure for Setting Synchronous Counter Start for MTU0 to MTU4
(b) Examples of Synchronous Counter Start Operation
shows an examples of synchronous counter start operation for MTU0 to MTU4.
Figure 19.91
Examples of Synchronous Counter Start Operation for MTU0 to MTU4
[4]
<Counter operation starts>
[1]
[2]
[3]
Stop count operation
Set the necessary operation
Synchronous timer count start
(Set TCSYSTR)
Stop timer counter
[1] Set TSTRA to stop the counters used for synchronous start operation.
[2] Specify the necessary operation with appropriate registers such as TCR,
TMDR1, and TMDR2.
[3] In TCSYSTR, set the bits corresponding to the counters to be started
synchronously to 1 at the same time. When TCSYSTR is set, TSTRA for
the target timer counters are automatically set appropriately, the counters
start synchronously, and TCSYSTR is automatically cleared.
[4] To stop a timer counter, set the bit in TSTRA that corresponds to the
counter to 0.
Note:
Even if a bit in TCSYSTR corresponding to an operating counter is
set to 0, the counter will not stop.
Note:
To start counters synchronously in reset-synchronized PWM mode or
complementary PWM mode using MTU3 and MTU4, set the bits in
TCSYSTR that correspond to MTU3 and MTU4 to 1 at the same time.
Synchronous counter start
for MTU0 to MTU4
(Set TSTRA)
TSTRA
58h
TCSYSTR
00h
C2h
00h
00h
MTU1.TCNT
0000h
0001h
0001h
MTU3.TCNT
0000h
0001h
0002h
0002h
0002h
MTU4.TCNT
0000h
Automatically cleared after TCSYSTR
setting is made
PCLKB