Definition and the averaging rule

Duty cycle D is the high time divided by the period,D=thighTD = t_high / T, usually expressed in percent. A signal with a 1000-count period that is high for 250 counts has D = 25%. For a pulse switching between 0 and an amplitude V, the average value is D × V, which is why duty cycle is the knob for average power. Duty cycle and frequency are independent: two signals at the same frequency can have very different duty cycles, and changing the period while keeping the high time fixed changes the duty cycle.

Duty cycle in PWM

Pulse-width modulation (PWM) keeps the period fixed and varies the high time. A microcontroller timer compares its counter with a compare register and toggles the output, so PWM runs continuously without CPU involvement, and the counter range sets the resolution. Passing PWM through a low-pass filter yields roughly D times the amplitude, about 2 V for 40% of 5 V, giving a crude DAC. Setting the filter cutoff well below the PWM frequency reduces ripple at the cost of slower response. LED dimming and motor speed control often use the pulses directly, relying on the load or the eye to average.

Duty cycle in power converters

Switching DC-DC converters regulate output through duty cycle. In an ideal buck converter operating in continuous conduction, Vout = D × Vin, so 12 V at D = 0.25 gives 3 V; an inductor and capacitor smooth the switched waveform into DC. An ideal boost converter givesVout=Vin1−DVout = Vin / (1 − D), doubling the input at D = 0.5, because the inductor's stored energy adds to the input when the switch opens. Real converters deviate because of switch and inductor losses, which is why feedback continuously adjusts duty cycle.

Clock duty cycle and timing

For clocks, a 50% duty cycle matters whenever both edges are used. A path launched on a rising edge and captured on the falling edge gets only half a period: with a 2.0 ns clock and 0.1 ns setup time, at most 0.9 ns remains for clock-to-output and logic delay, and any duty-cycle distortion shrinks it further. Clock-gating checks likewise require an AND-gate enable to change only while the clock is low. A toggle flip-flop dividing by two naturally produces an exact 50% duty cycle, a common way to clean up a clock.

Try it: questions about Duty cycle

Positional PI control is implemented on a microcontroller, with the duty cycle of a PWM signal (0 to 100%) as the manipulated variable. Which of the following is a correct countermeasure against integral windup?

  1. AWhile the output is saturated, increase the proportional gain to get out of saturation sooner
  2. BIf the integral term is calculated in floating point no overflow occurs, so no special measure is needed
  3. CWhile the output is saturated, stop integrating if the error would deepen the saturation, or feed the difference from the limited value back into the integrator, to hold down the integral
Show answer and explanation

Answer: C. While the output is saturated, stop integrating if the error would deepen the saturation, or feed the difference from the limited value back into the integrator, to hold down the integral

The first method is conditional integration (clamping): while the output is saturated and the error would deepen the saturation, the integral is not updated. The second is back-calculation: the difference between the value calculated before limiting and the value actually output is multiplied by a coefficient and fed back into the integrator to pull the integral back. In the velocity form of PID control, which calculates the change in the manipulated variable, simply limiting the output makes windup unlikely. When calculating in integer fixed point, overflow of the integral variable itself must also be guarded against, for example with saturating arithmetic.

In an ideal step-down chopper (buck converter) with an input voltage of 12 V and a switch duty cycle of 0.25, what is the output voltage?

  1. A3 V
  2. B9 V
  3. C48 V
Show answer and explanation

Answer: A. 3 V

An ideal buck converter outputs input voltage × duty cycle: 12 V × 0.25 = 3 V. Varying the switch's on-time ratio adjusts the output, and an inductor and capacitor average it into smooth DC. Synchronous rectification, using a MOSFET instead of a diode, often pushes efficiency above 90%. The low supply voltages of CPUs and memory are produced by multiphase buck converters on the motherboard.

FAQ

How do you calculate duty cycle?

Divide the time the signal is high by the full period and multiply by 100%. For example, 2 µs high in a 10 µs period is a 20% duty cycle.

Does changing the duty cycle change the frequency?

Not necessarily. In standard PWM the period stays fixed and only the high time changes, so frequency is constant while duty cycle varies.

What output voltage does a buck converter give for a given duty cycle?

Ideally Vout = D × Vin in continuous conduction, so a 50% duty cycle from 12 V gives 6 V. Losses make the required duty cycle slightly higher in practice.

Questions that mention Duty cycle (12)

Duty cycle appears in 14 practice questions across 8 topics, including Power Electronics Circuits, Control Engineering Basics, Power semiconductors.

  1. For an ideal step-up chopper (boost converter) with an input voltage of 5 V and a switch duty cycle of 0.6, which of the following is the output voltage in continuous conduction mode?
  2. For an ideal buck-boost chopper (inverting buck-boost converter) with an input voltage of 12 V and a duty cycle of 0.6, which of the following is the magnitude of the output voltage in continuous conduction mode?
  3. With a 2.0 ns clock at 50% duty cycle, a path launches on the rising edge and captures on the falling edge. With a setup time of 0.1 ns and zero skew, what is the maximum allowed sum of the clock-to-output delay and combinational logic delay?
  4. A PWM signal has a period of 1000 counts, with the output high (1) for 250 counts of each period. What is the duty cycle?
  5. A T flip-flop whose output toggles on every active clock edge produces an output at what multiple of the clock frequency?
  6. When a microcontroller produces an analog voltage by passing a PWM signal through a low-pass filter, what determines the output voltage?
  7. The output-voltage feedback loop of a buck DC-DC converter with a switching frequency of 500 kHz is being designed. Which of the following is the usual guideline for choosing the gain crossover frequency?
  8. Which DC-DC converter outputs a DC voltage higher than its input?
  9. For an ideal buck converter with an input voltage of 12 V, an output voltage of 3 V, an inductance of 15 µH and a switching frequency of 300 kHz, which of the following is the peak-to-peak inductor ripple current in continuous conduction mode?
  10. In a forward converter, which of the following correctly explains why a transformer reset winding (or a clamp circuit) is needed?
  11. What is an advantage of pulsed plasma, which etches while switching the RF power on and off?
  12. In a circuit that stops the clock with a two-input AND gate of the clock and an enable signal, what does the STA clock gating check verify?

Books on Embedded Systems & Firmware Ad

Learn hands-on: parts and kits

Building real circuits is a good way to check what you learned in the questions.

As an Amazon Associate I earn from qualifying purchases.

Comparisons that include this term

Semiconductor, Electronics and Computing Calculators

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary