Figure 12.8 Periodic Counter Operation; Figure 12.9 Example Of Setting Procedure For Waveform Output By Compare Match - Renesas H8S/2437 Hardware Manual

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

Advertisement

TCNT value
TGR
H'0000
CST bit
TGF
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 12.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 12.9 Example of Setting Procedure for Waveform Output by Compare Match

Figure 12.8 Periodic Counter Operation

[1]
Select 0 output or 1 output for the initial value, and
0 output, 1 output, or toggle output for the compare
match output value, 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
[1]
TGR.
[3]
Set the CST bit in TSTR to 1 to start the count
operation.
[2]
[3]
Counter cleared by TGR
compare match
Flag cleared by software or
DMAC activation
Rev. 1.00, 09/03, page 329 of 704
Time

Advertisement

Table of Contents
loading

Table of Contents