TI C2000系列DSP的汇编指令,含cmd文件编写

所需积分/C币:49 2017-07-20 17:17:48 3.12MB PDF
收藏 收藏
举报

TI C2000系列DSP的汇编指令,含cmd文件编写。最重要的内容是,解释了cmd文件指令,是定制cmd文件不可或缺的参考文档,TI原版下载
TEXAS INSTRUMENTS www.ti.com 4.5 Source statement Format 47 4.5.1 Label field 48 4.5.2 Mnemonic Field BE.B...8 nnn n:aa:aaa:日::aa:aa:日 49 4.5.3 Operand Field... 49 4.5.4 Comment field∴ ∴,49 4.6 Literal Constants 50 4.6.1 Integer Literals 50 4.6.2 Character String literals 51 4.6.3 Floating- Point 重1mm 重量自重面首1 52 4.7 Assembler Symbols….…….………….….……….….….…….…….……….…..………………….52 4.7.1 identifiers∴ ∴52 n.aaaa: BB.aI.a:a:aa.a::日.:a日日日日:a日aaaa.aa.aa日 4.7.2 Labels 53 4.7.3 Local labels .......474..44.4..44444.44.4.444.4..44.........53 4.7.4 Symbolic Constants BO..8 ∴56 4.7.5 Defining Symbolic Constants(--asm define Option) 56 4.7.6 Predefined Symbolic Constants 57 4.7.7 Registers............ 58 4.7.8 Substitution Symbols. 59 4.8 Expressions,… B.B 60 4.8.1 Mathematical and Logical Operators 61 4.8.2 Relational Operators and Conditional Expressions 1自 62 4.8.3 Well-Defined Expressions.. 62 4.8. 4 Legal Expressions 62 4. 9 Built-in Functions and ...B8 63 4.9.1 Built-In Math and trigonometric Functions 63 4.10 TMS320C28x Assembler modes 重■ ...I.I.8 64 4.10.1 C28X Object Mode 64 4.10.2 C28x FPU32 Object Mode .64 4.10.3 C28X CLA Object Mode .......... 64 4.11 Source listi 66 4. 12 Debugging Assembly Source.... 68 4.13 Cross- Reference Listings..,,,,,,,…,,,,,,,,,,,,,,,,,,,,,69 4.14 Smart Encoding 70 4.15 Pipeline conflict Detection ,…,71 4.15.1 Protected and Unprotected Pipeline Instructions........ 71 4.15.2 Pipeline Contlict Prevention and Detection................. 71 4.15.3 Pipeline Conflicts Detected....................... 72 5 Assembler directives ■D重重m 73 5.1 Directives Summary..,.,....... ∴,74 5.2 Compatibility With the tms320C 1x/C2x/C2xX/C5X Assembler Directives.........,.... 78 5.3 Directives that define sections 79 5. 4 Directives that initialize values 80 5.5 Directives that Perform Alignment and Reserve Space.…,,…,…,…,,…,…,,,…,…,83 5.6 Directives that Format the Output Listings.. 5.7 Directives that reference other files 85 5.8 Directives that Enable Conditional Assembly BBB.BIaB 86 5.9 Directives that Define Union or Structure Types 86 5.10 Directives that Define Enumerated Types 86 5. 11 Directives that Define Symbols at assembly Time 87 5.12 Miscellaneous directives 88 5.13 Directives Reference ∴………,…………89 6 Macro Language Description…………………………………………………142 6. 1 Using Macros 143 SPRU513M-March 2017 Contents Submit documentation feedback Copyright o 2017, Texas Instruments Incorporated TEXAS NSTRUMENTS www.ti.com 6.2 Defining Macros,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,143 6.3 Macro Parameters/substitution Symbols 面重 …,145 6.3. 1 Directives That Define Substitution Symbols. 着日重日D重面着日 146 6.3.2 Built-In Substitution Symbol Functions....... 147 6.3.3 Recursive Substitution Symbols 1重道 148 6.3. 4 Forced substitution ....4..4.444.14444.44.4..4..4....148 6.3.5 Accessing Individual Characters of Subscripted Substitution Symbols 149 63.6 Substitution Symbols as Local Variables in Macros∴………………………………150 6.4 Macro libraries IB..8. 150 6.5 Using Conditional Assembly in Macros..….… 151 6.6 Using Labels in Macros 153 6.7 Producing Messages in Macros∴… 154 6.8 Using Directives to Format the Output Listing…….………………………………………… 155 6. 9 Using Recursive and Nested Macros 156 6. 10 Macro Directives Summary. ndad00a 157 Archiver Description n158 7.1 Archiver Overview∴∴ 159 7.2 The Archivers Role in the Software Development Flow 160 7.3 evoking the Archiver∴…… …………161 7.4 Archiver Examples........ 162 7.5 Library Information Archiver Description 163 7.5.1 evoking the Library Information Archiver.……………………………………….163 7.5.2 Library Information Archiver EXample. 164 7.5.3 Listing the Contents of an Index Library∴………… ,164 7.5.4 Requirements 1 ∴164 8 Linker Description…….…..….…..….….,….…,…,…,………,……,……,…165 8.1 Linker overview 166 8.2 The Linker,s Role in the Software Development Flow.…….….….…….…….………167 8.3 Invoking the Linker IB..8. 168 84.1 Wildcards in File, Section, and Symbol Patterns∴………………,、169 8. 4 Linker Options 171 8.4.2 Specifying C/C++ Symbols with Linker Options∴...,…,,,,,,…,171 84.3 Relocation Capabilities(- absolute exe and- relocatable Options).…………………172 8.4.4 Allocate Memory for Use by the Loader to Pass arguments(-arg size Option).............. 173 8.4.5 Control Linker Diagnostics........... 173 84.6 Automatic Library Selection(- disable_ auto rts Option)…………………………………174 8.4.7 Disable Conditional Linking(--disable clink Option)....... …………174 8.4.8 Linker Command File Preprocessing(--disable_pp, -define and --undefine Options 174 84.9 Error Correcting Code Testing(- eCc Options)∴…….….……,…,…,………,176 84.10 Define an Entry Point(- entry_ point option)………,,…,…,,…,,, 176 8.4.11 Set default fill value(- fill value Option)…………………………… 177 8.4.12 Define Heap Size(--heap size Option)..,... 177 8.4.13 Hiding Symbols .177 8.4.14 Alter the Library Search Algorithm(--library Option, --search _path Option, and C2000C DIR Environment Variable) a:日日aa日aaa.aa 178 8.4.15 Change Symbol Localization 180 8.4.16 Create a Map File(--map file Option).. 182 84.17 Managing Map File Contents(- mapfile_ contents Option)……………… 183 8.4.18 Disable Name Demangling(--no demangle)...... 184 8.4.19 Disable Merging of Symbolic Debugging Information(- no sym merge Option)………….184 8. 4.20 Strip Symbolic Information (-no symtable Option) 8.4.21 Name an Output Module(--output file Option) 185 8. 4.22 Prioritizing Function Placement(--preferred order Option 185 Contents SPRU513M-March 2017 Submit documentation feedback Copyright o 2017, Texas Instruments Incorporated TEXAS INSTRUMENTS www.ti.com 8.4.23 C Language Options (--ram_ model and --rom_model Options).......................... 185 8.4.24 Create an Absolute Listing File(--run abs Option) 重1E重 185 8.4.25 Scan All Libraries for duplicate Symbol Definitions(--scan 8. 4.26 Define Stack Size(--stack_ size Option) 185 8427 Enforce Strict Compatibi|ity(- strict compatibility Option)………… 186 8.4.28 Mapping of Symbols(--symbol map Option)............... 186 8.4.29 Introduce an Unresolved Symbol (--undet_ sym Option) 186 8.4.30 Display a Message When an Undefined Output Section Is Created (--warn sections)...... 186 8.4.31 Generate XML Link Information File (--xml link info Option) 186 8.5 Linker Command files ∴187 8.5.1 Reserved names in linker Command files. .........4.4.4..........188 8.5.2 Constants in Linker Command files 188 8.5.3 Accessing Files and Libraries from a Linker Command File∴..………..189 8.5. 4 The memory directive 190 8.5.5 The sections directive 194 8.5.6 Placing a Section at Different Load and Run Addresses............ 209 8.5.7 Using GROUP and UNION Statements 211 8.5.8 Overlaying Pages∴……….………….…….………….….………….…………………….215 8.5.9 Special Section Types(DSECT, COPY, and NoLoaD).....,.... 218 8.5.10 Configuring Error Correcting Code(ECC)with the Linker 219 8.5.11 Assigning Symbols at Link Time∴….…….…….……… 221 8.5. 12 Creating and Filling Holes ,226 8.6 Linker Symbols 229 8.6.1 Using Linker Symbols in C/C++ Applications……∴…………….………… 量量重_画 229 8.6.2 Resolving symbols with object Libraries 重1面 ∴230 8. Default Placement algorithm 重面m ■重■ 232 8.7.1 How the Allocation Algorithm Creates Output Sections 232 8.7.2 Reducing Memory Fragmentation.…..… 面 233 8.8 Linker-Generated Copy Tables aaa:a:aa:a:aa 233 8.8.1 Using Copy Tables for Boot Loading . 8.82 Using Built- in Link Operators in Copy Tables….……………… 234 8.8.3 Overlay Management EXample 234 8.8.4 Generating Copy Tables With the table( Operator 235 8.8.5 Copy Table Contents ,239 8.8.6 General Purpose Copy Routin 2 8. 9 Linker-Generated crc tables 241 8.9.1 The crc table( Operator.……………….…………….…….…….………………….242 8.9.2 Restrictions∴ 242 8.9.3 EXamples∴ 243 8.9. 4 Interface 245 8.9.5 A Special Note Regarding 16-Bit char............... 248 8.10 Partial( crement) Linking………………………….…………………………….249 8.11 Linking C/C++ Code 250 8.11.1 Run-Time initialization 250 8.11.2 Object Libraries and Run-Time Support∴…………………………………………………250 8.11.3 Setting the size of the stack and Heap sections.... ,250 8. 11.4 Initializing and Autolnitialzing variables at Run Time.. 8.12 Linker Example. 量_ 251 Absolute Lister Description.............,........ 255 9.1 Producing an Absolute Listing .256 9.2 evoking the Absolute Lister∴…………….……….…………………………………………….257 9.3 Absolute Lister EXample. 258 10 Cross-Reference Lister Description 261 SPRU513M-March 2017 Contents Submit documentation feedback Copyright o 2017, Texas Instruments Incorporated TEXAS NSTRUMENTS www.ti.com 10.1 Producing a Cross-Reference Listing. 10.2 Invoking the cross-Reference Lister ■重着重 n,263 10.3 Cross-Reference Listing Example . 11 Object File Utilities IB.1B.8..8.8. In0 I 265 11.1 Invoking the object file display utilit 266 11.2 evoking the Disassembler∴..….….… ,267 11.3 Invoking the Name Utility B.BBI.. 267 11.4 Invoking the Strip Utility ndad00a 268 12 Hex Conversion Utility Description 269 12. 1 The Hex Conversion Utility,'s Role in the Software 12.2 Invoking the Hex Conversion Utility .......... 271 12.2.1 Invoking the Hex Conversion Utility From the Command Line..... 271 12.2.2 Invoking the hex Conversion Utility with a command File . 12.3 Understanding Memory Widths 274 12.3.1 Target Width 274 12.3.2 Specifying the Memory Width. 12.3.3 Partitioning Data Into Output Files ,276 123.4 Specifying Word Order for Output Words….………..…………,278 12.4 The roms directive 278 12.4.1 When to Use the roms directive 279 12.4.2 An Example of the ROMs Directive. . 12.5 The SEctions Directive ““.““““.“ 282 12.6 The Load Image Format(-load_ image Option)………………………………… 283 12.6.1 Load Image Section Formation...... n283 12.6.2 Load Image Characteristics .. 12.7 Excluding a specified section a 283 12.8 Assigning Output Filenames 284 12.9 Image Mode and the -fill Option ..... 重日1面m量量面 285 12.9.1 Generating a Memory Image,.,,…,,,,,,,,,,,,,,,,,,,,285 12.9.2 Specifying a Fill Value 285 12.9.3 Steps to Follow in Using Image Mode...... 285 12.10 Building a Table for an On-Chip Boot Loader. 12.10.1 Description of the Boot Table.………….….…….….….………………………,286 12.10.2 The boot table format ,286 12.10.3 How to build the boot table 286 12.10.4 Booting From a Device Peripheral.. 12.10.5 Setting the Entry Point for the Boot table 287 12.10.6 Using the O28× Boot loader.…………………………………………………… 288 12.11 Controlling the ROM Device Address,……,,…,,,,,,,,,,,,,,,292 12.12 Control Hex Conversion Utility Diagnostics. .... 12.13 Description of the object Formats………….………………….…………………………………,294 12.13.1 ASCIl-Hex Object Format(--ascii Option)...... 294 12.13.2 Intel MCS-86 Object Format (--intel Option) 295 12.13.3 Motorola Exorciser Object Format(- motorola Option)…………………… 296 12. 13.4 Extended Tektronix object Format (--tektronix 12.13.5 Texas Instruments sdSmac(TI- Tagged) Object Format(- ti tagged option)……………………298 1213.6T|- TXT Hex Format(- ti txt option)….………,……,…,…,,…,…,………,…,299 12.14 Hex Conversion Utility Error Messages 300 13 Sharing C/C++ Header Files with assembly Source 301 3. 1 Overview of the cdecls directi 302 13.2 Notes on c/C++ Conversions 302 13.2.1C 302 1322 Conditional Compilation(#f#else# Fifdefleto.),………………………303 Contents SPRU513M-March 2017 Submit documentation feedback Copyright o 2017, Texas Instruments Ing ted TEXAS INSTRUMENTS www.ti.com 13.2.3 Pragmas 1重 303 13.2. 4 The #error and #warning directives.... n303 13.2.5 Predefined symbol ASM HEADER 303 13.2.6 Usage Within C/C++ asm()Statements. ,303 13.2.7 The #include Directive ∴303 13.2. 8 Conversion of define macros 303 13.2.9 The #undef directive 304 13.2. 10 Enumerations 304 13.2.11C Strings 304 13.2.12 C/C++ Built-In functions a.a:aaa:aa.aa.aaaa日aa日 305 13.2. 13 Structures and Unions 305 13.2. 14 Function/Variable Prototypes ∴305 13.2.15 C Constant 13.2.16 Basic C/C++ Types 306 13.3 Notes on C++ Specific Conversions 重面1日1重日自日 306 13.3.1 Name Mangling 13.3.2 Derived classes .重_重日 13.3.3 Templates 307 13.3.4 Virtual functions 307 3.4 Special Assembler Support.….…………,…,…,,…,……,…,…,…,…,,,,,307 13.4.1 Enumerations(enum 13. 4.2 The define directive WWW 307 13.4.3 The. undefine/.unasg Directives 13. 4.4 The Defined() Built-In Function ..·“.= 308 13.4.5 The Sizeof Built-In Function 308 13.4.6 Structure/ Union Alignment and salignof()……,,,…,,,… 308 134.7The. cstring Directive.….…………… 308 Symbolic Debugging Directⅳves……… ■ 重1■ 309 A 1 DWarF Debugging format I.8.B 310 A 2 COFF Debugging Format ..310 A.3 Debug Directive Syntax……………….….….…….…………………………………… 311 B XML Link Information File Description.…,…,…,…,,…,……… B..I... 312 B. 1 XML Information File element Types...............,............... 313 B2 Document elements 313 B 2.1 Header elements 313 B.2.2 nput File list......,,,,,,,,,,,,,,,,314 B.2.3 Object Component List.…….……….…….………… ,315 B 2.4 Logical Group List.................... ,316 B.2.5 Placement Map 318 B26 Symbol Table∴ 319 C CRC Reference Implementation.……,……,,…,…,……,…,,,…………,320 C 1 Compilation Instructions C2 Reference crc calculation routine n,321 C 3 Linker-Generated Copy Tables and CRc Tables..... 325 D Glossary…,,…,…,…,……,…,…,…,…,…,……,…,…,…,,……,329 D.1 Terminology .329 E Revision History 334 E1 Recent revisions 334 SPRU513M-March 2017 Contents Submit documentation feedback Copyright o 2017, Texas Instruments Incorporated TEXAS NSTRUMENTS www.ti.com List of Figures 1-1. TMS320C28x Software Development Flow 15 2-1. Partitioning Memory Into Logical Blocks . 2-2. Using Sections Directives Example.……………………………………,…,……,…………… 24 2-3. Object Code generated by the File in 25 2-4. Combining Input Sections to Form an Executable Object Module 27 1. Bootloading Sequence(Simplified) 33 3-2. Bootloading Sequence with Secondary Bootloader . 3-3. Autoinitialization at run time 38 3-4. nitialization at load time ,39 4-1. The assembler in the tms320C28 K Software Development Flow……………………………………………,43 4-2. EXample Assembler Listing∴…… 67 5-1.The. field directive∴∴ 81 5-2. Initialization directi 82 5-3. The align Directive.….… 83 5-4. The. space and. bes directives ,84 5-5.The. field directive∴ …,109 5-6. Single-Precision Floating-Point Format. 5-7. The usect Directive 140 7-1. The archiver in the tms320C28X Software development flow 160 8-1. The Linker in the TMS320C28X Software Development Flow..................... 167 8-2. Memory Map Defined in…..……,………,…,…,, ■重■D面D 重■■看■ 192 8-3. Section placement defined b aaaa:aa:a日:日aa日a:aa:aa: n0D: 196 8-4 Run-Time Execution of 211 8-5. Memory Allocation Shown in and 213 8-6. Overlay pages defined in and aaaa“.aa.a.. BDs-.:.a.aa:.aaaa:“a:aaa“aa::aa.a:a:日 217 8-7.CRC_ TABLE Conceptual Model.….…….……….……………………………………,245 8-8. CRC Data Flow Example..... ∴248 9-1. Absolute Lister Development Flow ,256 10-1. The Cross-Reference Lister Development Flow 262 12-1. The Hex Conversion Utility in the tms320C28x Software development Flow 12-2. Hex Conversion Utility Process Flow.……………,………,……,…,…,…,…………,……………,274 12-3. Object File Data and Memory Widths....... = 275 12-4. Data, Memory, and rom Widths 277 12-5. The infile out File Partitioned Into Four Output Files 280 2-6. Sample Hex Converter out file for booting from 8-Bit SPI Boot 12-7. Sample Hex Converter Out File for C28X16- Bit Parallel Boot gp i/o∴…….….….….….…∴.….…… 12-8. Sample HeX Converter Out File for Booting From8- Bit scl Boot.……….….….….….….….…….…………….291 12-11. Motorola- S Format.…………………".·∴ 12-9. ASCIl-Hex object 294 12-10. Intel Hexadecimal object Format 295 296 12-12. Extended Tektronⅸ k Object Format.… aaaaa:aaa:aa:aaaaa:aa:“a 297 12-13. TI-T agged Object Format.......... .298 12-14. TI-TXT Object Format.. List of Figures SPRU513M-March 2017 Submit documentation feedback Copyright o 2017, Texas Instruments Incorporated TEXAS INSTRUMENTS www.ti.com List of tables 4-1. TMS320C28X Assembler Options...... 44 4-2.C28 k Processor Symbolic Constants..,,…,,,,,,,,,,,,,…,…,57 4-3. CPU Control Registers .......,........... ∴58 4-4. FPU Control Registers :a日 a“a 58 4-5. VCU Registers... 59 4-6. Operators Used in EXpressions(Precedence) 61 4-7. Built-In mathematical Functions ..44..44444.444449444.44744444.4......63 4-8. Symbol Attributes.…… 69 4-9. Smart Encoding for Efficiency 4-10. Smart Encoding Intuitively ∴,70 4-11. Instructions That Avoid Smart Encoding n71 5-1. Directives that control section use 74 5-2. Directives that affect unused section elimination ,74 3. Directives that Initialize Values(Data and Memary) 74 5-4. Directives that Perform Alignment and Reserve Space 75 5-5. Directives that Format the Output Listing....... aaaa.a:aa:aa:aaaaa:aa.aa.aaaa.a.:aaaa.aaa 75 5-6. Directives that reference other files ,75 5-7. Directives that Affect Symbol Linkage and visibility 5-8. Directives that Override the Assembly Mode 76 5-9. Directives that Enable Conditional Assembly ……,76 5-10. Directives that Define Union or Structure Types....................... 重D国1 76 5-11. Directives that Define Symbols at Assembly Time 76 5-12. Directives that create or affect macros 77 5-13. Directives that Control Diagnostics 5-14. Directives that Perform Assembly Source Debug.,................. 77 5-15. Directives that Are Used by the absolute Lister.….………….…………….….…………………,77 5-16. Directives that perform miscellaneous functions..wN.NNNINNIRINNN....77 6-1. Substitution Symbol Functions and Return Values 147 6-2. Creating Macros∴ 157 6-3. Manipulating Substitution Symbols 157 6-4. Conditional assembly . 6-5. Producing Assembly-Time Messages............. .157 6-6. Formatting the Listing....... 157 8-1 Basic Options Summary………… 169 8-2. File Search Path Options Summary 169 8-3. Command File Preprocessing Options Summary…………………………………………169 8-4. Diagnostic Options Summary 169 8-5. Linker Output Options Summary.. 170 8-6. Symbol Management Options Summary∴……………,………… 170 8-7. Run-Time Environment Options Summary 8-8.Link- Time Optimization Options Summary………………………………………,……,…………171 8-9. Miscellaneous Options Summary 171 8-10. Predefined c28x Macro names 175 8-11. Groups of Operators Used in Expressions( Precedence)………………………,222 10-1. Symbol Attributes in Cross-Reference Listing.... 12-1. Basic Hex Conversion Utility Options∴.…..….….….….….….….….….……….271 12-2. Boot-Loader Options 286 SPRU513M-March 2017 List of tables Submit documentation feedback Copyright o 2017, Texas Instruments Incorporated TEXAS NSTRUMENTS www.ti.com 12-3. Boot Table source formats 288 12-4, Boot Table format 288 12-5. Options for Specifying Hex Conversion Formats 294 A-1. Symbolic Debugging Directives.......... 重 311 List of tables SPRU513M-March 2017 Submit documentation feedback Copyright o 2017, Texas Instruments Incorporated

...展开详情
试读 127P TI C2000系列DSP的汇编指令,含cmd文件编写
立即下载 低至0.43元/次 身份认证VIP会员低至7折
    一个资源只可评论一次,评论内容不能少于5个字
    zhuchunsong 东西还不错,是指令工具
    2020-03-03
    回复
    关注 私信 TA的资源
    上传资源赚积分,得勋章
    最新推荐
    TI C2000系列DSP的汇编指令,含cmd文件编写 49积分/C币 立即下载
    1/127
    TI C2000系列DSP的汇编指令,含cmd文件编写第1页
    TI C2000系列DSP的汇编指令,含cmd文件编写第2页
    TI C2000系列DSP的汇编指令,含cmd文件编写第3页
    TI C2000系列DSP的汇编指令,含cmd文件编写第4页
    TI C2000系列DSP的汇编指令,含cmd文件编写第5页
    TI C2000系列DSP的汇编指令,含cmd文件编写第6页
    TI C2000系列DSP的汇编指令,含cmd文件编写第7页
    TI C2000系列DSP的汇编指令,含cmd文件编写第8页
    TI C2000系列DSP的汇编指令,含cmd文件编写第9页
    TI C2000系列DSP的汇编指令,含cmd文件编写第10页
    TI C2000系列DSP的汇编指令,含cmd文件编写第11页
    TI C2000系列DSP的汇编指令,含cmd文件编写第12页
    TI C2000系列DSP的汇编指令,含cmd文件编写第13页
    TI C2000系列DSP的汇编指令,含cmd文件编写第14页
    TI C2000系列DSP的汇编指令,含cmd文件编写第15页
    TI C2000系列DSP的汇编指令,含cmd文件编写第16页
    TI C2000系列DSP的汇编指令,含cmd文件编写第17页
    TI C2000系列DSP的汇编指令,含cmd文件编写第18页
    TI C2000系列DSP的汇编指令,含cmd文件编写第19页
    TI C2000系列DSP的汇编指令,含cmd文件编写第20页

    试读已结束,剩余107页未读...

    49积分/C币 立即下载 >