Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
50 views5 pages

DSP Exp4

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 5

DIGITAL SIGNAL PROCESSING

LABORATORY (EEEB363)
EXP 4: Introduction to Digital Signal
Processing (DSP) Starter Kit.
NAME: MOHAMED OSAMA HABIB
NAME : OSAMA SHARAF

ID:- EP089120
ID :- EE092991

SECTION :- 01C
LECTURE : Assoc. Prof. ZAINUL ABIDIN SHARRIF

DIGITAL SIGNAL PROCESSING LABORATORY (EEEB363)


EXP 4: Introduction to Digital Signal Processing (DSP) Starter Kit.

Display Single Time graph using CCS:

Display FFT graph using CCS:

Two Channel Digital Storage Oscilloscope Output:

Project Assignment

Write a program to generate a cosine with frequency of 666.66 Hz. Use the same sampling
frequency of 8000Hz. Verify your output result using LINE OUT, and plotting the generated
cosine in both time and the frequency domains.
//sine8_buf cosine generation. Output buffer plotted within CCS
#include "dsk6713_aic23.h"
//support file for codec,DSK
Uint32 fs=DSK6713_AIC23_FREQ_8KHZ;
//set sampling rate
int loop = 0;
//table index
short gain = 10;
//gain factor
short sine_table[8]={1000,866.03,500.01,0.02,-499.98,-866.01,-1000,-866.04};//cosine values
short out_buffer[256];
//output buffer
const short BUFFERLENGTH = 256;
//size of output buffer
int i = 0;
//for buffer count
interrupt void c_int11()
//interrupt service
routine
{
output_sample(sine_table[loop]*gain);
//output sine values
out_buffer[i] = sine_table[loop]*gain;
//output to buffer
i++;
//increment buffer count
if(i==BUFFERLENGTH) i=0;
//if @ bottom reinit
count
if (loop < 7) ++loop;
//check for end of table
else loop = 0;
//reinit table index
return;
//return from interrupt
}
void main()
{
comm_intr();
while(1);
}

Display FFT graph using CCS:

//init DSK, codec, McBSP


//infinite loop

Two Channel Digital Storage Oscilloscope Output:

You might also like