Renesas H8S/2319 series Hardware Manual page 368

Renesas 16-bit single-chip microcomputer
Table of Contents

Advertisement

Figure 9-8 illustrates periodic counter operation.
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 9-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
<Waveform output>
Figure 9-9 Example of Setting Procedure for Waveform Output by Compare Match
Rev. 5.00, 12/03, page 338 of 1088
Figure 9-8 Periodic Counter Operation
[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 TIOC pin until the
first compare match occurs.
[1]
[2] Set the timing for compare match generation in
TGR.
[3] Set the CST bit in TSTR to 1 to start the count
[2]
operation.
[3]
Counter cleared by TGR
compare match
Flag cleared by software or
DTC activation
Time

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2318 series

Table of Contents