Digital-to-Analog Conversion

2 min read Last updated Fri Jun 12 2026 02:12:51 GMT+0000 (Coordinated Universal Time)

A DAC converts a digital value to a proportional analog output voltage.

Vout=D2n1×VrefV_{out} = \frac{D}{2^n - 1} \times V_{ref}

Here:

  • VoutV_{out}: output voltage
  • DD: digital input value
  • nn: resolution in bits
  • VrefV_{ref}: reference voltage

Applications: motor speed control, audio signals, variable voltage references.

Types

Binary-Weighted Resistor DAC

Each bit kk drives a resistor of value R2k\frac{R}{2^k}. Currents from all bits sum at a virtual ground. Output voltage is proportional to total current.

  • Simple circuit
  • Requires resistors spanning a wide range (RR to R/256R/256 for 8 bits)
  • Precision difficult at high resolutions

R-2R Ladder DAC

Uses only 2 resistor values (RR and 2R2R) in a ladder network. Each rung adds the contribution of 1 bit. Both ends terminated with 2R2R so every node sees the same impedance.

  • Only 2 resistor values regardless of bit depth
  • Scales to high resolutions with good fabrication accuracy
  • Most common DAC in MCUs and audio hardware

PWM DAC

A PWM signal passed through a low-pass RC filter. The filter averages the square wave. Output DC voltage equals Vsupply×duty cycleV_{supply} \times \text{duty cycle}.

  • No dedicated DAC hardware required
  • Ripple depends on filter cutoff vs PWM frequency
  • Suitable for motor control and LED dimming. Not suitable for audio or precision output.
Was this helpful?