D75 of 7
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

D7 · Lesson 5 · ADC and DAC architectures

How data converters trade speed against resolution, the flash ADC's bank of comparators, the successive-approximation ADC's binary search, pipeline and delta-sigma converters, effective number of bits, the kT/C noise that sets a minimum capacitor size, and binary-weighted, R-2R and current-steering DACs

Every sensor reading, every received radio sample and every note of digital audio crosses between analog and digital through a data converter. There's no single best design, because converters trade speed against resolution and power. A flash ADC compares the input against every threshold at once and answers in one step, but needs a comparator for every level. A successive-approximation ADC finds the answer one bit at a time by binary search with a single comparator. A delta-sigma ADC uses one crude bit at a very high rate and lets digital filtering recover the resolution. Each wins somewhere.

  • A successive-approximation ADC converting an input (as a fraction of full scale) with N bits. At step k it tries the next bit, setting its DAC to the trial value shown, and keeps the bit if the input is above it.
  • The trials close in on the input by halving the remaining range each step, so N bits take N comparisons.
  • The readouts give the final code and the size of one step.

Predict

A 12-bit SAR ADC samples 1 million times per second. At least how fast must its internal bit clock run, ignoring the time spent sampling?

Name it

ADC architectures

  • Flash: 2N−1 comparators against a resistor ladder decide every bit at once. Fastest (gigasamples per second), but power and area double with each bit, so flash stops at about 8 bits.
  • Successive approximation (SAR): a sample-and-hold, a DAC (usually a capacitor array), one comparator and logic that tries each bit from the top: N comparisons per sample. Efficient at 8 to 18 bits up to tens of megasamples per second; the commonest ADC in microcontrollers.
  • Pipeline: a chain of stages, each resolving a few bits and passing an amplified residue on, for high speed at 10 to 14 bits.
  • Delta-sigma: a 1-bit (or few-bit) quantizer in a feedback loop running at many times the Nyquist rate, which pushes quantization noise to high frequencies where a digital filter removes it (S7). Each doubling of the oversampling ratio gains about 9 dB with a first-order loop, 15 dB with a second-order one. Used for audio and precision measurement at 16 to 24 bits.

Effective bits

Real converters fall short of their nominal resolution because of noise and distortion. From the measured signal-to-noise-and-distortion ratio,

ENOB=SINAD−1.766.02

kT/C noise

Sampling onto a capacitor C freezes a random thermal noise voltage of RMS kT/C: 64 µV at 1 pF and room temperature. To keep it below the quantization noise Δ/12, a high-resolution converter needs a large sampling capacitor, which costs speed and power.

DACs

  • Binary-weighted: currents or capacitors in ratios 1, 2, 4, ...; fast but hard to match at many bits.
  • R-2R ladder: only two resistor values, 2N resistors in all.
  • Current steering: arrays of unit current sources switched to the output, often thermometer-coded for the top bits so that every step adds one source, which makes the output monotonic.

Errors are measured as DNL (how far each step is from one LSB) and INL (how far the transfer curve wanders from a straight line).

Worked example

A 12-bit ADC measures a SINAD of 68 dB. How many effective bits does it have? What capacitor keeps kT/C noise below its quantization noise for a 1 V range?

Show the solution
  1. Effective bits. ENOB=68−1.766.02=11.0bits
  2. One LSB. Δ=1V4096=244μV
  3. Quantization noise. σq=Δ12=70.5μV
  4. Capacitor. kT/C<(70.5μV)2 needs C>4.14×10−21(70.5×10−6)2F=0.83pF

Answer 11.0 effective bits, and a sampling capacitor of at least 0.83 pF.

Worked example

What code does an 8-bit converter give for an input at 60% of full scale, and how many steps does a SAR take?

Show the solution
  1. Code. ⌊0.6×256⌋=153 binary 10011001.
  2. Comparisons. A SAR decides one bit per comparison, so it takes 8.
  3. The first trials. The first trial is 0.5 (keep, since 0.6 > 0.5), the second 0.75 (reject), the third 0.625 (reject), and so on.

Answer code 153 (10011001 in binary), found in 8 comparisons.

Worked example

A 12-bit SAR ADC must convert a million samples a second, taking two clock periods to sample and one per bit. What clock does it need?

Show the solution
  1. Clocks per conversion. 12+2=14
  2. Clock rate. A million conversions a second: 14×1MHz=14MHz
  3. Flash comparison. An 8-bit flash converter at the same rate would need 255 comparators but only one clock per sample.

Answer a 14 MHz clock.

Check

How many comparators does a 6-bit flash ADC need?

Check

A converter measures a SINAD of 74 dB. What's its effective number of bits?

Check

A sampling capacitor of 1 pF at 300 K freezes how much RMS noise?

Write units the way you normally would: 1.5 µV, 1500 nV and 0.0015 mV are the same answer.

Check

What code does an ideal 10-bit ADC output for an input at 0.2 of full scale?

Check

A 10-bit ADC measures a SINAD of 50 dB.

(a)

What is its ENOB?

(b)

How many bits short of its nominal resolution is it?

Check

A converter has 10 bits over 1 V.

(a)

What is its rms quantization noise?

Write units the way you normally would: 1.5 µV, 1500 nV and 0.0015 mV are the same answer.

(b)

What sampling capacitor brings kT/C noise down to that level?

Check

A SAR ADC of 12 bits converts 0.1 million samples a second, taking 2 clocks to sample and one per bit.

(a)

What clock does it need?

Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.

(b)

How many comparators would a flash converter of the same resolution need?

Check

A 4-bit converter sees an input at 0.6 of full scale.

(a)

What code does it give?

(b)

How many comparisons does a SAR make?

Explain why

Why does a SAR ADC need only one comparator while a flash ADC needs thousands?

Practice

Keep practicing

10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.