Digital Signal Processing: Course Code: Credit Hours:3 Prerequisite:30107341
Digital Signal Processing: Course Code: Credit Hours:3 Prerequisite:30107341
Name Anwar ALflayyeh
Office No. B17 F4
Tel (Ext)
E-mail [email protected]
Office Hours 11:00-12:00 STT
Class Times Building Day Start Time End Time Room No.
Online Sunday 10:00 AM 11:00PM Online
Tuesday
Thursday
Course description Introduction to DSP. Discrete signals
and systems. Z-transform. Modeling and implementation of
discrete time systems. Time and frequency domain analysis of
signal processors. Design and analysis of finite impulse
response filters (FIR). Design and analysis of infinite impulse
response filters (IIR). Digital filter networks. Digital equalizers.
The DFT and FFT algorithms. DSP algorithms and applications
• Convolution
• Tabular Digital Convolution
• Boundary Effects
• Graphical Digital Convolution
• Convolution by Formula Method
• Properties of Convolution
• Correlation
• Cross Correlation
• Auto Correlation
Convolution
•Convolution combines an input x[n] with a system impulse response h[n] to produce a
filter output y[n].
• or, equivalently,
This sum of products (or convolution sum) is in fact a function of n that represents the
overlap between x[n] and the time-reversed and shifted version of h[n].
Convolution
N = M1 + M2 – 1
Where,
M1 is the number of samples in sequence x[x]
M2 is the number of samples in sequence h[x]
10
Difference Equation & Convolution
• The general form of the recursive difference equation is
11
Convolution
Digital convolution can be performed by the following methods
• Tabular method
• Graphical method
• Formula method
12
Tabular Digital Convolution
• Step-1: List the index k covering a sufficient range.
• Step-6: Repeat Step 4; stop if all the output values are zero or if
required. 13
Tabular Digital Convolution
Example-1: Write the equation of following signals in the graphs.
Solution
The output is the sum of the products of the input samples and
the impulse response samples.
16
Tabular Digital Convolution
Example-3: Using the sequences defined in the following figure,
evaluate the digital convolution by the tabular method.
Tabular Digital Convolution
Tabular Digital Convolution
Tabular Digital Convolution
Tabular Digital Convolution
Tabular Digital Convolution
Tabular Digital Convolution
Exercise-2: Find the convolution of the two sequences x[n] and h[n] given by,
Tabular Digital Convolution
Exercise-3: determine the output for the first three samples of ℎ[n] using the
tabular method. Where x[n] = u[n] and h[n] = (0.25)nu[n]
Solution
Boundary Effects
• Quite often nothing is known about input activity that precedes
and follows the selection of input samples used for a convolution.
• This means that the calculations of the first few and the last few
output samples will be uncertain, because they rely on unknown
data.
• These output samples are said to be influenced by boundary
effects.
• In analyzing an output signal, it is usually best to discount these
samples.
• Fortunately, real signal analyses generally involve thousands of
samples, so neglecting a few at the beginning and end will not
have a major impact on the output.
27
Boundary Effects
Example-A of boundary effect which happens when the input sequence x[n] and the
impulse response h[n] of the system are not completely overlapped.
Boundary effect can diminish if the impulse response samples are small.
28
Boundary Effects
• Initial boundary effects may also be interpreted as output transients.
• FIR (finite impulse response) filters reach a clear steady state because their impulse
responses have a finite number of samples, and can therefore can be shifted such that the
impulse response samples are completely contained by the input signal, and do not extend
into regions of unknown inputs.
• IIR (infinite impulse response) filters never reach a true steady state, because some of the
infinite number of impulse response samples must inevitably lie outside the range of known
input samples.
• However, the impulse response samples for stable filters, the only kind normally used, grow
smaller with time.
• Thus, an approximate steady state is reached when only very small impulse response
samples are combined with unknown inputs. 29
Boundary Effects
Example-B: The input to a system is the unit step u[n]. The impulse response of the system
is given by h[n] = 0.4δ[n] – δ[n - 1] +0.7δ[n - 2]. Find the output of the system using
convolution and identify the transient and steady state portion of the output.
30
Boundary Effects
Example-C: Use convolution to find the step response of the system whose impulse
response is h[n] = (-0.55)nu[n]
31
Graphical Digital Convolution
32
Graphical Digital Convolution
Example-5: Using the sequences defined in Figure, evaluate the digital convolution.
33
Graphical Digital Convolution
34
Graphical Digital Convolution
35
Graphical Digital Convolution
Example-6:
Input Signal
x[n] = [2, 1, 2]
Impulse Response
h[n] = [1, 2, -1]
Output Signal
Y[n] = [2, 5, -2, -5, 2]
37
Convolution by Formula Method
Example-7: Using the sequences defined in Figure, evaluate the digital convolution.
38
Properties of Convolution
39
Correlation
• A measure of similarity between a pair of energy signals, x[n]
and y[n], is given by the cross-correlation sequence rxy[l]
40
Correlation
• There are applications where it is necessary to compare one reference
signal with one or more signals to determine the similarity between
the pair and to determine additional information based on the
similarity.
42
Cross Correlation
N = M1 + M 2 – 1
Where
M1 is the number of samples in sequence x1[x]
M2 is the number of samples in sequence x2[x]
43
Cross Correlation
Example-8: Find the correlation b/w the two sequences x[n] and y[n] given by,
44
Cross Correlation
Example-9: Find the correlation b/w the two sequences x[n] and y[n] given by,
45
Cross Correlation
46
Cross Correlation
Solution
47
Cross Correlation
Solution
Yxy[n] = [3, 5, 6, 6, 3, 1]
48
Cross Correlation
Excersize-1: Find the correlation of the two sequences x[n] and y[n] represented by,
Excersize-2: Find the correlation of the two sequences x[n] and y[n] represented by,
49
Correlation Between Signals X and Y
50
Correlation Between Signals X and Z
51
Auto Correlation
52
Auto Correlation
53
Auto Correlation
N = 2×M – 1
Where,
M is the number of samples in the sequence x[n]
54
Auto Correlation
Example: Find the auto correlation of the following sequence
x[n] = [1, 2, 3, 4]
Solution
55
Auto Correlation
Example: Find the auto correlation of the following sequence
x[n] = [1, 2, 3, 4]
Solution
56