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
- Sample / hold
Keep Vin constant throughout conversion
- Comparator
Compare held Vin with trial VDAC
- SAR register
Keep or clear one bit, MSB first
- 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
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.
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.
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.
Time capture · Oscilloscope, FFT & logic
Acquisition options
Set Duration and Samples / probe above, then capture all enabled probes together. Scope, FFT and logic use that same measured record.
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
Probes & capture settings 0 channels · 8,192 samples
Loading the CircuitJS editor…