English
Language : 

SH7261 Datasheet, PDF (494/1348 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7260 Series
Section 12 Multi-Function Timer Pulse Unit 2 (MTU2)
TCNT value
TGR
Counter cleared by TGR
compare match
H'0000
CST bit
TGF
Time
Flag cleared by software or
DMAC activation
Figure 12.6 Periodic Counter Operation
(2) Waveform Output by Compare Match
The MTU2 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 12.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
[1] Select initial value 0 output or 1 output,
and compare match output value 0
output, 1 output, or toggle output, by
[1]
means of TIOR. The set initial value is
output at the TIOC pin until the first
compare match occurs.
[2] [2] Set the timing for compare match
generation in TGR.
[3] [3] Set the CST bit in TSTR to 1 to start the
count operation.
<Waveform output>
Figure 12.7 Example of Setting Procedure for Waveform Output by Compare Match
Rev. 2.00 Sep. 07, 2007 Page 462 of 1312
REJ09B0320-0200