Vous êtes sur la page 1sur 29

Department of

Information and Communication Technology/


School of Computing ,SASTRA

BICCIC605 DIGITAL SIGNAL


PROCESSING LAB
BICCIC 605 DIGITAL SIGNAL
PROCESSING LAB
OBJECTIVE OF THE COURSE
*To implement some important concepts of DSP
- using MATLAB commands
-using digital signal processor(TMS320C50)
-using simulink
List of Experiments
USING MATLAB
1. Generation of CT and DT Signals-step, ramp,
impulse, exponential, sine, cosine, square, saw
tooth, triangular.
2. Finding FFT and IFFT - DIT ,DIF algorithm
3. Linear and Circular Convolution
4. Filtering of long data sequences- overlap save
and overlap add method
5. Design of FIR filters - window & frequency
sampling method.
6. Design of Butterworth IIR filter-
LPF,HPF,BPF,BSF
USING TMS320C5X DSP processor
7.Waveform generation- sine, cosine, square.
8.Arithmetic operations-addition, subtraction
9.Linear Convolution
10.Circular Convolution
USING SIMULINK blocks
11.Solving second order differential
equations.
12.LPF filter design
OUTLINE
Aim
Prerequisite
Prelab
Tools Required
Theory or Introductory Information
Algorithm
Additional Exercise
1.Generation of CT& DT signals
Aim
To generate CT & DT signals using MAT LAB functions
Tools Required
MATLAB software
Prelab
-Theory and expression for Elementary signals.
2.FFT/IFFT
Aim
To calculate FFT/IFFT of signals using MAT LAB
functions
Tools Required
MATLAB software
Prelab
-Theory about FFT/IFFT
- Manual calculation of FFT/IFFT for simple sequence
2.FAST FOURIER TRANSFORM

Matlab functions required


fft(), ifft(),disp(),subplot,plot()
Theory
The basic idea of FFT is,
To decompose successively the N-point DFT into smaller
size DFTs.
To take the advantage of the periodicity of the complex
number wn^kn.
Advantage of such decompositions result in significant
savings in the computational complexity.
3.a)LINEAR CONVOLUTION OF TWO
SEQUENCES

Aim
To calculate linear convolution using
MAT LAB functions
Tools Required
MATLAB software
Prelab
-Theory about linear convolution
- Manual calculation of linear convolution for
simple sequence
3.b)CIRCULAR CONVOLUTION OF TWO
SEQUENCES

Aim
To calculate circular convolution using
MATLAB functions
Tools Required
MATLAB software
Prelab
-Theory about circular convolution
- Manual calculation of circular convolution for
simple sequence
4.Filtering of long data sequences-
overlap save and overlap add method
Aim
To calculate overlap add and overlap save using
MAT LAB functions
Tools Required
MATLAB software
Prelab
-Theory about filtering of long data sequences
- Manual calculation for simple sequence
5.WINDOW BASED FIR FILTER
DESIGN(LPF,HPF,BPF,BSF)
(Using windows
Boxcar,triangular,Hanning,HammingBlackman)
Aim
To design FIR filters using different windows with
MATLAB functions
Tools Required
MATLAB software
Prelab
-Theory about LPF,HPF, BPF and BSF
-Different windowing function and procedure for FIR filter
design
5.WINDOW BASED FIR FILTER
DESIGN(LPF,HPF,BPF,BSF)
Matlab functions Used
-input(), disp(), hanning() hamming(), boxcar(),
Blackman(), plot, subplot, xlabel(), ylabel(), fir1(),
freqz(), title()

Theory
The frequency response of a digital filter H(exp(jw)) is
written as a Fourier series in the form:
H(exp(jw))=h(n)*exp(-jwn)
We use a finite weighing sequence called a window to
modify Fourier co-efficient to control the convergence of
the Fourier series ^h(n)=h(n)*w(n) -M<=n<=M
6. IIR FILTER DESIGN
Aim
To design IIR filters with MATLAB functions
Tools Required
MATLAB software
Prelab
-Theory about LPF,HPF, BPF and BSF
-Different IIR filter design equations for elliptical,
Butterworth, Chebyshev Type I and II
6. IIR FILTER DESIGN
Matlab Functions Used
input(), disp(),plot, subplot, xlabel(), ylabel(), fir1(),
freqz(), title(),abs(),butter(), butterord(), title(),
angle(),cheby(),cheb1ord(), ellip(), ellipord()
Algorithm
1.Get the order of the filter
2.Get the pass band & stop band ripples
6. IIR FILTER DESIGN
3.Get the pass band edge frequency
4.Obtain the numerator &denominator polynomials
5.Plot the magnitude & phase response.
Additional Exercise
Testing the designed filter response with sample sequence
Experiments using

Digital Signal Processor kit


7.WAVEFORM GENERATION-sine, cosine, square

Aim
To generate waveform using DS Processor

Prerequisite
Implementation knowledge for waveform generation
Tools, Hardware and Software required
DSP Hardware
-TMS320C50-Starter kit
-RS 232 cable
8.ARITHMETIC OPERATIONS-
ADDITION,SUBTRACTION

Aim
To perform arithmetic operations-addition,subtraction
using DS Processor

Prerequisite
Knowledge about instruction set of DS Processor
Tools, Hardware and Software required
DSP Hardware
-TMS320C50-Starter kit
-RS 232 cable
9.LINEAR CONVOLUTION OF TWO SEQUENCES

Aim
To obtain the linear convolution of the given two
sequences
Prerequisite
Introduction to arithmetic instruction set of TMS320C5x
processor

Prelab
* Formula for linear convolution
* Theoretical calculation of simple sequence like x(n)=
{1,2,3,4} and h(n)={4,3,2,1}
9.LINEAR CONVOLUTION OF TWO SEQUENCES

Tools, Hardware and Software required


DSP Hardware
-TMS320C50-Starter kit
-RS 232 cable

Theory
The convolution sum of two sequences of a LTI system is
given by y[n]=[summation of (x[k].h[n-k]); from k=- to
]

Algorithm
1.Get the signals x(m) and h(n) in matrix form
2.The convoluted signal y(n)=Summation of[x(k)h(n-k)],
where n=0 to (m+n-1)
9.LINEAR CONVOLUTION OF TWO SEQUENCES

4.Perform linear convolution using multiply and


accumulate instruction

5.Repeat the above step m+n-1 times and store the result
in the accumulator

4.Stop
10.CIRCULAR CONVOLUTION OF TWO
SEQUENCES

Aim
To obtain the circular convolution of the given two
sequences

Prerequisite
Introduction to arithmetic instruction set of TMS320C5x
processor

Prelab

* Formula for circular convolution


* Theoretical calculation of simple sequence like x(n)=
{1,2,3,4} and h(n)={4,3,2,1}
10.CIRCULAR CONVOLUTION OF TWO
SEQUENCES

Tools, Hardware and Software required


DSP Hardware
-TMS320C50-Starter kit
-RS 232 cable

Theory
If x(n) and h(n) are the two periodic sequences of period
N with DFT
X( k)=summation of x(n). W^(-nk);n=0 to N-1;
h( k)=summation of h(n). W^(-nk);n=0 to N-1;
Where W= ^(-j2 /N)
]
10.CIRCULAR CONVOLUTION OF TWO
SEQUENCES

then the N point DFT of the sequences y(n), defined as the


circular or periodic convolution of x(n) and h(n);
ie.y(m)=[summation of h[(m-n)].x[n
Algorithm
1.Get the signals x(m) and h(n)
2.Get the counts for x(n) and h(n)
3.Enable the circular buffer
4.Perform circular convolution using mac instruction
5.Store the result in DM
6.Stop
Addiitional Exercise
Circular convolution of 2 sequences with unequal length
Experiments using

MATLAB SIMULINK
11.SOLVING SECOND ORDER DIFFERENTIAL
EQUATIONS

Aim
To find the solution for second order differential
equations

Prerequisite
To know the knowledge about differential
equation.

Software required
MATLAB- simulink toolboxes
12.LOW PASS FILTER DESIGN

Aim
To design the low pass filter from the given
specifications.
Prerequisite
To know the knowledge about digital filter.

Software required
MATLAB- simulink toolboxes
THANK YOU

Vous aimerez peut-être aussi