Intermediate New problem Operating point
Settings
Problem
PROBLEM 25 · DIGITAL

Three bits, two resistor values

Turn binary 101 into a voltage with a three-bit R–2R ladder.

Design objective

With a 5 V reference, the MSB and LSB are high and the middle bit is low. Find the unloaded DAC output and explain why full scale is below the reference.

Constraints

  • R = 10 kΩ, 2R = 20 kΩ; matched ideal resistors
  • Ideal 0 V / 5 V bit drivers; no output load
  • LSB = Vref/8; the largest three-bit code is 7
Required analysisOperating point
Probe: V(dac)
From a binary word to an analog level
  1. 3-bit word

    b2 b1 b0 = 101

  2. Bit drivers

    Select 0 V or Vref for each branch

  3. R–2R ladder

    Weight branches by 1/2, 1/4, 1/8

  4. DAC output

    High-impedance voltage measurement

  • 3-bit word → Bit driversThree digital controls
  • Bit drivers → R–2R ladderReference-switched branches
  • R–2R ladder → DAC outputAnalog voltage

Concepts

R–2R DACBinary weightsReference loading

Check your calculation

Worked solution

3.125 V

Code 101₂ is 5. VDAC = 5 V × (1/2 + 0/4 + 1/8) = 3.125 V. One LSB is 0.625 V; code 111 reaches 4.375 V, one LSB below the reference.

Accepted tolerance: ±0.1%. This calculation check records local practice progress.

Simulation practice available

Calculate your answer, compare it with the simulation, then check your calculation above.

Model notes

Use SPICE analysis for the challenge’s specified transistor models, edge timing, and frequency response.

Symbol credits
W: wire · drag text: move · double-click: edit · R over label: rotate · Ctrl/⌘ + scroll: zoom
Reusable circuit blocks 0

Select the six ladder resistors, ground and four external labels; leave all three bit sources outside your selection. Reuse the saved ladder in the timed DAC and SAR exercises. Ports: b2, b1, b0, dac.

Select the components and external node labels that make up your block. Leave test sources and loads outside the selection. With no selection, the whole circuit is saved. Ground symbols stay internal.

No saved blocks yet.

0 enabled probes · 1 ms record · all instruments share the same samples.
Acquisition options
Settling advances the real solver before a finite capture. Live measurements retain their full history.
Watch your circuit respond

Set Duration and Samples / probe above, then capture all enabled probes together. Scope, FFT and logic use that same measured record.

SPICE AC · DC · transient
Analysis, sources & models

Each run reads the current connections and values, with the sources and device models selected above.

Advanced · solver sourceThe visual circuit remains the primary design surface.120 / 12,000 bytes
GENERATED SPICEOptional expert editing
Advanced edits stay in this preview and never affect grading. Includes, files, control blocks, and shell directives are disabled.
Probes & capture settings 0 channels · 8,192 samples
Probes 0/32Every electrical node is available, including unlabeled junctions.

Loading the CircuitJS editor…