Advanced New problem Operating point
Settings
Problem
PROBLEM 26 · DIGITAL

Follow a SAR conversion

Use DAC trial voltages to resolve a three-bit ADC code, then measure its residue.

Design objective

Hold Vin = 3.20 V. Try 100, then 110, then 101 against a 5 V, three-bit DAC. Keep a trial bit when VDAC ≤ Vin. Find the final analog residue Vin − VDAC.

Constraints

  • The circuit shows the final 101 trial; edit the three bit sources to test earlier trials
  • Ideal held input and matched unloaded R–2R ladder
  • The difference block has unity gain; this lesson does not model clocked SAR logic or comparator delay
Required analysisOperating point
Probe: V(residue)
SAR decision loop
  1. Sample / hold

    Keep Vin constant throughout conversion

  2. Comparator

    Compare held Vin with trial VDAC

  3. SAR register

    Keep or clear one bit, MSB first

  4. DAC

    Convert the next trial word to a voltage

  • Sample / hold → ComparatorHeld input
  • Comparator → SAR registerOne comparison decision
  • SAR register → DACTrial code
  • DAC → ComparatorFeedback: trial VDAC

Concepts

SAR ADCBinary searchQuantization error

Check your calculation

Worked solution

75 mV

100 gives 2.5 V: keep the MSB. 110 gives 3.75 V: clear the middle bit. 101 gives 3.125 V: keep the LSB. The result is code 5 and residue 3.2 − 3.125 = 0.075 V, less than one 0.625 V LSB. This uses a floor quantizer, not rounding to the nearest code.

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 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.159 / 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…