S2 · Lesson 43 · Delta-sigma modulators
Oversampling and noise shaping, trading speed for resolution
Your phone's audio codec gets 16 to 24 bits of resolution out of a quantizer with one bit. It does it by sampling far faster than the signal needs and putting the quantizer inside a feedback loop that pushes the quantization noise out of the signal band to high frequencies, where a digital filter throws it away. That's a delta-sigma modulator. Its resolution depends on the oversampling ratio and the order of the loop's filter, not on component matching, which is why it dominates audio, sensors and precision measurement, everywhere bandwidth is modest and resolution matters.
- The noise transfer function of delta-sigma modulators of order 1, 2 and 3, in dB, against frequency as a fraction of the sampling rate (log scale). Quantization noise is multiplied by this shape.
- At low frequencies the noise is pushed down steeply, 20 dB per decade per order; at half the sample rate it's amplified.
- The marker is the signal band's edge for the chosen oversampling ratio. The readouts give the ideal SQNR of a one-bit modulator of each order there.
Predict
Plain oversampling (no noise shaping) improves SQNR by 3 dB every time the sample rate doubles. How much does doubling the sample rate gain a second-order delta-sigma modulator?
15 dB, two and a half bits. An L-th order modulator's in-band noise falls as , so each doubling gains dB: 9 dB for first order, 15 dB for second, 21 dB for third. That's why practical designs use second to fifth order loops with oversampling ratios of 32 to 256.
Name it
Oversampling
A quantizer's noise, , spreads evenly from 0 to . With a signal band of only , the oversampling ratio leaves only 1/OSR of it in band: 10 log OSR dB better, 3 dB (half a bit) per doubling.
Noise shaping
Put the quantizer inside a loop with an integrator: the output is . The signal passes unchanged; the quantization error E is filtered by the noise transfer function
for an L-th order loop: tiny at low frequency, large near .
Resolution
Integrating the shaped noise over the band gives, for an N-bit quantizer,
The penalty term is 5.2 dB for L = 1, 12.9 dB for L = 2, 21.4 dB for L = 3.
In practice
- One-bit quantizers are perfectly linear (two levels always make a straight line), which is why delta-sigma DACs and ADCs reach very low distortion without trimming.
- Stability: single-bit loops above second order can overload with large inputs, so their input range is restricted, or multibit quantizers are used.
- Decimation: a digital low-pass filter removes the shaped noise and reduces the sample rate to the Nyquist rate.
- Circuit limits: the first integrator's noise, thermal kT/C noise and clock jitter (for continuous-time loops) often set the real floor below the ideal SQNR.
Worked example
A one-bit, second-order modulator runs at an oversampling ratio of 64. What's its ideal SQNR and effective resolution?
Show the solution
- SQNR.
- Effective resolution. from a one-bit quantizer.
- Clock for audio. At 48 kHz:
- Third order. At the same OSR it adds 20 log 64 = 36 dB of shaping and 8.5 dB more penalty, for about 113 dB.
Answer an ideal SQNR of 85.2 dB, or 13.9 bits.
Worked example
How much oversampling alone, with no noise shaping, does it take to gain 4 bits? And what does a first-order loop give at OSR = 128?
Show the solution
- Bits to decibels. 4 bits is 24 dB.
- Plain oversampling. (256, since each 4× gives 6 dB).
- First-order loop at 128. about 10.6 bits.
- What shaping buys. Noise shaping is what makes oversampling worth the clock speed.
Answer about 251 times oversampling without shaping (256, counting 6 dB per factor of 4); a first-order loop at OSR = 128 gives 65.8 dB, about 10.6 bits.
Worked example
What SQNR does a one-bit, first-order modulator reach at an oversampling ratio of 128?
Show the solution
- SQNR. about 10.6 bits.
- Per doubling. Each doubling of OSR adds 9 dB, against 15 dB for second order.
- Idle tones. First-order loops also produce idle tones on DC inputs, so second order is the usual minimum.
Answer 65.8 dB, about 10.6 bits.
Check
A converter samples at 3 MHz for a 100 kHz signal band. What's its oversampling ratio?
Check
Oversampling by 16 without noise shaping improves SQNR by how much?
Check
A one-bit delta-sigma modulator of order 2 runs at OSR = 16. What's its ideal SQNR?
Check
How much does doubling the oversampling ratio improve an order-2 modulator's SQNR?
Check
What's an order-2 noise transfer function's gain at 0.001 of the sample rate?
Check
A delta-sigma converter measures 90 dB of SNDR. What's its ENOB?
Check
A one-bit delta-sigma modulator of order 2 runs at oversampling ratio 32. Its ideal SQNR is .
(a)
What SQNR does it reach?
(b)
How much does each doubling of M add?
Check
A Nyquist-rate N-bit quantizer is oversampled by M with no noise shaping.
Step 1
What SQNR does filtering to the signal band give?
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°.
Step 2
How many bits does the oversampling add?
Explain why
How does a feedback loop around a one-bit quantizer push its noise out of the signal band?
The loop's integrator accumulates the difference between the input and the quantized output. Whenever the output has been too high on average, the integrator's value falls and the quantizer starts choosing the lower level more often, and the reverse. So over any stretch of many samples, the average of the one-bit output tracks the input very closely: the low-frequency content of the error is driven toward zero. The error doesn't vanish, it just changes character: the loop makes it alternate rapidly, which puts its energy at high frequencies. A digital low-pass filter after the modulator averages the bitstream, keeping the accurate low-frequency signal and discarding the high-frequency noise.
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.