Renesas H8S Series Hardware Manual page 402

16-bit single-chip microcomputer
Hide thumbs Also See for H8S Series:
Table of Contents

Advertisement

Waveform Output by Compare Match: The TPU can perform 0, 1, or toggle output from the corresponding output pin
using compare match.
• Example of setting procedure for waveform output by compare match
Figure 10-9 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>
Figure 10-9 Example of Setting Procedure for Waveform Output by Compare Match
• Examples of waveform output operation
Figure 10-10 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
TGRB
H'0000
TIOCA
TIOCB
Rev.6.00 Oct.28.2004 page 374 of 1016
REJ09B0138-0600H
[1] Select initial value 0 output or 1 output, and
[1]
[2] Set the timing for compare match generation in
[3] Set the CST bit in TSTR to 1 to start the count
[2]
[3]
No change
Figure 10-10 Example of 0 Output/1 Output Operation
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.
TGR.
operation.
No change
No change
Time
No change
1 output
0 output

Advertisement

Table of Contents
loading

Table of Contents