Lect 07
Lect 07
John Chiverton
School of Information Technology
Mae Fah Luang University
Lecture Contents
Introduction
Decimation
Interpolation
Summary
Outline
Introduction
Decimation
Interpolation
Summary
Both
I
Decimation,
and Interpolation.
Outline
Introduction
Decimation
Interpolation
Summary
(included)
x[0]
x[1]
x[2]
x[3]
x[4]
x[5]
x[6]
x[7]
x[8]
x[9]
tim
I
I
y[1]
y[2]
(included)
(included)
fsnew
2
2 fsfs
new
s
cf =
=
2
2
as fsnew < fs .
fsnew
<
fs
Digital
Antialiasing
Filter
Decimator
y[n]
Outline
Introduction
Decimation
Interpolation
Summary
x(t)
x(t)
x[n]
time t or
sample instances
time t or new
sample instances
y[m]
Interpolation
tim
e
x[0]
0
0
x[3]
rin
filt
e
pa
ss
low
x[2]
0
0
x[1]
0
0
y[0]
y[1]
y[2]
y[3]
y[4]
y[5]
y[6]
y[7]
y[8]
y[9]
x(t)
Original Signal
x[n]
time t or
sample instances
zero filling
x(t)
zero filled
time t or new
sample instances
low pass
filtering
x(t)
y[m]
time t or new
sample instances
Interpolated Signal
Outline
Introduction
Decimation
Interpolation
Summary
Both:
I
=D
I
I
decimation only or
interpolation only
Example:
Get audio from 44.1kHz sampled source (CD player) and transfer
to professional audio processor requiring 48kHz sample rate.
A. This process requires upsampling to 48kHz from 44.1kHz.
Professional
Audio Processor
CD Player
44.1kHz
Sample Rate
Conversion
48kHz
Interpolation
Zero Filling
Low Pass
Filtering
AntiAliasing
Filtering
Decimation
Sample
Removal
OUTPUT SIGNAL
Zero Filling
Interpolation
& Decimation
Low Pass
Filtering
Sample
Removal
OUTPUT SIGNAL
Outline
Introduction
Decimation
Interpolation
Summary
Problem!
In real world applications sample rate conversion converts a
sampling frequency to another sampling frequency that is:
I
fs
= 5.98 4096/4 = 6123.5
ftw
AntiAliasing
Filter h[n]
Decimation
y[n]
x[n]
AntiAliasing
Filter h 1 [n]
Decimation
D1
AntiAliasing
Filter h 2 [n]
Decimation
D2
AntiAliasing
Filter h 3 [n]
Decimation
D3
y[n]
= D = D1 D2 ... Dk =
k
Y
Di
i=1
x[n]
AntiAliasing
Filter h 1 [n]
Decimation
D1
AntiAliasing
Filter h 2 [n]
Decimation
D2
AntiAliasing
Filter h 3 [n]
Decimation
D3
y[n]
ftw
512Hz
60Hz = 196Hz
2
N1 = 5.98
fs
(1)
ftw
= 5.98
512
= 16, (rounded up to integer value).
196
fsnew = fs
512Hz
= 128Hz.
4
The transition width for this (final) stage can then be:
(2)
ftw =
128Hz
60Hz = 4Hz
2
So that the number of Blackman filter coefficients for this stage is:
(2)
N2 = 5.98
fs
(2)
ftw
= 5.98
128
= 192.
4
192 filter coefficients are required for this final stage. The combined filter coefficients
for the two stages is:
N1 + N2 = 16 + 192 = 208,
which is considerably less than the original non-multistage decimation antialiasing
filter requiring N = 6124 coefficients.
Outline
Introduction
Decimation
Interpolation
Summary
Lecture Summary
Decimation,
Interpolation,
and Applications.