Professional Documents
Culture Documents
DTMF Tone Generationca
DTMF Tone Generationca
Part 1
1. Create a folder called myprojects on the desktop.
2.
3.
4.
5.
6.
Run the C6713 DSK Code Composer Studio (C6713 DSK CCS).
Go to Project New, create a project called dtmf.
Make sure the Project Type is Executalble (.out) and Target is TMS329C67XX.
Download the dtmf.cdb file from http://www.ece.mtu.edu/labs/EElabs/EE3306/resources.
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 using
C 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 Board
Support Library.
7. Next, include the dtmf.cdb file from the webpage. This configuration file will setup all the
DSP/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.
Rebuild All
Compiler windows
2. The run the file loaded into the DSP. Go to Debug Run.
Run
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 tones
one 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.
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
0000
0001
0010
0011
0100
0101
Symbol
0
1
2
3
4
5
Binary
0110
0111
1000
1001
1010
1011
Symbol
6
7
8
9
*
#
The dip switches and LEDs are labeled from 0 3. Therefore, your program will reflect that the
least 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) ___________