Interpolation and oversampling in data converters. Trade-offs.
Taif Moshin, Deyan Dimitrov
December 14, 2012
Taif Moshin, Deyan Dimitrov Interpolation and oversampling in data converters. Trade-offs. Upsampling and interpolation
What is interpolation and why do we need it.
Upsampler
L H(z) fs Lfs
Low−Pass Filter
n 1 2 3
n n 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 Basic principle of interpolation
Taif Moshin, Deyan Dimitrov Interpolation and oversampling in data converters. Trade-offs. Upsampling and interpolation
The upsampled sequence, apart from the baseband, contains L-1 images of it over the spectrum
These ideally should not be there
That is what the LP filter does (the actual interpolation)
The upsampler only insets zeros (to achieve the desired sampling frequency)
Taif Moshin, Deyan Dimitrov Interpolation and oversampling in data converters. Trade-offs. Upsampling and interpolation
Spectrum of the three nodes of the interpolator (original, upsampled and interpolated).
X
pi 2pi 2Lpi wT
X1 LP filter response
2pi pi/L 2pi/L wT1 Y
pi/L pi 2pi wT1 Original, upsampled and interpolated sequences
Taif Moshin, Deyan Dimitrov Interpolation and oversampling in data converters. Trade-offs. Upsampling and its effect with respect to aliasing
However, in another case we need to go down to the original sampling rate as before The upsampled signal must be further filtered to suppress Fs frequencies over 2 (to avoid aliasing in the downsampling process) This however can also happen digitally together with the process of downsampling (discarding samples) in a so called decimation filter
H(z) M Mfs fs Downsampling (decimation filter)
Taif Moshin, Deyan Dimitrov Interpolation and oversampling in data converters. Trade-offs. Upsampling and its effect with respect to aliasing
One benefit of upsampling is that reduces the need of having precision time constant AA filter
E Signal of Interest First Alias
F 0 B Fs/2 FS F
E Signal of Interest Anti−imaging Filter Response First Alias
0 FB LF /2 F S LFS Upsampling for AA filter precision reduction
Taif Moshin, Deyan Dimitrov Interpolation and oversampling in data converters. Trade-offs. Oversampling cont’d
In terms of filter costs we can deduce that oversampling trades-off analog vs. digital circuitry A short example:
fclk=30MHz
f0
0 10 20 30 40 50 60 F [MHz]
' fclk =2xf clk
f0
0 10 20 30 40 50 60 F [MHz]
Analog filter requirements for different fs
Doubling fs gives us a reduction of 10 to 5-6 pole filter (assuming 60dB attenuation and 6dB attenuation/pole)
Taif Moshin, Deyan Dimitrov Interpolation and oversampling in data converters. Trade-offs. Oversampling cont’d
For the case we mentioned: OSR FIR “firpmord” Analog (Parks-McClellan) AI filter 2 23 5 ∼ 6 4 37 2 ∼ 3 8 57 1 ∼ 2 16 103 1 32 195 1 64 381 1 One of the many imperical high-level power estimations for analog filters [1]: 2 2 Pa = 2 × N × η × Vdd × fcut−off × DR (1) and for direct form digital filter [2]:
αcoef f Pd (N, coef , I , f ) = (N × (γ × coef + ω)) × (I ) × (2) f0
Taif Moshin, Deyan Dimitrov Interpolation and oversampling in data converters. Trade-offs. Oversampling cont’d
fs Lfs x[n] x[m] L z−1 z−1 z−1 z−1 z−1 x[n] E0(z) a b c d e f y[m]
y[m] E1(z)
n a b c d e f tap EL−1(z) 0 0 . . . . . y0 1 x 0 . . . . y1 y0 = a0 2 x x 0 . . . y2 y1 = b0 3 1 x x 0 . . y3 y2 = c0 4 x 1 x x 0 . y4 y3 = a1 + d0 5 x x 1 x x 0 y5 y4 = b1 + e0 6 2 x x 1 x x y6 y5 = c1 + f0 7 x 2 x x 1 x y7 y6 = a2 + d1 8 x x 2 x x 1 y8 y7 = b2 + e1 y8 = c2 + f1
Taif Moshin, Deyan Dimitrov Interpolation and oversampling in data converters. Trade-offs. Oversampling cont’d
More efficient IIR filters can be designed: - Butterworth, Cauer, Chebyshev Digital filters are also by far not ideal: - Filter coefficients precision (coefficient quantization) - Quantization of internal variables - Fixed vs floating point arithmetic - Rounding/truncation - Potential instability (IIR) To sum-up: the interpolation block by itself may not be easy to design FIR FILTERS IIR FILTERS Easy to design Require more effort Always stable May be unstable Linear phase response Non-linear phase response Less efficient More efficient
Taif Moshin, Deyan Dimitrov Interpolation and oversampling in data converters. Trade-offs. Oversampling cont’d
Apart from the said above one of the main benefits of interpolation with oversampling is the spread of quantization noise over the band
PSD −fn/2 B A 0 A B fs/2 PSD −fos/2 B A 0 A B fos/2 Quantization noise spill throughout the OS range
Taif Moshin, Deyan Dimitrov Interpolation and oversampling in data converters. Trade-offs. Oversampling cont’d
We can see that the in-band quantization noise will be much less after the decimation filter:
P