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 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?
About 6%. The noise power is : the 1/f part contributes = 1151 Hz of equivalent bandwidth against the white part's 10,000 Hz. The 1/f part grows only with the logarithm of the band's span, so it dominates only for low-frequency measurements, near DC, or with a high corner.
Name it
Noise density
An op amp with voltage noise and current noise , driven from a source resistance at temperature T, has an input-referred density
Noise over a band
With a 1/f corner , the density squared is , and integrating from to :
Offset budget
At the output of a non-inverting amplifier with noise gain G and feedback resistor : offset gives ; bias current gives , or only when a resistor 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
with ≈ 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 is a downward bow, its peak at .
Converter SNR
Independent noise sources add in power. With quantization ( dB), jitter () and thermal noise (signal RMS over noise RMS), all as dB below the signal,
Worked example
An op amp with = 10 nV/√Hz and = 1 pA/√Hz amplifies a 10 kΩ source at 300 K. What's the input-referred density, and which term dominates?
Show the solution
- The three terms. The source's thermal noise is = 12.9 nV/√Hz, the current noise through it 10 nV/√Hz, and the op amp's own 10 nV/√Hz.
- Together.
- 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 = 1.205 V, = 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
- Output at 300 K. Zero slope at puts the output at a little above the band gap.
- 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.
- 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
- Quantization alone. 86.0 dB.
- Jitter.
- Thermal.
- Add the powers. or = 12.3 effective bits.
- 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 to 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: plus , or 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 of a first-order bandgap with zero slope there, and its peak-to-peak variation over to (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?
Quantization noise is only one of several independent noise sources in a converter, along with the clock's jitter and the thermal noise of its front end, and independent noises add in power. The total is dominated by the largest one. Each extra bit cuts quantization noise by 6 dB, but if thermal noise or jitter is already well above the quantization noise, cutting the quantization noise further changes the total power very little, and the effective number of bits stays close to what the largest noise source allows.
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.