Generating a Sine Wave Using the Hardware and Software
Tools for the TI TMS320C6713B DSP
Aim of the Experiment :
The aim of this experiment is to
- become familiar with the TMS320C6713 hardware and software tools
by outputting sinusoidal signals from the C6713 board and
- explore the design tradeoffs in signal quality vs. implementation
complexity in computing values of sinusoidal signals.
Design tradeoffs in computing sinusoidal signal values are explained in a
lecture 2 slides.
Sinusoidal waveforms will be output by using three different methods:
- Polling
- Interrupts
- Direct memory access (DMA) controller
Equipment to be checked out :
- Two BNC - stereo pin (DSP)cables
All the above equipment can be checked out from the checkout on the
second floor.
The above list of equipment is the equipment required per work station.
Deviations from the laboratory manual :
- Polling
- Instead of the code provided in the lab manual, use
polling document as a guide
- Care should be taken that the sine wave samples that are
generated are by the sin() function are properly
converted into 16-bit integers so that the AIC recognizes
it as data. (it's pretty easy)
- To measure the frequency of the sine wave generated use the
oscilloscope. The other method using the signal generator
can be ignored.
- Using Interrupts
- Using DMA
- Instead of the code provided in the lab manual, use our
DMA document as a guide
LabVIEW:
Virtual instrument for test and measurement of
laboratory #2 results.
Lab Report
The general format for lab reports is:
- Objective (one sentence)
- Procedure (brief, just enough so the discussion makes sense)
- Discussion of Results (1-2 pages usually)
- Problems Encountered / Other Observations
The point of the discussion section is to relate the
observations/procedure of the lab to theoretical concepts discussed
in the lectures.
For Lab#2, also answer the following questions:
- Explain (mathematically) what happened when 6 kHz & 7 kHz
sine waves were generated for a sample rate of 8 kHz.
(HINT: assume the samples are calculated with the COS() function
instead of SIN() )
- Compare and contrast the three methods for sending the samples
of the sinewave to the codec (polling, interrupt, DMA)
- Scaling factor:
- Why is the scaling factor necessary?
- What would happen if the scaling factor were set to 50,000
instead of 15,000?
- What would happen if it was left out?
HINT: If you actually try this out in the lab,
only take note when either sine wave appears distorted or
both sine waves appear distorted.
A sine wave at 2 kHz may not appear distorted.
Try other frequencies such as 1.7 kHz, 2.4 kHz and 3.3 kHz.
- Real Time:
- How many cycles does a single call to sin() take?
- Calculate the number of cycles that occur between samples.
Assume the DSP runs at 225 MHz... (And feel free to comment on
these two results)
Recitation Slides by Mr. Wael Barakat (UT Austin):
Part 1 and
Part 2
Recitation Slides by Mr. Akshaya Srivatsa (UT Austin):
Part 1 and
Part 2
Recitation Slides by Mr. Marcel Nassar (UT Austin):
Parts 1 and 2
Overview Slides,
by Prof. Steven Tretter, University of Maryland
Assignment
Submitting this assignment is optional, but doing it would
be useful for your QUIZ preparations
Assignment
Back to the course home page
Next Experiment
Previous Experiment