daa_bios
所属分类:DSP编程
开发工具:C/C++
文件大小:71KB
下载次数:20
上传日期:2006-06-06 10:13:10
上 传 者:
03211094
说明: 在dsp芯片TOM320VC5402下电话接口的简单c程序实现
(in dsp chip TOM320VC5402 under a simple telephone interface c Program)
文件列表:
daa_bios\cc_build.log (1479, 2000-11-09)
daa_bios\daa_bios.c (11125, 2000-11-09)
daa_bios\daa_bios.cdb (222730, 2000-11-09)
daa_bios\daa_bios.map (51154, 2000-11-09)
daa_bios\daa_bios.obj (6323, 2000-11-09)
daa_bios\daa_bios.out (61697, 2000-11-09)
daa_bios\daa_bios.pjt (753, 2000-11-09)
daa_bios\daa_bioscfg.cmd (7794, 2000-11-09)
daa_bios\daa_bioscfg.h54 (3177, 2000-11-09)
daa_bios\daa_bioscfg.obj (20225, 2000-11-09)
daa_bios\daa_bioscfg.s54 (30797, 2000-11-09)
daa_bios\isr.asm (1540, 2000-11-09)
daa_bios\isr.obj (5030, 2000-11-09)
daa_bios (0, 2006-06-01)
TMS320VC5402 DSK DAA EXAMPLE (USING DSP/BIOS)
=============================================
This example demonstrates the use of the telephony interface of the DSK.
The DAA and handset codecs are set up and then the application waits for
an incoming ring. On the second ring detected, the line is picked up
(off-hook) and a conversation can be carried on between the DSK and
handset interfaces. The example also shows some features of DSP/BIOS.
Below are instructions on how to run this demo:
1. Connect a microphone to the MIC socket and a speaker to the SPKR socket
on the DSK board.
2. Connect an analog phone line to the RJ-11 (telephone) socket on the DSK
board.
3. Connect your parallel port cable to the parallel port connector on the
DSK. You may use an XDS510 connector if you have one and wish to do so.
4. Connect the power supply to the DSK board and power it up.
5. Start up Code Composer Studio and load the accompanying daa_bios.out (i.e.,
c:\ti\c5400\dsk\examples\dsp\daa_bios\daa_bios.out); File->Load. If you prefer
to create your own project, see the guidelines listed below.
6. Click Debug->Run. The LEDs on the DSK will start blinking.
7. From a second phone line, dial the DSK board.
8. After the second ring, the line will be picked up by the DSK. You
should now be able to hold a conversation between the mic/speaker
interface and the telephone handset.
Getting Started
===============
The following instructions enable you to build and run the daa
example. You do not have to create and build a project. If you
prefer to see a quick demo, you can open CCS and load the file
c:\ti\c5400\dsk\examples\dsp\daa_bios\daa_bios.out.
1.1 Creating a New Project
===========================
1) If you installed Code Composer Studio in c:\ti, create a folder
called daa_bios in the c:\ti\myprojects folder. (If you installed
elsewhere, create a folder within the myprojects folder in the
location where you installed.)
2) Copy two source files from the c:\ti\c5400\dsk\examples\dsp\daa_bios\
{daa_bios.c, daa_bios.cmd} folder to this new folder.
3) Copy two library files to your new folder. The library files
are in the c:\ti\c5400\dsk\lib\{drv5402.lib,dsk5402.lib} folder.
4) From the Windows Start menu, choose Programs->Code Composer
Studio 'C5000->CCStudio. (Or, double-click the Code Composer Studio
icon on your desktop.)
Note: Code Composer Studio Setup
If you get an error message the first time you try to start Code
Composer Studio, make sure you run Code Composer Setup after
installing Code Composer Studio following the Quick Start Guide.
5) Choose the Project->New menu item.
6) In the Save New Project As window, select the working folder
you created and click Open. Type "daa_bios" as the filename and click
Save. Code Composer Studio creates a project file called
daa_bios.mak. This file stores your project settings and references
the various files used by your project.
1.2 Adding Files to a Project
=============================
1) Choose Project->Add Files to Project. Select daa_bios.c and click Open.
2) Choose Project->Add Files to Project. Select Linker Command File
(*.cmd) in the Files of type box. Select daa_bioscfg.cmd and click Open. This
file maps sections to memory.
3) Choose Project->Add Files to Project. Select Object and Library
Files (*.o*, *.lib) in the files of type box. Select drv5402.lib and
click Open. Repeat this procedure for dsk5402.lib.
4) Choose Project->Add Files to Project. Select Configuration Files (*.cdb)
in the files of type box. Select daa_bios.cdb and click Open.
5) Expand the Project list by clicking the + signs next to Project,
daa_bios.mak, Libraries, and Source. This list is called the Project View.
Note: Opening Project View
If you do not see the Project View, choose View->Project. Click the
File icon at the bottom of the Project View if the Bookmarks icon is
1.3 Changing Project Build Options
==================================
1) Choose Project->Options. Click the Compiler Tab in the Include
Search Path. Type in c:\ti\c5400\dsk\include. Click 'OK'. This will
enable the appropriate board.h and type.h files to be included.
When building the program, Code Composer Studio finds files by
searching for project files in the following path order:
o The folder that contains the source file.
o The folders listed in the Include Search Path for the compiler or
assembler options (from left to right).
o The folders listed in the definitions of the C54X_C_DIR (compiler)
and C54X_A_DIR (assembler) environment variables (from left to
right). The C54X_C_DIR environment variable defined by the
installation points to the folder that contains the rts.lib file.
1.4 Reviewing the Code
======================
1) Double-click on the daa_bios.c file in the Project View. You see the
source code in the right half of the window.
2) You may want to make the window larger so that you can see more of
the source code at once. You can also choose a smaller font for this
window by choosing Option->Font.
1.5 Building and Running the Program
====================================
Code Composer Studio automatically saves changes to the project setup
as you make them. In case you exited from Code Composer Studio after
the previous section, you can return to the point where you stopped
working by restarting Code Composer Studio and using Project->Open.
To build and run the program, follow these steps:
1) Choose Project->Rebuild All or click the (Rebuild All) toolbar
button. Code Composer Studio recompiles, reassembles, and relinks all
the files in the project. Messages about this process are shown in a
frame at the bottom of the window.
2) Choose File->Load Program. Select the program you just rebuilt,
daa_bios.out, and click Open. (It should be in the c:\ti\myprojects\daa_bios
folder unless you installed Code Composer Studio elsewhere.) Code
Composer Studio loads the program onto the target DSP and opens a
Dis-Assembly window that shows the disassembled instructions that make
up the program. (Notice that Code Composer Studio also automatically
opens a tabbed area at the bottom of the window to show output the
program sends to stdout.)
3) Click on assembly instruction in the Dis-Assembly window. (Click
on the actual instruction, not the address of the instruction or the
fields passed to the instruction.) Press the F1 key. Code Composer
Studio searches for help on that instruction. This is a good way to
get help on an unfamiliar assembly instruction.
4) Choose Debug->Run or click the (Run) toolbar button. Analyze
results (see below).
5) Choose Debug->Halt or click the (Halt) toolbar button to end the
program.
1.6 Expected Results
====================
Running your program enables you to utilize an independent
phone line (second line, cell phone, etc.) to talk to the DSK.
This telephone interface allows the DSK user to listen through the
speakers and respond to the caller by microphone.
近期下载者:
相关文件:
收藏者: