0% found this document useful (0 votes)
55 views

DSP Exp4

This document is a lab report for an experiment on digital signal processing. It includes the names and student IDs of two students, their section and lecturer. It describes generating a cosine wave with a frequency of 666.66 Hz using a sample rate of 8000 Hz. It includes code to output the cosine values to a buffer and interrupt service routine. It asks to verify the output in the time and frequency domains using line out and plotting.

Uploaded by

Omer Hamza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views

DSP Exp4

This document is a lab report for an experiment on digital signal processing. It includes the names and student IDs of two students, their section and lecturer. It describes generating a cosine wave with a frequency of 666.66 Hz using a sample rate of 8000 Hz. It includes code to output the cosine values to a buffer and interrupt service routine. It asks to verify the output in the time and frequency domains using line out and plotting.

Uploaded by

Omer Hamza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
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