English
Language : 

HD6417705F133V Datasheet, PDF (393/741 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7700 Series
Waveform Output by Compare Match: The TPU can perform 0, 1, or toggle output from the
corresponding output pin (TO pin) using TGRA compare match.
• Example of setting procedure for waveform output by compare match
Figure 14.5 shows an example of the setting procedure for waveform output by compare match
Output selection
Select waveform output mode [1]
Set output timing
[2]
Set external pin function [3]
Start count
[4]
[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 TO pin until the first
compare match occurs.
[2] Set the timing for compare match generation in
TGRA.
[3] Set the external pin function in pin function
controller (PFC).
[4] Set the CST bit in TSTR to 1 to start the count
operation.
<Waveform output>
Figure 14.5 Example of Setting Procedure for Waveform Output by Compare Match
• Examples of waveform output operation
Figure 14.6 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 so 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
H'0000
TO pin (1 output)
TO pin (0 output)
No change
No change
Time
No change
No change
Figure 14.6 Example of 0 Output/1 Output Operation
Rev. 2.00, 09/03, page 345 of 690