---
title: Input filter design
heading: Why a regulated converter looks like a negative resistance to its source, how an undamped input filter can then oscillate, Middlebrook's impedance criterion, and damping the filter with a series R–C branch chosen for the lowest output-impedance peak
eyebrow: S11 · Lesson 20 · Input filter design
xp: 50
---

::: hook
Switching converters draw pulsed input current, so nearly every one needs an LC filter at its input to keep that ripple off the supply bus and meet EMI limits. Add the filter carelessly and a perfectly stable regulator starts to oscillate, or its loop gain develops a deep notch. The reason is surprising: a regulated converter draws constant power, so when its input voltage rises its input current falls, a negative incremental resistance that can cancel the filter's own damping. R. D. Middlebrook worked out in 1976 how to avoid this.
:::

::: play
- The output impedance of an input filter ($L_f$ = 10 µH, $C_f$ = 20 µF) with a damping branch, a resistor $R_d$ in series with a capacitor $nC_f$, against frequency; the dashed line is half the converter's input impedance magnitude, 1.44 Ω, for a 50 W load on 12 V.
- Without enough damping the filter's impedance peak rises above the line, and the converter's loop and the filter interact.
- There's a best $R_d$ for each n: too little damping lets the resonance ring, too much makes $R_d$ look like an open and the resonance moves to the undamped $L_fC_f$ pair.
:::

```sim plot
view: graph
x: f = 1..100 kHz log
y: Z = 0.01..10 Ω log
slider: R = 0.05..3 = 0.433 Ω log
slider: n = 0.5..10 = 4 log
plot: abs((j*2*pi*f*1e3*10e-6)*(1/(j*2*pi*f*1e3*20e-6)*(R + 1/(j*2*pi*f*1e3*n*20e-6))/(1/(j*2*pi*f*1e3*20e-6) + R + 1/(j*2*pi*f*1e3*n*20e-6)))/((j*2*pi*f*1e3*10e-6) + 1/(j*2*pi*f*1e3*20e-6)*(R + 1/(j*2*pi*f*1e3*n*20e-6))/(1/(j*2*pi*f*1e3*20e-6) + R + 1/(j*2*pi*f*1e3*n*20e-6)))) | samples: 800 | label: filter output impedance
plot: 1.44 + 0*f | dashed | color: ch3 | label: half the converter's input impedance
readout: optimal Rd for this n, Ω = 0.7071*sqrt((2 + n)*(4 + 3*n)/(2*n^2*(4 + n))) | digits: 3
readout: peak with optimal damping, Ω = 0.7071*sqrt(2*(2 + n))/n | digits: 3
```

::: predict
## A regulated converter delivers a constant 50 W from a 12 V input. What small-signal resistance does it present to its source?

- [ ] +2.88 Ω
- [x] −2.88 Ω
- [ ] 0.24 Ω
- [ ] Infinite: it's a current sink

::: reveal
With constant power, $i = P/v$, so $di/dv = -P/v^2$: an incremental resistance of $-V^2/P$ = −144/50 = −2.88 Ω. A negative resistance in parallel with an LC filter's capacitor can cancel its losses and turn it into an oscillator.
:::
:::

::: nameit
## The negative input resistance

A converter whose feedback holds its output (and so its output power) constant draws $i_g = P/v_g$, so within its loop bandwidth its incremental input resistance is

$$R_\text{in} = -\frac{V_g^2}{P}$$

## Middlebrook's criterion

Adding an input filter with output impedance $Z_o$ changes the converter's transfer functions by a correction factor involving $Z_o/Z_N$ and $Z_o/Z_D$, two impedances of the converter. If

$$\|Z_o\| \ll \|Z_N\| \text{ and } \|Z_o\| \ll \|Z_D\|$$

at all frequencies, the filter doesn't disturb the loop. For a buck, $Z_N \approx -R/D^2$ (the negative resistance), so in practice designers keep the filter's impedance peak at least 6 dB below $V_g^2/P$.

## Damping the filter

An undamped LC filter has an impedance peak of $QR_0$ at $f_f = 1/2\pi\sqrt{L_fC_f}$, with $R_0 = \sqrt{L_f/C_f}$ and Q limited only by stray losses. A damping branch $R_d$ in series with a blocking capacitor $C_d = nC_f$ (so $R_d$ carries no DC) works best with

$$R_{d,\text{opt}} = R_0\sqrt{\frac{(2 + n)(4 + 3n)}{2n^2(4 + n)}}, \qquad \|Z_o\|_\text{peak} = R_0\frac{\sqrt{2(2 + n)}}{n}$$

Larger n damps more but needs a bigger capacitor.
:::

::: example
## Design damping for the 50 W, 12 V converter with $L_f$ = 10 µH and $C_f$ = 20 µF.

::: solution
1. **The filter.**
   $$\begin{aligned} R_0 &= \sqrt{10/20}\ \Omega \\ &= 0.707\ \Omega \end{aligned}$$
   and the filter resonates at 11.3 kHz.
2. **The limit.** The converter's input impedance is 2.88 Ω, so the peak should stay below 1.44 Ω.
3. **Damping resistor with n = 4.** With $C_d$ = 80 µF:
   $$\begin{aligned} R_{d,\text{opt}} &= 0.707\sqrt{\frac{6 \times 16}{32 \times 8}} \\ &= 0.433\ \Omega \end{aligned}$$
4. **Peak output impedance.**
   $$\begin{aligned} Z_\text{peak} &= \frac{0.707\sqrt{12}}{4} \\ &= 0.61\ \Omega \end{aligned}$$
   7.4 dB below the limit.
5. **A smaller damping capacitor.** Even n = 2 (peak 1.0 Ω) would meet it.

**Answer:** with $C_d$ = 80 µF (n = 4) and $R_d$ = 0.433 Ω, the filter's peak is 0.61 Ω, 7.4 dB below the 1.44 Ω limit.
:::
:::

::: example
## How sensitive is the peak to $R_d$?

::: solution
1. **Below the optimum.** With n = 4, a computed sweep gives a peak of 0.88 Ω at $R_d$ = 0.2 Ω.
2. **At the optimum.** At the optimal 0.433 Ω the peak is 0.61 Ω.
3. **Above the optimum.** At 1 Ω it's 1.04 Ω.
4. **How broad it is.** The optimum is broad: a resistor within a factor of two works.

**Answer:** not very: the peak goes from 0.61 Ω at the optimum to 0.88 Ω at 0.2 Ω and 1.04 Ω at 1 Ω, so a resistor within a factor of two works.
:::
:::

::: example
## A 100 W converter on a 48 V bus gets an input filter of 4.7 µH and 10 µF, damped by a parallel branch with $C_d = 4C_f$ at its optimum resistance. How much margin does Middlebrook's criterion have?

::: solution
1. **Converter input resistance.**
   $$\begin{aligned} R_\text{in} &= -\frac{48^2}{100} \\ &= -23.0\ \Omega \end{aligned}$$
2. **The filter.**
   $$\begin{aligned} R_0 &= \sqrt{L_f/C_f} \\ &= 0.686\ \Omega \end{aligned}$$
   and it resonates at 23.2 kHz.
3. **Damping resistor.** With n = 4 the optimum is
   $$\begin{aligned} R_d &= 0.612R_0 \\ &= 0.42\ \Omega \end{aligned}$$
4. **Peak output impedance.**
   $$\begin{aligned} Z_\text{peak} &= \frac{R_0\sqrt{2(2 + n)}}{n} \\ &= 0.866R_0 \\ &= 0.594\ \Omega \end{aligned}$$
5. **Margin.**
   $$20\log_{10}\frac{23.0}{0.594} = 31.8\ \text{dB}$$
   below the negative resistance: ample margin.

**Answer:** the filter's 0.594 Ω peak sits 31.8 dB below the converter's −23.0 Ω input resistance, ample margin.
:::
:::

::: check
given: V = 12 | 48 | 380; P = 20 | 100 | 500
answer: -V^2/P
unit: Ω
tolerance: 0.5%

## A regulated converter delivers {P} W from a {V} V bus. What incremental input resistance does it present?

::: right
Right. $-V^2/P$ = {answer} Ω.
:::

::: misses
- [V^2/P] Constant power makes the incremental resistance negative: current falls as voltage rises.
- [any] Not yet. Differentiate $i = P/v$.
:::
:::

::: check
given: L = 2.2 | 10 | 47; C = 4.7 | 22 | 100
answer: sqrt(L/C)
unit: Ω
tolerance: 0.5%

## An input filter has $L_f$ = {L} µH and $C_f$ = {C} µF. What's its characteristic impedance $R_0$?

::: right
Right. $\sqrt{L_f/C_f}$ = {answer} Ω.
:::

::: misses
- [sqrt(C/L)] It's $\sqrt{L/C}$.
- [any] Not yet. $R_0 = \sqrt{L/C}$.
:::
:::

::: check
given: L = 2.2 | 10 | 47; C = 4.7 | 22 | 100
answer: 1/(2*pi*sqrt(L*1e-6*C*1e-6))/1000
unit: kHz
tolerance: 0.5%

## Where does that filter resonate?

::: right
Right. $1/2\pi\sqrt{L_fC_f}$ = {answer} kHz.
:::

::: misses
- [any] Not yet. The LC resonance.
:::
:::

::: check
given: r = 0.3 | 0.7 | 2; n = 2 | 3 | 4 | 8
answer: r*sqrt((2 + n)*(4 + 3*n)/(2*n^2*(4 + n)))
unit: Ω
tolerance: 0.5%

## A filter with $R_0$ = {r} Ω gets a damping branch with $C_d$ = {n}$C_f$. What's the optimal damping resistance?

::: right
Right. $R_0\sqrt{\frac{(2 + n)(4 + 3n)}{2n^2(4 + n)}}$ = {answer} Ω.
:::

::: misses
- [r] Close for n near 2, but use the formula.
- [any] Not yet. Middlebrook's optimum.
:::
:::

::: check
given: r = 0.3 | 0.7 | 2; n = 2 | 3 | 4 | 8
answer: r*sqrt(2*(2 + n))/n
unit: Ω
tolerance: 0.5%

## With that optimal damping, how high does the filter's output impedance peak?

::: right
Right. $R_0\sqrt{2(2 + n)}/n$ = {answer} Ω.
:::

::: misses
- [r*sqrt(2*(2 + n)/n)] The n is outside the square root.
- [any] Not yet. Use the optimal-damping peak formula.
:::
:::

::: check
given: V = 12 | 48; P = 30 | 150; m = 6 | 10
answer: V^2/P/10^(m/20)
unit: Ω
tolerance: 0.5%

## A converter takes {P} W from {V} V. With a {m} dB margin under Middlebrook's criterion, how high may the input filter's impedance peak?

::: right
Right. $V^2/P$ reduced by {m} dB: {answer} Ω.
:::

::: misses
- [V^2/P/10^(m/10)] An impedance ratio in decibels uses $20\log$.
- [any] Not yet. $|Z_\text{in}|$ divided by $10^{m/20}$.
:::
:::

::: check
kind: parts
given: P = 50 | 200; V = 12 | 48; L = 2.2 | 10; C = 10 | 47; n = 2 | 4 | 8

## A {P} W converter on a {V} V bus has an input filter of {L} µH and {C} µF with optimal parallel damping, $C_d$ = {n}$C_f$.

::: part
answer: V^2/P
unit: Ω
tolerance: 0.5%

### What is the magnitude of the converter's input resistance?

::: misses
- [any] $V^2/P$.
:::
:::

::: part
answer: sqrt(L/C)*sqrt(2*(2 + n))/n
unit: Ω
tolerance: 0.5%

### How high does the damped filter's output impedance peak?

::: misses
- [any] $R_0\sqrt{2(2 + n)}/n$.
:::
:::

::: part
answer: 20*log(V^2/P/(sqrt(L/C)*sqrt(2*(2 + n))/n))
unit: dB
tolerance: 1%

### What margin does that leave?

::: misses
- [any] Ratio of the two, in dB.
:::
:::
:::

::: check
kind: derivation
vars: L = 0.000001..0.0001, C = 0.000001..0.0001, n = 0.5..10

## An input filter of L and C gets parallel damping with $C_d$ = nC.

::: step
answer: sqrt(L/C)

### What is $R_0$?
:::

::: step
answer: sqrt(L/C)*sqrt((2 + n)*(4 + 3*n)/(2*n^2*(4 + n)))

### What is the optimal damping resistance?
:::

::: step
answer: sqrt(L/C)*sqrt(2*(2 + n))/n

### How high does the output impedance then peak?
:::

::: right
Right. A larger blocking capacitor lowers the peak, at the cost of size.
:::
:::

::: explain
## Why can adding an input filter make a stable converter oscillate?

::: model
A regulated converter holds its output power fixed, so if its input voltage rises, its control loop cuts the duty cycle and the input current falls: to the source it looks like a negative resistance. An LC input filter is a resonant circuit whose oscillations are damped only by its own small losses and by whatever is connected to it. Connecting a negative resistance across its capacitor subtracts from that damping, and if the filter's characteristic impedance is high compared with the converter's negative resistance, the net damping goes negative and the filter oscillates, with the converter's loop pumping it. Keeping the filter's impedance well below the converter's input impedance at every frequency, and adding a damping branch, prevents it.
:::
:::

::: practice

::: check
given: V = 24 | 400; P = 10 | 1000
answer: -V^2/P
unit: Ω
tolerance: 0.5%

## Converter input resistance: {P} W at {V} V?

::: misses
- [any] $-V^2/P$.
:::
:::

::: check
given: r = 0.5 | 1.5; n = 2 | 6
answer: r*sqrt(2*(2 + n))/n
unit: Ω
tolerance: 0.5%

## Optimally damped peak: $R_0$ = {r}, n = {n}?

::: misses
- [any] $R_0\sqrt{2(2 + n)}/n$.
:::
:::

::: check
given: L = 4.7 | 33; C = 10 | 68
answer: sqrt(L/C)
unit: Ω
tolerance: 0.5%

## $R_0$ for {L} µH, {C} µF?

::: misses
- [any] $\sqrt{L/C}$.
:::
:::
:::
