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

C6 · Lesson 46 · Noise and precision lab

Noise budgets, offset budgets, bandgap curvature and converter SNR, in Python

A precision signal chain is judged by its error budget: how much noise, offset and drift each part adds, and which one dominates. Lessons 35 to 45 gave the pieces one at a time. In this lab you'll write the functions a designer uses to add them up: noise density from an op amp and its source, RMS noise over a band with a 1/f corner, the output error from offsets and bias currents, the curvature a real bandgap reference leaves behind, and the combined signal-to-noise ratio of a converter limited by quantization, clock jitter and thermal noise at once.

Play

  • The curve is an amplifier's input noise density against frequency: flat at high frequency, rising as 1/f below the corner frequency.
  • Raise the corner. The low-frequency noise climbs, and the RMS noise over the band grows, but only logarithmically in the band's low end.
  • Compare the readout with the white noise alone: below a decade or two of corner frequency, the 1/f part barely matters.

Predict

An amplifier has 10 nV/√Hz of white noise with a 1/f corner at 100 Hz. Over 0.1 Hz to 10 kHz, how much does the 1/f noise add to the RMS?

Name it

Noise density

An op amp with voltage noise en and current noise in, driven from a source resistance Rs at temperature T, has an input-referred density

etot=en2+(inRs)2+4kTRs.

Noise over a band

With a 1/f corner fc, the density squared is en2(1+fcf), and integrating from f1 to f2:

vrms=enfcln⁡f2f1+(f2−f1).

Offset budget

At the output of a non-inverting amplifier with noise gain G and feedback resistor Rf: offset gives GVOS; bias current gives IBRf, or only IOSRf when a resistor Rf∥Rg in the non-inverting lead balances the two bias currents. Errors from independent sources are often added in quadrature for a typical value, and directly for a worst case.

Bandgap curvature

A junction's voltage at a fixed (proportional-to-T) current is closer to

VBE(T)=VG0(1−TT0)+VBE0TT0−ηkTqln⁡TT0,

with VG0 ≈ 1.205 V and η ≈ 3. The log term can't be cancelled by a linear PTAT voltage, so a first-order bandgap tuned for zero slope at T0 is a downward bow, its peak at T0.

Converter SNR

Independent noise sources add in power. With quantization (6.02N+1.76 dB), jitter (−20log⁡(2πfσ)) and thermal noise (signal RMS over noise RMS), all as dB below the signal,

SNR=−10log⁡(10−SNRq/10+10−SNRj/10+10−SNRt/10).

Worked example

An op amp with en = 10 nV/√Hz and in = 1 pA/√Hz amplifies a 10 kΩ source at 300 K. What's the input-referred density, and which term dominates?

Show the solution
  1. The three terms. The source's thermal noise is 4kT×104 = 12.9 nV/√Hz, the current noise through it 10 nV/√Hz, and the op amp's own 10 nV/√Hz.
  2. Together. ein=100+100+166=19.1nV/Hz
  3. Which dominates. The source does: no op amp can make the chain quieter than the source's own resistance, which is why low-noise design starts with the source.

Answer 19.1 nV/√Hz, dominated by the source's own thermal noise.

Worked example

A first-order bandgap uses VG0 = 1.205 V, VBE0 = 0.65 V at 300 K and η = 3, trimmed for zero slope at 300 K. What's its output there, and how much does it bow over −40 °C to 125 °C?

Show the solution
  1. Output at 300 K. Zero slope at T0 puts the output at VREF=VG0+ηkT0q=1.205+3×25.85mV=1.2826V a little above the band gap.
  2. Across the range. Evaluating the curve across 233 K to 398 K gives a peak at 300 K and lows at the ends, 1.2805 V and 1.2788 V: a bow of 3.8 mV.
  3. As a drift spec. A box method of specifying drift turns that into 18 ppm/K. Curvature correction is what gets references below 5 ppm/K.

Answer the output is 1.2826 V at 300 K, and it bows by 3.8 mV over the range, 18 ppm/K by the box method.

Worked example

A 14-bit converter samples a full-scale 10 MHz sine (2 V peak to peak) with 1 ps of clock jitter and 100 µV RMS of thermal noise. What's its SNR, and its effective number of bits?

Show the solution
  1. Quantization alone. 86.0 dB.
  2. Jitter. −20log⁡(2π×107×10−12)=84.0dB
  3. Thermal. 20log⁡0.707V100μV=77.0dB
  4. Add the powers. SNR=−10log⁡(10−8.60+10−8.40+10−7.70)=75.8dB or 75.8−1.766.02 = 12.3 effective bits.
  5. What dominates. The thermal noise does; buying a 16-bit converter would gain almost nothing.

Answer the SNR is 75.8 dB, 12.3 effective bits.

Check

Step 1. Write noise_density(en, i_n, Rs, T=300) returning the input-referred noise density in V/√Hz.

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

Check

Step 2. Write noise_rms(en, fc, f1, f2) returning the RMS noise from f1 to f2 of a density with white level en and 1/f corner fc.

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

Check

Step 3. Write output_error(G, Vos, Ib, Ios, Rf, compensated) returning the worst-case output error of a non-inverting amplifier: GVOS plus IBRf, or IOSRf if compensated.

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

Check

Step 4. Write bandgap(VG0, VBE0, T0, eta, Tmin, Tmax) returning (Vref0, bow): the output at T0 of a first-order bandgap with zero slope there, and its peak-to-peak variation over Tmin to Tmax (sample every 0.01 K). Use k/q = 8.617333e-5 V/K.

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

Check

Step 5. Write adc_snr(N, f, sigma, vn, vpp) returning (snr_db, enob) for an N-bit converter sampling a full-scale sine of vpp peak to peak at frequency f, with jitter sigma and thermal noise vn RMS.

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

Check

An amplifier has 10 nV/√Hz of white noise with a 100 Hz corner, measured from 0.1 Hz to 10 kHz.

(a)

What's the RMS noise?

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

(b)

By what percentage does the 1/f part add to the noise power?

Check

A converter's quantization, jitter and thermal SNRs are 86, 70 and 90 dB. What's its overall SNR?

Explain why

Why does adding a few bits of resolution to a converter often barely improve its signal-to-noise ratio?

Practice

Keep practicing

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