PWM Duty Cycle & DAC Output Calculator

PWM Duty Cycle & DAC Output Calculator

animation
electronics
Try Keep PWM Duty Cycle (%) at 50 and PWM Supply Voltage (V) at 5.0. Compare that output with the opening 8-bit DAC input of 127.
Observe PWM averages 2.50 V and stays high for 500 microseconds per displayed period. The default DAC gives 1.644 V from 127 / 255 at 3.3 V reference.
Explain PWM Duty Cycle (%) scales the high voltage by its on fraction. The DAC scales its reference by the input code divided by 2 raised to the bit count minus one.

Technical boundaries. The model assumes an ideal zero-volt PWM low state and a DAC whose maximum code reaches its reference voltage. The time-high display fixes the period at 1 ms; ripple, filtering and DAC error are not computed.

TipPWM Duty Cycle & DAC Output Calculator

Duty cycle sets the ideal average of a switched output. A DAC code instead selects a level; compare both as you change the supply and code.

Back to the chapter