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

S7 · Lesson 6 · Quantization and converter impairments

Signal-to-noise with crest factor, effective bits, dither, aperture jitter and linearity errors

Lesson 4 gave the ideal converter's 6.02B + 1.76 dB. Real converters fall short of it in ways a designer must budget: signals that aren't full-scale sines have less headroom, a sampling clock that wanders by a tenth of a picosecond limits a fast converter more than its bits do, uneven code widths add distortion, and quantizing a quiet signal makes its error a distorted copy of the signal rather than noise. Each effect has a simple formula, and the formulas combine by adding noise powers.

  • The curve is an ADC's SNR against input frequency, combining B-bit quantization noise with the noise from sampling-clock jitter σ: SNRj=−20log10⁡(2πfσ).
  • At low frequencies the bits set the limit; above a crossover, jitter takes over and the SNR falls 20 dB per decade.
  • A 14-bit converter with 100 fs of jitter loses about 4 dB at 100 MHz; with 1 ps it would be jitter-limited above about 8 MHz.

Predict

A 14-bit ADC samples a 100 MHz tone with a clock whose rms jitter is 100 fs. About what SNR can it reach?

Name it

Signals that aren't sines

A B-bit converter's quantization noise is Δ2/12 with full scale ±1 = 2B−1Δ. A signal whose peak just reaches full scale and whose crest factor (peak/rms) is C gives

SNR=6.02B+4.77−20log10⁡C

For a sine C = √2 and this is the familiar 6.02B + 1.76. Speech, OFDM and noise-like signals are loaded with C of 3 to 4 (10 to 12 dB), clipping only rarely, and lose that much SNR.

Effective bits

Measured with a sine, the ratio of signal to everything else (noise plus distortion), SINAD, defines the effective number of bits: ENOB=SINAD−1.766.02.

Aperture jitter

A sampling instant wrong by δt errs by the signal's slope times δt. For a full-scale sine at f with rms clock jitter σ, the error's power relative to the signal gives

SNRj=−20log10⁡(2πfσ)

independent of the number of bits. Independent noise sources add in power: SNR=−10log10⁡∑i10−SNRi/10.

Dither

Quantizing a signal only a few LSBs in size makes the error correlated with it: harmonics instead of noise. Adding dither before quantizing, random noise of about an LSB, decorrelates the error. TPDF dither (the sum of two uniform ±½ LSB variables, 2 LSB peak to peak) makes the error's mean and variance independent of the signal, at the cost of three times the noise power: 4.77 dB of SNR. Subtractive dither, removed after conversion, costs nothing but needs the same random sequence at both ends.

Linearity

A converter's codes aren't all one LSB wide. Differential nonlinearity is each code's width minus 1 LSB; DNL = −1 is a missing code. Integral nonlinearity is the accumulated deviation of the transfer curve from a straight line, the running sum of the DNL. INL bends the curve and produces harmonics; DNL adds noise-like error.

Worked example

A 12-bit ADC digitizes speech loaded so its peaks just reach full scale with a crest factor of 4. What SNR does it give, against a full-scale sine?

Show the solution
  1. SNR with a crest factor of 4. SNR=6.02×12+4.77−20log10⁡4=72.24+4.77−12.04=65.0dB
  2. Compare a full-scale sine. SNR=6.02×12+1.76=74.0dB
  3. The difference. The 9 dB difference, a bit and a half, is the headroom real signals need.
  4. Why codecs compand. It's why telephone codecs use companding, spending resolution where speech spends its time.

Answer 65.0 dB for the speech, against 74.0 dB for a full-scale sine.

Worked example

A 16-bit audio converter adds TPDF dither. What SNR does it give, and why accept the loss?

Show the solution
  1. Without dither. SNR=6.02×16+1.76=98.1dB
  2. With TPDF dither. TPDF triples the noise power, a 4.77 dB loss: SNR=98.1−4.77=93.3dB
  3. What the loss buys. A fading note decays smoothly into a steady hiss instead of turning into a buzz of harmonics as it nears the last few bits, which listeners find far worse than slightly more noise.

Answer 93.3 dB, against 98.1 dB without dither; the small loss buys a smooth hiss in place of a harmonic buzz on quiet notes.

Worked example

An ADC's codes around mid-scale measure 1.0, 0.6, 1.5 and 0.9 LSB wide. What are their DNL values, and the INL at the end of each?

Show the solution
  1. DNL. DNL is the width minus 1: DNL=0,−0.4,+0.5,−0.1LSB
  2. INL. INL accumulates the DNL: INL=0,−0.4,+0.1,0.0LSB
  3. What it means. The narrow code and the wide one beside it partly cancel in INL, but both distort small signals.
  4. A missing code. A code of width 0 (DNL = −1) would never appear at all.

Answer DNL of 0, −0.4, +0.5 and −0.1 LSB, and INL of 0, −0.4, +0.1 and 0.0 LSB.

Check

A 12-bit converter digitizes a signal whose peaks just reach full scale with a crest factor of 2.

(a)

What SNR does it give?

(b)

How much less than a full-scale sine is that?

Check

A converter measures 68 dB SINAD; another must reach 10 effective bits.

(a)

What is the first one's ENOB?

(b)

What SINAD must the second reach?

Check

A converter samples a 100 MHz full-scale tone with 50 fs of rms clock jitter.

(a)

What SNR does jitter alone allow?

(b)

What jitter would allow 80 dB at that frequency?

Write units the way you normally would: 1.5 fs and 0.0015 ps are the same answer.

Check

A 14-bit converter samples a 50 MHz tone with 300 fs of jitter.

(a)

What total SNR does it reach?

(b)

How many effective bits is that?

Check

A 16-bit converter adds TPDF dither.

(a)

What full-scale sine SNR does it give?

Check

Two adjacent codes measure 0.7 and 0.8 LSB wide, following codes of exactly 1 LSB.

(a)

What is the second code's DNL?

(b)

What is the INL at the end of the second code?

Check

Why does adding a little random noise (dither) before quantizing a very quiet signal make it sound better, even though the measured SNR falls?

Check

A B-bit converter handles a signal of crest factor C; separately, a full-scale tone at f is sampled with jitter s.

Step 1

What quantization SNR does the first signal get?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

Write measure_snr(B, N=8192, cycles=1001, dither=False, seed=1): quantize a full-scale sine of cycles periods in N samples to B bits (step 2/2B, rounding, no clipping), optionally adding TPDF dither (the difference of two uniform [0, 1) LSB variables from random.Random(seed)), and return the SNR in dB.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why does clock jitter, rather than the number of bits, limit the SNR of fast converters?

Practice

Keep practicing

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