English
Language : 

SH7018 Datasheet, PDF (142/431 Pages) Renesas Technology Corp – SuperH™ RISC engine
Compare-Match Waveform Output Function: The MTU can output 0 level, 1 level, or toggle
output from the corresponding output pins upon compare-matches.
Procedure for selecting the compare-match waveform output operation (figure 8.9):
1. Set the TIOR to select 0 output or 1 output for the initial value, and 0 output, 1 output, or
toggle output for compare-match output. The TIOC pin will output the set initial value until the
first compare-match occurs.
2. Set a value in the TGR to select the compare-match timing.
3. Set the CST bit in the TSTR to 1 to start counting.
Output selection
Select waveform
output mode
(1)
Select
output timing
(2)
Start counting
(3)
Figure 8.9 Procedure for Selecting Compare Match Waveform Output Operation
Waveform Output Operation (0 Output/1 Output): Figure 8.10 shows 0 output/1 output. In the
example, TCNT is a free-running counter, 1 is output upon compare-match A and 0 is output upon
compare-match B. When the pin level matches the set level, the pin level does not change.
126