In a Buck the duty cycle sets the output voltage directly, with D equals Uout over Uin as the core equation. This page covers duty versus voltage, current and inductance and the tuning traps.
Ideally in continuous conduction Uout equals D times Uin, where D is the on time fraction, so D equals Uout over Uin. For 12 V to 5 V D is about 0.42. Average inductor current equals output current and peak ripple is Uout times (1 minus D) times T over L. Bigger D, lower frequency or smaller L all raise ripple current; keep D near 0.3 to 0.6 for the calmest stress.
Output current is the inductor average, so pick saturation current above peak (average plus half ripple) with margin. Higher frequency shrinks the inductor but raises switching loss; too small D unbalances stress, too large D heats the low side switch. When input moves, D auto adjusts to hold output, which is the essence of closed loop regulation.
| In out | Duty D | Note |
|---|---|---|
| 12 to 5 V | about 0.42 | common |
| 24 to 5 V | about 0.21 | D small |
| 24 to 12 V | about 0.50 | mid |
| 12 to 3.3 V | about 0.28 | ripple big |
| Ripple dIL | 1/L f | L sets |
| Hi freq | small L | loss up |
Buck output is D times Uin; trim voltage via the feedback divider, never by forcing duty or the loop unlocks. Size the inductor by saturation and ripple, keep D near 0.3 to 0.6, and remember light load enters discontinuous mode with higher voltage.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Switching design per GB/T 5226.1; energy to IEC 62301 and IEC 60204-1. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.