Expert New problem Transient
Settings
Problem
PROBLEM 38 · DIGITAL

Calibrate a flash ADC threshold

Locate a comparator threshold error with programmed inputs and remove its offset.

Design objective

A three-comparator flash front end uses ideal 1, 2 and 3 V ladder taps. The middle comparator has an explicit 20 mV reference-path offset. Apply the 1.99 V and 2.01 V PWL plateaus, trim that offset so the middle decision brackets 2 V, and verify neighboring comparators stay correct.

Constraints

  • Keep all four ladder resistors at 10 kΩ and the reference at 4 V.
  • Trim the explicit VOFF source; input and reference ladder must remain unchanged.
  • The 1.99 / 2.01 V input repeats every 2 ms; the default record shows four cycles. The middle output initially stays low; correcting its offset must make it alternate.
  • An ideal comparator bank is used to isolate static offset. Delay and metastability are outside this check.
Required analysisTransient
Probe: V(t2)

Concepts

Flash ADCOffset calibrationThermometer codePWL test vectors
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: Read a flash ADC thermometer · Which side of the threshold?

Recommended blocks: 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 · 8 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.615 / 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.

  • Middle threshold rejects 1.99 V — -0.1–0.1 V
  • Middle threshold accepts 2.01 V — 4.9–5.1 V
  • Lower comparator remains high — 4.9–5.1 V
  • Upper comparator remains low — -0.1–0.1 V
Probes & capture settings 0 channels · 32,768 samples
Probes 0/32Every electrical node is available, including unlabeled junctions.

Loading the CircuitJS editor…