TC-515 Advanced Digital Signal Processing: Dr. Muhammad Imran Aslam Spring 2015
TC-515 Advanced Digital Signal Processing: Dr. Muhammad Imran Aslam Spring 2015
Processing
Dr. Muhammad Imran Aslam
Spring 2015
Books
Discrete Time Signal Processing, 2nd ed. By
Alan V. Oppenhem and Ronald W. Schafer
Digital Signal Processing: principles algorithms
and applications 4th ed. By John G. Proakis and
Dimitris G. Manolakis
Digital Signal Processing: A computer based
approach, 2nd ed. by Sanjit K. Mitra
Schaums outline of Digital Signal Processing
DSP is Everywhere
Sound applications
Compression, enhancement, special effects, synthesis, recognition,
echo cancellation,
Cell Phones, MP3 Players, Movies, Dictation, Text-to-speech,
Communication
Modulation, coding, detection, equalization, echo cancellation,
Cell Phones, dial-up modem, DSL modem, Satellite Receiver,
Automotive
ABS, GPS, Active Noise Cancellation, Cruise Control, Parking,
Medical
Magnetic Resonance, Tomography, Electrocardiogram,
Military
Radar, Sonar, Space photographs, remote sensing,
Image and Video Applications
DVD, JPEG, Movie special effects, video conferencing,
Mechanical
Motor control, process control, oil and mineral prospecting,
Signal Processing
Humans are the most advanced signal processors
speech and pattern recognition, speech synthesis,
We encounter many types of signals in various applications
Electrical signals: voltage, current, magnetic and electric fields,
Mechanical signals: velocity, force, displacement,
Acoustic signals: sound, vibration,
Other signals: pressure, temperature,
Most real-world signals are analog
They are continuous in time and amplitude
Convert to voltage or currents using sensors and transducers
Analog circuits process these signals using
Resistors, Capacitors, Inductors, Amplifiers,
Analog signal processing examples
Audio processing in FM radios
Video processing in traditional TV sets
A/D
digital
signal
DSP
digital
signal
D/A
analog
signal
Signal Types
Analog signals: continuous in time and amplitude
Example: voltage, current, temperature,
Digital signals: discrete both in time and amplitude
Example: attendance of this class, digitizes analog signals,
Discrete-time signal: discrete in time, continuous in amplitude
Example: hourly change of temperature in Austin
Theory for digital signals would be too complicated
Requires inclusion of nonlinearities into theory
Theory is based on discrete-time continuous-amplitude signals
Most convenient to develop theory
Good enough approximation to practice with some care
In practice we mostly process digital signals on processors
Need to take into account finite precision effects
-3 -2 -1 0 1 2 3 4
Periodic Sampling
Sampling is, in general, not reversible
Given a sampled signal one could fit infinite continuous signals
through the samples
1
0.5
0
-0.5
-1
0
20
40
60
80
100
10
Representation of Sampling
Convert impulse
train to discretetime sequence
xc(t)
x[n]=xc(nT)
x[n]
s(t)
-3T-2T-T 0 T 2T 3T 4T
-3 -2 -1 0 1 2 3 4
11
x (t )e
c
jt
dt
1
jt
(
)
x c (t ) =
X
j
e
d
c
x (t )(t nT )
n =
s(t) =
(t nT )
n =
2
S(j ) =
( k s )
T k =
T k =
13
1
X c (j( k s ))
X s (j ) =
T k =
This tells us that the impulse train modulator
Creates images of the Fourier transform of the input signal
Images are periodic with sampling frequency
-N
X s (j )
s>2N
3s
-2s
s -N
2s
3s
X s (j )
s<2N
3s
-2s
s -N
2s
3s
14
for N
2
= 2fs 2N
T
X s (j )
s>2N
3s
-2s
s -N
2s
3s
X s (j )
s<2N
3s
-2s
s -N
2s
3s
15
-10
0
10
t (ms)
20
40
60
80
100
10
20
30
40
50 n (samples)
-10
0
16
1.5
1
0.5
0
-10
-5
10
-5
10
-5
10 17
1.5
1
0.5
0
-10
1
Exponential sequences
x[n] = An
0.5
0
-10
Sinusoidal Sequences
Important class of sequences
x[n] = cos(on + )
x[n] = A = A e e
n
jon
= A e j(on + )
n
2k
is an integer
o
18
Discrete-Time Systems
Discrete-Time System is a mathematical operation that maps
a given input sequence x[n] into an output sequence y[n]
y[n] = T{x[n]}
x[n]
T{.}
y[n]
Maximum
Memoryless System
Memoryless System
A system is memoryless if the output y[n] at every value of n
depends only on the input x[n] at the same value of n
Example Memoryless Systems
Square
2
y[n] = (x[n])
Sign
y[n] = sign{x[n]}
Counter Example
Ideal Delay System
y[n] = x[n no ]
20
Linear Systems
Examples
y[n] = x[n no ]
= x1[n no ] + x2[n no ]
T{x1[n] + x2[n]}
T{x2[n]} + T{x1[n]} = x1[n no ] + x2[n no ]
=
T{ax[n]}
ax1[n no ]
=
aT{x[n]}
ax1[n no ]
21
Time-Invariant Systems
Time-Invariant (shift-invariant) Systems
A time shift at the input causes corresponding time-shift at
output
y[n] = T{x[n]} y[n no ] = T{x[n no ]}
Example
Square
2
y[n] = (x[n])
Counter Example
Compressor System
y[n] = x[Mn]
y1 [n] = (x[n no ])
y[n - no ] = (x[n no ])
y1 [n] = x[Mn no ]
y[n - no ] = x[M(n no )]
22
Causal System
Causality
A system is causal its output is a function of only
the current and previous samples
Examples
Backward Difference
y[n] = x[n] x[n 1]
Counter Example
Forward Difference
y[n]= x[n + 1] x[n]
23
Stable System
Stability (in the sense of bounded-input bounded-output BIBO)
A system is stable if and only if every bounded input produces a
bounded output
Example
Square
y[n] = (x[n])
Counter Example
Log
25
26
27
28
29
Example
30
Example
31
32
33
34
35
36
37
38
39
40
41
[n-k]
=
x [ n]
y [ n ] T x [ k ]=
[ n k ]
=
k =
y [ n ]=
hk[n]
x [ k ] [ n k ]
k =
k =
k =
{ [ n k ]} x [ k ] h [ n]
x [ k ]T =
k
x [ k ] h [ n k ]= x [ k ] h [ k ]
k =
42
LTI
0.5
0
-5
0
-5
LTI
0
LTI
0
LTI
0
1
0
-5
4
1
0
-5
1
0
-5
2
1
0
-5
2
1
0
-5
2
0.5
2
0
-5
43
44
Convolution is commutative
x[k ] h[k ] = x[k ]h[n k ] = h[k ]x[n k ] = h[k ] x[k ]
x[n]
k =
k =
h[n]
y[n]
h[n]
x[n]
y[n]
Convolution is distributive
x[k ] (h [k ] + h [k ]) = x[k ] h [k ] + x[k ] h [k ]
1
h1[n]
x[n]
y[n]
x[n]
h1[n]+ h2[n]
y[n]
h2[n]
45
h1[n]
h2[n]
y[n]
x[n]
h2[n]
h1[n]
y[n]
x[n]
h1[n]h2[n]
y[n]
46
47
48
Convolution Examples
A good JAVA applet is available at:
http://pages.jh.edu/~signals/discreteconv2/
Convolution can be calculated
Directly
Graphical method
Slide rule method
49
h[k ] <
k =
y[n] =
k =
k =
x[n] B x
y[n] B x
h[k ]
k =
k ] b x [ n k ] OR
a y [ n=
k
k 0=
k 0
=
y[n]
b x [n k ] a y [n k ]
k
=
k 0=
k 1
Example
Moving Average
a y[n k ] = b x[n k ]
k =0
k =0
where ak = bk = 1
51
b x [n k ] a y [n k ]
k
=
k 0=
k 1
52
53
Characteristic Equation
54
55
56
57
58