Professional Documents
Culture Documents
DSP Lect 1 3 PDF
DSP Lect 1 3 PDF
by
-Disadvantages :
DSP Applications
• Military Applications (target tracking, radar, sonar, secure
communications, sensors, imagery)
• Telecommunications (cellular, channel equalization, vocoders,
software radioetc)
• PC and Multimedia Applications (audio/video on demand, streaming
data applications, voice synthesis/recognition)
• Entertainment (digital audio/video compression, MPEG, CD, MD,
DVD, MP3)
• Automotive (Active noise cancellation, hands-free communications,
navigation-GPS, IVHS)
• Manufacturing, instrumentation, biomedical, oil exploration, robotics
• Remote sensing, security
y(t) y`(t)
LPF D/A
Remarks: In general and unless otherwise stated lower case symbols will
be used for time-domain signals and upper case symbols will be used for
transform domain signals. Bold face or underlined face symbols will be
Be generally used for vectors or matrices.
Continuous vs Discrete-time
Continuous-time (analog) Signal Discrete-time (digital) signal
x(t) x(n)
0 T 2T ...
t n
x(t) Q x(n)
x q (t ) xD (t ) e q (t )
2007 Copyright 2007 ©Andreas Spanias I-11
SNRPCM 6.02 Rb K 1
where Rb is the number of bits and the value of K1
depends on signal statistics. For telephone speech
K1 =- 10
...
.. .
.. .
0 t 0 f
x (t) |X (f)|
...
... ...
0 t 0 f
Formant Structure
Magnitude (dB)
Amplitude
20
0.0
-1.0 -20
0 8 16 24 32 0 1 2 3 4
Time (mS) Frequency (KHz)
20
Magnitude (dB)
Amplitude
0.0
0
-1.0 -30
0 8 16 24 32 0 1 2 3 4
Time (mS) Frequency (KHz)
• SAMPLING
– The Sampling theorem (how we convert to digital signals without losing
information)
• FILTERS
– Continuous-time systems (analog filters)
– Convolution (how filtering is done)
{ }
Continuous-time Impulse 1/'
G (t ) lim
' o0
..
' ..
0 t
Discrete-time Impulse 1
G (n) .. ..
0 n
Think of signals as a sum of impulses.
Impulses help in analyzing signals and filters
{ ..}
Continuous-time unit step
u (t ) 1
..
0 t
Discrete-time unit step 1
u (n)
{ 0
.. .... ..
n }
2007 Copyright 2007 ©Andreas Spanias I-18
Some Important Signals (3)
sin (Z t ) sin (
2S
T
t)
{ }
2S units: Ȧ(rad/s) f (Hz) T(s)
Z 2S f
T
Sinusoids are used in analyzing or synthesizing acoustic and other
other signals
sinc(t )
sin(t )
t { ...
0 }
...
ʌ 2ʌ
Sinc functions often appear in signal and filter analysis
particularly when considering frequency domain behavior
Random noise
linear system
Xk are complex F.S. coefficients and provide spectral magnitude and phase info
f
x (t ) ¦ X k e jk Z o t Synthesis Expression
k f
T
1 Analysis Expression
Xk ³ x ( t ) e jk Z o t dt Xk are discrete F.S.
T 0 spectral coefficients
where Z o 2S / T
The magnitude of F.S. coefficients, Xk, provides info on frequency content. Phase of
Xk often provides info on events in signal (e.g., beginning of a period
period etc.)
10 sinusoids
1 sinusoid
50 sinusoids
2 sinusoids
3 sinusoids
100 sinusoids
x (t)
... ...
0 T t
d /2
1 jk Z t d § kZ od ·
X k
T ³ 1 e o dt
d /2
T
sinc ¨
© 2 ¹
¸
Xk
d 2Z o
1/ 4
T harmonics
3Z o
... ...
Fundamental frequency Z o
2007 Copyright 2007 ©Andreas Spanias I-27
d/T=1/5
4ʌ
d/T=1/10
0
2007 Copyright 2007 ©Andreas Spanias 2ʌ I-28
Remarks on the Fourier Series
• If T
o f the F.S. vanishes
• F.S. can be used for spectral analysis, filter design, and many other
applications
k
¦ f
X k
T ³ x ( t ) dt
to
2S ³ [ ³ x(W ) e
f f
dW ] e dZ
2S ³ X (Z ) e
f
dZ
Remarks: For non-periodic signals the F.S. vanishes. If the limit is taken then
we can derive the continuous Fourier transform. The last equation is known as
the inverse Fourier transform. Note that Z is now a continuous variable
d
... ...
t
0
d /2
jZ t §Zd ·
X (Z ) ³ e dt d sinc ¨ ¸
d /2 © 2 ¹
Remarks: Note that a time-limited signal has a non-bandlimited CFT spectrum.
The sinc function has zero crossings at integer multiples of 2ʌ/d. As the pulse
width increases the sinc function “shrinks”. In the limit, if T goes to infinity
(i.e., pulse becomes D.C. signal) the sinc function collapses to a unit impulse.
2007 Copyright 2007 ©Andreas Spanias I-33
§ Zd ·
X (Z ) d sinc ¨ ¸
© 2 ¹
... ...
0
Ȧ
2ʌ /d 4ʌ/d
time domain frequency domain
a transform pair
pulse sinc
d
... ... ... ...
t 0
if x ( t ) l X (Z ) then X ( t ) l 2S x ( Z )
(time-
(time-limited) x(t) (non band-
band-limited) X(Ȧ)
t Z
0
(non time-
time-limited) X(t) (band-
(band-limited) 2ʌ x(-Ȧ)
... ... ... ...
Z
0
t
2007 Copyright 2007 ©Andreas Spanias I-36
Selected F.T properties - Linearity
if x ( t ) l X (Z ) & y ( t ) l Y (Z )
then D x ( t ) E y ( t ) l D X (Z ) E Y (Z )
Example: x (t ) ... ...
y (t ) ... ...
...
x (t ) y (t ) ...
... ...
Z
2007 Copyright 2007 ©Andreas Spanias I-37
1 Z
x(a t ) l X( )
|a| a
Note that time expansion implies frequency compression
if x ( t ) l X (Z )
then x(t t0) l e jZt0 X(Z)
-linear phase factor
-has unit magnitude
- phase is linear
across frequency
If x(t ) l X (Z )
then
ejZ0 t x(t) lX(ZZ0)
multiplication by sinusoid translates the signal in frequency
x ( t ) l X (Z )
h ( t ) l H (Z )
h (t ) * x (t ) l H (Z ) X (Z )
h (t ) * x (t ) ³ h (W ) x ( t W ) d W
Muliplication in frequency
is essentially a filtering operation
DEMO
...
* ... ... ...
t = ...
t
Frequency Convolution
x ( t ) l X (Z )
w ( t ) l W (Z )
then
1
h (t ) w (t ) l W (Z ) * X (Z )
2S
If w(t) is time limited Convolution tends to have
then this operation truncates a spreading effect
G (t ) l 1
t Ȧ
1 l 2 SG ( Z )
t Ȧ
jZ 0 t
e l 2 SG ( Z Z 0 )
cos(Z 0t ) l S (G (Z Z 0 ) G (Z Z 0 ))
ʌG(Ȧ- ȦO)
Ȧ
t -Ȧ O 0 Ȧ O
Truncated Signals: w (t )
x (t )
…. ….
t
x (t ) w (t )
Truncating a Cosine
s(t ) cos(Z0t ) S (Z ) S (G (Z Z0 ) G (Z Z0 ))
where Z0 2S /T0
1 CFT S
w( t )
T0 t Z0 0 Z0 Ȧ
0
CFT § ZT ·
1; 0 d t d T0 W (Z ) T0e jZT0 / 2sinc ¨ 0 ¸
w( t ) ® © 2 ¹
¯0; otherwise
1 CFT S T0
T0 Z0 0 Z0
0 t Ȧ
Truncation with a short rectangular window implies convolution with a “wideband” sinc
0
Remark: Truncation with a wider rectangular window implies convolution with a
“narrowband” sinc. If the length of the rectangular window becomes arbitrarily long
the sinc collapses to an impulse. Clearly, longer windows in time imply improved
spectral resolution and less spectral leakage.
… …
.. ..
t B
Z
25dB
… …
.. ..
t Z
2007 Copyright 2007 ©Andreas Spanias
1.33B I-48
Truncating Speech
CFT
CFT
S
T d
B
or a signal that is bandlimited to B must be sampled at a rate of
Ȧs where
B
Z s t 2B or fs t
S
x =
analog signal sampling digital signal
2007 Copyright 2007 ©Andreas Spanias I-52
Example: Audio - Bandwidth
s t
Remark: Multiplication with the ideal switching function results in a periodic
spectrum where the signal spectrum is repeated at integer multiples of the
sampling frequency.
st
The switching or sampling function
f
s(t ) ¦G (t nT)
n f
...
T 2T 3T
...
t
0
x =
f f
¦ G (t nT ) l Z ¦ G Z kZ
k f
0
k f
0
st SZ
0
T 2T 3T t
Zo 2Zo Z
0
H Z
Ideal Low-Pass Filter
... ...
Bh 0
Bh Z
... ...
B B Z
2007 Copyright 2007 ©Andreas Spanias I-58
Sampling and Periodic Spectra
x(t ) X (Z )
……
... ...
0 t B 0 B Z
xs (t ) X s (Z )
1/T
... ...
... ...
Zs B Zs 2Z s
0 T 2T 3T t 0
B Z
2007 Copyright 2007 ©Andreas Spanias I-59
xs (t ) X s (Z )
1/T
T
... ...
... ...
Zs B Zs 2Z s
0 T 2T 3T t 0
B Z
x(t ) X (Z )
……
... ...
0 t B 0 B Z
2007 Copyright 2007 ©Andreas Spanias I-60
Derivation of the Sampling Theorem
f
xs (t ) x ( t ) s( t ) where s(t ) ¦ G ( t nT )
n f
f
x s (t ) ¦
n f
x ( nT ) G ( t nT )
1
and X s (Z ) X (Z ) * S (Z )
2S
1 f ½
X s (Z ) X (Z ) * ® ¦ G Z k Z o ¾
T ¯ k f ¿
f
1
X s (Z )
T
¦ X Z k Z
k f
o
h ( t ) * x s ( t ) l H (Z ) X s (Z )
f
1 jZ t
h (t ) ³ H (Z ) e dZ sinc ( Bt )
2S f
f ½
x(t ) sinc( Bt ) * ® ¦ x(nT )G (t nT )¾
¯n f ¿
f
x (t ) ¦ x(nT ) sinc ( B (t nT ))
n f
Remark: Note that the reconstruction filter interpolates between the
samples with sinc functions - hence the name interpolation filter.
2007 Copyright 2007 ©Andreas Spanias I-62
ALIASING (UNDERSAMPLING) Ȧs<2B
X s (Z )
... ...
B 0
BZ s 2Z s
Z
aliasing
the signal can not be recovered perfectly even with an ideal filter
filter
only a distorted version of the signal can be recovered
Oversampling Ȧs>>2B
X s (Z )
Guard bands
...
Zs B
0
B Zs 2Z s Z
Oversampling relaxes the requirements on antialiasing filters
• All real-
real-life signals are not band-
band-limited
• Typically we use antialiasing filters that limit aliasing noise several 10s
of dBs under the useful signal energy
C Differential equation:
i(t) y(t)
x(t) dy ( t ) 1 1
y (t ) x (t )
dt RC RC
if x (t ) sin( Z t ) sinusoid in
then sinusoid out
y ss (t ) H (Z ) sin(Zt H (Z ))
2007 Copyright 2007 ©Andreas Spanias I-69
LTI
system
x(t) y(t)
h(t)
The output is obtained by convolving the input x(t) and the impulse
response h(t) of the system, that is:
f
y (t ) ³ h (W ) x ( t W ) d W
f
h (t ) * x (t )
C dh(t) 1 1
x(t)
i(t) y(t) h(t) G (t)
dt RC RC
1 RCt
The solution: h(t ) e e t for t > 0
RC
..
* =
.. .. .. ..
t
..
t
2007 Copyright 2007 ©Andreas Spanias I-73
Convolution of Pulses
* =
1 1 1
0 1 t 0 2 t 0 1 2 3 t