---
title: Inverters and pulse-width modulation
heading: Half-bridge and full-bridge inverters, sinusoidal PWM with a triangular carrier, the modulation index and the fundamental it produces, three-phase voltage-source inverters and third-harmonic injection, switching harmonics, and dead time
eyebrow: S11 · Lesson 33 · Inverters and pulse-width modulation
xp: 50
---

::: hook
Solar panels, batteries and the DC link of every variable-speed motor drive need to make AC: a sine wave of controllable amplitude and frequency. An inverter does it by switching a DC bus to its output at tens of kilohertz with a duty cycle that follows a sine. The output is a stream of pulses, but its average over each switching period traces the sine, and the inductance of a motor or a filter does the averaging. This lesson covers the modulation and how much AC voltage a given DC bus can make.
:::

::: play
- One inverter leg under sinusoidal PWM: the reference $m\sin\omega t$ is compared with a triangular carrier, and the leg's output switches between +1 and −1 (in units of $V_{dc}/2$). The spectrum shows a fundamental of exactly m and a cluster of harmonics around the carrier frequency.
- Raise m above 1 and the reference exceeds the carrier: pulses go missing (overmodulation), adding low-order harmonics.
- Raising the carrier frequency pushes the harmonics up, where an output filter or the motor's inductance removes them easily.
:::

```sim plot
view: spectrum
x: t = 0..0.04 s
y: v = -1.5..1.5
slider: m = 0..1.3 = 0.8
slider: c = 500..3000 = 1050 Hz
plot: 2*step(m*sin(2*pi*50*t) - (1 - 4*abs(t*c - floor(t*c + 0.5)))) - 1 | label: leg output
samples: 2048
freq: f = 0..4000 Hz
readout: fundamental amplitude, ×Vdc/2 = m | digits: 3
```

::: predict
## A three-phase inverter runs from a 400 V DC bus with sinusoidal PWM at m = 1. What line-to-line RMS voltage can it produce?

- [ ] 400 V
- [ ] 283 V
- [x] About 245 V
- [ ] 141 V

::: reveal
Each leg's fundamental has a peak of $mV_{dc}/2$ = 200 V, so the phase voltage's RMS is 141 V and the line-to-line RMS is √3 times that: $\frac{\sqrt{3}}{2\sqrt{2}}mV_{dc}$ = 0.612 × 400 = 245 V. Injecting a third harmonic (which cancels between lines) lets m reach 1.155 and the output rise to 283 V.
:::
:::

::: nameit
## Bridges

A **half-bridge** leg connects its output to $+V_{dc}/2$ or $-V_{dc}/2$ about the bus midpoint. A **full bridge** (H-bridge) uses two legs and can apply $+V_{dc}$, $-V_{dc}$ or zero across the load.

## Sinusoidal PWM

Compare a sinusoidal reference of amplitude m (the **modulation index**) with a triangular carrier of unit amplitude at frequency $f_c$. The leg is high while the reference exceeds the carrier. For $m \le 1$ the fundamental of a half-bridge's output has peak $mV_{dc}/2$, exactly linear in m; a full bridge gives $mV_{dc}$. Harmonics cluster around multiples of the frequency ratio $m_f = f_c/f_1$.

## Three phase

Three legs with references 120° apart give line-to-line voltages with RMS

$$V_{LL} = \frac{\sqrt{3}}{2\sqrt{2}}mV_{dc} = 0.612\,mV_{dc}$$

Adding a third harmonic of 1/6 the fundamental to all three references flattens their peaks without affecting the line-to-line voltages, allowing m up to $2/\sqrt{3}$ = 1.155 and $V_{LL} = V_{dc}/\sqrt{2}$. Space-vector modulation reaches the same limit.

## Dead time

The two switches in a leg must never conduct together, so each turn-on waits a dead time $t_d$. During it the load current's direction decides the output, causing an average voltage error of about $t_df_sV_{dc}$ that distorts the output at low voltages.
:::

::: example
## What can a full bridge on a 400 V bus deliver at m = 0.8?

::: solution
1. **Fundamental.**
   $$\begin{aligned} V_1 &= 0.8 \times 400 \\ &= 320\ \text{V} \end{aligned}$$
   peak, 226 V RMS.
2. **For 230 V RMS.** A 325 V peak needs
   $$\begin{aligned} m &= 325/400 \\ &= 0.81 \end{aligned}$$
   at nominal bus.
3. **Margin.** A 400 V bus leaves little margin for sag; grid inverters use buses of 400 V and up for this reason.

**Answer:** a fundamental of 320 V peak, 226 V RMS.
:::
:::

::: example
## A 400 V three-phase inverter switches at 10 kHz with 1 µs of dead time. How large is the dead-time voltage error?

::: solution
1. **Dead-time error.**
   $$\begin{aligned} \Delta V &\approx t_df_sV_{dc} \\ &= 1\ \mu\text{s} \times 10\text{ kHz} \times 400\ \text{V} \\ &= 4\ \text{V} \end{aligned}$$
   per leg, with its sign set by the current's direction.
2. **At a low output voltage.** At 20 V, say, for a slowly turning motor, that's a 20% error, which drive controllers compensate.

**Answer:** about 4 V per leg.
:::
:::

::: example
## A full-bridge inverter on a 400 V bus must make 230 V RMS, switching at 20 kHz behind an LC filter with a 2 kHz corner. What modulation index does it need, and how much does the filter attenuate the switching component?

::: solution
1. **Modulation index.** A full bridge's fundamental has peak $mV_{dc}$, so
   $$\begin{aligned} m &= \frac{230\sqrt2}{400} \\ &= 0.813 \end{aligned}$$
2. **Filter attenuation.** The unipolar or bipolar switching components sit near 20 kHz or multiples of it, where the second-order filter attenuates by about
   $$\begin{aligned} \left(\frac{20}{2}\right)^2 &= 100 \\ &= 40\ \text{dB} \end{aligned}$$
3. **Trade-offs.** Raising the switching frequency or lowering the corner buys more attenuation; lowering the corner too far adds phase lag that the output voltage control must handle.

**Answer:** m = 0.813, and the filter attenuates the switching component by about 100 (40 dB).
:::
:::

::: check
given: V = 48 | 400 | 800; m = 0.5 | 0.8 | 1
answer: m*V/2
unit: V
tolerance: 0.5%

## A half-bridge inverter on a {V} V bus runs sinusoidal PWM at m = {m}. What's the peak of its output's fundamental?

::: right
Right. $mV_{dc}/2$ = {answer} V.
:::

::: misses
- [m*V] That's a full bridge.
- [any] Not yet. The leg swings ±$V_{dc}/2$ about the midpoint.
:::
:::

::: check
given: V = 48 | 400 | 800; m = 0.5 | 0.8 | 1
answer: m*V/sqrt(2)
unit: V
tolerance: 0.5%

## A full-bridge inverter on {V} V runs at m = {m}. What's its fundamental's RMS?

::: right
Right. $mV_{dc}/\sqrt{2}$ = {answer} V.
:::

::: misses
- [m*V/(2*sqrt(2))] A full bridge doubles the half-bridge's swing.
- [any] Not yet. Peak $mV_{dc}$, then RMS.
:::
:::

::: check
given: V = 300 | 650 | 1000; m = 0.6 | 0.9 | 1
answer: sqrt(3)/(2*sqrt(2))*m*V
unit: V
tolerance: 0.5%

## A three-phase sinusoidal-PWM inverter on {V} V runs at m = {m}. What's the line-to-line RMS voltage?

::: right
Right. $0.612\,mV_{dc}$ = {answer} V.
:::

::: misses
- [m*V/(2*sqrt(2))] That's the phase voltage; line to line is √3 times larger.
- [any] Not yet. Phase peak $mV_{dc}/2$, then √3 and RMS.
:::
:::

::: check
given: V = 400 | 650 | 800
answer: V/sqrt(2)
unit: V
tolerance: 0.5%

## With third-harmonic injection, what's the most line-to-line RMS voltage a three-phase inverter on {V} V can make without overmodulating?

::: right
Right. $V_{dc}/\sqrt{2}$ = {answer} V, 15.5% more than plain sinusoidal PWM.
:::

::: misses
- [sqrt(3)/(2*sqrt(2))*V] That's plain sinusoidal PWM at m = 1.
- [any] Not yet. m can rise to $2/\sqrt{3}$.
:::
:::

::: check
given: t = 0.5 | 1 | 3; f = 5 | 10 | 20; V = 300 | 700
answer: t*1e-6*f*1e3*V
unit: V
tolerance: 0.5%

## An inverter on {V} V switches at {f} kHz with {t} µs of dead time. About how large is the average voltage error?

::: right
Right. $t_df_sV_{dc}$ = {answer} V.
:::

::: misses
- [any] Not yet. Lost volt-seconds per period times frequency.
:::
:::

::: check
given: c = 5 | 10 | 20; f = 50 | 60
answer: c*1000/f
tolerance: 0.5%

## An inverter's carrier runs at {c} kHz and its output at {f} Hz. What's the frequency ratio $m_f$ around whose multiples the switching harmonics cluster?

::: right
Right. $f_c/f_1$ = {answer}.
:::

::: misses
- [any] Not yet. Carrier frequency over fundamental.
:::
:::

::: check
kind: parts
given: V = 120 | 230; B = 400 | 700 | 800; f = 10 | 20; c = 1 | 2

## A full-bridge inverter on a {B} V bus makes {V} V RMS, switching at {f} kHz behind an LC filter with its corner at {c} kHz.

::: part
answer: V*sqrt(2)/B
tolerance: 0.5%

### What modulation index?

::: misses
- [V/B] The fundamental's peak is $mV_{dc}$.
- [any] $m = \sqrt2V/V_{dc}$.
:::
:::

::: part
answer: 40*log(f/c)
unit: dB
tolerance: 0.5%

### About how much does the filter attenuate the switching frequency?

::: misses
- [20*log(f/c)] A second-order filter falls at 40 dB per decade.
- [any] $(f_s/f_c)^2$ in dB.
:::
:::
:::

::: check
kind: derivation
vars: V = 50..1000, m = 0.1..1

## An inverter on a bus of V volts runs sinusoidal PWM at index m.

::: step
answer: m*V/2

### What fundamental peak does a half bridge give?
:::

::: step
answer: m*V/sqrt(2)

### What RMS does a full bridge give?
:::

::: step
answer: sqrt(3)/(2*sqrt(2))*m*V

### What line-to-line RMS does a three-phase bridge give?
:::

::: right
Right. The three-phase bridge gets √3 from the line-to-line connection but loses half to the half-bridge legs.
:::
:::

::: explain
## Why does adding a third harmonic to each phase's reference let a three-phase inverter make more voltage?

::: model
A sinusoidal reference at m = 1 already reaches the carrier's peak, so its amplitude can't grow without overmodulating. Adding a third harmonic of about one sixth the fundamental's amplitude, in phase with it, flattens the reference's peaks, lowering its maximum to about 87% of the fundamental's, so the fundamental can be raised by $2/\sqrt{3}$ before the peaks touch the carrier again. The third harmonics of the three phases are identical, since 120° at the fundamental is 360° at the third harmonic, so they cancel in every line-to-line voltage. The motor or load, connected between lines, sees only the larger fundamental.
:::
:::

::: practice

::: check
given: V = 200 | 700; m = 0.4 | 0.95
answer: sqrt(3)/(2*sqrt(2))*m*V
unit: V
tolerance: 0.5%

## Three-phase line-to-line RMS: {V} V bus, m = {m}?

::: misses
- [any] $0.612\,mV_{dc}$.
:::
:::

::: check
given: V = 100 | 600; m = 0.6 | 1
answer: m*V/sqrt(2)
unit: V
tolerance: 0.5%

## Full-bridge RMS: {V} V, m = {m}?

::: misses
- [any] $mV_{dc}/\sqrt{2}$.
:::
:::

::: check
given: t = 0.3 | 2; f = 8 | 40; V = 400 | 800
answer: t*1e-6*f*1e3*V
unit: V
tolerance: 0.5%

## Dead-time error: {t} µs, {f} kHz, {V} V?

::: misses
- [any] $t_df_sV_{dc}$.
:::
:::
:::
