R01UH0822EJ0100 Rev.1.00
Page 393 of 1041
Jul 31, 2019
RX13T Group
19. Multi-Function Timer Pulse Unit 3 (MTU3c)
19.3.2
Synchronous Operation
In synchronous operation, the values in multiple TCNT counters can be modified simultaneously (synchronous setting).
In addition, multiple TCNT counters can be cleared simultaneously (synchronous clearing) by making the appropriate
setting in TCR.
Synchronous operation can increase the number of TGR registers assigned to the same time base.
MTU0 to MTU4 can all be designated for synchronous operation. MTU5 cannot be used for synchronous operation.
(1) Example of Synchronous Operation Setting Procedure
shows an example of the synchronous operation setting procedure.
Figure 19.12
Example of Synchronous Operation Setting Procedure
No
Yes
[1]
[3]
[5]
[4]
[5]
[2]
<Synchronous clearing>
<Counter clearing>
<Synchronous setting>
Start count
Start count
Set synchronous
counter clearing
Select counter
clearing source
Clearing
source generation
channel?
Synchronous clearing
Synchronous setting
Set TCNT
Set synchronous
operation
Synchronous operation
selection
[1] Set to 1 in the SYNC bits in TSYRA corresponding to the channels to be designated for synchronous
operation.
[2] When the TCNT counter of any of the channels designated for synchronous operation is written to, the same
value is simultaneously written to the other TCNT counters.
[3] Use the CCLR[2:0] bits in TCR to specify TCNT clearing by input capture/output compare, etc.
[4] Use the CCLR[2:0] bits in TCR to designate synchronous clearing for the counter clearing source.
[5] Set to 1 in the CSTn bits in TSTRA for the relevant channels, to start the count operation.