Paused
1 sampleSample 0 · live

Inside the converter

R–2R ladder DAC

4 bits · 9 resistors
Active path / measured voltageReferenceClick a component to inspect
Live circuit

Voltage division

R–2R ladder

Analog output
0.5000 V
Steady-state circuit voltage
Ideal output
0.5000 V
Code 8 / 15
Nominal step · 1 LSB
62.50 mV
Full-scale code: 0.9375 V
Static output error
0.000 LSB
Matched resistor network

From code to voltage

Output & transfer characteristic

IdealCircuit targetAnalog output

Output over time

Sample 0

Click to pin a sample and inspect its circuit. Time is in sample periods (Ts).

Static transfer

Code 8

Click a point to apply its digital code. Mismatch changes the circuit curve.

Live · sample 0

The capture holds the latest 128 samples. Circuit settings start a new capture.

How to read the three architectures

Flash · select one resistor-string tap

A string of 2ᴺ equal resistors divides Vref into equal steps. The decoder connects one tap to an ideal voltage follower. Select a tap in the circuit or its code map.

Vout = Vref · D / 2ᴺ

The zero-based range includes ground. The slide range shifts the selection up one tap: Vout = Vref · (D + 1) / 2ᴺ. The full string always contains 2ᴺ resistors. Long strings are folded in the drawing; the code map includes every tap.

R–2R · add binary voltage weights

Each bit switches one 2R branch to Vref or ground. The repeated ladder halves each successive contribution. The far end uses a 2R termination.

Vout = Vref · (bᴺ⁻¹/2 + bᴺ⁻²/4 + … + b₀/2ᴺ)

For four bits and Vref = 1 V, 1000 gives 0.5 V and 0100 gives 0.25 V. Turn both on to obtain 0.75 V.

Inverting summer · add weighted currents

The MSB drives R, then the branch resistance doubles for each lower bit. An ideal op amp holds the summing node at virtual ground. Feedback converts the sum of currents into a negative voltage.

Vout = −Rf · Vref · Σ(bⱼ / Rⱼ)

With Rf = R, a six-bit 100000 input gives −Vref. Code 111111 gives −1.96875 Vref. Rf = R/2 matches the magnitude range of the zero-based R–2R DAC.

Model and inspection

  • Click a bit or flash tap to change the code. Click resistors, reference, buffer, or output to inspect them.
  • Resistor mismatch is an individual percentage change. R–2R node voltages use a conductance-network solution.
  • Colored contribution bars show superposition at the output, rather than branch current.
  • Ideal switches and op amps have zero switch resistance, infinite input impedance, and unlimited output swing. Loading, switching glitches, noise, and rail clipping are outside this model.
  • Static error compares the circuit output with matched-resistor output.

Architecture reference: the supplied DAC slides, pages 49–61. Layout and typography follow the Sigma–Delta ADC Simulator.