5
8/20/2019 DTMF Tone Generationca http://slidepdf.com/reader/full/dtmf-tone-generationca 1/5 Dual Tone Multi-Frequency (DTMF) Generation with TI-DSP TMS320C6713 Processor Objective The goals of this lab are to gain familiarity with TI DSP code composer studio and the TI-DSP Starter Kit (DSK). These goals can be accomplish by:  Programming the 4 dip switches,  Controlling the leds with dip switches,  Output through onboard codec. Walk-through 1. Power up the TI-DSP evaluation module. 2. Make sure the speaker is connected to the headphone jack. 3. Reset the board, by pressing the on-board reset button, there will be running LEDs and also an available “beep” as an indication that the on-board sound CODEC is working fine. 4. Perform the 6713 DSK Diagnostic Utility to verify the functionality of the DSK. 5.  Make sure all the DSK passed all the diagnostics. Figure 1: 6713 DSK Diagnostic Utility.  

DTMF Tone Generationca

Embed Size (px)

Citation preview

Page 1: DTMF Tone Generationca

8/20/2019 DTMF Tone Generationca

http://slidepdf.com/reader/full/dtmf-tone-generationca 1/5

Dual Tone Multi-Frequency (DTMF) Generation with

TI-DSP TMS320C6713 Processor

Objective The goals of this lab are to gain familiarity with TI DSP code composer studio and the TI-DSP

Starter Kit (DSK). These goals can be accomplish by:•  Programming the 4 dip switches,

•  Controlling the leds with dip switches,

•  Output through onboard codec.

Walk-through

1.  Power up the TI-DSP evaluation module.2.  Make sure the speaker is connected to the headphone jack.

3.  Reset the board, by pressing the on-board reset button, there will be running LEDs and alsoan available “beep” as an indication that the on-board sound CODEC is working fine.

4.  Perform the 6713 DSK Diagnostic Utility to verify the functionality of the DSK.

5. 

Make sure all the DSK passed all the diagnostics.

Figure 1: 6713 DSK Diagnostic Utility.

 

Page 2: DTMF Tone Generationca

8/20/2019 DTMF Tone Generationca

http://slidepdf.com/reader/full/dtmf-tone-generationca 2/5

Part 1

1.  Create a folder called “myprojects” on the desktop.

The location of the “myprojects”older.

Figure 2: Code composer Studio.

2.  Run the C6713 DSK Code Composer Studio (C6713 DSK CCS).

3.  Go to Project New, create a project called dtmf .

4.  Make sure the Project Type is Executalble (.out ) and Target is TMS329C67XX. 5.  Download the dtmf.cdb file from http://www.ece.mtu.edu/labs/EElabs/EE3306/resources.

6.  Once the project is created, go to Project  Add files to project, add the DSK6713 Board

Support Library (BSL)file. This library will simplify the communication with the board usingC language. The file is located at C:\ti\c6000\dsk6713\lib\dsk6713bsl.lib. More information

about this library can be found in Help

  TMS320C6713 DSK

  Software

  BoardSupport Library.

7.   Next, include the “dtmf.cdb” file from the webpage. This configuration file will setup all theDSP/BIOS correctly for the use of this lab.

8.  Finally, you can create a new file and begin the laboratory assignment. Remember to save the

file as “dtmf.c” and include it to the project in order for it to run.

Page 3: DTMF Tone Generationca

8/20/2019 DTMF Tone Generationca

http://slidepdf.com/reader/full/dtmf-tone-generationca 3/5

 

Figure 3: After including all necessary files.

Compiling into Machine Language

1.  After writing the code, the next step is to compile the code to machine language. Go to

Project Build. 2.  The Build command will compile all the files that are include in this project and make an

executable file for the DSP. 3.  Compiler results are shown at the bottom of the window. 

 Rebuild All

Compiler windows

Figure 4: Compiler Comments.

Page 4: DTMF Tone Generationca

8/20/2019 DTMF Tone Generationca

http://slidepdf.com/reader/full/dtmf-tone-generationca 4/5

4.  Loading Program into DSP Processor

1.  Finally, to run the program, load the program into the DSP. Go to File  Load Program.Load the executable file (.out) that the compiler generated (generally in the Debug directory

of the project).

Figure 5: Load Program.

2.  The run the file loaded into the DSP. Go to Debug Run.

 Run

Figure 6: Program running.

Page 5: DTMF Tone Generationca

8/20/2019 DTMF Tone Generationca

http://slidepdf.com/reader/full/dtmf-tone-generationca 5/5

Laboratory Assignment

Task 1

First part of the laboratory is to program the each dip switch to control their respectively

numbered led (e.g. dip switch # 1 controls led #1, etc).

HAVE YOUR TA VERIFY YOUR WORK TO THIS POINT (initials) ___________

Task 2

DTMF tones are used in telephone for tone dialing. Each key on a keypad has a distinct sound

made up of two  single-frequency tones. One tone represents the column and the other tone

represents the row as shown in Figure 7. For example if you push the 2 key, you get two tonesone at 1336Hz because it is in column 2 and one at 697 Hz because it is in  row 1. Therefore,

when a number is dial on a dial tone phone, the actual detection of the number dial is through

detection of what tones that are being dialed.

Figure 7: DTMF frequencies.

In task 2, you are required to generate the all the 12 buttons/keys on a conventional dial-tone phone. You are going to program the dip switches to generate different DTMF tone. The dip

switches will act as binary bit which correspond to Table 1.

 Binary Symbol Binary Symbol

0 0 0 0 0 0 1 1 0 6

0 0 0 1 1 0 1 1 1 7

0 0 1 0 2 1 0 0 0 8

0 0 1 1 3 1 0 0 1 9

0 1 0 0 4 1 0 1 0 *

0 1 0 1 5 1 0 1 1 #Table 1: Dip switch condition and symbol.

The dip switches and LEDs are labeled from 0 – 3. Therefore, your program will reflect that theleast significant bit correspond to dip switch # 3 and led # 3.

 Hint : Basically, the DSP must (1) read the input from the dip switches, (2) determined which switch is pressed, (3) generate the standard touch-tone frequencies for that switch combination

corresponding to Table 1 and finally, output the tones through the connected speaker.

HAVE YOUR TA VERIFY YOUR WORK TO THIS POINT (initials) ___________