[DSP homepage]
ELC 152, 1st Semester, 2004-2005
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. You'll find that there are two files that need to be included by delay.asm. You'll need to copy these to your directory as well.
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.
Based on the three source files, come up with a single source file that would function in the same way as the original delay example. The source file must not include any other source file and must have as few lines as possible. Discard everything that could be discarded. This will require that you understand all source files involved. Assemble your single source file equivalent to the delay program. Be sure it does not include any other source file, the way the original delay.asm does. Verify that the program works in the same way as the original delay program.
In your lab report, include information about the number of lines to which you were able to reduce your source file to. Include also information about the size of the .obj file produced from your single source file, and the exact time the .obj file was produced. The .obj file with the exact size and timestamp mentioned in your lab report must be available in the lab during project defence.
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 June 18, 2004.

Created June 18, 2004
Last updated June 18, 2004
By Luisito L. Agustin
lui_agustin@yahoo.com
1