Input Filter Design Calculator for DC-DC Converters: Damping and Middlebrook Criterion
Introduction
A switching converter draws a pulsed current from its input: in the buck and the buck-boost the whole inductor current for D·Ts, then nothing. Those steps of a few amps, at the switching frequency and its harmonics, end up on the supply leads and in the source. The input filter, an LC, holds them back: the capacitor supplies the pulsed current, the inductor lets only DC through to the source.
The price is an interaction that surprises whoever meets it for the first time. A regulated converter draws constant power: if the input voltage rises, the current falls. Its input impedance, at low frequency, is a negative resistance, −Vin²/Pin. Placed behind a lightly damped LC, that negative resistance cancels its damping and the whole thing oscillates at the filter resonance, even though the converter alone is perfectly stable. Middlebrook (1976) gave the rule: the filter output impedance must stay well below the converter input impedance, at all frequencies.
The tool designs the filter in four variants, with optimum damping, for the ripple current you allow in the source and for the Middlebrook margin you ask for. The converter is the one from the control loop tool, with its compensator: the input impedance that matters is the closed-loop one. Then it shows how the loop changes with the filter in front, and checks everything with a switching simulation in which filter, converter and compensator work together.
| What | Formula |
|---|---|
| Low-frequency input impedance | \( Z_{in} \approx -\dfrac{V_{in}^2}{P_{in}} \) |
| Resonance and characteristic impedance | \( f_0 = \dfrac{1}{2\pi\sqrt{L_f C_f}} \qquad R_0 = \sqrt{\dfrac{L_f}{C_f}} \) |
| Middlebrook criterion | \( \left| Z_o(j\omega) \right| \ll \left| Z_{in}(j\omega) \right| \quad \forall\,\omega \) |
| Optimum R–C damping (n = Cb/Cf) | \( R_d = R_0 \sqrt{\dfrac{(2+n)(4+3n)}{2n^2(4+n)}} \qquad \left\| Z_o \right\|_{max} = R_0\,\dfrac{\sqrt{2(2+n)}}{n} \) |
Card 1 — Converter
The converter is not entered here: it is designed in the control loop tool, power stage and compensator, and the button brings it into this page as it is. Without an import, the tool uses that page’s default converter.
The current at fs is the first harmonic of the input current: in the buck and the buck-boost the pulses of inductor current, in the boost the ripple triangle, which is much smaller. That is why the boost gets away with light filters and the buck does not.
Card 2 — Filter and Middlebrook criterion
| Part | Value | Notes |
|---|
The design starts from the ripple current the source can tolerate: the first harmonic of the input current gives the attenuation needed at fs, and from that the resonant frequency. The characteristic impedance R0 is then chosen so that the peak of |Zo| stays below |Zin| by the requested margin; R0 and f0 give Lf and Cf. Damping is the optimum one, the Rd that minimises the peak of |Zo| for the chosen ratio n.
The four variants spend differently. With R–C parallel you need a Cb a few times larger than Cf, but it is a cheap electrolytic, and its ESR often already acts as Rd. With R–L parallel Lb is small and carries little current; with R–L series Lb carries the whole DC. Two stages give the same attenuation with smaller parts, because attenuation grows with the fourth power of frequency instead of the second.
Optimum damping and input impedance
For each variant the optimum Rd is searched numerically on the normalised cell, without parasitics. For the three single cells the result matches Erickson and Maksimović’s closed-form expressions (Fundamentals of Power Electronics, ch. 10): for R–C with n = 4, for example, Rd = 0.612·R0 and a peak of 0.866·R0. For two stages the two Rd are searched together, with two equal cells.
The converter input impedance comes from the control loop tool’s model, solved with the input voltage as an extra input. At low frequency, where the loop regulates well, it is −Vin²/Pin; above crossover it goes back towards the open-loop impedance, which is positive. In peak current mode Ridley’s model has a feedback term from the input voltage, kf: the tool picks it like kr, matching the DC line susceptibility to the exact averaged relation, and for the buck it recovers Ridley’s value.
Card 3 — The loop with the filter
The Middlebrook criterion guarantees that the combination will not oscillate, not that the loop stays as designed. With the filter in front, the duty-to-output transfer function changes around the filter resonance: with a 6 dB margin the gain can shift by a factor of two, with 10 dB by about a third. The graph compares the loop gain with and without the filter, with the same compensator.
If the phase margin drops a lot, the way out is a wider Middlebrook margin or a filter resonance away from the crossover frequency, not a different compensator.
Card 4 — Switching check
| Quantity | Model | Simulation |
|---|
Here filter, converter and compensator are simulated together, cycle by cycle, with the real switch and the pulsed input current. First the tool measures the fs component of the source current and compares it with the filter calculation; then it injects a signal into the loop at the new crossover frequency and measures the loop gain with the filter in front.
Finally it applies a step to the source voltage. With a well-damped filter the converter Vin rises with a small overshoot and Vout moves little; with a lightly damped filter Vin rings at the filter resonance, and if the Middlebrook criterion is not met the oscillation no longer dies out.
In the simulation the Cf ESR is neglected and the switches are ideal, with a synchronous rectifier. The filter is differential-mode only: common mode, with its capacitors to earth, is a different problem.