Designing a reliable power stage is where many embedded and IoT projects live or die. While it is tempting to slap a linear regulator on a board and call it a day, real-world loads demand higher efficiency and better thermal management. Switch mode power supply (SMPS) design requires balancing switching frequency, inductor saturation, and loop stability. This guide breaks down the math behind topology selection, compares the big three architectures, and walks through a complete 24V-to-5V synchronous buck converter design using industry-standard components.

Linear vs. Switching: Picking the Right Regulator for the Load

Before selecting an SMPS topology, you must prove that a linear regulator cannot handle the job. The decision hinges entirely on dropout voltage and headroom math. Let us look at a common industrial scenario: stepping down a 24V nominal rail to 5V at 2A to power a microcontroller and a relay bank.

The Headroom and Thermal Math

If you attempt this with a standard linear pass element (like an LM317 or a discrete BJT pass transistor), the dropout voltage is the difference between input and output:

  • Dropout (Headroom): $V_{in} - V_{out} = 24V - 5V = 19V$
  • Power Dissipated ($P_d$): $19V \times 2A = 38W$

A standard TO-220 package has a junction-to-ambient thermal resistance ($\theta_{JA}$) of roughly 50°C/W without a heatsink. Dissipating 38W would result in a theoretical temperature rise of 1,900°C—instant magic smoke. Even with a massive extruded aluminum heatsink dropping $\theta_{JA}$ to 10°C/W, you are still pushing 380°C above ambient. Linear regulation is physically impossible here.

Now, apply a switching buck regulator operating at 90% efficiency. The input power required is $P_{in} = (5V \times 2A) / 0.90 = 11.1W$. The power dissipated as heat is only $11.1W - 10W = 1.1W$. With a $\theta_{JA}$ of 40°C/W on a standard PCB, the temperature rise is a manageable 44°C. When the headroom exceeds 3V and the load current exceeds 100mA, switch mode power supply design is the only viable path.

Topology Comparison: Buck, Boost, and Flyback by the Numbers

Once you commit to switching, you must choose the topology. The choice depends on whether you need to step down, step up, or provide galvanic isolation. Below is a benchmark comparison based on a typical 10W to 50W power envelope.

Topology Primary Function Typical Efficiency Heat Profile EMI / Noise Relative BOM Cost
Buck Step-Down 88% – 96% Low (mostly conduction losses) Moderate (Input ripple current) Low ($)
Boost Step-Up 85% – 93% Moderate (Diode/MOSFET switching) High (Output ripple current) Low-Medium ($$)
Flyback Isolated Step-Up/Down 75% – 85% High (Transformer leakage inductance) Very High (Requires snubbers) High ($$$)
SEPIC Step-Up/Down (Non-isolated) 80% – 88% Moderate High (Dual inductor resonance) Medium ($$)

For our 24V to 5V application, the Buck topology is the undisputed winner. It offers the highest efficiency, the lowest component count, and predictable noise characteristics. Flyback is reserved for when safety standards (like IEC 62368-1) mandate galvanic isolation between mains and user-accessible low voltage.

Design Example: 24V to 5V/3A Synchronous Buck Converter

Let us design a robust buck converter using the Texas Instruments TPS54331, a 3A, 28V, 570 kHz step-down regulator. This IC is a staple in industrial IoT gateways due to its integrated high-side MOSFET and wide input range.

Input Protection and Range Specification

A 24V industrial rail is rarely exactly 24V. It can sag to 18V during motor startups or spike to 30V during load dumps. The TPS54331 has an absolute maximum VIN rating of 28V, so we must clamp transients.

  • TVS Diode: Place an SMBJ28CA (28V standoff, bidirectional) directly at the board input. It clamps 10/1000µs transients safely below the IC's absolute max.
  • Reverse Polarity: Use a P-channel MOSFET (e.g., Si2301) instead of a diode to drop only 50mV at 3A, rather than wasting 1.5W across a Schottky diode.
  • Input Capacitance: SMPS circuits draw high-frequency pulsed current from the source. We need at least 10µF of low-ESR ceramic (X7R) placed within 3mm of the VIN and PGND pins to minimize parasitic inductance.

Inductor and Output Capacitor Math

The inductor sets the ripple current ($\Delta I_L$). A standard rule of thumb is to target $\Delta I_L$ at 30% of the maximum output current.

  • Target Ripple: $3A \times 0.30 = 0.9A$
  • Inductor Formula: $L = \frac{V_{out} \times (V_{in(max)} - V_{out})}{V_{in(max)} \times f_{sw} \times \Delta I_L}$
  • Calculation: $L = \frac{5 \times (28 - 5)}{28 \times 570,000 \times 0.9} = 7.6 \mu H$

We will select a standard 10µH shielded ferrite inductor (like the Coilcraft MSS1048 series) rated for at least 4.5A saturation current ($I_{sat}$). Never use an unshielded inductor in an SMPS unless the design is entirely enclosed in a grounded Faraday cage; the radiated EMI will fail FCC Part 15 limits.

For the output capacitor, the voltage ripple ($\Delta V_{out}$) is dominated by the capacitor's Equivalent Series Resistance (ESR), not its capacitance. To keep ripple below 30mV:

  • Max ESR: $\Delta V_{out} / \Delta I_L = 0.030V / 0.9A = 33m\Omega$
  • Selection: Use two 22µF, 10V X5R MLCCs in parallel. Each has an ESR of roughly 15mΩ, yielding a parallel ESR of 7.5mΩ and a theoretical ripple of just 6.7mV.
⚠️ Thermal and Derating Warning:

The TPS54331 features an exposed thermal pad. To achieve the datasheet $\theta_{JA}$ of 40°C/W, you must stitch the pad to an internal ground plane using an array of 0.3mm thermal vias spaced 1mm apart. If your enclosure limits ambient airflow and the internal temperature reaches 60°C, you must consult the IC's derating curve. At 60°C ambient, the maximum safe continuous output current drops from 3A to approximately 2.4A. If your load requires a hard 3A at 60°C, you must either increase the PCB copper pour area or add forced convection.

Feedback and Bootstrap Network

The feedback divider scales the 5V output down to the IC's 0.8V internal reference. Using the formula $R1 = R2 \times (\frac{V_{out}}{0.8} - 1)$, and selecting a standard $R2 = 10k\Omega$, we calculate $R1 = 52.5k\Omega$. Use a 52.3kΩ 1% precision resistor to ensure the output does not drift out of the 5V ±5% tolerance band over temperature. Finally, do not forget the bootstrap capacitor: a 100nF X7R ceramic placed tightly between the BOOT and PH pins is mandatory to drive the high-side N-channel MOSFET gate above the input rail.

Switch Mode Power Supply Design FAQ

How do I calculate input capacitance and protection for an SMPS?

Input protection starts with defining the worst-case transient environment. For automotive or heavy industrial 24V systems, expect load dump spikes up to 40V. You must select a TVS diode with a clamping voltage below your regulator's absolute maximum VIN rating. For input capacitance, calculate the RMS ripple current using the formula $I_{rms} = I_{out} \times \sqrt{\frac{V_{out}}{V_{in}} \times (1 - \frac{V_{out}}{V_{in}})}$. Ensure your input ceramic capacitors are rated to handle this RMS current without exceeding their internal temperature rise limits, typically 20°C. Always place a bulk electrolytic capacitor (e.g., 47µF) in parallel with the ceramics to dampen high-Q LC resonance from long input cables.

What are realistic ripple and noise expectations for switch mode designs?

For a well-designed non-isolated buck converter using MLCC output capacitors, you should expect peak-to-peak switching ripple in the 10mV to 30mV range at the switching frequency (e.g., 500kHz). However, high-frequency switching noise (ringing on the SW node) can produce spikes of 50mV to 100mV at 50MHz to 100MHz. To measure this accurately, you must use a coaxial probe or a ground-spring attachment on your oscilloscope probe. Using a standard 6-inch alligator ground clip will act as an antenna and show you 500mV of phantom noise that does not actually exist on the board.

When should I use an isolated flyback instead of a non-isolated buck?

You must use an isolated topology like a flyback when safety standards dictate that the user-accessible output must be electrically separated from a hazardous primary voltage (like 120V/240V AC mains). Flyback transformers provide the necessary creepage and clearance distances, and the optocoupler in the feedback loop maintains the isolation boundary. Additionally, flyback is useful in DC-DC applications where you need to generate negative voltage rails or multiple unregulated auxiliary outputs (e.g., +12V, -5V, and +3.3V from a single transformer) without adding secondary post-regulators. If your input is already a safe, low-voltage DC bus (like 24V or 48V) and you only need a single positive output, a non-isolated buck is always cheaper, smaller, and more efficient.