Renesas R5S72643 Doll User Manual


  Open as PDF
of 2152
 
Section 11 Multi-Function Timer Pulse Unit 2
R01UH0134EJ0400 Rev. 4.00 Page 513 of 2108
Sep 24, 2014
SH7262 Group, SH7264 Group
11.4.2 Synchronous Operation
In synchronous operation, the values in a number of TCNT counters can be rewritten
simultaneously (synchronous presetting). Also, a number of TCNT counters can be cleared
simultaneously by making the appropriate setting in TCR (synchronous clearing).
Synchronous operation enables TGR to be incremented with respect to a single time base.
Channels 0 to 4 can all be designated for synchronous operation.
(1) Example of Synchronous Operation Setting Procedure
Figure 11.12 shows an example of the synchronous operation setting procedure.
No
Yes
Set synchronous
operation
<Synchronous presetting> <Counter clearing> <Synchronous clearing>
Clearing
source generation
channel?
Select counter
clearing source
Start count
Set synchronous
counter clearing
Start count
[1]
[3]
[5]
[4]
[5]
[2]
Synchronous operation
selection
[1] Set to 1 the SYNC bits in TSYR 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 bits CCLR2 to CCLR0 in TCR to specify TCNT clearing by input capture/output compare, etc.
[4] Use bits CCLR2 to CCLR0 in TCR to designate synchronous clearing for the counter clearing source.
[5] Set to 1 the CST bits in TSTR for the relevant channels, to start the count operation.
Set TCNT
Synchronous presetting Synchronous clearing
Figure 11.12 Example of Synchronous Operation Setting Procedure
(2) Example of Synchronous Operation