Professional Documents
Culture Documents
Ee 5108: Digital Signal Processing Laboratoryoratory List of Experiments: Compulsory Experiments
Ee 5108: Digital Signal Processing Laboratoryoratory List of Experiments: Compulsory Experiments
LIST OF EXPERIMENTS:
COMPULSORY EXPERIMENTS:
6. Testing for the stability of given Discrete Time Systems using MATLAB
7. To write a MATLAB program for finding out the output of two Periodic
Digital sequences using Circular Convolution. Compare your result with that
obtained by theoretical evaluation
9. Development of the program for finding out DFT and FFT using TMS
320C6713 DSK Processor
10. To write a program and simulate using C language / assembly language for
computation of Linear Convolution using TMS 320C6713 DSK Processor
11. To write a program and simulate using C language / assembly language for
computation of Auto/ Cross Correlation using TMS Processor
12. To write a program and simulate using C language / assembly language for
designing a Digital Filter (LP/ HP / BP / BR) using TMS 320C6713 DSK
Processor
OPTIONAL EXPERIMENTS:
14. To design a Butterworth filter using standard design steps (for LP, HP, BP &
BR filters), i.e. find out the order of the filter when Pass Band Gain, Sampling
frequency and Pass Band and Stop Band Cut-Off frequencies are given. Then
find out the Normalized Transfer Function and Actual Transfer Function
15. To design a Chebyshev filter using standard design steps (general programs
for LP, HP, BP & BR filter design)
16. To develop a Cascade realization of the given Linear-Phase FIR/ IIR transfer
functions using MATLAB
17. To write a MATLAB program to compute the Cross Correlation of two finite-
length sequences. Compare your result with that obtained by theoretical
evaluation
18. To write a MATLAB program to compute the Auto Correlation of two finite-
length sequences. Compare your result with that obtained by theoretical
evaluation
21. To write a MATLAB program for transforming an Analog filter into a Digital
filter using Impulse invariant technique
24. To implement LMS algorithm using TMS DSK 320C6713 DSK Processor
DEPARTMENT
OF
ELECTRONICS AND COMMUNICATION
ON
INSTRUMENTS:
1. MATLAB
THEORY:
PROGRAM:
RESULT:
PRECAUTIONS:
DEPARTMENT
OF
ELECTRONICS AND COMMUNICATION
ON
AIM: Generation of the following sequence and to plot them using MATLAB:
a. Unit Sample Sequence D[n]
b. Unit Step Sequence u[n]
c. Ramp Sequence n. u[n]
d. Exponential Sequences
e. Sine / Cosine Sequences
SOFTWARE:
MATLAB
THEORY:
(a) Unit sample sequence,(n), is defined as
(n) = 1, n = 0
= 0, n 0
(b) Unit step sequence is defined as
u(n) = 1 , n 0
= 0, n < 0
(c) Unit ramp sequence is defined as
r (n) = nu(n) = n, n 0
=0,n<0
(d) Exponential sequence are defined by
x(n) = an where a is real constant for -∞ ≤ n ≤ ∞
(e) Sinusoidal sequence are given by
x(n) = sin n where = 2f = 2k/N
PROGRAM:
To express the above sequence in graphical representation for finite duration. The
input parameters to be specified are the desired length & the simplify frequency.
RESULT:
PRECAUTIONS:
DEPARTMENT
OF
ELECTRONICS AND COMMUNICATION
ON
SOFTWARE:
MATLAB 7.0
THEORY:
1. Linear System:
PROGRAM:
RESULT:
PRECAUTIONS:
DEPARTMENT
OF
ELECTRONICS AND COMMUNICATION
ON
SOFTWARE:
MATLAB 7
THEORY:
The linear convolution is used to obtain the response of an LTI system for any
given input when its impulse response known . We can say that the input x(n)
is convolved with the impulse the h(n) to produce the output y(n).
The convolution sum is given by
Y(n) = x(n) * h(n) = K
x ( K ) h( n K )
PROGRAM:
First develop a program to compute output using linear convolution sum with
the inputs are two finite – duration sequences. Display the output starting the
point of origin. If there are M no. of samples in first sequence & N no. of
samples in second sequence then the no. of samples in output sequence must
be (M+N-1).
RESULT:
PRECAUTIONS:
DEPARTMENT
OF
ELECTRONICS AND COMMUNICATION
ON
AIM: Obtaining the Partial Fraction Expansion of the Z-Transform expression and
to find its Inverse Z-Transforms using MATLAB
SOFTWARE:
MATLAB 7
THEORY:
ROC of x(z) is the set of all values of z for which X(z) attains a finite value.
The inverse procedure ie, obtaining x(n) from X(z) is called the inverse Z-
transform.
By partial fraction expansion, we can write
X(z) = X1(z)+ X2(z)+ X3(z)+…..
Taking inverse Z-transform, we get
x(z) = x1(z)+ x2(z)+ x3(z)+…..
PROGRAM:
Expression the X(z) in rational from & then apply partial fraction expansion
using the function “residues”. Display the result in time-domain.
RESULT:
PRECAUTIONS:
DEPARTMENT
OF
ELECTRONICS AND COMMUNICATION
ON
AIM: Testing for the stability of given Discrete Time Systems using MATLAB
SOFTWARE:
MATLAB 7
THEORY:
STABILITY:
The roots of the denominator polynomial or the poles of the
transfer function of the linear time invariant system will determine whether
the system is stable, unstable & marginal stable. Provided that degree of the
polynomial greater than or equal to the degree of the numerical polynomial.
1. Stable system: When all the poles of the transfer function must lies in the
left half of s-plane.
2. Unstable system : If any of poles lies in right side of s-plane.
3. Marginal stable: If any poles on jw-axis in the s-plane provided the other
poles at x(s) lies in the left half s-plane.
Stability in case of Z transform: A casual linear time invariant system is
one whose unit sample response h(n) satisfies the condition h(n) = 0 , n< 0.
ROC of the Z transform of a casual sequence is the exterior of a circle.
Consequently a linear time invariant system is casual if and only if the ROC
of the system function is the exterior of a circle of radius < including the
point Z =
Necessary and sufficient condition for a linear time invariant system to
be BIBO stable is
h( n)
n
Therefore a linear time invariant system is BIBO stable if and only if the
ROC of the system function includes the units circle.
PROGRAM:
RESULT:
PRECAUTIONS:
DEPARTMENT
OF
ELECTRONICS AND COMMUNICATION
ON
AIM: To write a MATLAB program for finding out the output of two Periodic
Digital sequences using Circular Convolution. Compare your result with that
obtained by theoretical evaluation
SOFTWARE:
MATLAB 7
THEORY:
Let x1(n) and x2(n) are finite duration sequence both of length N with DFT’s
X1(K) and X2(K) . Now we find a sequence x3(n) for which the DFT is X3(K)
where,
N 1
x3 ((n)) N x1 ((m)) N x 2 ((n m)) N
m0
for 0 n (n-1)
N 1
x3 (n) x1 (m) x 2 ((n m)) N -----------------(ii)
M 0
The above equation represents the circular convolution of x1(n) and x2(n)
represents
X3(n) = x1(n)x2(n)------------------(iii)
PROGRAM:
RESULT:
PRECAUTIONS:
DEPARTMENT
OF
ELECTRONICS AND COMMUNICATION
ON
SOFTWARE:
MATLAB
THEORY:
PROGRAM:
RESULT:
PRECAUTIONS:
DEPARTMENT
OF
ELECTRONICS AND COMMUNICATION
ON
AIM: Development of the program for finding out DFT and FFT using TMS
320C6713 DSK Processor
SOFTWARE:
MATLAB 7
THEORY:
The discrete Fourier transform is a powerful computation tool which allows us
to evaluate the Fourier transform X(e i) on a digital computer or specially
designed digital hardware.
The DFT is obtained by sampling one period of the Fourier transform at a
finite number of frequency points.
The DFT of a sequence x(n) is
N 1 i 2kn
X(k) = x ( n)e ; k = 0,1,2……….N-1
n0 N
MATLAB provides a function called fft to compute the DFT of a vector x. This fft
function is written in machine language and not using MATLAB commands.
Therefore it executes very fast . If N is a power of two, then a high speed radix- 2 FFT
algorithm is employed . If N is not a power of two , then N is decomposed into prime
factor and a slower mixed – radix FFT algorithm is used . Finally if N is a prime
number then the fft function is reduced to the row DFT algorithm .
PROGRAM:
RESULT:
PRECAUTIONS:
DEPARTMENT
OF
ELECTRONICS AND COMMUNICATION
ON
AIM: To write a program and simulate using C language / assembly language for
computation of Linear Convolution using TMS 320C6713 DSK Processor
SOFTWARE:
MATLAB 7
THEORY:
The linear convolution is used to obtain the response of an LTI system for any
given input when its impulse response known . We can say that the input x(n)
is convolved with the impulse the h(n) to produce the output y(n).
The convolution sum is given by
Y(n) = x(n) * h(n) = K
x ( K ) h( n K )
PROGRAM:
RESULT:
RESULT:
PRECAUTIONS:
DEPARTMENT
OF
ELECTRONICS AND COMMUNICATION
ON
AIM: To write a program and simulate using C language / assembly language for
computation of Auto/ Cross Correlation using TMS Processor
SOFTWARE:
MATLAB 7
THEORY:
Correlation is a measure of the degree to which two sequence are similar.
Given two real-valued sequences x(n) & y(n) is a sequence γxy(ℓ) defined as
xy () x ( n) y ( n )
n
xx () x(n) x (n )
n
PROGRAM:
To develop by the students without making use of function “x corr (x,y)”.
Give imphasis on the use on the use of the conV_m function
PRECAUTIONS:
DEPARTMENT
OF
ELECTRONICS AND COMMUNICATION
ON
AIM: To write a program and simulate using C language / assembly language for
designing a Digital Filter (LP/ HP / BP / BR) using TMS 320C6713 DSK Processor
SOFTWARE:
MATLAB 7.0
THEORY:
The Butterworth low pass filter has a magnitude response given by
A
H (i)
1 ( / c )2N 1/ 2
1
AB 2 1
1 / 2 log
N= 1
2 1
AP
log( S / P )
Where AS = stop Band Gain
AP = Pass band Gain
S = Stop edge frequency
c = Pass edge frequency
S
1
1 2N
1
A 2
and cut off frequency c = S
Poles for butterworth filter.
SK = c exp[j(N+2K+1)/2N]
Where K = 0,1,2,…………….N-1
The magnitude response of the Chebyshev filter has passband & maximally
flat passband. According to the response of filter that by increasing the filter
order N, The Chebyshev response approximate the ideal response . The phase
response of the Chebyshev filter in noise non-linear than the butterworth filter
for given filter length N.
The order of the filter is given by
cosh 1 1 / AS 1 2
1 1
2
N
cos 1 ( S / P )
1
1 2
where 1 & c = P
AS 2
1
RP 10 log 2N
P
1
c
1
AS 10 log 2N
S
1
c
Rp AS
log[10 10 1) /(10 10 1)]
N
2 log( P / S )
P
C
RP
2N (10 10
1)
S
C
AS
2N (10 10
1)
The analog low pass filter is specified by the parameters P, S , AP & AS.
Therefore the essence of the design in the case of Butterworth filter is to obtain
the order N & the cutoff frequency C , given these specifications.
PROGRAM:
RESULT:
PRECAUTIONS: