EasyManua.ls Logo

Hitachi SH7032 - Page 308

Hitachi SH7032
690 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
273
Complementary PWM Mode Operation: Figure 10.34 shows an example of operation in
complementary PWM mode. TCNT3 and TCNT4 operate as up/down-counters, counting down
from compare match of TCNT3 and GRA3 and counting up when TCNT4 underflows. PWM
waveforms are output by repeated compare matches with GRB3, GRA4, and GRB4 in the
sequence TCNT3, TCNT4, TCNT4, TCNT3 (in this mode, TCNT3 starts out at a higher value
than TCNT4).
Figure 10.35 shows examples of PWM waveforms with 0% and 100% duty cycles (in one phase)
in complementary PWM mode. In this example, the pin output changes upon GRB3 compare
match, so duty cycles of 0% and 100% can be obtained by setting GRB3 to a value larger than
GRA3. Combining buffer operation with the above operation makes it easy to change the duty
while operating. See section 10.4.8, Buffer Mode, for details.
Down-counting starts at compare match
between TCNT3 and GRA3
TCNT3
TCNT4
TCNT3, TCNT4 value
GRA3
GRB3
GRA4
GRB4
TIOCA3
TIOCB3
TIOCA4
TOCXA4
TIOCB4
TOCXB4
Up-counting starts at TCNT4 underflow
Time
Figure 10.34 Complementary PWM Mode Operation Example 1

Table of Contents

Related product manuals