DEPARTMENT OF
ELECTRONICS AND COMMUNICATION ENGINEERING
--- Content provided by FirstRanker.com ---
EC6511 - DIGITAL SIGNAL PROCESSING LABORATORY
V SEMESTER - R 2013
LABORATORY MANUAL
Name : _________________________
Register No.: _________________________
--- Content provided by FirstRanker.com ---
Section : _________________________
VISION
is committed to provide highly disciplined, conscientious and enterprising professionals conforming to global standards through value based quality education and training.
MISSION
--- Content provided by FirstRanker.com ---
- To provide competent technical manpower capable of meeting requirements of the industry
- To contribute to the promotion of Academic Excellence in pursuit of Technical Education at different levels
- To train the students to sell his brawn and brain to the highest bidder but to never put a price tag on heart and soul
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
VISION
--- Content provided by FirstRanker.com ---
To impart professional education integrated with human values to the younger generation, so as to shape them as proficient and dedicated engineers, capable of providing comprehensive solutions to the challenges in deploying technology for the service of humanity
MISSION
- To educate the students with the state-of-art technologies to meet the growing challenges of the electronics industry
- To carry out research through continuous interaction with research institutes and industry, on advances in communication systems
- To provide the students with strong ground rules to facilitate them for systematic learning, innovation and ethical practices
--- Content provided by FirstRanker.com ---
PROGRAMME EDUCATIONAL OBJECTIVES (PEOS)
- Fundamentals
To provide students with a solid foundation in Mathematics, Science and fundamentals of engineering, enabling them to apply, to find solutions for engineering problems and use this knowledge to acquire higher education
- Core Competence
To train the students in Electronics and Communication technologies so that they apply their knowledge and training to compare, and to analyze various engineering industrial problems to find solutions
--- Content provided by FirstRanker.com ---
- Breadth
To provide relevant training and experience to bridge the gap between theory and practice which enables them to find solutions for the real time problems in industry, and to design products
- Professionalism
To inculcate professional and effective communication skills, leadership qualities and team spirit in the students to make them multi-faceted personalities and develop their ability to relate engineering issues to broader social context
- Lifelong Learning/Ethics
To demonstrate and practice ethical and professional responsibilities in the industry and society in the large, through commitment and lifelong learning needed for successful professional career
--- Content provided by FirstRanker.com ---
PROGRAMME OUTCOME (POS)
- To demonstrate and apply knowledge of Mathematics, Science and engineering fundamentals in Electronics and Communication Engineering field
- To design a component, a system or a process to meet the specific needs within the realistic constraints such as economics, environment, ethics, health, safety and manufacturability
- To demonstrate the competency to use software tools for computation, simulation and testing of electronics and communication engineering circuits
- To identify, formulate and solve electronic and communication engineering problems
- To demonstrate an ability to visualize and work on laboratory and multidisciplinary tasks
- To function as a member or a leader in multidisciplinary activities
- To communicate in verbal and written form with fellow engineers and society at large
- To understand the impact of Electronics and Communication Engineering in the society and demonstrate awareness of contemporary issues and commitment to give solutions exhibiting social responsibility
- To demonstrate professional & ethical responsibilities
- To exhibit confidence in self-education and ability for lifelong learning
- To participate and succeed in competitive exams
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
EC6511- DIGITAL SIGNAL PROCESSING LABORATORY
SYLLABUS
COURSE OBJECTIVES
- To implement linear and circular convolution
- To implement FIR and IIR filters
- To study the architecture of DSP processor
- To demonstrate finite word length effect
--- Content provided by FirstRanker.com ---
LIST OF EXPERIMENTS:
- Generation of sequences (functional & random) & correlation
- Linear and circular convolutions
- Spectrum analysis using DFT
- FIR filter design
- IIR filter design
- Multirate filters
- Equalization
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
DSP PROCESSOR BASED IMPLEMENTATION
- Study of architecture of digital signal processor
- MAC operation using various addressing modes
- Linear convolution
- Circular convolution
- FFT Implementation
- Waveform generation
- IIR and FIR implementation
- Finite word length effect
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
COURSE OUTCOME
- Carry out simulation of DSP systems
- Demonstrate their abilities towards DSP processor based implementation of DSP system
- Analyze finite word length effect on DSP systems
- Demonstrate the applications of FFT to DSP
--- Content provided by FirstRanker.com ---
EC6511 – DIGITAL SIGNAL PROCESSING LABORATORY
CONTENTS
Sl.No. | Name of the Experiment | Page No. |
---|---|---|
CYCLE 1 – EXPERIMENTS | ||
1 | Generation of signals | 6 |
2 | Linear and Circular Convolution of two sequences | 11 |
3 | Spectrum analysis using DFT | 15 |
4 | Design of FIR filters | 17 |
5 | Design of IIR filters | 21 |
6 | Multirate filters | 24 |
7 | Equalization | 26 |
CYCLE 2 – EXPERIMENTS | ||
8 | Study of DSP processor TMS320C50 | 28 |
9 | MAC operations using various addressing modes | 33 |
10 | Implementation of Linear Convolution | 36 |
11 | Implementation of Circular Convolution | 38 |
12 | Calculation of FFT | 40 |
13 | Waveform Generation | 43 |
14 | Implementation of IIR and FIR filters | 46 |
15 | Analysis of Finite Word Length Effects in fixed point DSP systems | 50 |
ADDITIONAL EXPERIMENTS BEYOND THE SYLLABUS | ||
16 | Decimation by Polyphase Decomposition | 53 |
17 | Sampling of signals | 55 |
Expt.No.1
--- Content provided by FirstRanker.com ---
GENERATION OF SIGNALS
Aim:
To write a program to generate the following sequences and to verify using MATLAB
- Sine wave
- Cosine wave
- Ramp signal
- Exponential signal
- Impulse signal
- Step signal
- Saw tooth signal
- Rectangular signal
- Random sequence
- Auto correlation
- Cross correlation
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Apparatus required:
--- Content provided by FirstRanker.com ---
PC with MATLAB software
Theory:
A signal is defined as any physical quantity that varies with time, space or any other independent variable or variables. Mathematically, we describe a signal as a function of one or more independent variables.
A system may be defined as a physical device that performs an operation on a signal. It can also be regarded as a process that transforms one signal into another. The input to a system and the output from a system are signals.
Algorithm:
--- Content provided by FirstRanker.com ---
Sine Wave Generation:
- Start
- Get the frequency and range of time ‘t'.
- Determine the values of the sine function.
- Plot the graph for obtained values in continuous and discrete forms.
--- Content provided by FirstRanker.com ---
- Label the x and y axes.
- Stop
Cosine Wave Generation:
- Start
- Get the frequency and range of time 't'
- Determine the values of the cosine function.
- Plot the graph for obtained values in continuous and discrete forms.
- Label the x and y axes.
- Stop
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Ramp Signal Generation:
- Start
- Get the amplitude and range of time 't'.
- Assign the ramp signal output equal to input time.
- Plot the graph for the obtained values in continuous and discrete forms.
- Label the x and y axes.
- Stop
--- Content provided by FirstRanker.com ---
Exponential Signal Generation:
- Start
- Get the amplitude and ranges of time 't'.
- Determine the values of the exponential function.
- Plot the graph for the obtained values in continuous and discrete forms.
- Label the x and y axes.
- Stop
--- Content provided by FirstRanker.com ---
Unit Impulse Signal Generation:
--- Content provided by FirstRanker.com ---
- Start
- Get the ranges of time 't'.
- Determine the values of the unit impulse signal.
- Plot the graph for the obtained values in discrete form.
- Label the x and y axes.
- Stop
--- Content provided by FirstRanker.com ---
Step Signal Generation:
- Start
- Get the amplitude and ranges of time 't'.
- Determine the values of the unit step signal.
- Multiply the unit step signal with given amplitude.
- Plot the graph for the resultant values in continuous and discrete forms.
- Label the x and y axes.
- Stop
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Saw tooth Signal Generation:
- Start
- Get the ranges of time 't'.
- Determine the values of the saw tooth signal.
- Plot the graph for the obtained values in discrete form.
- Label the x and y axes.
- Stop
--- Content provided by FirstRanker.com ---
Rectangular Signal Generation:
- Start
- Get the amplitude and ranges of time 't'.
- Determine the values of the rectangular signal.
- Multiply the unit step signal with given amplitude.
- Plot the graph for the resultant values in continuous and discrete forms.
- Label the x and y axes.
- Stop
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Random Sequence:
- Start
- Get the length of input sequence.
- Generate random signals of the specified length
- Plot the graph for the resultant values in discrete form.
- Label the x and y axes.
- Stop
--- Content provided by FirstRanker.com ---
Auto Correlation:
- Start
- Get the length of input sequence.
- Generate a rectangular signal of given length.
- Calculate auto correlation of the rectangular signal.
- Plot the graph for the resultant values in discrete forms.
- Label the x and y axes.
- Stop
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Cross Correlation:
- Start
- Get the length of input sequence.
- Generate sinusoidal and cosine waveforms of given length.
- Calculate cross correlation of the two signals.
- Plot the graph for the resultant values in discrete forms.
- Label the x and y axes.
- Stop
--- Content provided by FirstRanker.com ---
Procedure:
--- Content provided by FirstRanker.com ---
- Click on the MATLAB Icon on the desktop.
- Click on the 'FILE' Menu on menu bar
- Click on NEW M-File from the file Menu.
- Save the file in directory.
- Click on DEBUG from Menu bar and Click Run.
- Open the command window\ Figure window for the output.
--- Content provided by FirstRanker.com ---
Result:
Thus the signal waveforms were analyzed for the given input.
Outcome:
After finishing this experiment the students are able to
--- Content provided by FirstRanker.com ---
- Generate elementary signals/ waveforms.
- Perform arithmetic operations on signals.
Applications:
- Aerospace and avionics
- Defence applications
- Wireless communication
- Radar
- GPS
--- Content provided by FirstRanker.com ---
Viva-voce
--- Content provided by FirstRanker.com ---
- Expand MATLAB
- What is MATLAB? Where is MATLAB applicable?
- What is MATLAB API?
- What is M-file and MEX files in MATLAB?
- List the operators of MATLAB.
- Name the graphic system used in MATLAB.
- What is disp() and input()?
- What is the syntax to find the rank of the matrix
- What is the function of clear all and close all?
- Define – Continuous time signal
- Define – Discrete time signal
- Define – Impulse function
- Define – Unit step function
- What is a ramp function?
- Define - Delta function
- What are the basic operations that can be performed over the signals?
- List the types of discrete time signals.
- List the types of continuous time signals.
- What is an exponential function?
- What are the types of program files that MATLAB allows to write?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Expt. No. 2
LINEAR AND CIRCULAR CONVOLUTION OF TWO SEQUENCES
Aim:
To write a program to perform the following convolutions and to verify using MATLAB
--- Content provided by FirstRanker.com ---
- Linear convolution
- Circular convolution
- Linear convolution using circular convolution
- Linear convolution using DFT
- Circular convolution using DFT
--- Content provided by FirstRanker.com ---
Apparatus Required:
PC with MATLAB software
Algorithm:
Linear Convolution:
- Start
- Get the two input sequences.
- Obtain the linear convolution of two sequences
- Calculate the lengths of input sequences
- Assign the length of resultant sequence(N) equal to length of first sequence (L) + length of second sequence (M) – 1 (N = L + M – 1)
- Plot the input sequences and output sequence in discrete form corresponding to their lengths.
- Label the x and y axes
- Display the resultant sequence values.
- Stop
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Circular Convolution:
- Start
- Get the two input sequences.
- Check the maximum length (N) of two sequences.
- By zero padding, make both the two sequences with equal length (N).
- Calculate circular convolution of equal length sequences.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
- Plot the input sequences and output sequence in discrete form corresponding to their lengths.
- Label the x and y axes.
- Display the resultant sequence values.
- Stop
Linear Convolution using Circular Convolution:
--- Content provided by FirstRanker.com ---
- Start
- Get the two input sequences.
- Calculate the lengths of input sequences.
- Assign the length of resultant sequence(N) equal to length of first sequence(L)+ length of second sequence(M) – 1 (N = L + M - 1)
- By zero padding, make both the two sequences with equal length (N).
- Obtain the circular convolution of two sequences.
- Plot the input sequences and output sequence in discrete form corresponding to their lengths.
- Label the x and y axes.
- Display the resultant sequence values.
- Stop
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Linear Convolution using DFT method:
- Start.
- Get the two input sequences.
- Calculate the lengths of input sequences.
- Assign the length of resultant sequence(N) equal to length of first sequence(L) + length of second sequence(M) - 1 (N = L + M-1)
- By zero padding, make both the two sequences with equal length (N).
- Calculate the N-point FFT of two sequences.
- Multiply the two FFTs.
- Calculate the N-point IFFT of the sequence.
- Plot the input sequences and output sequences FFT and IFFT in discrete form corresponding to their lengths.
- Label the x and y axes.
- Display the resultant sequence values.
- Stop.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Circular Convolution using DFT method:
--- Content provided by FirstRanker.com ---
- Start
- Get the two input sequences.
- Calculate the lengths of input sequences.
- By zero padding, make both the two sequences with equal length (N).
- Calculate the N-point FFT of two sequences.
- Multiply the two FFTs.
- Calculate the N-point IFFT of the sequence.
- Plot the input sequences and output sequences FFT and IFFT in discrete form corresponding to their lengths.
- Label the x and y axes.
- Display the resultant sequence values.
- Stop.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Procedure:
- Get two signals x(n) and h(n) in matrix form.
- The convolute signal is denoted as y(n).
- y(n) is given by the formula
- n = length(X) returns the size of the longest dimension of X. If X is a vector, this is the same as its length.
- w = conv (u,v) convolves vectors u and v. Algebraically, convolution is the same operation as multiplying the polynomials whose coefficients are the elements of u and v. [subplot divides the current figure into rectangular panes that are numbered row wise]
- Stop the program
--- Content provided by FirstRanker.com ---
Result:
Thus the linear and circular convolution of the given two sequences was performed using MATLAB.
--- Content provided by FirstRanker.com ---
Outcome:
After finishing this experiment the students are able to implement convolution of given sequences using linear, circular, linear using circular, linear convolution using DFT method, circular convolution using DFT method.
Applications:
- Finding the response of LTI systems
- Spectral analysis
- Study of system behavior
- Frequency response of systems
--- Content provided by FirstRanker.com ---
Viva-voce
- What is the difference between linear convolution and circular convolution?
- List the methods of linear convolution.
- List the steps to perform linear convolution using circular convolution.
- Define - Convolution
- What are the properties of convolution?
- What is zero padding in convolution?
- What is the difference between convolution & correlation?
- What is half wave symmetry?
- What is Dirchlet condition?
- How to compute maximum length N for a circular convolution using DFT and IDFT.
- What is sectioned convolution?
- What is the advantage of sectioned convolution?
- How to perform linear convolution using circular convolution?
- What is the difference between linear shifting and circular shifting of signal?
- What is the length of output sequence after circular convolution?
- State the circular convolution property of DFT
- What is circular convolution?
- What is the length of output sequence after linear convolution?
- List the properties of linear and circular convolution.
- What is linear convolution?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Expt.No.3
SPECTRUM ANALYSIS USING DFT
Aim:
To write a program to analyze the spectrum of a signal using Discrete Fourier Transform (DFT) and Fast Fourier Transform (FFT) using MATLAB
Apparatus Required:
--- Content provided by FirstRanker.com ---
PC with MATLAB software
Algorithm:
- Start
- Get the input sequence.
- Obtain the DFT of input sequence.
- Find the magnitude and phase response of the DFT.
- Plot the magnitude and phase in continuous and in discrete forms.
- Stop
--- Content provided by FirstRanker.com ---
Procedure:
- Enter the program in workspace.
- Save and Run it in .m files.
- Observe the output in command window or in figure window.
--- Content provided by FirstRanker.com ---
Result:
Thus the spectrum of a signal was analyzed using Discrete Fourier Transform (DFT).
Outcome:
--- Content provided by FirstRanker.com ---
After finishing this experiment the students are able to analyze the spectrum of the signal using Discrete Fourier Transform (DFT)
Applications:
- Spectral analysis of biomedical signals, RF signals, speech and seismic signals
- Implementation of filters using circuits
- Correlation of sequences in RADAR
--- Content provided by FirstRanker.com ---
- Digital communication systems for TV broadcasting
Viva-voce
- What is the difference between DFT and IDFT?
- Differentiate DIT from DIF algorithm.
- What is decimation in frequency?
- What is decimation in time?
- How many multiplication terms are required to perform DFT by expressional method and FFT method?
- How many stages are required for 8 point DFT?
- Compute inverse DFT of X(k) = {3,4,5,6}.
- How to calculate output of DFT using MATLAB?
- List the properties of FFT.
- List the properties of DFT
- What is the difference between FFT and IFFT?
- What is "Bit reversal"?
- List the advantages of FFT.
- When the DFT X(k) of a sequence x(n) is imaginary?
- What's the difference between FFT and DFT?
- Define - Discrete Fourier series
- When the DFT X(k) of a sequence x(n) is real?
- What is the importance of FFT in OFDMA technology?
- What is the advantage of Fourier transform in DSP?
- What is twiddle factor?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Expt.No.4
--- Content provided by FirstRanker.com ---
DESIGN OF FIR FILTERS
Aim:
To write a program to design and obtain the magnitude and phase responses for the given FIR filter using MATLAB
Apparatus Required:
PC with MATLAB software
--- Content provided by FirstRanker.com ---
Algorithm:
Low pass filter using rectangular window
- Get the pass band and stop band edge frequencies.
- Get the sampling frequency
- Get the order of the filter (N)
- Find the window co-efficient using the MATLAB function boxcar (N)
- Draw the magnitude and phase response.
--- Content provided by FirstRanker.com ---
High pass filter using rectangular window
- Get the pass band and stop band edge frequencies.
- Get the sampling frequency
- Get the order of the filter (N)
- Find the window co-efficient using the MATLAB function boxcar (N)
- Draw the magnitude and phase response.
--- Content provided by FirstRanker.com ---
Band pass filter using rectangular window
- Get the pass band and stop band edge frequencies.
- Get the sampling frequency
- Get the order of the filter (N)
- Find the window co-efficient using the MATLAB function boxcar (N)
- Draw the magnitude and phase response.
--- Content provided by FirstRanker.com ---
Band stop filter using rectangular window
--- Content provided by FirstRanker.com ---
- Get the pass band and stop band edge frequencies.
- Get the sampling frequency
- Get the order of the filter (N)
- Find the window co-efficient using the MATLAB function boxcar (N)
- Draw the magnitude and phase response.
--- Content provided by FirstRanker.com ---
Low pass filter using hamming window
- Get the pass band and stop band edge frequencies.
- Get the sampling frequency
- Get the order of the filter (N)
- Find the window co-efficient using the MATLAB function hamming (N)
- Draw the magnitude and phase response.
--- Content provided by FirstRanker.com ---
High pass filter using hamming window
- Get the pass band and stop band edge frequencies.
- Get the sampling frequency
- Get the order of the filter (N)
- Find the window co-efficient using the MATLAB function hamming (N)
- Draw the magnitude and phase response.
--- Content provided by FirstRanker.com ---
Band pass filter using hamming window
- Get the pass band and stop band edge frequencies
- Get the sampling frequency
- Get the order of the filter (N)
- Find the window co-efficient using the MATLAB function hamming (N)
- Draw the magnitude and phase response.
--- Content provided by FirstRanker.com ---
Band stop filter using hamming window
--- Content provided by FirstRanker.com ---
- Get the pass band and stop band edge frequencies.
- Get the sampling frequency
- Get the order of the filter (N)
- Find the window co-efficient using the MATLAB function hamming (N)
- Draw the magnitude and phase response.
--- Content provided by FirstRanker.com ---
Low pass filter using Hanning window
- Get the pass band and stop band edge frequencies.
- Get the sampling frequency
- Get the order of the filter (N)
- Find the window co-efficient using the MATLAB function Hanning (N)
--- Content provided by FirstRanker.com ---
- Draw the magnitude and phase response.
High pass filter using Hanning window
- Get the pass band and stop band edge frequencies.
- Get the sampling frequency
- Get the order of the filter (N)
- Find the window co-efficient using the MATLAB function Hanning (N)
- Draw the magnitude and phase response.
--- Content provided by FirstRanker.com ---
Band pass filter using Hanning window
- Get the pass band and stop band edge frequencies.
- Get the sampling frequency
- Get the order of the filter (N)
- Find the window co-efficient using the MATLAB function Hanning (N)
- Draw the magnitude and phase response.
--- Content provided by FirstRanker.com ---
Band stop filter using Hanning window
--- Content provided by FirstRanker.com ---
- Get the pass band and stop band edge frequencies.
- Get the sampling frequency
- Get the order of the filter (N)
- Find the window co-efficient using the MATLAB function Hanning (N)
- Draw the magnitude and phase response.
--- Content provided by FirstRanker.com ---
Procedure:
- Enter the program in workspace.
- Save and Run it in .m files.
- Observe the output in figure window.
Result:
--- Content provided by FirstRanker.com ---
Thus the FIR filter was designed for the given specifications and its magnitude and phase responses were observed.
Outcome:
After finishing this experiment the students are able to:
- Able to Implement Low pass, High pass and Band
This download link is referred from the post: Anna University B.Tech Lab Manual
--- Content provided by FirstRanker.com ---