Expert New problem Transient
Settings
Problem
PROBLEM 35 · DIGITAL

Wire the SAR comparator decision path

Replay real 100 → 110 → 101 DAC trials and verify the comparator decisions in time.

Design objective

The PWL sources apply three trial codes to a resistor DAC while vin stays at 3.20 V. Wire the native comparator so its high output means “keep this trial”. Verify the high–low–high decision sequence, then save the comparator and ladder as reusable blocks for the next converter.

Constraints

  • Trials change at 1, 11 and 21 µs of each 30 µs sequence; four sequences are captured by default.
  • The comparator begins with its inputs reversed. Fix the two input labels/wires.
  • Stimulus replays the trial register; this circuit does not implement a clocked SAR controller.
Required analysisTransient
Probe: V(decision)

Concepts

SAR ADCTrial timingComparator polarityMixed signal probing
Simulation practice available

Explore the stated model with probes and compare your measurements against the design objective.

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

Build first: Three bits, two resistor values · Which side of the threshold? · Follow a SAR conversion

Recommended blocks: R2R3, Comparator5V. Insert your own saved versions and connect the labeled pins.

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 · 120 µs 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.1,282 / 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.

Circuit design checks

Run your current schematic to check these targets. These are local practice checks.

  • Keep 100 — 4.9–5.1 V
  • Clear 110 middle bit — -0.1–0.1 V
  • Keep 101 — 4.9–5.1 V
  • Final trial level — 3.12–3.13 V
Probes & capture settings 0 channels · 32,768 samples
Probes 0/32Every electrical node is available, including unlabeled junctions.

Loading the CircuitJS editor…