English
Language : 

SH7641 Datasheet, PDF (615/1036 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family / SH7641 Series
Section 18 Multi-Function Timer Pulse Unit (MTU)
Example of Setting Procedure for Waveform Output by Compare Match: Figure 18.6 shows
an example of the setting procedure for waveform output by compare match
Output selection
Select waveform output [1]
mode
Set output timing
[2]
Start count operation
[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.
<Waveform output>
Figure 18.6 Example of Setting Procedure for Waveform Output by Compare Match
Examples of Waveform Output Operation: Figure 18.7 shows an example of 0 output/1 output.
In this example TCNT has been designated as a free-running counter, and settings have been made
such that 1 is output by compare match A, and 0 is output by compare match B. When the set level
and the pin level coincide, the pin level does not change.
TCNT value
H'FFFF
TGRA
TGRB
H'0000
TIOCA
TIOCB
No change
No change
Time
1 output
No change
No change
0 output
Figure 18.7 Example of 0 Output/1 Output Operation
Rev. 4.00 Sep. 14, 2005 Page 565 of 982
REJ09B0023-0400