You are on page 1of 27

EXPERIMENT NO:1

LINEAR CONVOLUTION

INPUT:
Enter the first sequence, x1(n)= [1 2 3 4]
Enter the second sequence, x2(n) = [2 1 2 1]

OUTPUT:
Convolution of two sequences x1 and x2
2 5 10 16 12 11 4

Raghu Institute of Technology (Autonomous), Dakamarri , Visakhapatnam 1


CIRCULAR CONVOLUTION
INPUT:
Enter the first sequence, x1(n) = [2 1 2 1 2]
Enter the second sequence, x2(n) = [1 2 3 4]

OUTPUT:
Output sequence of circular convolution, y (n) =
17 15 18 16 14

RESULT:
The linear convolution and circular of two sequences are performed using MATLAB.
EXPERIMENT NO:2
AUTO CORRELATION

INPUT:
Enter input sequence [3 4 5 6]
OUTPUT:
The values of z are =
18 39 62 86 62 39 18

CROSS CORRELATION

INPUT:
Enter the first sequence x(n) =[1 5 6 7]
Enter the second sequence y(n) =[3 4 2 1]

OUTPUT:
Cross Correlation Output =
1 7 20 42 53 46 21
RESULT :
The auto correlation and cross correlation of two sequences is performed using MATLAB.
EXPERIMENT NO:3
LINEAR CONVOLUTION USING DFT
(OVERLAP-ADD METHOD)

INPUT:
enter input sequence [1,2,-1,2,3,-2,-3,-1,1,1,2,-1]
enter impulse sequence [1,2,1,1]
Enter length of each block before appending zeros 4

OUTPUT:
The output of x(n) convolution with h(n) in overlap add method is y(n)=
Columns 1 through 12

1.0000 4.0000 4.0000 3.0000 8.0000 5.0000 -2.0000 -6.0000 -6.0000 -1.0000 4.0000
5.0000

Columns 13 through 19

1.0000 1.0000 -1.0000 0 0 0 0

(OVERLAP- SAVE METHOD)


INPUT:
enter input sequence [1,2,-1,2,3,-2,-3,-1,1,1,2,-1]
enter impulse sequence [1,2,1,1]
Enter length of each block before appending zeros 4

OUTPUT:
The output of x(n) convolution with h(n) in overlap save method is y(n)=

1 4 4 3 8 5 -2 -6 -6 -1 4 5 1 1 -1
RESULT:
The linear convolution of two sequences performed using overlap add and overlap save methods using
MATLAB.
EXPERIMENT NO:4
N-POINT DFT

INPUT:
Number of DFT points = 8
Enter the sequence x(n) = [1 2 3 4 4 3 2 1

OUTPUT:
DFT of the sequence

20.0000 + 0.0000i , -5.8284 - 2.4142i , 0.0000 - 0.0000i , -0.1716 - 0.4142i , 0.0000 -0.0000i ,-0.1716 +
0.4142i, -0.0000 - 0.0000i, -5.8284 + 2.4142i
magnitude =
20.0000 6.3086 0.0000 0.4483 0.0000 0.4483 0.0000 6.3086

Phase =
0 -2.7489 -1.5013 -1.9635 -1.5708 1.9635 -3.1085 2.7489
RESULT:
The N-point DFT of a given sequence is computed and magnitude and phase responses are plotted using
MATLAB.
EXPERIMENT NO:5
DECIMATION IN TIME RADIX-2 FFT ALGORITHM

INPUT:
Enter the sequence: [2 2 2 2 1 1 1 1]
Enter the Point:8

OUTPUT:
The DFT of a given sequence using radix-2 DIT-FFT is:
Columns 1 through 6
12.0000 + 0.0000i 1.0000 - 2.4142i 0.0000 + 0.0000i 1.0000 - 0.4142i 0.0000 + 0.0000i 1.0000 +
0.4142i
Columns 7 through 8
0.0000 + 0.0000i 1.0000 + 2.4142i

RESULT:
The DFT of a given sequence computed using radix-2 DIT-FFT using MATLAB.
EXPERIMENT NO:6
DECIMATION IN FREQUENCY RADIX-2 FFT ALGORITHM

INPUT:
Enter the sequence: [2 2 2 2 1 1 1 1]
Enter the Point:8

OUTPUT:
The DFT of a given sequence using radix-2 DIF-FFT is:
Columns 1 through 6
12.0000 + 0.0000i 1.0000 - 2.4142i 0.0000 + 0.0000i 1.0000 - 0.4142i 0.0000 + 0.0000i 1.0000 +
0.4142i
Columns 7 through 8
0.0000 + 0.0000i 1.0000 + 2.4142i

RESULT:
The DFT of a given sequence computed using radix-2 DIF-FFT using MATLAB.
EXPERIMENT NO:7
IIR -LOW PASS FILTER

INPUT:
Enter the pass band frequency, fp= 400
Enter the stop band frequency, fs= 800
Enter the pass band ripple,rp= 0.4
Enter the stop band ripple, rs= 30
Enter the sample frequency 2000

OUTPUT:

HIGH PASS FILTER


INPUT:
Enter the pass band frequency, fp= 400
Enter the stop band frequency, fs= 800
Enter the pass band ripple,rp= 0.4
Enter the stop band ripple, rs= 30
Enter the sample frequency 2000
OUTPUT:

RESULT:
The IIR Low pass and High pass filter, magnitude and phase responses computed using MATLAB.
EXPERIMENT NO:8
FIR -LOW PASS FILTER

INPUT
Enter passband ripple 0.02
Enter the stopband ripple 0.01
Enter passband frequency 1000
Enter stopband frequency 1500
Enter sampling frequency 10000
Enter beta value 14
Enter your choice of window function 1. rectangular 2. triangular 3.kaiser
OUTPUT:
1.Rectangular window filter response
2.Triangular window filter response

3. kaiser window filter response

FIR HIGH PASS FILTER:


OUTPUT:

Enter your choice of window function 1. rectangular 2. triangular 3. kaiser


1.Rectangular window filter response

2.Triangular window filter response


3. kaiser window filter response

RESULT:
The FIR Low pass and High pass filter magnitude and phase responses computed using MATLAB.
EXPERIMENT NO:9
DECIMATION PROCESS

INPUT:

enter the downsampling factor 5

enter the length of the input signal 100

enter the frequency of first sinusoidal 0.043

enter the frequency of second sinusoidal 0.031

OUTPUT:

INTERPOLATION PROCESS
INPUT:

enter the upsampling factor 10

enter the length of the input signal 20

enter the frequency of first sinusoidal 0.03

enter the frequency of second sinusoidal 0.58


OUTPUT:

RESULT:
The decimation and interpolation of a given sequence is computed using MATLAB.
EXPERIMENT NO:10
I/D SAMPLING RATE CONVERSION
INPUT:

enter the length of the input signal 100

enter the frequency of first sinusoidal 0.043

enter the frequency of second sinusoidal 0.012

enter the upsampling factor 3

enter the downsampling factor 10

OUTPUT:

RESULT:
The I/D sampling rate conversion is implemented using MATLAB.
EXPERIMENT NO:11
MAC OPERATION USING VARIOUS ADDRESSING MODES
USING DSP PROCESSOR

ADDITION:
INPUT:
Data Memory: A000h 0004h
A001h 0004h

OUTPUT:
Data Memory: A002h 0008h

SUBTRACTION:
INPUT:
Data Memory: A000h 0004h
A001h 0002h
OUTPUT:
Data Memory: A002h 0002h

RESULT:
Thus, the MAC operat ion using various addressing modes of DSP processor TMS320C6713 is
performed
EXPERIMENT NO:12
UP-SAMPLING AND DOWN-SAMPLING IN DSP PROCESSOR

SHOULD WRITE THIS AIM INSTEAD OF AIM WHICH IS THERE IN SOFT COPY OF
LAB MANUAL
AIM: To perform the up-sampling and down-sampling of given discrete sequence in TMS320C6713
KIT

DECIMATION:
INPUT:
Enter the No of input vector: 10⇒ Enter.
Enter sampling value: 2⇒ Enter.
Enter values for i/p x(n): – 1 2 3 4 5 6 7 8 9 ⇒ Enter.
OUTPUT:

The first order decimation values are y[1]=1


The first order decimation values are y[2]=3
The first order decimation values are y[3]=5
The first order decimation values are y[4]=7
The first order decimation values are y[5]=9
***ALL Tests Passed***

INTERPOLATION:
INPUT:

Enter the input vector values: 10 ⇒ Enter.


Enter sampling value: 2 ⇒ Enter.
Enter values for i/p x(n): 1 2 3 4 5 6 7 8 9 0 ⇒ Enter.
OUTPUT:
The Value of output ty[1]=1
The Value of output ty[2]=0
The Value of output ty[3]=2
The Value of output ty[4]=0
The Value of output ty[5]=3
The Value of output ty[6]=0
The Value of output ty[7]=4
The Value of output ty[8]=0
The Value of output ty[9]=5
The Value of output ty[10]=0
The Value of output ty[11]=6
The Value of output ty[12]=0
The Value of output ty[13]=7
The Value of output ty[14]=0
The Value of output ty[15]=8
The Value of output ty[16]=0
The Value of output ty[17]=9
The Value of output ty[18]=0
The Value of output ty[19]=0
The Value of output ty[20]=0
***ALL Tests Passed***

RESULT:
The up-sampling and down-sampling of given discrete sequence in TMS320C6713 KIT are
performed

SHOULD WRITE ABOVE RESULT IN RECORD AS WELL AS


OBSERVATION PRINT OUT

You might also like