Aau/Aait Center of Biomedical Engineering Digital Signal Processing
Aau/Aait Center of Biomedical Engineering Digital Signal Processing
Chapter 1:
Sampling and Reconstruction of Continuous-
Time Signals
Introduction
to Digital Signal Processing (DSP)
?What is Digital Signal Processing (DSP)
Speech Applications
Examples:
1. Noise reduction-reducing background noise in the sequence
produced by a sensing device (Microphone)
2. Speech recognition-differentiating between various speech
sounds.
3. Synthesis of artificial speech- text to speech system for blind.
…Cont
Image Processing
•Sampling interval:
The time that separates sampling points (interval b/w
samples), Ts
If the signal is slowly varying, then fewer samples per second
will be required than if the waveform is rapidly varying
So, the optimum sampling rate depends on the maximum
frequency component present in the signal.
•Sampling Rate (or sampling frequency fs): The rate at which the
signal is sampled, expressed as the number of samples per second
reciprocal of the sampling interval), 1/Ts = fs
…Cont
2
S ( j)
T
( k )
k
s where s 2 / T is the sampling rate in radians/s.
1 1
X s ( j )
2
X c ( j ) * S ( j )
T
X j ( k )
k
c s
Frequency Domain Representation
of Sampling
• By applying the continuous-time Fourier transform to
equation
x s (t ) x
n
c (nT ) (t nT )
We obtain
X S ( j )
n
x c (nT )e j Tn
x [n ] x c (nT ) and X (e j
)
n
x [n ]e j n
consequently
X s ( j ) X (e j
X (e j T 1
) X (e ) X c
j 2k
)
T
j
T k T T
Exact Recovery of Continuous-Time
from Its Samples
• (a) represents a band
limited Fourier
transform of xc(t)
Whose highest nonzero
frequency is N .
• (b) represents a
periodic impulse train
with S frequency.
=
Aliasing Distortion
• (a) represents a band
limited Fourier
transform of xc(t)
Whose highest nonzero
frequency is N .
• (b) represents a
periodic impulse train
with S frequency.
X C ( j ) 0 for N
N 0 N
0
• Then if is sufficiently N
small, N
appears
j as:
TS X (e )
A X (e j )
Ts
N T S 0 N T S
2 2
• Condition:
2 N T S N T S or N T S or S 2 N
Critically Sampled
:Critically sampled N T S or S 2N
A
X (e j )
Ts
2 0 2
According to the Sampling Theorem, in general the signal cannot be
reconstructed from samples at the rate T S / N .
This is because of errors will occur if X c ( N ) 0 , the folded
frequencies will add at .
Consider the case: x c (t ) A sin( N t ) Aj ( N ) ( N )
and note that for T S / N .
x (nT s ) A sin(c nT s ) A sin(n ) 0 (for all n )
Undersampled (aliased)
If sampling theorem condition is not satisfied N T S or S 2 N
A
X (e j )
Ts
2 0 2
• The frequencies are folded - summed. This changes the shape of the
spectrum. There is no process whereby the added frequencies can be
discriminated - so the process is not reversible.
• Thus, the original (continuous) signal cannot be reconstructed exactly.
Information is lost, and false (alias) information is created.
Reconstruction of a Band limited Signal
from Its Samples
• Figure(a) represents an ideal
reconstruction system.
• Ideal reconstruction filter has
the gain of T and cutoff
frequency c
N C S N
we choice C S / 2 /T .
This choice is appropriate for
any relationship between S
and N .
Reconstruction of a Bandlimited
Signal from Its Samples
• Therefore
x S (t ) x [n ] (t nT )
n
x r (t ) x [n ]h (t nT )
n
r
sin( t /T )
hr (t )
t /T
sin( (t nT ) /T )
x r (t ) x [n ]
n (t nT ) /T
Reconstruction of a Bandlimited
Signal from Its Samples
x r (t ) x [n ]h (t nT )
n
r
• The properties of the ideal D/C converter are most easily seen in the frequency
domain.
x r (t )
n
x [n ]hr (t nT ) X r ( j )
n
x [n ]H r ( j )e j Tn
X r ( j ) H r ( j ) x [n ]e j Tn
n
X r ( j ) H r ( j )X (e j T )
Changing the sampling rate using
discrete-time processing
• We have seen that a continuous-time signal can be
represented by a discrete-time signal.
x [n ] x c (nT )
• It is often necessary to change the sampling rate of x[n]
and obtain a new discrete-time signal such that
x [n ] x c (nT )
• One approach is to reconstruct x c (t ) and then resample
it with period T , but it is of interest to consider methods
that involve only discrete time operations.
Basic Sampling Rate Alteration
x[n] M y[n]
…Cont
x[ n ] xa ( nT ) M y[ n ] xa ( nMT )
1
2 k
x [n ] x c ( nT ) X (e j
)
T
k
X C ( j (
T
T
))
1 2 r
x d [n ] x c (nMT ) X d (e ) j
MT r
X C ( j (
MT MT
))
r i kM k , 0 i M 1
1 M 1
1
2 k 2 i
X d (e j )
M
i 0 T
k
XC(j(
MT
T
))
MT
M 1
1
j
X d (e )
M
X
i 0
(e j ( / M 2 i / M )
)
Downsampling without Aliasing
Downsampling with aliasing
Downsampling with prefiltering to
avoid aliasing
Up-sampler: Time-Domain
Characterization
• An up-sampler with an up-sampling factor L, where L is
a positive integer, develops an output sequence
with a sampling rate that is L times larger than that of
the input sequence x[n].
• In practice, the zero-valued samples inserted by the up-
sampler are replaced with appropriate nonzero values
using some type of filtering process called interpolation
• Block-diagram representation
x[n] L xu [n ]
…Cont
sin( n / L )
h i [n ]
n /L
sin( (n kL ) / L )
x i [ n ] x [k ]
k (n kL ) / L
therefore x i [n ] x [n / L ] x c (nT / L ) x c (nT ) n 0, L , 2L ,...
If the input sequence x [n ] x c (nT ) was obtained by sampling
without aliasing then x i [n ] x c (nT ) is correct for all n, And x i [n ]
is obtained by oversampling of x c (t ) .
Reading Assignment
Changing the Sampling Rate
by a Noninteger Factor
• By combining decimation and interpolation it is possible to change
the sampling rate by a noninteger factor.