TMS320C5x DSP STARTER KIT USER'S GUIDE
TMS320C5x DSP STARTER KIT USER'S GUIDE TMS320C5x DSP STARTER KIT USER'S GUIDE
.lqxx/.qxxDirectives ReferenceSyntax .lqxx value 1 [, ... , value n ].qxx value 1 [, ... , value n ]DescriptionExampleThe .qxx and .lqxx directives generate signed, 2s-complement fractional integersand long integers whose decimal points are displaced xx places from the LSB.Here’s an example of the .qxx directive.00001 –––– 0400 .ds 0x40000002 0400 2000 .Q15 0.2500003 0401 4000 .Q15 0.500004 0402 6000 .Q15 0.7500005 0403 e000 .Q15 –0.25,–0.5,–0.750404 c0000405 a00000006 0406 0000 .LQ24 9,100407 09000408 00000409 0a00>>>>> FINISHED READING ALL FILES>>>>> ASSEMBLY COMPLETE: ERRORS:0 WARNINGS:05-24
Directives Reference.mmregsSyntaxDescription.mmregsThe .mmregs directive defines global symbolic names for the TMS320 registersand places them in the global symbol table. It is equivalent to executinggreg .set 5, imr .set 4, etc. The symbols are local and absolute. Using the.mmregs directive makes it unnecessary to define these symbols. Thesymbols are placed as shown in Table 5–2.Table 5–2. Memory-Mapped RegistersAddressName DEC HEX Description0–3 0–3 ReservedIMR 4 4 Interrupt mask registerGREG 5 5 Global memory allocation registerIFR 6 6 Interrupt flag registerPMST 7 7 Processor mode status registerRPTC 8 8 Repeat counter registerBRCR 9 9 Block repeat counter registerPASR 10 A Block repeat program address start registerPAER 11 B Block repeat program address end registerTREG0 12 C Temporary register used for multiplicandTREG1 13 D Temporary register used for dynamic shift countTREG2 14 E Temporary register used as bit pointer indynamic bit testDBMR 15 F Dynamic bit manipulation registerAR0 16 10 Auxiliary register 0AR1 17 11 Auxiliary register 1AR2 18 12 Auxiliary register 2AR3 19 13 Auxiliary register 3AR4 20 14 Auxiliary register 4AR5 21 15 Auxiliary register 5Assembler Directives5-25
- Page 24 and 25: What You’ll NeedDSK module connec
- Page 26 and 27: Step 2: Installing the DSK Software
- Page 28 and 29: Step 4: Modifying the PATH Statemen
- Page 30 and 31: Step 5: Verifying the InstallationI
- Page 32 and 33: Description of the DSK Assembler3.1
- Page 34 and 35: Developing Code for the DSK3.3 Deve
- Page 36 and 37: Getting Started2) Enter the followi
- Page 38 and 39: Getting Started5) Now you are ready
- Page 40 and 41: Creating DSK Assembler Source Files
- Page 42 and 43: Creating DSK Assembler Source Files
- Page 44 and 45: Creating DSK Assembler Source Files
- Page 46 and 47: Symbols4.3 SymbolsSymbols are used
- Page 48 and 49: Assembling Your Program4.5 Assembli
- Page 50 and 51: 4-12
- Page 52 and 53: Using the DSK Assembler Directives5
- Page 54 and 55: Directives That Define Sections5.2
- Page 56 and 57: Directives That Reference Other Fil
- Page 58 and 59: Directives That Initialize Memory5.
- Page 60 and 61: Miscellaneous Directives5.6 Miscell
- Page 62 and 63: .byte/.stringDirectives ReferenceSy
- Page 64 and 65: .copy/.includeDirectives ReferenceL
- Page 66 and 67: .endDirectives ReferenceSyntax.endD
- Page 68 and 69: .float/.bfloat/.double/.efloat/.tfl
- Page 70 and 71: .if/.else/.endifDirectives Referenc
- Page 72 and 73: .liston/.listoffDirectives Referenc
- Page 76 and 77: .mmregsDirectives ReferenceTable 5-
- Page 78 and 79: .setDirectives ReferenceSyntax symb
- Page 80 and 81: .spaceDirectives ReferenceListing f
- Page 82 and 83: .text / .psDirectives ReferenceExam
- Page 84 and 85: 5-34
- Page 86 and 87: Invoking the Debugger6.1 Invoking t
- Page 88 and 89: Invoking the DebuggerSetting the co
- Page 90 and 91: Using Pulldown Menus in the Debugge
- Page 92 and 93: Using Pulldown Menus in the Debugge
- Page 94 and 95: Using Pulldown Menus in the Debugge
- Page 96 and 97: Using Pulldown Menus in the Debugge
- Page 98 and 99: Using Dialog BoxesYou can omit entr
- Page 100 and 101: Using Software Breakpoints6.4 Using
- Page 102 and 103: Quick-Reference Guide6.5 Quick-Refe
- Page 104 and 105: Quick-Reference GuideTable 6-14.Deb
- Page 106 and 107: Circuit Board DimensionsFigure A-1.
- Page 108 and 109: Schematic DiagramP1594837261CONNECT
- Page 110 and 111: Schematic DiagramEODR\OUT-AUXIN-TCL
- Page 112 and 113: GlossaryCWindows that show code, te
- Page 114 and 115: GlossaryIIC:Integrated circuit. A t
- Page 116 and 117: Glossarysingle step: A form of prog
- Page 118 and 119: Indexconditional assembly, directiv
- Page 120 and 121: IndexinitializingCPU registers 6-10
- Page 122 and 123: IndexTtag, definition B-6temporary
Directives Reference.mmregsSyntaxDescription.mmregsThe .mmregs directive defines global symbolic names for the TMS320 registersand places them in the global symbol table. It is equivalent to executinggreg .set 5, imr .set 4, etc. The symbols are local and absolute. Using the.mmregs directive makes it unnecessary to define these symbols. Thesymbols are placed as shown in Table 5–2.Table 5–2. Memory-Mapped RegistersAddressName DEC HEX Description0–3 0–3 ReservedIMR 4 4 Interrupt mask registerGREG 5 5 Global memory allocation registerIFR 6 6 Interrupt flag registerPMST 7 7 Processor mode status registerRPTC 8 8 Repeat counter registerBRCR 9 9 Block repeat counter registerPASR 10 A Block repeat program address start registerPAER 11 B Block repeat program address end registerTREG0 12 C Temporary register used for multiplicandTREG1 13 D Temporary register used for dynamic shift countTREG2 14 E Temporary register used as bit pointer indynamic bit testDBMR 15 F Dynamic bit manipulation registerAR0 16 10 Auxiliary register 0AR1 17 11 Auxiliary register 1AR2 18 12 Auxiliary register 2AR3 19 13 Auxiliary register 3AR4 20 14 Auxiliary register 4AR5 21 15 Auxiliary register 5Assembler Directives5-25