VrefVin01010101010101ENCODER010101CS/HDACSAR0101010.250.500.751.001.251.501.752.00 VDAC –code 51005 ones
00.511.5201234567input voltage (V)codeCODE vs INPUTVin 1.30 V -> code 5012300.511.52clock tickvoltsSAR: BINARY SEARCHVinDACresult 101 = 5
Coloured parts: what the current step is about; everything else rests in whiteBack: flash ADC (ladder, 7 comparators, thermometer lamps, encoder). Front: SAR ADC (sample-and-hold, comparator, SAR register, DAC)Plots: the code for every input, and the SAR's binary search tick by tickLamps show bits (lit = 1); the token carries each message round the SAR loop, slowed downVin = 1.30 V, Vref = 2.00 V, 3 bits: both converters find code 5 = 101. This ladder of equal resistors puts the thresholds at whole steps, so the code counts the whole steps below Vin (it rounds down). Many real flash ladders shift the ends by half a step so the code rounds to the nearest level instead.

The job and the parts

  1. An ADC (analog-to-digital converter) turns a voltage into a whole number. Here Vin = 1.30 V, the reference is 2.00 V and we want 3 bits: 8 codes, one per 0.25 V step. The answer should be 5, binary 101.

Flash: all at once

SAR: one bit per tick

Flash or SAR?

The working

# step 1/10 · job

Vref = 2.00 V    N = 3 bits
2^N = 8 codes: 0 .. 7
one step (LSB) = Vref / 2^N
               = 2.00 / 8 = 0.25 V

Vin = 1.30 V
whole steps below Vin: 1.30 / 0.25 = 5.2
code = 5  ->  binary 101
(5 × 0.25 = 1.25 V ≤ 1.30 V < 1.50 V)

plot: the code for every input from 0 to 2 V

Vref = 2.00 V, Vin = 1.30 V and 3 bits are chosen so every number is easy to check; real converters use more bits and their own reference voltage. Every number in the figure is computed from this model. The motion is slowed down a great deal: a real converter does all of this far faster than shown, and the flash finishes in a single comparison time.