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

S7 · Lesson 8 · Oversampling and noise shaping

Spreading quantization noise by oversampling, pushing it out of band with feedback, the SNR of shaped converters, and decimating back to the signal rate

A one-bit converter, a comparator, is about the crudest quantizer imaginable, yet the converters in nearly every phone and audio interface are built around one. The trick is to sample far faster than the Nyquist rate and use feedback so the quantization error is mostly at high frequencies, where a digital filter can then remove it. S2 built the analog loop; this lesson does the signal-processing accounting: how much of the noise lands in the band of interest, how that depends on the oversampling ratio and the shaping order, and why each doubling of the clock buys more than six decibels once the noise is shaped.

  • The quantization noise spectrum after shaping of order p, |1−e−jω|2p in dB, against frequency from 0 to π (the oversampled Nyquist frequency), with the signal band ending at π/M.
  • With p = 0 the noise is flat; plain oversampling only spreads it thinner. With shaping the noise is driven down near zero frequency and up near π.
  • The readout gives the in-band noise relative to unshaped, unoversampled quantization: π2p(2p+1)M2p+1 in dB.

Predict

A converter is oversampled by 64. How much does its in-band SNR improve with no noise shaping, and with first-order shaping?

Name it

Oversampling alone

Quantization noise of power σe2=Δ2/12 is spread evenly from 0 to π. Sampling M times faster than needed and lowpass-filtering to π/M keeps only 1/M of it:

SNR=6.02B+1.76+10log⁡M dB

3 dB, half a bit, per doubling of M.

Noise shaping

Feeding the quantization error back through a filter gives an output Y=X+(1−z−1)pE: the signal passes unchanged while the noise is filtered by the noise transfer function (1−z−1)p, whose magnitude |2sin⁡(ω/2)|p is small near ω = 0. The in-band noise power is

σe2π2p(2p+1)M2p+1

so the SNR becomes

6.02B+1.76−10log⁡π2p2p+1+(2p+1)10log⁡M
  • first order: −5.17+30log⁡M, 9 dB per octave of oversampling;
  • second order: −12.90+50log⁡M, 15 dB per octave.

Orders above two need careful loop design to stay stable with a coarse quantizer.

Decimation

The shaped noise above π/M must be removed before the rate is reduced: a cascade of decimating filters (often a CIC stage, then FIR halfband stages) lowers the rate by M while keeping only the band of interest. The output then carries the high-resolution samples at the signal rate. The effective number of bits is (SNR−1.76)/6.02.

Worked example

A 1-bit quantizer runs at 64 times oversampling. What SNR does it give with no shaping, first-order and second-order shaping?

Show the solution
  1. No shaping. SNR=6.02+1.76+18.06=25.8dB
  2. First order. SNR=6.02+1.76−5.17+54.19=56.8dB
  3. Second order. SNR=7.78−12.90+90.31=85.2dB That's equivalent to 13.9 bits from a one-bit quantizer.

Answer 25.8 dB with no shaping, 56.8 dB with first-order shaping and 85.2 dB with second-order shaping.

Worked example

The first-order design needs 65 dB. How much faster must it run?

Show the solution
  1. Gain per doubling. Each doubling of the oversampling ratio gains 9.03 dB with first-order shaping.
  2. Try M = 128. SNR=56.8+9.0=65.8dB That's enough.
  3. Compare second order. The second-order design would need only M = 64, which is why second-order and higher loops are the norm.

Answer twice as fast, M = 128, which gives 65.8 dB.

Worked example

A 16-bit audio DAC runs at 4× oversampling with second-order noise shaping. What in-band SNR can it reach? What would a 1-bit, third-order modulator at 64× reach?

Show the solution
  1. 16 bits, 4×, second order. SNR=96.32+1.76−12.90+50log10⁡4=115.3dB against 98.1 dB without oversampling.
  2. One bit, 64×, third order. SNR=6.02+1.76−10log10⁡(π6/7)+70log10⁡64=6.02+1.76−21.38+126.43=112.8dB
  3. Compare. The one-bit design matches the 16-bit one by trading word length for speed, but a third-order loop with a one-bit quantizer needs careful design to stay stable.

Answer the 16-bit DAC reaches 115.3 dB, and the 1-bit third-order modulator at 64× reaches 112.8 dB.

Check

A 4-bit quantizer is oversampled by 8 with no noise shaping. What's the in-band SNR?

Check

The same quantizer (2 bits, oversampled ×16) is put in a first-order noise-shaping loop. What's the in-band SNR?

Check

With second-order shaping instead, what's the in-band SNR?

Check

By how much does each doubling of the oversampling ratio improve the SNR with order-1 noise shaping?

Check

A converter achieves 85 dB SNR. What's its effective number of bits?

Check

By how much does order-1 shaping change the noise density at ω = 0.01 rad?

Check

A 4-bit quantizer is oversampled by 4 with order-3 noise shaping.

(a)

What in-band SNR does it give?

(b)

How many effective bits is that?

Check

A B-bit quantizer is oversampled by M with order-p shaping.

Step 1

What is the SNR with oversampling alone?

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°.

Explain why

How can a one-bit quantizer produce a 14-bit-accurate signal?

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.