# Digital Signal Processing

**Topics:**Finite impulse response, Digital signal processing, Digital filter

**Pages:**49 (5785 words)

**Published:**June 24, 2013

Digital Signal Processing Lab

III B. Tech II Semester

Prepared by

J. Sunil Kumar, P.Saritha & Ch.Sateesh kumar reddy

Department of Electronics & Communication Engineering

Turbomachinery Institute of Technology & Sciences

(Approved by AICTE & Affiliated to JNTUH) Indresam(v), Patancheru(M), Medak(Dist). Pin: 502 319

Date:…………

DSP Lab Manual ………

Turbomachinery Institute of Technology & Sciences

Certificate

This is to certify that Mr. / Ms. ………………………………….. RollNo……………..… of I/II/III/IV B.Tech I / II Semester of …………….……………………..…………branch has completed the laboratory work satisfactorily in …………………..…….……..... Lab for the academic year 20 … to 20 …as prescribed in the curriculum. Place: …………….….

Date: ……………..….

Lab In charge

Head of the Department

Principal

.

1

Turbomachinery Institute of Technology & Sciences, Hyd. 319

Date:………… LIST OF EXPERIMENTS: 1. Generation of Sinusoidal Waveform / Signal 2. To find the DFT / IDFT of given DT Signal

DSP Lab Manual ………

3. To find the frequency response of a given system in transfer function 4. Implementation of FFT of given sequence 5. Implementation of LP FIR filter for given sequence 6. Implementation of HP FIR filter for given sequence 7. Implementation of LP IIR filter for given sequence 8. Implementation of HP IIR filter for given sequence 9. Determination of power spectrum of a given sequence 10. Generation of DTMF Signals 11. Implementation of Decimation Process 12. Implementation of Interpolation Process

2

Turbomachinery Institute of Technology & Sciences, Hyd. 319

Date:…………

DSP Lab Manual ………

1. INTRODUCTION TO MATLAB.

GENERATION OF BASIC SIGNALS USING MATLAB AIM: Generation of Sine Wave & Illustration of the Sampling Process in the Time Domain EQUIPMENT REQUIRED: P – IV Computer Windows Xp SP2 MATLAB 7.0 THEORY:

3

Turbomachinery Institute of Technology & Sciences, Hyd. 319

Date:………… PROGRAM :

DSP Lab Manual ………

% Generation of Sine Wave & Illustration of the Sampling Process in the Time Domain clc; t = 0:0.0005:1; a = 10 f = 13; xa = a*sin(2*pi*f*t); subplot(2,1,1) plot(t,xa);grid xlabel('Time, msec'); ylabel('Amplitude'); title('Continuous-time signal x_{a}(t)'); axis([0 1 -10.2 10.2]) subplot(2,1,2); T = 0.01; n = 0:T:1; xs = a*sin(2*pi*f*n); k = 0:length(n)-1; stem(k,xs); grid xlabel('Time index n'); ylabel('Amplitude'); title('Discrete-time signal x[n]'); axis([0 (length(n)-1) -10.2 10.2]) a = 10 EXPECTED GRAPH:

4

Turbomachinery Institute of Technology & Sciences, Hyd. 319

Date:…………

DSP Lab Manual ………

RESULT

Viva Questions: 1. Define sinusoidal signal 2. Define C.T.S 3. Define D.T.S. 4. Compare C.T.S & D.T.S 5. Define Stem, Plot, Plot3,fplot, ezplot, linspace, flyplr, grid,mesh and legend

6. Draw the C.T.S & D.T.S diagrams

EXERCISE QUESTIONS: 1. Write program to get Discrete time Sinusoidal Signal 2. Write program to get Fourier Transform of Sinusoidal Signal 3. Write program to get Inverse Fourier Transform of Sinusoidal Signal 4. Write Program for the following Function Y=exp(-2*∏*f*t)+exp(-8*∏*f*) Y=((exp(-1.56∏f)*Sin(2∏f)+cos(2∏f)

5

Turbomachinery Institute of Technology & Sciences, Hyd. 319

Date:…………

DSP Lab Manual ………

2. DFT/IDFT of a sequence without using the inbuilt functions AIM: To find the DFT/IDFT of a sequence without using the inbuilt functions EQUIPMENT REQUIRED: P – IV Computer Windows Xp SP2 MATLAB 7.0 THEORY:

6

Turbomachinery Institute of Technology & Sciences, Hyd. 319

Date:…………

DSP Lab Manual ………

PROGRAM: %program to find the DFT/IDFT of a sequence without using the inbuilt functions clc close all; clear all; xn=input('Enter the sequence x(n)'); %Get the sequence from user ln=length(xn); %find the length of the sequence xk=zeros(1,ln); %initilise an array of same size as that of input sequence %initilise an array of same size as that of input sequence ixk=zeros(1,ln); %code block to find the...

Please join StudyMode to read the full document