---
title: Converter transfer functions and the regulator loop
heading: The ESR zero, line-to-output and output impedance transfer functions, the pulse-width modulator's gain, the sensor divider, and the loop gain that sets how well a regulator rejects line and load changes
eyebrow: S11 · Lesson 17 · Converter transfer functions and the regulator loop
xp: 50
---

::: hook
A voltage regulator is a feedback loop: a divider senses the output, an error amplifier compares it with a reference, a pulse-width modulator turns the amplifier's output into a duty cycle, and the converter turns duty into voltage. Before designing the compensator (lesson 18), we need every block's transfer function, including the effects real capacitors add, and the two disturbances the loop must fight: changes in input voltage and changes in load current.
:::

::: play
- The control-to-output Bode plot of a 12 V to 3.3 V buck (L = 10 µH, a 1.65 Ω load) with an output capacitor of chosen value and ESR.
- The ESR adds a zero at $1/2\pi R_\text{ESR}C$. With a ceramic capacitor it sits in the megahertz and the phase falls to −180°; with an electrolytic it can land near the resonance, stopping the fall at −90°.
- That extra phase can make the loop easier to compensate, at the cost of more output ripple.
:::

```sim plot
view: bode
x: f = 100..1M Hz log
slider: C = 10..1000 = 22 µF log
slider: E = 1..200 = 3 mΩ log
H: 12*(1 + j*2*pi*f*E*1e-3*C*1e-6)/(1 + j*2*pi*f*(10e-6/1.65 + E*1e-3*C*1e-6) + (j*2*pi*f)^2*10e-6*C*1e-6)
marker: x = 1/(2*pi*sqrt(10e-6*C*1e-6)) | label: resonance
marker: x = 1/(2*pi*E*1e-3*C*1e-6) | label: ESR zero
readout: ESR zero, kHz = 1/(2*pi*E*1e-3*C*1e-6)/1000 | digits: 4
```

::: predict
## A buck regulator senses 3.3 V through a divider to a 0.8 V reference, and its PWM ramp is 1 V. With 12 V in and no integrator, what's its low-frequency loop gain?

- [ ] About 100
- [ ] 12
- [x] About 2.9
- [ ] 0.24

::: reveal
$T(0) = G_{vd}(0)\,H/V_M = 12 \times (0.8/3.3)/1$ = 2.91. With only that much loop gain the output would sag by 1/(1 + 2.91) = 26% of any error: useless as a regulator. That's why every regulator's compensator includes an integrator (lesson 18).
:::
:::

::: nameit
## The ESR zero

A capacitor with series resistance has impedance $R_\text{ESR} + 1/sC$, adding a zero at $f_\text{ESR} = 1/2\pi R_\text{ESR}C$ to the output transfer functions. Ceramic capacitors (milliohms) put it in the megahertz; electrolytics (tens of milliohms on hundreds of microfarads) put it at a few kilohertz.

## The other transfer functions

- **Line to output**, $G_{vg} = \hat{v}/\hat{v}_g$: for the buck, D times the same LC response, so its DC value is D.
- **Output impedance**, $Z_\text{out} = -\hat{v}/\hat{i}_\text{load}$: at low frequency the inductor's resistance, peaking near the resonance at about $QZ_0$ with $Z_0 = \sqrt{L/C}$.

## The loop

- **Sensor:** a divider $H = V_\text{ref}/V$.
- **Error amplifier and compensator** $G_c(s)$.
- **PWM:** comparing the control voltage $v_c$ with a ramp of height $V_M$ gives $d = v_c/V_M$, a gain of $1/V_M$.

The loop gain is

$$T(s) = G_c(s)\frac{1}{V_M}G_{vd}(s)H$$

and closing the loop divides every disturbance by $1 + T$: the closed-loop line-to-output response is $G_{vg}/(1 + T)$ and the output impedance $Z_\text{out}/(1 + T)$, while the output follows the reference times $\frac{1}{H}\frac{T}{1 + T}$.
:::

::: example
## Where's the ESR zero for a 22 µF ceramic with 3 mΩ, and for a 470 µF electrolytic with 50 mΩ?

::: solution
1. **Ceramic.**
   $$\begin{aligned} f_\text{ESR} &= \frac{1}{2\pi \times 3\ \text{m}\Omega \times 22\ \mu\text{F}} \\ &= 2.41\ \text{MHz} \end{aligned}$$
   far above any crossover.
2. **Electrolytic.**
   $$\begin{aligned} f_\text{ESR} &= \frac{1}{2\pi \times 50\ \text{m}\Omega \times 470\ \mu\text{F}} \\ &= 6.8\ \text{kHz} \end{aligned}$$
   near a typical crossover, where it adds up to 90° of phase.

**Answer:** the ceramic's ESR zero is at 2.41 MHz and the electrolytic's at 6.8 kHz.
:::
:::

::: example
## The buck's input steps by 1 V. How much does the output move at low frequency, open loop and with a loop gain of 100 there?

::: solution
1. **Open loop.**
   $$\begin{aligned} G_{vg}(0) &= D \\ &= 0.275 \end{aligned}$$
   so a 1 V step moves the output 275 mV.
2. **With a loop gain of 100.**
   $$\begin{aligned} \Delta v &= \frac{0.275\ \text{V}}{101} \\ &= 2.7\ \text{mV} \end{aligned}$$
3. **With an integrator.** A real regulator with an integrator has even more gain at low frequency, so the steady-state change is essentially zero.

**Answer:** the output moves 275 mV open loop and 2.7 mV with a loop gain of 100.
:::
:::

::: example
## An output capacitor of 470 µF has 30 mΩ of ESR, and the loop crosses over at 20 kHz. What does the ESR zero do there?

::: solution
1. **ESR zero.**
   $$\begin{aligned} f_\text{ESR} &= \frac{1}{2\pi \times 0.03 \times 470\ \mu\text{F}} \\ &= 11.3\ \text{kHz} \end{aligned}$$
   below the crossover.
2. **Phase at crossover.** At 20 kHz the zero adds
   $$\begin{aligned} \phi &= \tan^{-1}(20/11.3) \\ &= 60.6° \end{aligned}$$
   of phase and flattens the gain's slope.
3. **Swapping in ceramics.** Designs with electrolytic capacitors lean on that boost; swapping in low-ESR ceramics removes it and can leave the loop with little margin.

**Answer:** the ESR zero sits at 11.3 kHz, so at the 20 kHz crossover it adds 60.6° of phase and flattens the gain's slope.
:::
:::

::: check
given: R = 2 | 20 | 80; C = 10 | 100 | 1000
answer: 1/(2*pi*R*1e-3*C*1e-6)/1000
unit: kHz
tolerance: 0.5%

## An output capacitor of {C} µF has {R} mΩ of ESR. Where's its ESR zero?

::: right
Right. $1/2\pi R_\text{ESR}C$ = {answer} kHz.
:::

::: misses
- [1/(R*1e-3*C*1e-6)/1000] That's in rad/s; divide by 2π.
- [any] Not yet. Where $R_\text{ESR} = 1/\omega C$.
:::
:::

::: check
given: g = 5 | 12 | 24; r = 0.6 | 0.8 | 1.25; V = 1.8 | 3.3 | 5; M = 0.5 | 1 | 2
answer: g*(r/V)/M
tolerance: 0.5%

## A buck from {g} V senses its {V} V output with a divider to a {r} V reference, through a PWM with a {M} V ramp. What's its uncompensated DC loop gain?

::: right
Right. $V_gH/V_M$ = {answer}.
:::

::: misses
- [g/M] Include the divider, $H = V_\text{ref}/V$.
- [any] Not yet. $G_{vd}(0)H/V_M$.
:::
:::

::: check
given: g = 5 | 12 | 24; V = 1.8 | 3.3; d = 0.5 | 1 | 2
answer: V/g*d*1000
unit: mV
tolerance: 0.5%

## A buck makes {V} V from {g} V open loop. If the input rises by {d} V, how much does the output rise?

::: right
Right. $G_{vg}(0) = D$, so {answer} mV.
:::

::: misses
- [d*1000] The output moves by D times the input change.
- [any] Not yet. $V = DV_g$.
:::
:::

::: check
given: V = 1.2 | 3.3 | 12; r = 0.6 | 0.8 | 1.25
answer: r/V
tolerance: 0.5%

## A {V} V output is regulated against a {r} V reference. What's the divider ratio H?

::: right
Right. $V_\text{ref}/V$ = {answer}.
:::

::: misses
- [V/r] H scales the output down to the reference.
- [any] Not yet. The divider makes $HV = V_\text{ref}$.
:::
:::

::: check
given: Z = 5 | 20 | 80; T = 10 | 50 | 300
answer: Z/(1 + T)
unit: mΩ
tolerance: 0.5%

## A converter's open-loop output impedance at some low frequency is {Z} mΩ, and its loop gain there is {T}. What's its closed-loop output impedance?

::: right
Right. $Z_\text{out}/(1 + T)$ = {answer} mΩ.
:::

::: misses
- [any] Not yet. Feedback divides disturbances by $1 + T$.
:::
:::

::: check
given: L = 4.7 | 22; C = 22 | 220; R = 1 | 5
answer: R*1000
unit: mΩ
tolerance: 0.5%

## A buck's output impedance peaks near its LC resonance at about $QZ_0$. With L = {L} µH, C = {C} µF and a {R} Ω load, how high?

::: right
Right. $Q = R\sqrt{C/L}$ and $Z_0 = \sqrt{L/C}$, so $QZ_0$ = R = {answer} mΩ for an ideal LC; losses lower it.
:::

::: misses
- [any] Not yet. $Z_\text{peak} \approx QZ_0$.
:::
:::

::: check
kind: parts
given: C = 100 | 470 | 1000; R = 10 | 30 | 80; f = 10 | 30

## An output capacitor of {C} µF has {R} mΩ of ESR; the loop crosses over at {f} kHz.

::: part
answer: 1/(2*pi*R*1e-3*C*1e-6)/1e3
unit: kHz
tolerance: 0.5%

### Where is its ESR zero?

::: misses
- [any] $1/(2\pi R_\text{ESR}C)$.
:::
:::

::: part
answer: atan(f/(1/(2*pi*R*1e-3*C*1e-6)/1e3))*180/pi
unit: °
tolerance: 0.5%

### How much phase does it add at crossover?

::: misses
- [any] $\tan^{-1}(f_c/f_\text{ESR})$.
:::
:::
:::

::: check
kind: derivation
vars: Z = 0.001..1, T = 1..1000, D = 0.05..0.95

## Open loop a buck has output impedance Z and line gain D; its loop gain is T (real, at a low frequency).

::: step
answer: Z/(1 + T)

### What output impedance does the closed loop have?
:::

::: step
answer: D/(1 + T)

### What fraction of an input change reaches the output?
:::

::: right
Right. Feedback divides every disturbance path by 1 + T.
:::
:::

::: explain
## Why must a regulator's loop gain be large at low frequencies?

::: model
Closing the loop divides the effect of every disturbance, input-voltage changes, load-current steps, component drift, by one plus the loop gain. The open-loop converter is a poor regulator: its output moves by the duty cycle times any input change and by its output impedance times any load change. A loop gain of a few, which is all the converter and modulator provide on their own, would cut those effects only a few times. An integrator in the compensator makes the loop gain grow without limit toward DC, so steady disturbances are rejected completely and slow ones nearly so. The gain then has to fall off at higher frequencies to keep the loop stable, which is the job of the compensator's other poles and zeros.
:::
:::

::: practice

::: check
given: R = 5 | 50; C = 47 | 470
answer: 1/(2*pi*R*1e-3*C*1e-6)/1000
unit: kHz
tolerance: 0.5%

## ESR zero: {C} µF, {R} mΩ?

::: misses
- [any] $1/2\pi RC$.
:::
:::

::: check
given: g = 9 | 48; r = 0.8 | 1.2; V = 2.5 | 12; M = 0.8 | 1.5
answer: g*(r/V)/M
tolerance: 0.5%

## Uncompensated loop gain: {g} V in, {V} V out, {r} V reference, {M} V ramp?

::: misses
- [any] $V_gH/V_M$.
:::
:::

::: check
given: Z = 10 | 100; T = 20 | 200
answer: Z/(1 + T)
unit: mΩ
tolerance: 0.5%

## Closed-loop output impedance: {Z} mΩ, T = {T}?

::: misses
- [any] $Z/(1 + T)$.
:::
:::
:::
