---
title: Multilevel converters
heading: Building high voltage from lower-voltage switches: neutral-point-clamped, flying-capacitor, cascaded H-bridge and modular multilevel converters, their levels and steps, harmonics that fall with each level, and phase-shifted carriers
eyebrow: S11 · Lesson 37 · Multilevel converters
xp: 50
---

::: hook
A two-level inverter switches its output between the two rails, so every transistor must block the whole DC bus, and every edge slams the load with the full bus voltage. At medium voltage, 3.3 to 13.8 kV drives, or at the hundreds of kilovolts of HVDC, no single switch can do that. Multilevel converters stack switches and capacitors so that each device sees only a fraction of the voltage and the output steps through many small levels. The waveform approaches a sine before any filter, and the dv/dt that stresses motor insulation falls with the step size.
:::

::: play
- The stems are the THD of a nearest-level staircase voltage approximating a sine, against the number of levels per phase, computed from the staircase's harmonics.
- Three levels leave about 31% THD before any switching-frequency PWM; eleven levels about 8%; twenty-one levels about 4%.
- Each added level divides the step, and with it the harmonics and the dv/dt.
:::

```sim plot
view: graph
x: n = 3..21
y: T = 0..35
samples: 10
plot: 31.1*step(n - 2)*step(4 - n) + 17.6*step(n - 4)*step(6 - n) + 12.2*step(n - 6)*step(8 - n) + 9.4*step(n - 8)*step(10 - n) + 7.6*step(n - 10)*step(12 - n) + 6.4*step(n - 12)*step(14 - n) + 5.5*step(n - 14)*step(16 - n) + 4.8*step(n - 16)*step(18 - n) + 4.3*step(n - 18)*step(20 - n) + 3.9*step(n - 20)*step(22 - n) | stems | label: staircase THD, %, against levels
```

::: predict
## A cascaded H-bridge drive builds each phase from cells with 750 V DC links. How many cells per phase does a 4.16 kV motor need, and how many levels does each phase then have?

- [ ] 3 cells, 7 levels
- [x] 5 cells, 11 levels
- [ ] 6 cells, 6 levels
- [ ] 1 cell, 3 levels

::: reveal
The phase voltage's peak is $4160\sqrt2/\sqrt3 = 3397$ V, and each H-bridge cell can add up to ±750 V, so ⌈3397/750⌉ = 5 cells. Five cells give levels from −5 to +5 cell voltages: 2k + 1 = 11 levels per phase, and 4k + 1 = 21 levels line to line.
:::
:::

::: nameit
## Topologies

- **Neutral-point-clamped (NPC)**: four switches per leg and two clamping diodes to the midpoint of a split DC bus give three levels, +V/2, 0 and −V/2; each switch blocks only half the bus.
- **Flying capacitor**: capacitors charged to fractions of the bus replace the clamping diodes, with redundant states that balance them.
- **Cascaded H-bridge (CHB)**: k isolated H-bridge cells in series per phase, each with its own DC source, give 2k + 1 phase levels. Used in medium-voltage drives (with a multi-winding transformer) and in solar and battery systems, where the sources are naturally separate.
- **Modular multilevel converter (MMC)**: each arm is a chain of N half-bridge submodules with their own capacitors; inserting or bypassing them builds the arm voltage. With submodules at $V_{sm}$, an arm must block the full DC link: $N = V_{dc}/V_{sm}$. It dominates modern HVDC.

## Levels and steps

An N-level phase output steps by $V_{dc}/(N - 1)$. A nearest-level staircase of N levels already approximates a sine, with harmonics falling roughly as 1/N; adding PWM between adjacent levels removes the rest.

## Phase-shifted carriers

With k cells each switching at $f_s$ and their carriers shifted by $\frac{180°}{k}$ (unipolar), the output ripple appears at $2kf_s$: each device switches slowly, which keeps losses low, while the output looks like a converter switching k times faster.
:::

::: example
## A 4.16 kV drive uses cascaded H-bridge cells with 750 V DC links, each switching at 600 Hz with phase-shifted carriers. How many cells per phase, how many levels, and at what frequency does the output ripple appear?

::: solution
1. **Phase peak.**
   $$\begin{aligned} V_\text{pk} &= 4160\sqrt{2/3} \\ &= 3397\ \text{V} \end{aligned}$$
2. **Cells and levels.** So 5 cells (3750 V of capability): 11 levels per phase and 21 line to line.
3. **Ripple frequency.** With unipolar switching and carriers shifted by 36°:
   $$\begin{aligned} f &= 2 \times 5 \times 600\ \text{Hz} \\ &= 6\ \text{kHz} \end{aligned}$$
   while each cell switches at only 600 Hz.
4. **What the motor sees.** Steps of 750 V instead of the full bus.

**Answer:** 5 cells per phase, giving 11 levels per phase (21 line to line), with the output ripple at 6 kHz.
:::
:::

::: example
## A three-level NPC inverter runs from a 1500 V bus. What does each switch block, and what voltage step does the output make?

::: solution
1. **What each switch blocks.** Half the bus, 750 V, so 1200 V devices suffice where a two-level inverter on the same bus would need 2.5 kV or more.
2. **The output step.** The output steps between +750, 0 and −750 V about the midpoint: half the two-level step, so half the dv/dt for the same switching speed.

**Answer:** each switch blocks 750 V, and the output steps by 750 V, half the two-level step.
:::
:::

::: example
## An MMC links a ±320 kV HVDC line to the grid with 2.5 kV submodules. How many submodules does each arm need?

::: solution
1. **What each arm must support.** The whole 640 kV between the poles, at some point in the cycle.
2. **Submodules.**
   $$\begin{aligned} N &\ge \frac{640\ \text{kV}}{2.5\ \text{kV}} \\ &= 256 \end{aligned}$$
   plus a few redundant ones to ride through failures.
3. **The payoff.** With hundreds of levels the output is so fine that no AC filter is needed, one of the MMC's main advantages over earlier two-level HVDC converters.

**Answer:** at least 256 submodules per arm, plus a few redundant ones.
:::
:::

::: check
kind: parts
given: V = 2.3 | 4.16 | 6.6 | 13.8; c = 600 | 750 | 1000

## A cascaded H-bridge drive for a {V} kV motor uses cells with {c} V DC links.

::: part
answer: ceil(V*1e3*sqrt(2)/sqrt(3)/c - 1e-9)
unit: cells
tolerance: 0

### How many cells per phase are needed?

::: misses
- [any] The phase peak $V_{LL}\sqrt2/\sqrt3$ over the cell voltage, rounded up.
:::
:::

::: part
answer: 2*ceil(V*1e3*sqrt(2)/sqrt(3)/c - 1e-9) + 1
unit: levels
tolerance: 0

### How many levels does each phase have?

::: misses
- [any] 2k + 1.
:::
:::
:::

::: check
kind: parts
given: k = 3 | 5 | 8; f = 500 | 1000 | 2000

## A cascaded H-bridge phase has {k} cells, each switching at {f} Hz with unipolar PWM and phase-shifted carriers.

::: part
answer: 2*k*f/1e3
unit: kHz
tolerance: 0.5%

### At what frequency does the output ripple appear?

::: misses
- [k*f/1e3] Unipolar switching doubles it again.
- [any] $2kf_s$.
:::
:::

::: part
answer: 180/k
unit: °
tolerance: 0.5%

### By how much are the carriers shifted?

::: misses
- [any] 180°/k.
:::
:::
:::

::: check
kind: parts
given: V = 800 | 1500 | 3000; N = 5 | 9

## An {N}-level diode-clamped converter runs from a {V} V bus.

::: part
answer: V/(N - 1)
unit: V
tolerance: 0.5%

### What does each switch block?

::: misses
- [V/2] That's true only for three levels; each switch blocks one step.
- [any] $V_{dc}/(N - 1)$.
:::
:::
:::

::: check
kind: parts
given: V = 400 | 640 | 1000; s = 1.6 | 2.5 | 3.3; r = 5 | 10

## An MMC's DC link is {V} kV pole to pole, built from {s} kV submodules, with {r}% redundancy.

::: part
answer: ceil(V/s*(1 + r/100) - 1e-9)
unit: submodules
tolerance: 0

### How many submodules does each arm need?

::: misses
- [any] $V_{dc}/V_{sm}$ plus redundancy, rounded up.
:::
:::
:::

::: check
kind: parts
given: V = 600 | 1200 | 3000; N = 3 | 5 | 9; t = 50 | 200

## A converter with {N} levels per phase on a {V} V bus switches each step in {t} ns.

::: part
answer: V/(N - 1)/(t*1e-3)
unit: V/µs
tolerance: 0.5%

### What dv/dt does the load see?

::: misses
- [V/(t*1e-3)] Each edge spans only one level's step.
- [any] Step over transition time.
:::
:::
:::

::: check
kind: parts
given: k = 2 | 4 | 6

## A cascaded H-bridge phase has {k} cells.

::: part
answer: 4*k + 1
unit: levels
tolerance: 0

### How many levels does the line-to-line voltage have?

::: misses
- [2*k + 1] That's the phase voltage.
- [any] 4k + 1.
:::
:::
:::

::: check
kind: choice

## Why do HVDC converters use modular multilevel designs instead of series strings of switches in a two-level bridge?

- [ ] Two-level bridges can't carry DC
- [x] Series strings must switch hundreds of devices at exactly the same instant with the full voltage step each time, demanding large filters, while an MMC inserts submodules one at a time in small steps, producing a nearly sinusoidal voltage with low switching loss and natural redundancy
- [ ] MMCs need no capacitors
- [ ] It's only a matter of cost

::: misses
- [1] Two-level HVDC converters existed.
- [3] Each submodule has a capacitor.
- [4] The reasons are technical: harmonics, losses and stress.
:::
:::

::: check
kind: derivation
vars: V = 100..1000000, N = 2..500, k = 1..20, f = 50..20000

## A converter has N levels on a bus of V; a cascaded H-bridge phase has k cells switching at f.

::: step
answer: V/(N - 1)

### What is the voltage step?
:::

::: step
answer: 2*k + 1

### How many phase levels does the cascaded H-bridge give?
:::

::: step
answer: 2*k*f

### At what frequency is its output ripple?
:::

::: right
Right. More cells mean more levels and a higher apparent switching frequency, with each device switching slowly.
:::
:::

::: check
kind: python

## Write `staircase_thd(levels)`: sample 1024 points of a nearest-level staircase (levels odd, k = (levels − 1)/2 steps each way, value round(k sin θ)/k at the midpoints of the samples), compute its odd harmonics up to the 299th by sine correlation, and return THD as a fraction.

```python starter
def staircase_thd(levels):
    return 0.0
```

```python solution
import math

def staircase_thd(levels):
    M = 1024
    k = (levels - 1) // 2
    x = [round(k * math.sin(2 * math.pi * (n + 0.5) / M)) / k for n in range(M)]
    amps = []
    for h in range(1, 300, 2):
        amps.append(sum(x[n] * math.sin(2 * math.pi * h * (n + 0.5) / M) for n in range(M)) * 2 / M)
    return math.sqrt(sum(a * a for a in amps[1:])) / amps[0]
```

```python tests
t3, t11, t21 = staircase_thd(3), staircase_thd(11), staircase_thd(21)
assert 0.28 < t3 < 0.33, "Three levels: about 31%."
assert 0.065 < t11 < 0.085, "Eleven levels: about 8%."
assert t21 < t11 < t3, "More levels, less distortion."
```

::: right
Right. The staircase's error is a sawtooth-like residue whose size scales with the step, so THD falls roughly as one over the number of levels.
:::
:::

::: explain
## What do multilevel converters gain, and what do they cost, compared with a two-level inverter at the same power?

::: model
They let lower-voltage devices build a high-voltage output, since each device blocks only one level's step, and they make the output voltage a fine staircase whose harmonics and voltage steps shrink with the number of levels, so filters get smaller and motor insulation sees gentler edges. Because each device can switch slowly while the combined output looks like a much faster converter, switching losses fall too. The costs are many more devices, gate drivers and capacitors, the need to balance the capacitor voltages or provide isolated sources for each cell, and more complex control and protection.
:::
:::

::: practice
::: check
given: k = 2 | 3 | 4 | 5 | 7 | 9
answer: 2*k + 1
unit: levels
tolerance: 0

## Phase levels with {k} H-bridge cells?

::: misses
- [any] 2k + 1.
:::
:::

::: check
given: V = 1000 | 2400; N = 3 | 5
answer: V/(N - 1)
unit: V
tolerance: 0.5%

## Device blocking voltage, {N}-level on {V} V?

::: misses
- [any] $V/(N - 1)$.
:::
:::

::: check
given: k = 4 | 9; f = 400 | 900
answer: 2*k*f/1e3
unit: kHz
tolerance: 0.5%

## Ripple frequency: {k} cells at {f} Hz, unipolar?

::: misses
- [any] $2kf_s$.
:::
:::
:::
