Figure 9.5 Periodic Counter Operation; Figure 9.6 Example Of Setting Procedure For Waveform Output By Compare Match - Renesas H8SX/1500 Series Hardware Manual

32-bit cisc microcomputer
Hide thumbs Also See for H8SX/1500 Series:
Table of Contents

Advertisement

TCNT value
TGR
H'0000
CST bit
TGF
(2)
Waveform Output by Compare Match
The TPU can perform 0, 1, or toggle output from the corresponding output pin using a compare
match.
Note: * The H8SX/1527 does not have pins TIOCA4, TIOCB4, TIOCA5, and TIOCB5 for
channels 4 and 5. Therefore, 0-, 1-, or toggle-output waveform and PWM waveform at
an input capture input and a compare match cannot be output.
(a)
Example of setting procedure for waveform output by compare match
Figure 9.6 shows an example of the setting procedure for waveform output by a compare match.
Output selection
Select waveform output mode
Set output timing
Start count
<Waveform output>

Figure 9.6 Example of Setting Procedure for Waveform Output by Compare Match

Figure 9.5 Periodic Counter Operation

[1] Select initial value from 0-output or 1-output,
and compare match output value from 0-output,
1-output, or toggle-output, by means of TIOR.
[1]
The set initial value is output on the TIOC pin
until the first compare match occurs.
[2]
[2] Set the timing for compare match generation in
TGR.
[3]
[3] Set the CST bit in TSTR to 1 to start the count
operation.
Section 9 16-Bit Timer Pulse Unit (TPU)
Counter cleared by TGR
compare match
Flag cleared by software or
DMAC activation
Rev. 3.00 Mar. 14, 2006 Page 301 of 804
Time
REJ09B0104-0300

Advertisement

Table of Contents
loading

Table of Contents