Complementary Pwm Mode - Hitachi H8/3032 Series Hardware Manual

Table of Contents

Advertisement

Downloaded from
Elcodis.com
electronic components distributor

8.4.6 Complementary PWM Mode

In complementary PWM mode channels 3 and 4 are combined to output three pairs of
complementary, non-overlapping PWM waveforms.
When complementary PWM mode is selected TIOCA
and TOCXB
automatically become PWM output pins, and TCNT3 and TCNT4 function as
4
up/down-counters.
Table 8-7 lists the PWM output pins. Table 8-8 summarizes the register settings.
Table 8-7 Output Pins in Complementary PWM Mode
Channel
Output Pin
Description
3
TIOCA
PWM output 1
3
TIOCB
PWM output 1´ (non-overlapping complementary waveform to PWM
3
output 1)
4
TIOCA
PWM output 2
4
TOCXA
PWM output 2´ (non-overlapping complementary waveform to PWM
4
output 2)
TIOCB
PWM output 3
4
TOCXB
PWM output 3´ (non-overlapping complementary waveform to PWM
4
output 3)
Table 8-8 Register Settings in Complementary PWM Mode
Register
Setting
TCNT3
Initially specifies the non-overlap margin (difference to TCNT4)
TCNT4
Initially set to H'0000
GRA3
Specifies the upper limit value of TCNT3 minus 1
GRB3
Specifies a transition point of PWM waveforms output from TIOCA
GRA4
Specifies a transition point of PWM waveforms output from TIOCA
GRB4
Specifies a transition point of PWM waveforms output from TIOCB
, TIOCB
, TIOCA
, TOCXA
3
3
4
229
, TIOCB
,
4
4
and TIOCB
3
3
and TOCXA
4
4
and TOCXB
4
4

Advertisement

Table of Contents
loading

Table of Contents