>> TI Home > DSP Village > DSP University > DSP Educators' Information Exchange >

Resources  DSP University Educators Information ExchangeGray Rule

> Type of Materials
> Application Area
   > Audio
   > Communications
   > Control
   > General Signal Processing
   > Instrumentation
   > Medical
   > Multimedia
   > Speech
   > Other
> DSP Family
> Type/Level of Lab
> Major Emphasis of Course
  
Audio

Name/Title of Material: C6701 EVM - Skeleton Programs / Matlab Interface
Author: DSP Department at Signal Processing
University: Royal Institute of Technology
E-mail: s3dsp@s3.kth.se
DSP device on which material is based: TMS320C6000
DSP development tools used in material: TMS320C6701 EVM
Type of materials: Educational Software
Application areas: Audio, General Signal Processing
Type/level of lab: TMS320C6000
Is the lab a primary focus of the course? Yes
Type of course for which material was developed: Lab
Language in which material is written: English
Developed / Last Updated Date: March 2002
Course URL: http://www.s3.kth.se/signal/edu/projekt
File Types: Adobe Acrobat PDF, Code Composer Studio Project, Executable File, HTML
File: c6x_skeletons.zip (7.9M)
Computer Language on which the material is based: C, C++, Assembler, Matlab Description of item(s)/value to others: Provides a number of skeleton programs to make it easier getting started with the C6701 EVM. Examples of how to implement block based (using DMA), as well as sample based (using polling), signal processing of audio data. Routines for importing/exporting audio data to/from Matlab are also included. An application which displays the impulse response of the acustic channel in real-time serves as an illustrative example of how the an windows interface might be designed and used for controlling the DSP-program.

Unpack the zip-archive and read "readme1st.htm" for how to proceed.


Name/Title of Material: Audio Effects using TMS320C6711 and Audio Daughter Card
Author: Richard Sikora
E-mail: richard@sikora.demon.co.uk
DSP device on which material is based: TMS320C6000
DSP development tools used in material: TMS320C6711 DSK, Audio Daughter Card
Type of Materials: Lab Exercises
Application area: Audio
Type/level of lab: General EE, Non-EE, Introductory undergraduate, Advanced undergraduate, TMS320C6000
Is the Lab a primary focus of the course? Yes
Type of course for which material was developed: Application
Language in which material is written: English
Developed/Last Updated Date: 18th March 2002
File type: Code Composer Studio Project
File: Audio Effects Using C6711 & ADC.zip (278K)
Computer Language on which the material is based: C
Description of item(s)/value to others: A series of 8 audio applications using the Audio Daughter Card and the TMS320C6711 DSK. Illustrates the use of DSP in audio setting. Applications are controlled by user switches on DSK and use LEDS as bargraph.

Additional equipment required: CD player with cable, multi-media computer loudspeakers. Signal generator or electric guitar.

  • Application 1. Alien voices. Using ring-modulation to produce sum and difference frequencies, as used in science- fiction TV/films.
  • Application 2. Delays and Echo. Using buffers to generate delayed playback (as used on radio phone-ins). Introduction to Finite Impulse Response (FIR) configuration.
  • Application 3. Electronic Crossover. Using FIR filters to divide audio signal into bass and treble.
  • Application 4. Guitar Effects. Reverberation, treble boost and distortion for electric guitar.
  • Application 5. Guitar Tuner. Uses adaptive filter to identify 6 notes of guitar strings.
  • Application 6. Record and Playback. Use buffers as to record and playback voice / music. Playback at half-speed and double speed to introduce concepts of decimation and interpolation.
  • Application 7. Reverberation. Simulation of echoing room / auditorium using feedback filter. Introduction to Infinite Impulse Response (IIR) filter configuration.
  • Application 8. Signal generator. Generates sine waves sweeping between 60 Hz to 12 kHz to act as test wave forms for filters etc. Sine wave forms generated using recursive equation.


Name/Title of Material: DSK C5402 FIR
Author: Massimo Martelli
E-mail: m-martelli@ti.com
DSP device on which material is based: TMS320C5000
DSP development tools used in material: TMS320C5402 DSK
Type of Materials: Lab exercises
Application area: Audio
Type/level of lab: TMS320C5000
Is the Lab a primary focus of the course? No
Type of course for which material was developed: Lab
Language in which material is written: English
Developed/Last Updated Date: 5/31/2002
File type: Code Composer Studio Project
File: DSK5402_filter.zip (191K)
Computer Language on which the material is based: C
Description of item(s)/value to others: This example shows how setup the DSP peripherals for a simple audio application with the "standard" Chip Support Library

(CSL) instead of the C5402 DSK Board Library. The DSK Board Library is not supported at the same level of CSL and sometimes doesn't give to the user the complete control of the DSP.

This lab project is derived from the TI Reference Framework #1, leaving only a very simple framework that should be easy to understand for a first time user. The original Reference Framework can be downloaded from http://www.dspvillage.com.


Name/Title of Material: Use of Audio Daughter Card with C6711 DSK
Author: Rulph Chassaing
University: University of Massachusetts Dartmouth
Email: chassaing@msn.com
DSP Device on which this Material is Based: TMS320C6000
DSP Development Tools Used in Material: TMS320C6711 DSK
Type of Materials: Lab Exercises
Application Area: Audio, General Signal Processing
Type/Level of Lab: General EE, Non-EE, Advanced undergraduate, Introductory graduate, TMS320C6000
Is the Lab a Primary Focus of the Course?: Yes
Type of course for which material was developed: Lab
Language in which Material is Written: English
Developed/Last Updated Date: January 2002
File Type: Executable, C/Assembly Code
File: AudioDC Examples.zip (28.5K)
Computer Language on which Material is based: C, C++
Description of item(s)/value to others: Two examples using TI's stereo codec PCM3003-based Audio Daughter Card with C6711 DSK. Taken from book "DSP Applications Using C and the TMS320C6x DSK" by Rulph Chassaing.

  1. "Loop" with output=delayed input
  2. FIR filter implementation


Name/Title of material: Introduction to DSP
Author: David Waldo
University: Oklahoma Christian University
E-mail: dwaldo@oc.edu
DSP device on which material is based: TMS320C6000
DSP development tools used in material: TMS320C6701 EVM
Type of Materials: Lab exercises
Application area: Audio, General Signal Processing
Type/level of lab: Introductory undergraduate
Is the Lab a primary focus of the course? Yes
Type of course for which material was developed: Theory
Language in which material is written: English
Developed/Last Updated Date: 5/01
Course URL: http://www.oc.edu/faculty/david.waldo/projects/nsfccli/nsfccli.html
File types: Archived Source File, Code Composer Studio Project, MS Word
Files: labho.zip (31K), codecpoll.zip (59K), codecint.zip(59K)
Computer Language on which the material is based: C
Description of item(s)/value to others: This is part of an NSF sponsored project. Nine laboratory assignments were developed as well as a base set of code for use with the TMS320C6701 EVM boards. The laboratory assignments are:

  • Assembly programming basics
  • Assembly programming
  • C programming basics
  • Real-time processing using polling
  • Real-time processing using interrupts
  • Spectral inversion
  • FIR filtering
  • IIR filtering
  • Adaptive filtering

To aid the students in learning to use the TMS320C6701 EVM some example projects were developed. These projects were the basis for student projects that processed data using the on board CODEC. The projects and files are:

  • Polling project: codec_poll.c, codec_poll.h, link.cmd, main.c
  • Interrupt project: codec_int.c, codec_int.h, link.cmd, main.c


Name/Title of Material: winDSK
Author: Michael Morrow
University: University of Wisconsin-Madison
Email: morrow@engr.wisc.edu
DSP Platform on which Material is Based: TMS320C3x
DSP Device on which Material is Based: TMS320C3x
DSP Development Tools Used in Material: TMS320C3x DSK
Type of Material: Educational Software
Application Area: Audio, General Signal Processing
Type/Level of Lab: General EE, Non-EE, Introductory Undergraduate, TMS320C3x
Is the Lab a Primary Focus of the Course? (Yes/No): No
Major Emphasis of Course for which Material was Developed: Application
Language in which Material is Written: English
Developed/Last Updated Date: March 11, 2003
File Types: Executable File
File: winDSK_1_6_1_2.zip (1.3Mb)  Computer Language in which Material is Written: Executable
Description/Value to Others: winDSK is a Windows 9X/NT demonstration and debugging program for use with the TMS320C31 DSK.

Supported demonstrations include; sampling/quantization effects, oscilloscope/spectrum analyzer, arbitrary waveform generator, notch/bandpass filter, graphic equalizer, audio effects, and guitar synthesizer.

winDSK also provides a tool for debugging applications which use a PC host to control the DSK, and includes an EEPROM programmer utility to develop stand-alone applications.

Extract the files to a temporary directory, and run setup.exe. The winDSK help files contain information on operating the program.


Name/Title of Material: winDSK6
Author: Michael Morrow
University: University of Wisconsin-Madison
Email:morrow@ieee.org
DSP Platform on which Material is Based: TMS320C6000
DSP Device on which Material is Based: TMS320C6000
DSP Development Tools Used in Material: TMS320C6211 DSK, TMS320C6711 DSK
Type of Material: Educational Software
Application Area: Audio, General Signal Processing
Type/Level of Lab: General EE, Non-EE, Introductory Undergraduate, TMS320C6000
Is the Lab a Primary Focus of the Course?: No
Major Emphasis of Course for which Material was Developed: Application
Language in which Material is Written: English
Developed/Last Updated Date: August 26, 2002
File Types: Executable File
File:winDSK6.zip (1184K)
Computer Language in which Material is Written: Executable
Description/Value to Others: winDSK6 is a Windows 9X/NT/2000 demonstration and debugging program for use with the TMS320C6X11 DSK. It supports a number of analog interfaces in addition to the DSK's onboard codec, including several stereo codec daughtercards and the Texas Instruments THS1206 EVM.

Supported demonstrations include; sampling/quantization effects, oscilloscope/spectrum analyzer, arbitrary waveform generator, notch/bandpass filter, graphic equalizer, audio effects, DTMF generator and guitar synthesizer. An HPI Interface application facilitates the development and debugging of host PC Windows applications that communicate with the DSK.

Extract the files to a temporary directory, and run setup.exe. The winDSK6 help files contain information on operating the program. winDSK6 does not require Code Composer Studio for operation.


First Name: Richard
Last Name: Sikora
University: None
E-mail: richard@sikora.demon.co.uk
DSP device on which material is based: TMS320C5000
DSP development tools used in material: TMS320C5402 DSK
Type of Materials: Lab exercises
Application area: Audio | General Signal Processing | Speech
Type/level of lab: General EE | Non-EE | Introductory undergraduate | TMS320C5000
Is the Lab a primary focus of the course? Yes
Name/Title of material: Configuring the Audio Daughter Card with TMS320C5402 DSK
Type of course for which material was developed: Lab
Language in which material is written: English
Developed/Last Updated Date: 11/11/02
File type: Archived Source File | MS Word
File: Template for Audio Daughter Card with TMS320C5402 DSK.ZIP (50k)
Computer Language on which the material is based: C | Assembler
Description of item(s)/value to others: Template for an audio project for use with the TMS320C5402 DSK and Code Composer Studio V1.20.

Requires a CD player / walkman and headphones / powered computer speakers. A signal generator if available would be useful.

Code provided in C.

Configures the TMS320C5402 DSK with the Audio Daughter Card for audio usage. Allows the student to use the 2 user switches as inputs and the 3 LEDs as a bargraph display.

Intended to be used as a starting point for audio experiments.


First Name: Richard
Last Name: Sikora
University: None
E-mail: richard@sikora.demon.co.uk
DSP device on which material is based: TMS320C5000
DSP development tools used in material: TMS320C5402 DSKOther TMS320C5416 DSK
Type of Materials: Lab exercises
Application area: Audio
Type/level of lab: General EE | Non-EE | Introductory undergraduate | TMS320C5000
Is the Lab a primary focus of the course? Yes
Name/Title of material: Audio Experiments 1 - 4 for the TMS320C5416 DSK
Type of course for which material was developed: Lab
Language in which material is written: English
Developed/Last Updated Date: 11/11/02
File type: Executable File | MS Word
File: TMS320C5416 DSK Laboratories 1 - 4.ZIP (320K)
Computer Language on which the material is based: C | Assembler
Description of item(s)/value to others: The first four in a series of practical experiments to process audio using the TMS320C5416 DSK and Code Composer Studio V2.0. Requires a CD player / walkman and headphones / powered computer speakers. If available, a signal generator would be useful.

Code is written mostly in C and C5400 assembly language where speed is required. Users the 4 user switches on the TMS320C5416 DSK and configures the 4 LEDs as a bargraph display.

The laboratories allow the student to find out the answers to the following questions by practical experiment:

Laboratory 1. What sampling rate is required for
a) music?
b) speech?
The C code provided allows 16 different sampling rates from 24 kHz down to 1 kHz to be selected using the user switches on the DSK.

Laboratory 2. How many sampling bits are required for acceptable quality a) music and b) speech?

Sampling can be adjusted between 16 bits and 5 bits using the user switches on the DSK.

Laboratory 3. In order to divide music into bass and treble, a Finite Impulse Response (FIR) filter can be used. Which of the following types of FIR filter gives the best sound: Rectangular, Hamming, Hanning, Blackman and Kaiser?

Uses 15 different configurations of high pass and low pass FIR filters, controlled by the user switches on the DSK.

Laboratory 4. When using a Finite Impulse Reponse Filter (FIR), how many coefficients are required for hi-fi sound quality? How many coefficients are required for acceptable speech quality?

Provides 15 different configurations of low pass and high pass FIR filters with different numbers of coefficients.


First Name: Richard
Last Name: Sikora
University: None
E-mail: richard@sikora.demon.co.uk
DSP device on which material is based: TMS320C5000
DSP development tools used in material: TMS320C5402 DSKOther TMS320C5416 DSK
Type of Materials: Lab exercises
Application area: Audio | General Signal Processing | Speech
Type/level of lab: General EE | Non-EE | Introductory undergraduate | TMS320C5000
Is the Lab a primary focus of the course? Yes
Name/Title of material: Audio Applications 1 - 4 for TMS320C5416 DSK
Type of course for which material was developed: Lab
Language in which material is written: English
Developed/Last Updated Date: 11/11/02
File type: Archived Source File | MS Word
File: TMS320C5416 DSK Applications 1 - 4.ZIP (320K)
Computer Language on which the material is based: C | Assembler
Description of item(s)/value to others: Four audio examples for use with the TMS320C5416 DSK and Code Composer Studio V2.0.

Requires a CD player / walkman and headphones / powered computer speakers. A signal generator if available would be useful.

Code provided mostly in C and 'C5400 assembly language where speed is required.

Thes applications could be applied to TMS320C5402 DSK, although this has only 2 user switches and 3 LEDs.

Application 1. Template for an audio project.

Configures the TMS320C5416 DSK for audio usage. Allows the student to use the 4 user switches as inputs and the 4 LEDs as a bargraph display.

Application 2. Delays and Echo.

Sets up the TMS320C5416 DSK for delays and echo to simulate a large auditorium. Uses circular buffers and introduces configuration also used for Finite Impulse Response (FIR) filters.

Application 3. Reverberation.

Simulates simple and multiple reflections off walls to simulate different types of rooms. Uses circular buffers and introduces the configuration used for Infinite Impulse Response (IIR) filters.

Application 4. Electronic Crossover.

Divides the audio signal into bass and treble. The frequency at which bass and treble are separated is adjusted using the 4 user switches in the range 100 Hz to 6400 Hz. Uses FIR filters.


Title: TMS320C5416 DSK Audio Applications 1-4
Author: Richard Sikora
University: None
E-mail: richard@sikora.demon.co.uk
DSP device on which material is based: TMS320C5000
DSP development tools used in material: TMS320C5402 DSK, MS320C5416 DSK
Type of Materials: Lab exercises
Application area: Audio, General Signal Processing, Speech
Type/level of lab: General EE, Non-EE, Introductory undergraduate, Introductory graduate, TMS320C5000
Is the Lab a primary focus of the course? Yes
Type of course for which material was developed: Lab
Language in which material is written: English
Developed/Last Updated Date: 20th January 2003
File type: Archived Source File, Code Composer Studio Project, MS Word
File: TMS320C5416 Laboratories 1-4.zip (888 KB), TMS320C5416 Applications 1-4.zip (940 KB)
Computer Language on which the material is based: C, Assembler, Matlab
Description of item(s)/value to others:
Four practical audio applications of digital signal processing (DSP) using the TMS320C5416 DSK. These can also be used as the basis of laboratories.

Equipment Required:
TMS320C5416 DSK
CD player or walkman
Computer loudspeakers
Microphone

Application 1. Template
A template for an audio project. Sets up the 4 LEDs on the TMS320C5416 DSK as a bargraph and the 4 user switches to control the audio processing.

Application 2. Delays and Echo
Simulates the delays experienced in communications networks and the reflection of sound heard in a canyon. Introduces circular buffers and the configuration used for Finite Impulse Response (FIR) filters.

Application 3. Reverberation
Simulates single and multiple reflections of sound from the walls of a room or auditorium. Introduces the configuration used for Infinite Impulse Response (IIR) filters.

Application 4. Electronic Crossover
Divides an audio signal into bass and treble components for driving different loudspeakers using FIR filters. The user switches on the TMS320C5416 DSK select 15 different crossover frequencies between 300 Hz and 12800 Hz.


Title: TMS320C5416 DSK Audio Applications 5 - 8
Author: Richard Sikora
E-mail: richard@sikora.demon.co.uk
DSP device on which material is based: TMS320C5000
DSP development tools used in material: TMS320C5402 DSK, TMS320C5416 DSK
Type of Materials: Lab exercises
Application area: Audio, General Signal Processing, Speech
Type/level of lab: General EE, Non-EE, Introductory undergraduate, Introductory graduate, TMS320C5000
Is the Lab a primary focus of the course? Yes
Type of course for which material was developed: Lab
Language in which material is written: English
Developed/Last Updated Date: 20th January 2003
File type: Archived Source File, Code Composer Studio Project, MS Word
File: TMS320C5416 Laboratories 5-8.zip (1 MB), TMS320C5416 Applications 5-8.zip (2 MB)
Computer Language on which the material is based: C, Assembler, Matlab
Description of item(s)/value to others:
Four practical applications of digital signal processing (DSP) using the TMS320C5416 DSK. These can also be used as the basis of laboratories.

Equipment Required:
TMS320C5416 DSK
CD player or walkman and computer loudspeakers
Microphone
Touch telephone
Optionally, a signal generator to generate sine waves in the range 20 Hz to 50 kHz.

Application 5. Alien Voices
Uses ring modulation to alter the spectral content of speech and music. Widely used in science-fiction films and television to generate strange voices for aliens.

Application 6. Infinite Impulse Response (IIR) Filters
A collection of high pass, low pass, band pass and band stop filters for audio use. Can be used to boost or cut certain frequency bands from the audio spectrum.

Application 7. Goertzel Algorithm
A special case of the IIR filter used to identify the dual tones generated when the buttons of a touch tone telephone are pressed. Uses a microphone to pick up the sound of the telephone and shows the buttons pressed on the computer screen.

Application 8. Spectrum Analyser
Uses a Fast Fourier Transform (FFT) to analyse the power of specific bands in an audio signal.


Title: TMS320C5416 DSK Laboratories 9 - 12
Author: Richard Sikora
University: None
E-mail: richard@sikora.demon.co.uk
DSP device on which material is based: TMS320C5000
DSP development tools used in material: TMS320C5402 DSK, TMS320C5416 DSK
Type of Materials: Lab exercises
Application area: Audio, General Signal Processing, Speech
Type/level of lab: General EE, Non-EE, Introductory undergraduate, Introductory graduate, TMS320C5000
Is the Lab a primary focus of the course? Yes
Type of course for which material was developed: Lab
Language in which material is written: English
Developed/Last Updated Date: 20th January 2003
File type: Archived Source File, Code Composer Studio Project, MS Word
File: TMS320C5416 Applications 9-10.zip (651 KB)
Computer Language on which the material is based: C, Assembler, Matlab
Description of item(s)/value to others:
The third in a series of laboratories to allow the student to find out the answers to some questions about digital signal processing (DSP) by carrying out practical experiments using audio. Complete application code for the TMS320C5416 DSK is provided for each laboratory.

Equipment Required:
CD player or walkman
Computer loudspeakers
Optionally, a signal generator to generate sine waves in the range 20 Hz to 50 kHz.
To produce quantitative results for Laboratory 9, a digital frequency meter and/or a digital storage oscilloscope are required.

Laboratory 9. Comparison of Performance of C and Assembly code
For which of the following does assembly language offer a benefit in performance over C code: a) Finite Impulse Response (FIR) filters
b) Infinite Impulse Response (IIR) filters
c) Adaptive filters?

Does the execution time of a Fast Fourier Transform (FFT) increase linearly or logarithmically with the number of points?

Laboratory 10. Decimation by Integer Amounts to Decrease Sampling Rate
How does reducing the sampling rate affect the audio quality?
Why is an anti-aliasing filter required?

Laboratory 11. Interpolation by Integer Amounts to Increase Sampling Rate
How does increasing the sampling rate affect audio quality?
Why is an anti-imaging filter required?

Laboratory 12. Noise Reduction Using Adaptive Filters and Notch Filters
In which cases would an IIR filter be used to remove noise from an audio signal?
In which cases would an adaptive filter be used to remove noise from an audio signal?


Title: PCM3003 Audio Daughter Card with TI 5402 DSK
Author: Martin Sehlstedt
University: Luleå University of Technology
E-mail: Martin.Sehlstedt@sm.luth.se
DSP device on which material is based: TMS320C5000
DSP development tools used in material: TMS320C5402 DSK
Type of Materials: Sample program
Application area: Audio
Type/level of lab: None
Is the Lab a primary focus of the course? No
Type of course for which material was developed: Application
Language in which material is written: English
Developed/Last Updated Date: November 2002
File type: Other Archived files source, project & PDF
File: TI5402DSK - ADC.zip (328 KB)
Computer Language on which the material is based: C
Description of item(s)/value to others:
Here are two solutions on how to make the PCM3003 Audio Daughter Card (ADC) work with the TI 5402 DSK.The solutions were found independently by two persons and they are of different kinds so both solutions are included as they are.

In the solution by Martin Sehlstedt the "codec" digital loopback sample project, supplied with the TI 5402 DSK, has been modified to use the ADC . In this solution DSP-BIOS and interrupts are used to handle the data coming from the ADC. The board LEDs are used for "waking lights" to show that the processor is running.

The solution by Richard Sikora also performs a digital loopback and here the board LEDs are used as a "bargraph" for the signal strength, summed L and R channels. This solution is more of a stand alone program where polling of the receiving serial channel is used to process data from the ADC.

For questions on the different solutions contact the corresponding author:
Martin Sehlstedt -- Martin.Sehlstedt@sm.luth.se Richard Sikora -- richard@sikora.demon.co.uk