AD/DA conversion
When a microcontroller produces an analog voltage by passing a PWM signal through a low-pass filter, what determines the output voltage?
- AThe duty cycle of the pulses (the fraction of each period that is on)
- BThe color of the pulses
- CThe memory capacity of the microcontroller
Show answer and explanation
Answer: A. The duty cycle of the pulses (the fraction of each period that is on)
When a PWM signal is averaged by a low-pass filter, the output voltage is amplitude × duty cycle. For example, 5 V pulses with a 40% duty cycle give about 2 V. Analog voltages can be produced easily without a dedicated DAC, but ripple remains, so accuracy and speed are limited.