[Lui's homepage] [DSP homepage]
ELC 152, 1st Semester, 2004-2005
Lab Exercise 2
This exercise requires use of the 'C542 kits, the dskplasm assembler, and the associated C54x Code Explorer software in the DSP Lab.
Possibly using the delay program in c:\dskplus\demos\delay and/or the delay program resulting from your first lab exercise as starting points, your main goal in this exercise is to write a delay program running on the 'C542 such that the analog interface is running at a rate as close as possible to 8 KHz, and the delay is the longest possible for a given operating frequency. Whatever is spoken into the microphone is heard at the speakers after a delay implemented by your program.
Obviously you are allowed to set the value of the BK register to whatever meets the goal of this exercise. You may also have your code load into a different address, and you may locate your circular buffer anywhere in memory.
Devise a simple experiment using whatever software and equipment you might have access to in order to measure the actual amount of delay actually achieved.
Your source code must consist of a single text file and must have as few lines of code as possible.
Do not assume that any of the comments in the sample code are true.
In your one-page lab report, include:
a description of how the sampling rate was set to be as close to 8 KHz as possible
computations showing what the sampling rate actually is, based on how the analog interface is programmed
a description of how the amount of delay was measured experimentally, and the results of the experiment
the filename, file size, and time stamp of the final source code and object files produced in this exercise, and the number of lines of code in the final source code.
details regarding the size and location of the circular buffer used, and computations for the expected amount of delay based on the source code.
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.
[Lui's homepage] [DSP homepage]
This page has been accessed
times since July 9, 2004.