An H-bridge (or half-bridge) leg has a high-side and a low-side switch in series across the supply, driven by complementary PWM: when one is on the other is off. The danger is that real MOSFETs don't switch instantly, turn-off takes finite time (gate charge, Miller plateau), so if you command the low-side on the instant you command the high-side off, both are momentarily conducting and you get shoot-through: a direct short from rail to ground through both transistors, which spikes current and can destroy the FETs. Dead-time is a small deliberate gap inserted between one switch turning off and its complement turning on, so both are guaranteed off during the transition. Advanced timers generate it in hardware (e.g. STM32's TIM1/TIM8 have a dead-time generator with a programmable DTG field on the complementary outputs), which is far more reliable than trying to space the edges in software. The tradeoff is that dead-time slightly distorts the output waveform, longer dead-time is safer but introduces more duty-cycle error, so you set it just long enough to cover the worst-case switch turn-off plus gate-driver propagation delay.
Embedded Systems Fundamentals · Interview question
What is dead-time in a complementary PWM pair, and why does an H-bridge need it?
A strong answer
What a weak answer sounds like
You know the answer. Do you know what gets you dinged?
Pro breaks down the answer most candidates actually give to this question — and the specific reason an interviewer marks it down. It’s the difference between sounding correct and sounding senior, on all 472 questions.
From the lesson
PWM
Fake an analog level with a digital pin: a fixed-frequency square wave whose duty cycle sets the average voltage, built on a timer and used for LEDs, motors, and servos.
More PWM questions
What is PWM and how does it produce an "analog" output from a digital pin?How is PWM generated using a timer?What's the tradeoff between PWM frequency and duty-cycle resolution?Why can't you drive a motor directly from a PWM-capable GPIO pin?How does PWM control a hobby servo, and how is that different from LED dimming?Your PWM-controlled LED looks steady to the eye but flickers badly on camera video. What's going on and how do you fix it?
Browse all 472 interview questions