Lab / Virtual lab / Op-amps, timers and oscillators

R-2R ladder DAC

Step through the digital codes of an R-2R ladder DAC and measure its step size and full-scale output.

Op-amps, timers and oscillatorsSimulatedFull experiment write-up →

Circuit

Updates as you change values
1010VOcode 0101 (MSB nearest VO) · Vref 5 VR = 10 kΩ

An R-2R ladder (R = 10 kΩ) switched by the input bits, followed by an op-amp buffer; read the output with a DMM.

Controls

Changing any setting except digital input starts a new set of readings.

Meters

Output1.56 V

Graph

0 readings

Your graph appears here

Take readings, or press Auto sweep to log a full set.

your readings

Theory

  • VO = Vref × D / 2ⁿ
  • One step (1 LSB) = Vref / 2ⁿ
  • Full scale = Vref (2ⁿ − 1) / 2ⁿ
  • Only two resistor values (R and 2R) for any number of bits
  • Resistor mismatch shows up as uneven steps (differential non-linearity)

Worked out for your values

1 LSB
312.5 mV
Full scale
4.688 V
Code in binary
0101
Output now
1.563 V
Resolution
6.25 % of Vref

Your result

Worked out from your readings and compared with theory.

Step size (slope)

Take two or more readings at different codes.

Offset at code 0

Take two or more readings at different codes.

Sources of error

  • Resistor mismatch (use 1 % or better parts)
  • Switch on-resistance adds to the 2R legs
  • Op-amp offset voltage at code 0