Hitachi H8/3022 Hardware Manual page 249

H8/3022 series hitachi single-chip microcomputer
Table of Contents

Advertisement

Figure 8-30 shows examples of the output of PWM waveforms with duty cycles of 0% and 100%.
If the counter is cleared by compare match with GRB, and GRA is set to a higher value than GRB,
the duty cycle is 0%. If the counter is cleared by compare match with GRA, and GRB is set to a
higher value than GRA, the duty cycle is 100%.
TCNT value
GRB
GRA
H'0000
TIOCA
TCNT value
GRA
GRB
H'0000
TIOCA
Counter cleared by compare match with GRB
Write to GRA
a. 0% duty cycle
Counter cleared by compare match with GRA
Write to GRB
b. 100% duty cycle
Figure 8-30 PWM Mode (Example 2)
Write to GRA
Write to GRB
Time
Time
237

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3021H8/3020H8/3022 f-ztat

Table of Contents