logo资料库

MATLAB User’s Guide: Developer’s Kit for Texas Instruments™ DSP.pdf

第1页 / 共265页
第2页 / 共265页
第3页 / 共265页
第4页 / 共265页
第5页 / 共265页
第6页 / 共265页
第7页 / 共265页
第8页 / 共265页
资料共265页,剩余部分请下载后查看
Preface
About Developer’s Kit for Texas Instruments DSP
Related Products
Using This Guide
Expected Background
If You Are a New User
If You Are an Experienced User
Organization of the Document
Configuration Information
Typographical Conventions
About Developer’s Kit for TI DSP
Introduction
Suitable Applications
Included Files and Drivers
Getting Started
Platform Requirements — Hardware and Operating System
MathWorks Software Requirements
For up-to-date information about the software from The MathWorks you need to use the Develop’s Ki...
Texas Instruments Software Requirements
Using Command Line Help
Help for Developer’s Kit for Texas Instruments DSP
Command Line Help for Nonoverloaded Functions
Command Line Help for Overloaded Functions
Command Line Help for Overloaded Functions for Links
Listing the Functions for Links
Using Your Target for C6701 EVM Software
Targeting the C6701 EVM
Target for C6701 EVM and the TI Tools
Configuring Target for C6701 EVM Software
Texas Instruments Software
Configuring the C6701 EVM
Confirming Your C6701 EVM Installation
Confirming Operation of Developer’s Kit
To Confirm the Operation of Your C6701 EVM
Error Message While Building c6701evmtest
Verifying That c6701evmtest is Running
Starting and Stopping c6701evmtest.mdl on the C6701 EVM
Creating Your Simulink Model
Using the C6701EVM Library Blocks
Configuring the C6701EVM ADC Block
Choosing the Sample Rate
Choosing the Codec Data Format
Selecting the Data Type
Selecting the Scaling
Configuring the C6701EVM DAC Block
Choosing the Codec Data Format
Selecting the Scaling
Selecting the Overflow Mode
Configuring the C6701EVM LED Block
Select the Target LED
Using the Overrun Indicator
Building the Real-Time Model
Creating the DSP Application Model for Targeting
Setting RTW Build Options for C6701 EVM
Real-Time Workshop Options for C6701 EVM
Target Configuration Options
Target Language Compiler Debugging Options
General Code Generation Category Options
C6701 EVM Compiler Options
TI C6701 Linker Options
C6701 EVM Runtime Options
Targeting Code Composer Studio
Tutorial 2-1 — A Frame-Based Single Rate Application
Building the Audio Reverberation Model
Adding Target for C6701 EVM Blocks to the Model
Configuring the Developer’s Kit Blocks
Configuring Simulation Parameters for Your Model
Setting Simulink Simulation Parameters
Setting Real-Time Workshop Target Build Options
Building and Executing Your Model on the C6701 EVM
Testing Your Audio Reverb Model
Running Your Model on the C6701 EVM
Starting and Stopping DSP Applications on the C6701 EVM
Tutorial 2-2 — A Multirate DSP Application
Working and Build Directories
Setting Program Parameters
Selecting the Target Configuration
Building and Running the Program
Contents of the Build Directory
Using Links
Constructing Link Objects
Example — Constructor for Links
Properties and Property Values
Setting and Retrieving Property Values
Setting Property Values Directly at Construction
Example — Setting Link Property Values at Construction
Setting Property Values With set
Example — Setting Link Property Values Using set
Retrieving Properties With get
Example — Retrieving Link Property Values Using get
Direct Property Referencing to Set and Get Values
Example — Direct Property Referencing in Links
Overloaded Functions for Links
Link Properties
Quick Reference to Link Properties
Details About the Link Properties
app
apiversion
boardnum
ccsappexe
dspboard
dspboards
dsptask
dsptasks
dspuser
numchannels
page
procnum
procType
rtdx
rtdxchannel
timeout
version
Tutorial 3-1 — Using Links for CCS IDE
Introducing the Tutorial for Using CCS IDE
Running the Interactive Tutorial
Selecting Your Target
Creating and Querying Links for CCS IDE
Loading Files into CCS
Working with the Target in MATLAB and CCS IDE
Closing the Links or Cleaning Up CCS IDE
Tutorial 3-2 — Using Links for RTDX
Introducing the Tutorial for Using RTDX
Creating the Links
Configuring Communications Channels
Running the Application
Closing the Links or Cleaning Up
Block Reference
Using the Developer’s Kit Block Reference
Contents of Block Reference Pages
Developer’s Kit Blocks Listed Alphabetically
Link Functions Reference
Using the Link Function Reference
Contents of Function Reference Pages
Tables of Link Software Functions
Link Functions Listed Alphabetically
Index
Numerics
A
B
C
D
E
F
G
H
I
L
N
O
P
R
S
T
U
V
W
target_ti.book Page 1 Friday, February 9, 2001 2:05 PM Developer’s Kit for Texas Instruments™ DSP For Use with Real-Time Workshop® Modeling Simulation Implementation User’s Guide Version 1
target_ti.book Page 2 Friday, February 9, 2001 2:05 PM How to Contact The MathWorks: www.mathworks.com comp.soft-sys.matlab Web Newsgroup support@mathworks.com suggest@mathworks.com bugs@mathworks.com doc@mathworks.com service@mathworks.com info@mathworks.com Technical support Product enhancement suggestions Bug reports Documentation error reports Order status, license renewals, passcodes Sales, pricing, and general information 508-647-7000 508-647-7001 The MathWorks, Inc. 3 Apple Hill Drive Natick, MA 01760-2098 Phone Fax Mail For contact information about worldwide offices, see the MathWorks Web site. Developer’s Kit for Texas Instruments™ DSP User’s Guide COPYRIGHT 1984 - 2001 by The MathWorks, Inc. The software described in this document is furnished under a license agreement. The software may be used or copied only under the terms of the license agreement. No part of this manual may be photocopied or repro- duced in any form without prior written consent from The MathWorks, Inc. FEDERAL ACQUISITION: This provision applies to all acquisitions of the Program and Documentation by or for the federal government of the United States. By accepting delivery of the Program, the government hereby agrees that this software qualifies as "commercial" computer software within the meaning of FAR Part 12.212, DFARS Part 227.7202-1, DFARS Part 227.7202-3, DFARS Part 252.227-7013, and DFARS Part 252.227-7014. The terms and conditions of The MathWorks, Inc. Software License Agreement shall pertain to the government’s use and disclosure of the Program and Documentation, and shall supersede any conflicting contractual terms or conditions. If this license fails to meet the government’s minimum needs or is inconsistent in any respect with federal procurement law, the government agrees to return the Program and Documentation, unused, to MathWorks. MATLAB, Simulink, Stateflow, Handle Graphics, and Real-Time Workshop are registered trademarks, and Target Language Compiler is a trademark of The MathWorks, Inc. Other product or brand names are trademarks or registered trademarks of their respective holders. Printing History: February 2001 New for Version 1.0 (Release 12) Online Only First printing
target_ti.book Page i Friday, February 9, 2001 2:05 PM Contents Preface About Developer’s Kit for Texas Instruments DSP . . . . . . . . vi Related Products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viii Using This Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x Expected Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x Organization of the Document . . . . . . . . . . . . . . . . . . . . . . . . . . . xi Configuration Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii Typographical Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv 1 About Developer’s Kit for TI DSP Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 Suitable Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 Included Files and Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 Platform Requirements — Hardware and Operating System . 1-5 MathWorks Software Requirements . . . . . . . . . . . . . . . . . . . . . 1-5 Texas Instruments Software Requirements . . . . . . . . . . . . . . . 1-5 Using Command Line Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7 Help for Developer’s Kit for Texas Instruments DSP . . . . . . . . 1-7 Command Line Help for Nonoverloaded Functions . . . . . . . . . 1-7 Command Line Help for Overloaded Functions . . . . . . . . . . . . 1-7 Listing the Functions for Links . . . . . . . . . . . . . . . . . . . . . . . . . 1-8 i
target_ti.book Page ii Friday, February 9, 2001 2:05 PM Using Your Target for C6701 EVM Software 2 Targeting the C6701 EVM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 Target for C6701 EVM and the TI Tools . . . . . . . . . . . . . . . . . . 2-2 Configuring Target for C6701 EVM Software . . . . . . . . . . . . 2-5 Configuring the C6701 EVM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6 Confirming Your C6701 EVM Installation . . . . . . . . . . . . . . . . . 2-7 Confirming Operation of Developer’s Kit . . . . . . . . . . . . . . . . . . 2-8 Creating Your Simulink Model . . . . . . . . . . . . . . . . . . . . . . . . . 2-11 Using the C6701EVM Library Blocks . . . . . . . . . . . . . . . . . . . . 2-11 Configuring the C6701EVM ADC Block . . . . . . . . . . . . . . . . . . 2-13 Configuring the C6701EVM DAC Block . . . . . . . . . . . . . . . . . . 2-19 Configuring the C6701EVM LED Block . . . . . . . . . . . . . . . . . . 2-21 Using the Overrun Indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-22 Building the Real-Time Model . . . . . . . . . . . . . . . . . . . . . . . . . 2-22 Creating the DSP Application Model for Targeting . . . . . . . . . 2-23 Setting RTW Build Options for C6701 EVM . . . . . . . . . . . . . . 2-23 Real-Time Workshop Options for C6701 EVM . . . . . . . . . . . . . 2-23 Target Configuration Options . . . . . . . . . . . . . . . . . . . . . . . . . . 2-24 Target Language Compiler Debugging Options . . . . . . . . . . . . 2-25 General Code Generation Category Options . . . . . . . . . . . . . . 2-26 C6701 EVM Compiler Options . . . . . . . . . . . . . . . . . . . . . . . . . 2-27 TI C6701 Linker Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-29 C6701 EVM Runtime Options . . . . . . . . . . . . . . . . . . . . . . . . . . 2-30 Targeting Code Composer Studio . . . . . . . . . . . . . . . . . . . . . . 2-34 Tutorial 2-1 — A Frame-Based Single Rate Application . . 2-36 Configuring Simulation Parameters for Your Model . . . . . . . . 2-41 Tutorial 2-2 — A Multirate DSP Application . . . . . . . . . . . . 2-47 ii Contents
target_ti.book Page iii Friday, February 9, 2001 2:05 PM 3 Using Links Constructing Link Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 Properties and Property Values . . . . . . . . . . . . . . . . . . . . . . . . 3-5 Setting and Retrieving Property Values . . . . . . . . . . . . . . . . . . . 3-5 Setting Property Values Directly at Construction . . . . . . . . . . . 3-5 Setting Property Values With set . . . . . . . . . . . . . . . . . . . . . . . . 3-6 Retrieving Properties With get . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 Direct Property Referencing to Set and Get Values . . . . . . . . . . 3-9 Overloaded Functions for Links . . . . . . . . . . . . . . . . . . . . . . . 3-10 Link Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 Quick Reference to Link Properties . . . . . . . . . . . . . . . . . . . . . 3-12 Details About the Link Properties . . . . . . . . . . . . . . . . . . . . . . 3-14 Tutorial 3-1 — Using Links for CCS IDE . . . . . . . . . . . . . . . . 3-24 Introducing the Tutorial for Using CCS IDE . . . . . . . . . . . . . . 3-24 Selecting Your Target . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-26 Creating and Querying Links for CCS IDE . . . . . . . . . . . . . . . 3-27 Loading Files into CCS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29 Working with the Target in MATLAB and CCS IDE . . . . . . . 3-32 Closing the Links or Cleaning Up CCS IDE . . . . . . . . . . . . . . . 3-37 Tutorial 3-2 — Using Links for RTDX . . . . . . . . . . . . . . . . . . 3-39 Introducing the Tutorial for Using RTDX . . . . . . . . . . . . . . . . 3-39 Creating the Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-43 Configuring Communications Channels . . . . . . . . . . . . . . . . . . 3-45 Running the Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-46 Closing the Links or Cleaning Up . . . . . . . . . . . . . . . . . . . . . . . 3-53 iii
target_ti.book Page iv Friday, February 9, 2001 2:05 PM 4 5 Block Reference Using the Developer’s Kit Block Reference . . . . . . . . . . . . . . 4-2 Contents of Block Reference Pages . . . . . . . . . . . . . . . . . . . . . . . 4-2 Developer’s Kit Blocks Listed Alphabetically . . . . . . . . . . . . 4-3 Link Functions Reference Using the Link Function Reference . . . . . . . . . . . . . . . . . . . . . 5-2 Contents of Function Reference Pages . . . . . . . . . . . . . . . . . . . . 5-2 Tables of Link Software Functions . . . . . . . . . . . . . . . . . . . . . 5-3 Link Functions Listed Alphabetically . . . . . . . . . . . . . . . . . . . 5-7 iv Contents
target_ti.book Page v Friday, February 9, 2001 2:05 PM Preface About Developer’s Kit for Texas Instruments DSP . . . . vi Related Products . . . . . . . . . . . . . . . . . . viii Using This Guide . . . . . . . . . . . . . . . . . . . x Expected Background . . . . . . . . . . . . . . . . . . x Organization of the Document . . . . . . . . . . . . . . xi Configuration Information . . . . . . . . . . . . . xiii Typographical Conventions . . . . . . . . . . . . . xiv
target_ti.book Page vi Friday, February 9, 2001 2:05 PM Preface About Developer’s Kit for Texas Instruments DSP Developer’s Kit for Texas Instruments™ DSP lets you use Simulink® to model digital signal processing algorithms from blocks in the DSP Blockset, then use Real-Time Workshop® to generate (or build) ANSI C code targeted to the TMS320C6701 EVM (C6701 EVM) or TI Code Composer Studio™ Integrated Development Environment (CCS IDE). The developer’s kit takes the generated C code and uses Texas Instruments (TI) tools to build C6701 EVM specific machine code. The build process downloads the targeted machine code to the evaluation module and runs the executable on the C6701 Digital Signal Processor (C6701 DSP). After downloading the code to the board, your digital signal processing (DSP) application runs automatically on the evaluation module. To support code generation for your C6701 EVM, Developer’s Kit offers two targets: • Target for C6701 Evaluation Module — use Real-Time Workshop to generate executable code that runs on the C6701 Evaluation Module. • Target for Code Composer Studio™ Integrated Development Environment — use Real-Time Workshop to create a project in CCS IDE and populate the new project with files from the code generation process. Texas Instruments produces the TMS320C6701 Evaluation Module (C6701 EVM) to help developers create digital signal processing applications for the Texas Instruments TMS320C6701 processor (C6701 DSP). You can create, test, and deploy your processing software and algorithms or filters on the target processor without the difficulties inherent in starting with the digital signal processor itself and building the support hardware to test the application on the processor. Instead, the C6701 EVM provides the input hardware, output hardware, timing circuitry, memory, and power for the C6701 DSP. TI provides the software tools, such as the C compiler, linker, assembler, and integrated development environment, for PC users to develop, download, and test their algorithms and applications on the C6701 EVM. In addition to generating code to target the C6701 EVM, Developer’s Kit provides two components that work with and use TI Code Composer Studio™ Integrated Development Environment (CCS IDE) and TI Real-Time Data Exchange (RTDX™): vi
分享到:
收藏