Section 11 Multi-Function Timer Pulse Unit 2
R01UH0134EJ0400 Rev. 4.00 Page 509 of 2108
Sep 24, 2014
SH7262 Group, SH7264 Group
Figure 11.6 illustrates periodic counter operation.
TCNT value
TGR
H'0000
CST bit
TGF
Time
Counter cleared by TGR
compare match
Flag cleared by software or
DMAC activation
Figure 11.6 Periodic Counter Operation
(2) Waveform Output by Compare Match
This module can perform 0, 1, or toggle output from the corresponding output pin using compare
match.
(a) Example of Setting Procedure for Waveform Output by Compare Match
Figure 11.7 shows an example of the setting procedure for waveform output by compare match
Output selection
Select waveform output
mode
Set output timing
Start count operation
<Waveform output>
[1]
[2]
[3]
[1] Select initial value 0 output or 1 output,
and compare match output value 0
output, 1 output, or toggle output, by
means of TIOR. The set initial value is
output at the TIOC pin until the first
compare match occurs.
[2] Set the timing for compare match
generation in TGR.
[3] Set the CST bit in TSTR to 1 to start the
count operation.
Figure 11.7 Example of Setting Procedure for Waveform Output by Compare Match