Figure 12.10 Example Of 0 Output/1 Output Operation; Figure 12.11 Example Of Toggle Output Operation - Renesas H8S/2437 Hardware Manual

Renesas 16-bit single-chip microcomputer h8s family / h8s / 2600 series
Table of Contents

Advertisement

• Examples of Waveform Output Operation
Figure 12.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 matches the pin level, the pin level does not change.
TCNT value
H'FFFF
TGRA
TGRB
H'0000
TIOCA
TIOCB

Figure 12.10 Example of 0 Output/1 Output Operation

Figure 12.11 shows an example of toggle output.
In this example TCNT has been designated as a periodic counter (with counter clearing
performed by compare match B), and settings have been made so that output is toggled by both
compare match A and compare match B.
TCNT value
H'FFFF
TGRB
TGRA
H'0000
TIOCB
TIOCA
Input Capture Function:
The TCNT value can be transferred to TGR on detection of the TIOC pin input edge. Rising edge,
falling edge, or both edges can be selected as the detected edge.
Note: When another channel's counter input clock is used as the input capture input for channel
0, φ/1 should not be selected as the counter input clock used for input capture input. Input
capture will not be generated if φ/1 is selected. Another channel's counter input clock or
compare-match signal can be used as the input capture source for channels 0 and 1.
Rev. 1.00, 09/03, page 330 of 704
Counter cleared by TGRB compare match

Figure 12.11 Example of Toggle Output Operation

No change
No change
No change
1 output
0 output
No change
Toggle output
Toggle output
Time
Time

Advertisement

Table of Contents
loading

Table of Contents