---
title: Transformer-isolated converters
heading: Why chargers and off-line supplies need isolation, the flyback as a buck-boost with a coupled inductor, the forward converter and core reset, full-bridge converters, turns ratios to keep duty cycles reasonable, and the voltage stress on the switches
eyebrow: S11 · Lesson 10 · Transformer-isolated converters
xp: 50
---

::: hook
A laptop charger plugged into a 230 V outlet makes 20 V that you can touch safely. Somewhere inside, a transformer separates the mains side from the output, for safety and to bridge the huge voltage ratio efficiently. Switching converters make that transformer tiny, because it runs at hundreds of kilohertz instead of 50 or 60 Hz. Inserting a transformer into the buck-boost gives the flyback, into the buck gives the forward and bridge converters; their turns ratios let the duty cycle stay near the middle of its range even for large conversion ratios.
:::

::: play
- A flyback converter's output against duty cycle for a chosen turns ratio $n = N_s/N_p$ and input voltage: $V = n\frac{D}{1 - D}V_g$.
- Without the transformer, 48 V to 5 V would need D = 0.094 in a buck-boost. With 4:1 turns, D = 0.29.
- The readout is the transistor's off-state voltage, $V_g + V/n$: the output reflected through the transformer adds to the input.
:::

```sim plot
view: graph
x: D = 0.05..0.8
y: V = 0..40 V
slider: n = 0.05..1 = 0.25
slider: g = 12..400 = 48 V log
plot: n*D/(1 - D)*g | samples: 400 | label: flyback output
plot: 5 + 0*D | dashed | color: ch3 | label: 5 V
readout: duty cycle for 5 V = 5/(n*g)/(1 + 5/(n*g)) | digits: 3
readout: switch stress at 5 V out, V = g + 5/n | digits: 4
```

::: predict
## A flyback with a 4:1 transformer ($n$ = 0.25) makes 5 V from 48 V. What voltage must its MOSFET block?

- [ ] 48 V
- [ ] 53 V
- [x] 68 V
- [ ] 240 V

::: reveal
While the transistor is off, the secondary conducts and clamps the transformer's voltage to the output, which reflects to the primary as $V/n$ = 20 V on top of the 48 V input: 68 V, before any ringing from leakage inductance, which usually adds more and needs a snubber or clamp.
:::
:::

::: nameit
## Why isolate

Safety standards require isolation between mains and anything a person can touch; isolation also allows multiple outputs, either polarity and large conversion ratios with sensible duty cycles.

## Flyback

A buck-boost whose inductor has two windings: energy is stored in the magnetizing inductance while the switch is on and delivered through the secondary while it's off.

$$V = n\frac{D}{1 - D}V_g, \qquad V_\text{switch} = V_g + V/n$$

with $n = N_s/N_p$. Simple and cheap, it dominates below about 100 W. Leakage inductance causes a voltage spike at turn-off that a clamp or snubber absorbs.

## Forward

A buck with a transformer: power passes through the transformer while the switch is on, so $V = nDV_g$. The core's magnetizing current must be reset each cycle; with a reset winding of the same turns as the primary, $D \le 0.5$ and the switch blocks $2V_g$.

## Bridges

Half-bridge and full-bridge converters drive the transformer in both directions, using the core fully and suiting high power. For a full bridge applying ±$V_g$ for a fraction D of the period, $V = nDV_g$ with D up to nearly 1, and each switch blocks only $V_g$.

## Choosing n

Pick n so the nominal duty cycle is moderate (around 0.3 to 0.5), balancing switch voltage stress against current stress.
:::

::: example
## Design the turns ratio for a 48 V to 5 V forward converter with a 1:1 reset winding.

::: solution
1. **Smallest turns ratio.** D can't exceed 0.5, so
   $$\begin{aligned} n &\ge \frac{5}{0.5 \times 48} \\ &= 0.208 \end{aligned}$$
2. **Take n = 0.25 (4:1).**
   $$\begin{aligned} D &= \frac{5}{0.25 \times 48} \\ &= 0.417 \end{aligned}$$
   with margin for a low input.
3. **Switch voltage.** During reset the switch blocks
   $$\begin{aligned} V_Q &= 2 \times 48 \\ &= 96\ \text{V} \end{aligned}$$

**Answer:** a 4:1 ratio (n = 0.25) gives D = 0.417, and the switch blocks 96 V during reset.
:::
:::

::: example
## An off-line flyback runs from 325 V (rectified 230 V AC) with 10:1 turns. What duty cycle gives 12 V, and what does the switch block?

::: solution
1. **Duty cycle.**
   $$\begin{aligned} 12 &= 0.1\frac{D}{1 - D}325 \\ \frac{D}{1 - D} &= 0.369 \\ D &= 0.27 \end{aligned}$$
2. **Switch voltage.**
   $$\begin{aligned} V_Q &= 325 + 12 \times 10 \\ &= 445\ \text{V} \end{aligned}$$
   plus the leakage spike, so a 650 V or 800 V device is typical.

**Answer:** D = 0.27, and the switch blocks 445 V plus the leakage spike.
:::
:::

::: example
## A flyback runs from a 400 V bus to 24 V with a maximum duty cycle of 0.45. Choose its turns ratio and find the switch's off-state voltage.

::: solution
1. **Turns ratio.** Solve $V = n\frac{D}{1 - D}V_g$ for n:
   $$\begin{aligned} n &= \frac{24 \times 0.55}{0.45 \times 400} \\ &= 0.0733 \end{aligned}$$
   about 13.6:1 primary to secondary.
2. **Switch voltage.** Off, the switch blocks
   $$\begin{aligned} V_Q &= V_g + V/n \\ &= 400 + 24/0.0733 \\ &= 727\ \text{V} \end{aligned}$$
   before any leakage spike, which is why off-line flybacks use 800 V or higher switches and a clamp.

**Answer:** n = 0.0733 (about 13.6:1), and the switch blocks 727 V before any leakage spike.
:::
:::

::: check
given: n = 0.1 | 0.25 | 0.5; D = 0.3 | 0.45 | 0.6; g = 24 | 48 | 325
answer: n*D/(1 - D)*g
unit: V
tolerance: 0.5%

## A flyback with $N_s/N_p$ = {n} runs from {g} V at D = {D}. What's its output?

::: right
Right. $n\frac{D}{1 - D}V_g$ = {answer} V.
:::

::: misses
- [n*D*g] That's a forward converter.
- [D/(1 - D)*g] Include the turns ratio.
- [any] Not yet. The buck-boost ratio scaled by n.
:::
:::

::: check
given: n = 0.1 | 0.25; g = 24 | 48 | 325; V = 3.3 | 5 | 12
answer: V/(n*g)/(1 + V/(n*g))
tolerance: 0.5%

## A flyback with $N_s/N_p$ = {n} must make {V} V from {g} V. What duty cycle?

::: right
Right. $\frac{D}{1 - D} = V/(nV_g)$, so D = {answer}.
:::

::: misses
- [V/(n*g)] That's $D/(1 - D)$; solve for D.
- [any] Not yet. Invert the flyback ratio.
:::
:::

::: check
given: n = 0.1 | 0.25; g = 24 | 48 | 325; V = 3.3 | 5 | 12
answer: g + V/n
unit: V
tolerance: 0.5%

## For the same flyback, what voltage does the switch block (ignoring leakage spikes)?

::: right
Right. $V_g + V/n$ = {answer} V.
:::

::: misses
- [g + V] The output is reflected through the turns ratio: $V/n$.
- [any] Not yet. Input plus the reflected output.
:::
:::

::: check
given: n = 0.1 | 0.25 | 0.5; D = 0.25 | 0.4; g = 24 | 48 | 100
answer: n*D*g
unit: V
tolerance: 0.5%

## A forward converter with $N_s/N_p$ = {n} runs from {g} V at D = {D}. What's its output?

::: right
Right. $nDV_g$ = {answer} V.
:::

::: misses
- [D*g] Include the turns ratio.
- [any] Not yet. A buck with a transformer.
:::
:::

::: check
given: g = 24 | 48 | 380; V = 3.3 | 12 | 28
answer: V/(0.5*g)
tolerance: 0.5%

## A forward converter with a 1:1 reset winding must make {V} V from {g} V. What's the smallest turns ratio $N_s/N_p$ that works?

::: right
Right. D ≤ 0.5, so $n \ge V/(0.5V_g)$ = {answer}.
:::

::: misses
- [V/g] That would need D = 1.
- [any] Not yet. The reset limits D to one half.
:::
:::

::: check
given: n = 0.1 | 0.5; D = 0.3 | 0.7; g = 48 | 400
answer: n*D*g
unit: V
tolerance: 0.5%

## A full bridge applies ±{g} V to a transformer ($N_s/N_p$ = {n}) for a fraction {D} of each period, rectified and filtered. What's the output?

::: right
Right. $nDV_g$ = {answer} V.
:::

::: misses
- [2*n*D*g] D here already counts both polarities' pulses.
- [any] Not yet. The average of the rectified secondary.
:::
:::

::: check
kind: parts
given: g = 48 | 325 | 400; V = 5 | 12 | 24; D = 0.35 | 0.45

## A flyback makes {V} V from {g} V at a maximum duty cycle of {D}.

::: part
answer: V*(1 - D)/(D*g)
tolerance: 0.5%

### What turns ratio $N_s/N_p$ does it need?

::: misses
- [any] $n = V(1 - D)/(DV_g)$.
:::
:::

::: part
answer: g + V/(V*(1 - D)/(D*g))
unit: V
tolerance: 0.5%

### What does its switch block?

::: misses
- [g] The reflected output adds to the input.
- [any] $V_g + V/n$.
:::
:::
:::

::: check
kind: derivation
vars: n = 0.01..2, g = 5..500, D = 0.05..0.6

## A converter with turns ratio n runs from g volts at duty D.

::: step
answer: n*D/(1 - D)*g

### What does a flyback produce?
:::

::: step
answer: g + n*D/(1 - D)*g/n

### What does its switch block?
:::

::: step
answer: n*D*g

### What would a forward converter produce?
:::

::: right
Right. The flyback stores energy in its transformer; the forward passes it straight through and filters it.
:::
:::

::: explain
## Why does a forward converter's duty cycle have a limit that a flyback's doesn't?

::: model
A forward converter's transformer is meant to pass power straight through while the switch is on, but its magnetizing inductance still builds up flux during that time. Before the next cycle the flux must return to zero, or it would ratchet up until the core saturated. With a reset winding of the same turns as the primary, resetting takes as long as the on-time did, so the switch can be on for at most half of each period. A flyback has no such limit, because its magnetizing inductance is the energy-storage element: the flux it builds while the switch is on is discharged into the output every off-time as a normal part of operation.
:::
:::

::: practice

::: check
given: n = 0.05 | 0.3; D = 0.25 | 0.55; g = 36 | 380
answer: n*D/(1 - D)*g
unit: V
tolerance: 0.5%

## Flyback output: n = {n}, D = {D}, {g} V?

::: misses
- [any] $n\frac{D}{1 - D}V_g$.
:::
:::

::: check
given: n = 0.08 | 0.2; g = 36 | 380; V = 5 | 24
answer: g + V/n
unit: V
tolerance: 0.5%

## Flyback switch stress: n = {n}, {g} V in, {V} V out?

::: misses
- [any] $V_g + V/n$.
:::
:::

::: check
given: g = 36 | 400; V = 5 | 48
answer: V/(0.5*g)
tolerance: 0.5%

## Minimum forward turns ratio: {g} V to {V} V?

::: misses
- [any] $V/(0.5V_g)$.
:::
:::
:::
