[DSP homepage]

CE 101, 2nd Semester 2003-2004
Lab Exercise 1

A Delay Program

This exercise requires use of the 'C542 kits, the dskplasm assembler, and the associated C54x Code Explorer software in the DSP Lab.

Begin by copying the file delay.asm in c:\dskplus\demos\delay into your own directory.  This file contains a program written in the 'C542 algebraic assembly language.  The program implements a short delay.  Sound samples received from the input are stored into a circular buffer, then sent to the output after a short delay.

Rename delay.asm (the copy in your own directory), to some other filename, but keep the .asm extension. The assembler dskplasm.exe is located in c:\dskplus. Assemble the renamed file. Figure out whatever is needed in order to be able to assemble the file. 

Download the resulting .obj file onto the 'C542 using Code Explorer (use File>>Load Program from the menu), and verify that the program works.

Study the code in delay.asm and related files. Be able to explain each line of code. Determine all lines of code that can be removed without significantly altering the function of the program.

Consider the line

 length .set 0800h 

in delay.asm. Determine how this line should be modified in order to achieve the longest possible delay. What value should length be set to?

Design and implement a simple experiment to determine and/or verify the sampling rate (If you know what the sampling rate theoretically is, you just need to verify it). Be able to describe your experiment, and explain how you calculated the sampling rate from raw data, during evaluation of this exercise. 

You may need the following references in doing this lab exercise:

TMS320C54x DSP CPU and Peripherals, Reference Set v.1.
TMS320C54x DSP Algebraic Instruction Set, Reference Set v.3.
TMS320C5x DSP Starter Kit User's Guide
TLC320AC01C Data Manual

Be able to answer all questions related to this exercise.


 

This page has been accessed
Counter
times since November 15, 2003.

Created November 15, 2003
Last updated November 15, 2003
By Luisito L. Agustin
lui_agustin@yahoo.com
1