Chapeter1-DSP
Chapeter1-DSP
Chapter 2:
Analog Signal Processing • 1. Introduction
Sampling and Reconstruction • 2. Overview of Analog
Reference: • 3. Sampling theorem
S J.Orfanidis, ”Introduction to Signal Processing”, Prentice –Hall , 1996,ISBN 0-13-209172-0
M. D. Lutovac, D. V. Tošić, B. L. Evans, “Filter Design for Signal Processing Using MATLAB • 4. Sampling of Sinusoids
and Mathematica”, Prentice Hall, 2001
Lectured by Prof. Dr. Thuong Le-Tien
National Distinguished Lecturer
• 5. Spectra of Sampled Signals
Tel: 08-38654184; 0903 787 989
Email: [email protected], • 6. Analog signal reconstruction
[email protected]
1. Introduction
Three steps for digital signal processing of 2. Review of Analog signals
analog signals
FOURIER Transform X() of x(t) is the spectrum of the
Step 1: Digitizing of analog signals: analog signal:
Sampling, Quantization – Analog to Digital
Conversion (ADC).
X () x(t )e jt dt
(2.1)
(2-3)
after processing – Digital to Analog X (s) x(t ).est dt
Conversion (DAC)
3 4
Response of a linear system
x(t) y(t) H() is the Fourier transform of h(t)
Linear system
h(t)
input output H ( ) h( t )e jt dt
The system is characterized by impulse response h(t). The The steady state response of a sinusoid:
output y(t) is obtained by the time domain convolution :
x(t) = exp(jt) Linear system y(t) = H()exp(jt)
y(t ) h(t t ' ) x(t ' )dt' Sinusoid in H()
Sinusoid out
Or frequency domain: Output is a sinusoid with frequency (),
Y () H (). X () amplitude equal to the signal amplitude multiplied
by MagH(), and phase shift equal to arg(H()):
where H() is the frequency response of the system.
x(t ) e jt y(t ) H ()e jt | H () | .e jt j arg H ( )
5 6
components H( ) A 1 H( )
A 2 H( )
j1t j 2 t
x(t ) A1e A2 e
7 8
The spectrum of the sampled sinusoid x(nT)
3. Concept of Sampling theorem
9 10
Sampling theorem
For accurate representation of a signal x(t) by its
time samples x(nT), two conditions must be met:
1: x(t) is bandlimited
2: Sampling frequency must be chosen to be
at least twice the maximum frequency fmax,
Figure 3.2. Spectrum replication caused by sampling. fs 2fmax:
With the replicated spectrum of the sampled signal, one fs = 2fmax is the Nyquist rate.
cannot tell uniquely What the original frequency was. It
fs/2 is the Nyquist frequency or folding
could be any one of the replicated frequencies namely
f’=f+mfs. This potential confusion of the original frequency frequency
with another is known as aliasing and can be avoided if one
satisfies the condition of the sampling theorem
11 12
Typical sampling rate for some common applications Antialiasing Prefilter
(An Approximation) Signal must be bandlimited therefore need to pass
through a low pass filter namely prefilter before sampling
Input spectrum
Prefiltered spectrum
prefilter
f f
0 -fs/2 fs/2
Replicated
spectrum
f
-fs 0 fs
Bandlimited
x(t) signal x(nT)
Analog lowpass Sampler and
To DSP
Analog filter x(t) quantizer digital
signal signal
Antialiasing prefilter
14
Missing important time variations between sampling instants f s samples / sec samples
May arrive at the erroneous conclusion that the samples f cycles / sec cycle
represent a signal which is smoother than it actually is
Be confusing the true frequency content of the signal with a
lower frequency content. Such confusion of signals is called
aliasing
Aliasing in
Special case with multiple frequency components in the x(t)
The time domain
16
Analog reconstruction and aliasing
LPF as an ideal
reconstructor
19 20
Example: x(t)=4+3cos(t)+2cos(2t)+cos(3t) t: in ms
Determine the min sampling rate without any aliasing effects
Supposed the signal sampled at half its Nyquist rate.
Determine xa(t) that would be aliased with x(t).
Sol:
Freq. of 4 terms: f1=0, f2=0.5kHz, f3=1kHz,f4=1.5kHz
Example: The square wave sampled at rate fs; t in seconds For fs =4kHz, the aliased signal will be
Case b.
Case c.
5. Spectra of sampled signals
Sampled signal: xˆ ( t ) x(nT ) (t nT )
n
0 T 2T …. nT t
0 T 2T …. nT t
30
or
Practical approximation
32
Aliasing caused by overlapping spectral replicas Practical antialiasing prefilter
Attenuation in dB
y a (t ) y(nT )h(t nT )
n
Staircase reconstructor y a (t ) y(nT )h(t nT )
n
Y a ( f ) H ( f )Yˆ ( f )
Replicated spectrum
1
Y ( f ) Y ( f mfs )
ˆ
Analog reconstructor as a low pass filter T m
35
36
Ideal reconstructor Staircase reconstructor