The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine   
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

DSP56303EVM User's Manual Motorola, Incorporated Semiconductor Pr


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet



Order this document DSP56303EVMUM/D Rev. 3.4, 12/1999
DSP56303EVM User's Manual
Motorola, Incorporated Semiconductor Products Sector 6501 William Cannon Drive West Austin 78735-8598
More Information This Product, www.freescale.com
©MOTOROLA INC., 1998. rights reserved.
This document contains information product. Specifications information herein subject change without notice.
Motorola reserves right make changes without further notice products herein improve reliability, function, design. Motorola does assume liability arising application product circuit described herein; neither does convey license under patent rights rights others. Motorola products designed, intended, authorized components systems intended surgical implant into body, other application which failure Motorola product could create situation where personal injury death occur. Should Buyer purchase Motorola products such unintended unauthorized application, Buyer shall indemnify hold Motorola officers, employees, subsidiaries, affiliates, distributors harmless against claims, costs, damages, expenses, reasonable attorney fees arising directly indirectly, claim personal injury death associated with such unintended unauthorized use, even such claim alleges that Motorola negligent regarding design manufacture part. Motorola registered trademarks Motorola, Inc. Motorola, Inc. Equal Opportunity/Affirmative Action Employer OnCE Mfax trademarks Motorola, Inc.
More Information This Product, www.freescale.com
Quick Start Guide Example Test Program DSP56303EVM Technical Summary DSP56303EVM Schematics DSP56303EVM Parts List Motorola Assembler Notes Codec Programming Tutorial Index
More Information This Product, www.freescale.com
Quick Start Guide Example Test Program DSP56303EVM Technical Summary DSP56303EVM Schematics DSP56303EVM Parts List Motorola Assembler Notes Codec Programming Tutorial Index
More Information This Product, www.freescale.com
Table Contents
Chapter Quick Start Guide Equipment 1.1.1 What with DSP56303EVM 1.1.2 What Need Supply Installation Procedure 1.2.1 Preparing DSP56303EVM 1.2.2 Connecting DSP56303EVM Power. Chapter Example Test Program Writing Program. 2.1.1 Source Statement Format 2.1.1.1 Label Field 2.1.1.2 Operation Field 2.1.1.3 Operand Field 2.1.1.4 Data Transfer Fields 2.1.1.5 Comment Field 2.1.2 Example Program Assembling Program 2.2.1 Assembler Command Format. 2.2.2 Assembler Options 2.2.3 Assembler Directives 2.2.3.1 Assembler Significant Characters. 2.2.3.2 Assembly Control 2.2.3.3 Symbol Definition. 2.2.3.4 Data Definition/Storage Allocation 2-10 2.2.3.5 Listing Control Options 2-10 2.2.3.6 Object File Control 2-11 2.2.3.7 Macros Conditional Assembly 2-11 2.2.3.8 Structured Programming 2-11 2.2.4 Assembling Example Program 2-12 Motorola Linker. 2-12 Linker Options 2-13 2.4.1 Linker Directives 2-16
Motorola Table Contents More Information This Product, www.freescale.com
Introduction Debugger Software 2-17 Running Program 2-19 Chapter DSP56303EVM Technical Summary
DSP56303EVM Description Features DSP56303 Description Memory 3.3.1 FSRAM 3.3.1.1 FSRAM Connections 3.3.1.2 Example: Programming AAR0 3.3.2 Flash 3.3.2.1 Flash Connections. 3.3.2.2 Programming Stand-Alone Operation Audio Codec 3.4.1 Codec Analog Input/Output 3.4.2 Codec Digital Interface Command Converter 3-10 Off-Board Interfaces 3-12 3.6.1 Serial Communication Interface Port (SCI) 3-12 3.6.2 Enhanced Synchronous Serial Port (ESSI0) 3-13 3.6.3 Enhanced Synchronous Serial Port (ESSI1) 3-14 3.6.4 Host Port (HI08). 3-14 3.6.5 Expansion Control 3-15 Mode Selector 3-15 Appendix DSP56303EVM Schematics Appendix DSP56303EVM Parts List Parts Listing Appendix Motorola Assembler Notes Introduction Assembler Significant Characters C.2.1 Comment Delimiter Character C.2.2 Unreported Comment Delimiter Characters C.2.3 Line Continuation Macro Argument Concatenation Character.
viii DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
C.2.3.1 Line Continuation C.2.3.2 Macro Argument Concatenation. C.2.4 Return Value Symbol Character C.2.5 Return Value Symbol Character C.2.6 Macro Local Label Override C.2.7 Macro String Delimiter Quoted String DEFINE Expansion Character C.2.7.1 Macro String C.2.7.2 Quoted String DEFINE Expansion. C.2.8 Function Delimiter. C.2.9 Location Counter Substitution C.2.10 String Concatenation Operator C.2.11 Substring Delimiter [<string>,<offset><length>] C.2.12 Short Addressing Mode Force Operator C.2.13 Short Addressing Mode Force Operator C.2.14 Long Addressing Mode Force Operator C.2.15 Immediate Addressing Mode C.2.16 Immediate Short Addressing Mode Force Operator C.2.17 Immediate Long Addressing Mode Force Operator Assembler Directives. C-10 C.3.1 BADDR Buffer Address C-10 C.3.2 Block Storage Bit-Reverse C-11 C.3.3 Block Storage Constant C-11 C.3.4 Block Storage Modulo C-12 C.3.5 BUFFER Start Buffer. C-12 C.3.6 COBJ Comment Object File C-13 C.3.7 COMMENT Start Comment Lines C-14 C.3.8 Define Constant C-14 C.3.9 Define Constant Byte C-15 C.3.10 DEFINE Define Substitution String. C-16 C.3.11 Define Storage C-17 C.3.12 Define Modulo Storage C-17 C.3.13 Define Reverse Carry Storage C-18 C.3.14 Duplicate Sequence Source Lines. C-18 C.3.15 DUPA Duplicate Sequence With Arguments C-19 C.3.16 DUPC Duplicate Sequence With Characters C-20 C.3.17 DUPF Duplicate Sequence Loop C-21 C.3.18 Source Program C-22 C.3.19 ENDBUF Buffer C-23 C.3.20 ENDIF Conditional Assembly C-23 C.3.21 ENDM Macro Definition C-23
Motorola
Table Contents More Information This Product, www.freescale.com
C.3.22 C.3.23 C.3.24 C.3.25 C.3.26 C.3.27 C.3.28 C.3.29 C.3.30 C.3.31 C.3.32 C.3.33 C.3.34 C.3.35 C.3.36 C.3.37 C.3.38 C.3.39 C.3.40 C.3.41 C.3.42 C.3.42.1 C.3.42.2 C.3.42.3 C.3.42.4 C.3.42.5 C.3.43 C.3.44 C.3.45 C.3.46 C.3.47 C.3.48 C.3.49 C.3.50 C.3.51 C.3.52 C.3.53 C.3.54 C.3.55 C.3.56
ENDSEC Section Equate Symbol Value. EXIExit Macro FAIL Programmer Generated Error FORCE Operand Forcing Mode GLOBAL Global Section Symbol Declaration GSET Global Symbol Value. HIMEM High Memory Bounds. IDENT Object Code Identification Record Conditional Assembly Directive INCLUDE Include Secondary File LIST List Assembly LOCAL Local Section Symbol Declaration LOMEM Memory Bounds LSTCOL Listing Field Widths MACLIB Macro Library MACRO Macro Definition MODE Change Relocation Mode Programmer Generated Message NOLIST Stop Assembly Listing Assembler Options Listing Format Control Reporting Options. Message Control Symbol Options Assembler Operation Initialize Memory Space Location Counters PAGE Page/Size Page PMACRO Purge Macro Definition PRCTL Send Control String Printer RADIX Change Input Radix Constants RDIRECT Remove Directive Mnemonic from Table SCSJMP Structured Control Statement Branching Mode SCSREG Reassign Structured Control Statement Registers SECTION Start Section Symbol Value STITLE Initialize Program Sub-Title SYMOBJ Write Symbol Information Object File TABS Listing Stops TITLE Initialize Program Title
C-24 C-24 C-25 C-25 C-26 C-26 C-26 C-27 C-27 C-28 C-29 C-29 C-30 C-30 C-31 C-31 C-32 C-33 C-33 C-34 C-34 C-35 C-35 C-35 C-36 C-36 C-42 C-45 C-45 C-46 C-46 C-47 C-47 C-48 C-48 C-51 C-51 C-51 C-52 C-52
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
C.3.57 UNDEF Undefine DEFINE Symbol C-52 C.3.58 WARN Programmer Generated Warning C-52 C.3.59 XDEF External Section Symbol Definition C-53 C.3.60 XREF External Section Symbol Reference C-53 Structured Control Statements C-54 C.4.1 Structured Control Directives C-54 C.4.2 Syntax. C-55 C.4.2.1 .BREAK Statement. C-55 C.4.2.2 .CONTINUE Statement C-56 C.4.2.3 .FOR Statement C-56 C.4.2.4 Statement. C-57 C.4.2.5 .LOOP Statement C-58 C.4.2.6 .REPEAT Statement C-58 C.4.2.7 .WHILE Statement C-58 C.4.3 Simple Compound Expressions. C-59 C.4.3.3 Operand Comparison Expressions C-60 C.4.3.4 Compound Expressions C-61 C.4.3.5 Statement Formatting C-61 C.4.3.6 Expression Formatting C-61 C.4.3.7 .FOR/.LOOP Formatting C-62 C.4.4 Assembly Listing Format C-62 C.4.5 Effects Programmer's Environment C-62 Appendix Codec Programming Tutorial D.2.1 D.2.2 D.5.1 D.5.2 D.5.3 D.5.4 D.8.1 Introduction Codec Background. Codec Device Codec Modes ESSI Ports Background ESSI/GPIO pins ESSI Port Registers ESSI/GPIO Shared Registers ESSI Registers GPIO Registers. GPIO Mode Port Port Digital Interface (ESSI Codec) Programming CS4218 Codec Phase Setting Constants Setting Buffer Space Pointers
Motorola
Table Contents More Information This Product, www.freescale.com
D.8.2 Defining Control Parameters CODEC. D-10 Phase Initializing Interfacing ESSI CODEC Ports D-12 D.9.1 Initialize ESSI Ports D-12 D.9.2 Configure GPIO Pins D-15 D.9.3 Initialization CODEC ports D-19 D.9.4 Enabling Interrupts/ESSI ports: D-23 D.10 Phase III: Data Transferring Mechanism. D-24 D.10.1 Interrupts Interrupt Service Routines D-24 D.10.2 ESSI Receive Data with Exception Status Interrupt D-24 D.10.3 ESSI Receive Data Interrupt D-25 D.10.4 ESSI Receive Last Slot Interrupt D-26 D.10.5 ESSI Transmit Data with Exception Status Interrupt D-27 D.10.6 ESSI Transmit Last Slot Interrupt D-28 D.10.7 ESSI Transmit Data Interrupt. D-29 D.11 Example Application D-30 D.11.1 Echo Program. D-31 D.11.2 Echo Code D-31
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
List Tables
Assembler Options Linker Options 2-13 CS4218 Sampling Frequency Selection Jumper Block Options Jumper Block Options On-Board JTAG Enable/Disable Option 3-11 Debug RS-232 Connector (P2) Pinout 3-11 JTAG/OnCE (J6) Connector Pinout 3-12 Header (J7) Pinout 3-13 Jumper Options. 3-13 Serial Port (P1) Connector Pinout 3-13 ESSI0 Header (J5) Pinout 3-14 ESSI0 Header (J4) Pinout 3-14 HI08 Header (J3) Pinout 3-15 Expansion Control Signal Header (J2) Pinout. 3-15 Boot Mode Selection Options 3-16 DSP56303EVM Parts List ESSI Definition. ESSI/GPIO Shared Registers ESSI Registers GPIO Registers Set-Up Descriptions Jumper Block (ESSI0) Jumper Block (ESSI1) CS4218 Codec Control Information (MSB) D-10 Settings Control Register D-13 Settings Control Register D-13
3-10 3-11 3-12 3-13 3-14 D-10
Motorola
List Tables More Information This Product, www.freescale.com
xiii
D-11 D-12 D-13 D-14 D-15
Port Data Register Pin/bit Correspondence D-16 Port Data Register Pin/bit Correspondence D-16 Data Direction Register D-18 Data Direction Register D-18 Codec Pins D-20
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
List Figures
DSP56303EVM Component Layout Connecting DSP56303EVM Cables Development Process Flow. Example Debugger Window Display 2-18 DSP56303EVM Component Layout DSP56303EVM Functional Block Diagram. FSRAM Connections DSP56303 Example Memory with Unified External Memory. Address Attribute Register AAR0 Flash Connections Codec Analog Input/Output Diagram Codec Digital Interface Connections RS-232 Serial Interface. 3-11 DSP56303 External Memory RS232 Interface Command Converter Audio Codec Power Supply Bypass Capacitors Data Format Codec ESSI/Codec Setup. Block Diagram Delayed Sample (echo) D-31
Motorola
List Figures More Information This Product, www.freescale.com
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
List Examples
Example Source Statement Simple DSP56303EVM Code Example Example Comment Delimiter Example Unreported Comment Delimiter Example Line Continuation Character Example Macro Concatenation. Example Return Value Character Example Return Value Symbol Character Example Local Label Override Character Example Macro String Delimiter Character Example Quoted String DEFINE Expression Example Function Delimiter Character Example Location Counter Substitution Example String Concatenation Operator Example Substring Delimiter. Example Short Addressing Mode Force Operator Example Short Addressing Mode Force Operator. Example Long Addressing Mode Force Operator Example Immediate Addressing Mode Example Immediate Short Addressing Mode Force Operator Example Immediate Long Addressing Mode Operator C-10 Example BADDR Directive C-10 Buffer Directive C-11 Block Storage Constant Directive C-12 Block Storage Modulo Directive C-12 Buffer Directive C-13 COBM Directive C-13 COMMENT Directive C-14 Single Character String Definition C-15
List Examples More Information This Product, www.freescale.com xvii
C-10 C-11 C-12 C-13 C-14 C-15 C-16 C-17 C-18 C-19 C-20 C-21 C-22 C-23 C-24 C-25 C-26 C-27
Motorola
C-28 C-29 C-30 C-31 C-32 C-33 C-34 C-35 C-36 C-37 C-38 C-39 C-40 C-41 C-42 C-43 C-44 C-45 C-46 C-47 C-48 C-49 C-50 C-51 C-52 C-53 C-54 C-55 C-56 C-57 C-58 C-59
Multiple Character String Definition C-15 Directive. C-15 Directive C-16 DEFINE Directive C-16 Directive C-17 Directive C-17 Directive. C-18 Directive C-19 DUPA Directive C-20 DUPC Directive C-21 DUPF Directive C-22 Directive C-23 ENDBUF Directive C-23 ENDIF Directive. C-23 ENDM Directive. C-24 ENDSEC Directive. C-24 Directive C-25 EXIDirective C-25 FAIL Directive C-26 FORCE Directive C-26 GLOBAL Directive C-26 GSET Directive C-27 HIMEM Directive. C-27 IDENT Directive C-28 Directive. C-29 INCLUDE Directive. C-29 LIST Directive C-30 LOCAL Directives C-30 LOMEM Directive C-31 LSTCOL Directive C-31 MACLIB Directive. C-32 MACRO Directive C-33
xviii
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
C-60 C-61 C-62 C-63 C-64 C-65 C-66 C-67 C-68 C-69 C-70 C-71 C-72 C-73 C-74 C-75 C-76 C-77 C-78 C-79 C-80 C-81 C-82 C-83 C-84 C-85 C-86 C-87 C-88 C-89
MODE Directive. C-33 Directive C-33 NOLIST Directive C-34 Directive. C-41 Directive C-43 PAGE Directive C-45 PMACRO Directive C-46 PRCTL Directive C-46 RADIX Directive C-47 RDIRECT Directive C-47 SCSJMP Directive C-48 SCSREG Directive C-48 SECTION Directive C-51 Directive C-51 STITLE Directive C-51 SYMOBJ C-52 TABS Directive C-52 TITLE Directive C-52 UNDEF Directive C-52 WARN Directive C-53 XDEF Directive C-53 XREF Directive C-54 .BREAK Statement. C-56 .CONTINUE Statement C-56 .FOR Statement C-57 Statement. C-57 .LOOP Statement C-58 .REPEAT Statement C-58 .WHILE Statement C-59 Condition Code Expression C-60 Setting Transmit Receive Buffers Pointers Setting Codec Control Information D-11
Motorola
List Examples More Information This Product, www.freescale.com
D-10 D-11 D-12 D-13 D-14 D-15 D-16 D-17 D-18 D-19 D-20 D-21 D-22 D-23 D-24
ESSI Port Reset Procedure D-12 Setting Control Registers ESSI0 Port D-15 Defining GPIO Pin/Bin Correspondence D-17 GPIO Configuration D-17 Code Form Settings Data Direction Registers D-19 Code Format Procedures D-19 Deasserting Code Reset D-19 Sending Code Information D-21 Sending Control Words D-22 ESSI Port Priority Functionality Setting D-24 ESSI Exception Status Interrupt Service D-25 ESSI Receive Data Interrupt Service D-26 ESSI Receive Last Slot Interrupt Service. D-27 ESSI Transmit Data with Exception Status Interrupt Service D-28 ESSI Transmit Last Slot Interrupt Service D-29 ESSI Transmit Data Interrupt Service D-30 Include, Define, Set-Up Tasks D-32 Initialization Procedure D-33 Initializing CODEC/ESSI. D-33 Setting Initializing Buffer D-33 Implementation Echo Program. D-34 Application Echo Code D-35
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Chapter Quick Start Guide
This section summarizes evaluation module contents additional requirements also provides quick installation test information. remaining sections this manual give details DSP56303EVM design operation.
Equipment
following subsections list equipment required DSP56303 evaluation module (DSP56303EVM), some which supplied with module, some which must supplied user.
1.1.1 What with DSP56303EVM
following material comes with DSP56303EVM: DSP56303 Evaluation Module board DSP56303EVM Product Brief DSP56303EVM User's Manual (this document) DSP56303 Product Specifications, Revision 1.03 DSP56303 Chip Errata Crystal Semiconductor CS4218 16-bit Multimedia Audio Codec Data Sheet Technical Documentation CD-ROM including following documents: DSP56300 Family Manual DSP56303 User's Manual DSP56303 Technical Data Sheet required software: Debugger from Domain Technologies Assembler/linker software from Motorola
Motorola
Quick Start Guide More Information This Product, www.freescale.com
Installation Procedure
1.1.2 What Need Supply
user must provide following: (Pentium-90MHz higher) with Windows95 Minimum 16Mbytes memory with Windows95 Minimum 32Mbytes memory with Windows high density diskette drive CD-ROM drive
Hard drive with Mbytes free disk space Mouse RS-232 serial port supporting 9,600-115,200 bit-per-second transfer rates RS-232 interface cable (DB9 plug female) Power supply, input into 2.1-mm power connector Audio source (tape player, radio, player, etc.) Audio interface cable with 1/8-inch stereo plugs Headphones
Installation Procedure
Installation requires following four basic steps: Preparing DSP56303EVM board Connecting board power Installing software Testing installation
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Installation Procedure
1.2.1 Preparing DSP56303EVM Warning
Because electronic components sensitive effects electrostatic discharge (ESD) damage, correct procedures should used when handling components this inside supporting personal computer. following procedures minimize likelihood damage ESD: Always handle static-sensitive components only protected area, preferably with conductive (antistatic) flooring bench surfaces. Always grounded wrist straps when handling sensitive components. remove components from antistatic packaging until required installation. Always transport sensitive components antistatic packaging. Locate jumper blocks shown Figure 1-1. block make sure that there jumpers connecting pins pins blocks make sure that positions each block jumpered. These jumpers perform following functions: controls operating mode DSP56303. control interface between audio codec DSP56303 enhanced synchronous serial interface (ESSI0). controls interface between DSP56303 JTAG/OnCEport DSP56002 synchronous serial interface (SSI).
Motorola
Quick Start Guide More Information This Product, www.freescale.com
Installation Procedure
MC74HCT04 DSP56002 AT29LV010A Flash
TEST
DSP56303 MC34164
GS7102AT FSRAM MAX212 Debug JTAG/ OnCEMC33269 QS3384
LM4880
HDPHNE
Serial
CS4218
POWER Power
AA1925
Figure 1-1. DSP56303EVM Component Layout
1.2.2 Connecting DSP56303EVM Power
Figure shows interconnection diagram connecting external power supply DSP56303EVM board.
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Installation Procedure
Cable PC-Compatible Computer Connect cable RS-232 port External Power
DSP56303EVM
AA1926
Figure 1-2. Connecting DSP56303EVM Cables
following steps complete cable connections: Connect DB9P RS-232 interface cable RS-232 port connection Connect DB9S cable shown Figure 1-1, DSP56303EVM board. This provides connection allow control board function. Make sure external power supply supplied with power. Connect 2.1-mm output power plug into shown Figure 1-1, DSP56303EVM board. Apply power power supply. green power lights when power correctly applied.
Motorola
Quick Start Guide More Information This Product, www.freescale.com
Installation Procedure
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Chapter Example Test Program
This section contains example that illustrates develop very simple program DSP56303. This example users with little experience with development tools. example demonstrates form assembly programs, gives instructions assemble programs, shows Debugger verify operation programs. Figure shows development process flow assembly programs. rounded blocks represent assembly object files. white blocks represent software programs assemble link assemble programs. gray blocks represent hardware products. following sections give basic information assembly program, assembler, linker object files. detailed information these subjects, consult assembler linker manuals provided with Motorola CLAS software package, available through your Motorola sales office distributor. documentation also available through Motorola Wireless internet,
Motorola
Example Test Program More Information This Product, www.freescale.com
Writing Program
Assembly Program *.asm
Assembler
Relocatable Object File *.cln
Linker
Executable Object File *.cld
Command Converter Card
DSP56002
DSP56303 DSP56303EVM
AA1927
Figure 2-1. Development Process Flow
Writing Program
following sections describe format assembly language source statements give example assembly program.
2.1.1 Source Statement Format
Programs written assembly language consist sequence source statements. Each source statement include fields separated more spaces tabs: label field, operation field, operand field, data transfer fields, comment field. example, following source statement shows possible fields:
Example 2-1. Example Source Statement x0,y0,a x:(r0)+,x0 y:(r4)+,y0 ;Text
Label
Operation
Operand
Data Transfer
Data Transfer
Comment
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Writing Program
2.1.1.1 Label Field label field first field source statement take following forms: space first character line ordinarily indicates that label file empty that line label. alphabetic character first character indicates that line contains symbol called label. underscore first character indicates that label local.
With exception some directives, label assigned value location counter first word instruction data being assembled. line consisting only label valid line assigns value location counter label. 2.1.1.2 Operation Field operation field appears after label field must preceded least space tab. Entries operation field three types: Opcode-mnemonics that correspond directly machine instructions Directive-special operation codes known assembler that control assembly process Macro call-invocation previously defined macro that inserted place macro call
2.1.1.3 Operand Field interpretation operand field depends contents operation field. operand field, present, must follow operation field must preceded least space tab. 2.1.1.4 Data Transfer Fields Most opcodes specify more data transfers occur during execution instruction. These data transfers indicated addressing mode operands separated comma, with embedded blanks. data transfers specified, they must separated more blanks tabs. Refer DSP56300 Family Manual complete discussion addressing modes that applicable data transfer specifications.
Motorola
Example Test Program More Information This Product, www.freescale.com
Writing Program
2.1.1.5 Comment Field Comments considered significant assembler included source file documentation purposes. comment field composed characters that preceded semicolon.
2.1.2 Example Program
example program discussed this section takes lists data, memory memory, calculates products lists. Calculating products basis many functions. Therefore, DSP56303 special instruction, "multiplier-accumulate (MAC)s", which multiplies values adds result contents accumulator.
Example Simple DSP56303EVM Code Example SIMPLE PROGRAM: CALCULATING PRODUCTS PBASE $100 ;instruct assembler replace ;every occurrence PBASE with $100 XBASE ;used define position ;data memory YBASE ;used define position ;data memory MEMORY x:XBASE ;instructs assembler that ;are referring memory starting location XBASE list1 $f76756,$423423,$324732,$f40029 MEMORY y:YBASE ;instructs assembler that ;are referring memory starting location YBASE list2 $123456,$657784,$567123,$675634 ;PROGRAM ;put following program program ;memory starting location
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembling Program
Example 2-1. Simple DSP56303EVM Code Example (Continued) begin ;p:0 reset vector i.e. where ;the looks instructions ;after reset p:PBASE ;start main program p:PBASE begin #list1,r0 ;set pointer start list1 #list2,r4 ;set pointer start list2 ;clear accumulator x:(r0)+,x0 y:(r4)+,y0 ;load value memory pointed contents into ;post-increment ;load value memory pointed contents into ;post-increment #15,endloop;do times x0,y0,a x:(r0)+,x0 y:(r4)+,y0 ;multiply accumulate, load ;next values endloop ;this equivalent ;label label ;and therefore never-ending, ;empty loop ;END SIMPLE PROGRAM move move move
Assembling Program
following sections describe format assembler command, list assembler special characters directives, give instructions assemble example program.
2.2.1 Assembler Command Format
Motorola assembler included with DSP56303EVM Motorola Tools installed following instructions "Read file Motorola assembler program that translates assembly language source statements into object programs compatible with DSP56303. general format command line invoke assembler asm56300 [options] <filenames> where asm56300 name Motorola assembler program, <filenames> list assembly language programs assembled.
Motorola
Example Test Program More Information This Product, www.freescale.com
Assembling Program
2.2.2 Assembler Options
Table describes assembler options. avoid ambiguity, option arguments should immediately follow option letter with blanks between them.
Table 2-1. Assembler Options
Option Description Puts assembler into absolute mode generates absolute object file when command line option given. default, assembler produces relocatable object file that subsequently processed Motorola linker. Specifies that object file created assembler output. <objfil> legal operating system filename, including optional pathname. type object file depends assembler operation mode. option supplied command line, assembler operates absolute mode generates absolute object (.cld) file. there option, assembler operates relative mode creates relocatable object (.cln) file. option specified, assembler does generate object file. <objfil> specified, assembler uses basename (filename without extension) first filename encountered source input file list appends appropriate file type (.cln or.cld) basename. option should specified only once. Example: asm56300 -Bfilter main.asm fft.asm fio.asm This example assembles files main.asm, fft.asm, fio.asm together produce relocatable object file filter.cln. <symbol> <string> Replaces occurrences <symbol> with <string> source files assembled. Example: asm56300 -DPOINTS prog.asm Replaces occurrences symbol POINTS program prog.asm string `16'. -EA<errfil> -EW<errfil> Allows standard error output file reassigned hosts that support error output redirection from command line. <errfil> must present argument legal operating system filename, including optional pathname. option causes standard error stream written <errfil>; <errfil> exists, output stream appended file. option also writes standard error stream <errfil>; <errfil> exists, overwritten. Example: asm56300 -EWerrors prog.asm Redirects standard output file errors. file already exists, overwritten. -F<argfil> Indicates that assembler should read command line input from <argfil>, which legal operation system filename, including optional pathname. <argfil> text file containing further options, arguments, filenames passed assembler. arguments file need separated only white space. semicolon line following white space makes rest line comment. Example: asm56300 -Fopts.cmd Invokes assembler takes command line options source filenames from command file opts.cmd.
-B<objfil>
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembling Program
Table 2-1. Assembler Options (Continued)
Option Description Sends source file line number information object file. This option valid only conjunction with command line option. Debuggers generated line number information provide source-level debugging. Example: asm56300 -Gmyprog.asm Assembles file myprog.asm sends source file line number information resulting object file myprog.cln. -I<pathname> Causes assembler look directory defined <pathname> include file found current directory. <pathname> legal operating system pathname. Example: asm56300 -I\project\ testprog Uses pathname conventions causes assembler prefix include files found current directory with \project\ pathname. -L<lstfil> Specifies that listing file created assembler output. <lstfil> legal operating system filename, including optional pathname. <lstfil> specified, assembler uses basename (filename without extension) first filename encountered source input file list appends .lst basename. option specified only once. Example: asm56300 filter.asm gauss.asm Assembles files filter.asm gauss.asm together produce listing file. Because filename given, output file named using basename first source file, this case filter, listing file called filter.lst. -M<pathname> Causes assembler look directory defined <pathname> macro file found current directory. <pathname> legal operating system pathname. Example: asm56300 -Mfftlib\ trans.asm Uses pathname conventions causes assembler look fftlib subdirectory current directory file with name currently invoked macro found source file, trans.asm. Causes assembler report assembly progress standard error output stream. Causes assembler strip symbol information from absolute load file. Normally symbol information retained object file symbolic references purposes. This option valid only with options. Note: Multiple options used. typical string might follows: Example: asm56300 filename.asm
Motorola
Example Test Program More Information This Product, www.freescale.com
Assembling Program
2.2.3 Assembler Directives
addition DSP56303 instruction set, assembly programs contain mnemonic directives that specify auxiliary actions performed assembler. These assembler directives. These directives always translated into machine language. following sections briefly describe various types assembler directives. 2.2.3.1 Assembler Significant Characters following one-and two-character sequences significant assembler:
Comment delimiter Line continuation character macro dummy argument concatenation operator
Unreported comment delimiter Macro value substitution operator Macro value substitution operator Macro local label override operator Macro string delimiter quoted string DEFINE expansion character Function delimiter Location counter substitution String concatenation operator Substring delimiter short addressing mode force operator Short addressing mode force operator Long addressing mode force operator Immediate addressing mode operator Immediate short addressing mode force operator Immediate long addressing mode force operator
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembling Program
2.2.3.2 Assembly Control directives used assembly control follows: COMMENT DEFINE FAIL FORCE HIMEM Start comment lines Define substitution string source program Programmer-generated error message operand forcing mode high memory bounds Include secondary file memory bounds Change relocation mode Programmer-generated message Initialize memory space location counters Change input radix constants Remove directive mnemonic from table structured control branching mode Reassign structured control statement registers Undefine DEFINE symbol Programmer-generated warning
INCLUDE LOMEM MODE RADIX RDIRECT SCSJMP SCSREG UNDEF WARN
2.2.3.3 Symbol Definition directives used control symbol definition follows: ENDSEC GLOBAL GSET LOCAL SECTION XDEF XREF
Motorola
section Equate symbol value Global section symbol declaration global symbol value Local section symbol declaration Start section symbol value External section symbol definition External section symbol reference
Example Test Program More Information This Product, www.freescale.com
Assembling Program
2.2.3.4 Data Definition/Storage Allocation directives control constant data definition storage allocation follows: BADDR- buffer address BSB- Block storage bit-reverse BUFFER Block storage constant Block storage modulo Start buffer Define constant Define constant byte Define storage Define modulo storage Define reverse carry storage buffer
ENDBUF
2.2.3.5 Listing Control Options directives control output listing follows: LIST LSTCOL NOLIST PAGE PRCTL STITLE TABS TITLE List assembly listing field widths Stop assembly listing Assembler options page/size page Send control string printer Initialize program subtitle listing stops Initialize program title
2-10
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembling Program
2.2.3.6 Object File Control directives control object file follows: COBJ IDENT SYMOBJ Comment object code Object code identification record Write symbol information object file
2.2.3.7 Macros Conditional Assembly directives macros conditional assembly follows:
DUPA DUPC DUPF ENDIF ENDM EXIIF MACLIB MACRO PMACRO
Duplicate sequence source lines Duplicate sequence with arguments Duplicate sequence with characters Duplicate sequence loop conditional assembly macro definition Exit macro Conditional assembly directive Macro library Macro definition Purge macro definition
2.2.3.8 Structured Programming directives structured programming follows: .BREAK .CONTINUE .ELSE .ENDF .ENDI .ENDL .ENDW .FOR Exit from structured loop construct Continue next iteration structured loop Perform following statements when false .FOR loop condition hardware loop .WHILE loop Begin .FOR loop Begin condition
Motorola
Example Test Program More Information This Product, www.freescale.com
2-11
Motorola Linker
.LOOP .REPEAT .UNTIL .WHILE
Begin hardware loop Begin .REPEAT loop .REPEAT loop Begin .WHILE loop
2.2.4 Assembling Example Program
assembler MS-DOS based program; thus, assembler must exit Windows open MS-DOS Prompt Window. assemble example program, type asm56300 example.asm into evm30xw directory created installation process from Section 2.2.1, "Assembler Command Format," page 2-5. This creates additional files: example.cld example.lst. example.cld file absolute object file program; downloaded into DSP56303. example.lst file listing file; gives full details where program data placed DSP56303 memory.
Motorola Linker
Though needed simple example, Motorola linker also included with DSP56303EVM. Motorola linker program that processes relocatable object files produced Motorola assembler, generating absolute executable file which downloaded DSP56303. Motorola linker included Motorola Tools installed following instructions Section 2.2.1, "Assembler Command Format," page 2-5. general format command line invoke linker dsplnk [options] <filenames> where dsplnk name Motorola linker program, <filenames> list relocatable object files linked.
2-12
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Linker Options
Linker Options
Table describes linker options. avoid ambiguity, option arguments should immediately follow option letter with blanks between them.
Table 2-2. Linker Options
Option Description Auto-aligns circular buffers. modulo reverse-carry buffers defined object file input sections relocated independently order optimize placement memory. Code data surrounding buffer packed fill space formerly occupied buffer corresponding alignment gaps. Example: dsplnk myprog.cln Links file myprog.cln optimally aligns buffers encountered input. -B<objfil> Specifies that object file created linker output. <objfil> legal operating system filename, including optional pathname. filename specified, option present, linker uses basename (filename without extension) first filename encountered input file list appends .cld basename. option present (see below), explicit filename must given because linker follows default action, overwrite input files. option specified only once. file named option already exists, overwritten. Example: dsplnk -Bfilter.cld main.cln fft.cln fio.cln Links files main.cln, fft.cln, fio.cln together produce absolute executable file filter.cld. -EA<errfil> -EW<errfil> Allows standard error output file reassigned hosts that support error output redirection from command line. <errfil> must present argument, legal operating system filename, including optional pathname. option causes standard error stream written <errfil>; <errfil> exists, output stream appended file. option also writes standard error stream <errfil>; <errfil> exists overwritten. Example: dsplnk -EWerrors myprog.cln Redirects standard error output file errors. file already exists, overwritten. -F<argfil> Indicates that linker should read command line input from <argfil>, which legal operating system filename, including optional pathname. <argfil> text file containing further options, arguments, filenames passed linker. arguments file need separated only white space. semicolon line following white space makes rest line comment. Example: dsplnk -Fopts.cmd This example invokes linker takes command line options input filenames from command file opts.cmd.
Motorola
Example Test Program More Information This Product, www.freescale.com
2-13
Linker Options
Table 2-2. Linker Options (Continued)
Option Description Sends source file line number information object file. generated line number information used debuggers provide source-level debugging. Example: dsplnk -Gmyprog.cln Links file myprog.cln sends source file line number information resulting object file myprog.cld. linker ordinarily produces absolute executable file output. When option given, linker combines input files into single relocatable object file suitable reprocessing linker. absolute addresses assigned errors issued unresolved external references. Note that option must used when performing incremental linking order give explicit name output file. filename allowed default, overwrite input file. Example: dsplnk -Bfilter.cln main.cln fft.cln fio.cln Combines files main.cln, fft.cln, fio.cln produce relocatable object file filter.cln. -L<library> linker ordinarily processes list input files that each contain single relocatable code module. Upon encountering option, linker treats following argument library file searches file outstanding unresolved references. finds module library that resolves outstanding external reference, reads module from library includes object file output. linker continues search library until external references resolved more references satisfied within current library. linker searches library only once, position option command line significant. Example: dsplnk filter main -Lio Illustrates linking with library. files main.cln fir.cln combined with needed modules library io.lib create file filter.cld. -M<mapfil> Indicates that file created. <mapfil> legal operating system filename, including optional pathname. filename specified, linker uses basename (filename without extension) first filename encountered input file list append .map basename. option specified, then linker does generate file. option specified only once. file named option already exists, overwritten. Example: dsplnk filter.cln gauss.cln Links files filter.cln gauss.cln produce file. Because filename given with option, output file named using basename first input file, this case filter. file called filter.map. linker case symbol names significant. When option given linker ignores case symbol names; symbols mapped lower case. Example: dsplnk filter.cln fft.cln fio.cln Links files filter.cln, fft.cln, fio.cln produce absolute executable file filetr.cld; Maps symbol references lower case.
2-14
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Linker Options
Table 2-2. Linker Options (Continued)
Option -O<mem>[<ctr>][< map>]:<origin> Description default, linker generates instructions data output file beginning absolute location zero memory spaces. This option allows programmer redefine start address memory space associated location counter. <mem> single-character memory space identifiers letter upper-or lowercase. optional <ctr> letter indicating high location counters. counter specified default counter used. <map> also optional signifies desired physical mapping relocatable code given memory space. internal memory, external memory, ROM, Port Port <map> supplied, then explicit mapping presumed. <origin> hexadecimal number signifying relocation address given memory space. option specified many times needed command line. This option effect incremental linking being done. (See option.) Example: dsplnk -Ope:200 myprog -Lmylib Initializes default memory counter maps program space external memory. -P<pathname> When linker encounters input files, first searches current directory directory given library specification) file. found option specified, linker prefixes filename (and optional pathname) file specification with <pathname> searches newly formed directory pathname file. pathname must legal operating system pathname. option repeated many times desired. Example: dsplnk -P\project\ testprog Uses pathname conventions causes linker prefix library files found current directory with \project\ pathname. -R<ctlfil> Indicates that memory control file read determine placement sections into memory other linker control functions. <ctlfil> legal operating system filename, including optional pathname. pathname specified, attempt made open file current directory. filename specified, linker uses basename (filename without extension) first filename encountered link input file list append .ctl basename. option specified, then linker does memory control file. option specified only once. Example: dsplnk -Rproj filter.cln gauss.cln Links files filter.cln gauss.cln using memory file proj.ctl. -U<symbol> Allows declaration unresolved reference from command line. <symbol> must specified. This option useful creating undefined external reference order force linking entirely from library. Example: dsplnk -Ustart -Lproj.lib Declares symbol start undefined that resolved code within library proj.lib. Causes linker report linking progress (beginning passes, opening closing input files) standard error output stream. This useful ensure that link editing proceeding normally. Example: dsplnk myprog.cln Links file myprog.cln sends progress lines standard error output.
Motorola
Example Test Program More Information This Product, www.freescale.com
2-15
Linker Options
Table 2-2. Linker Options (Continued)
Option -X<opt>[,<opt>,.,< opt>] Description Provides link time options that alter standard operation linker. options described below. options preceded "NO" reverse their meaning. -X<opt> sequence repeated many options desired.
Option
ABC* AEC* OVLP RSC*
Meaning
Perform address bounds checking Check form address expressions Enable absolute section bounds checking Cumulate section length data allocate memory below ordered sections Warn section overlap Allow region overlap Enable relative section bounds checking Preserve object file errors warning count exit status
means default) Example: dsplnk -XWEX filter.cln fft.cln fio.cln Allows linker warning count exit status that project build aborts warnings well errors. Allows linker strip source file line number symbol information from output file. Symbol information normally retained debugging purposes. This option effect incremental linking being done. (See option.) Example: dsplnk -Zfilter.cln fft.cln fio.cln Links files filter.cln, fft.cln, fio.cln produce absolute object file filter.cln. output file contains symbol line number information.
2.4.1 Linker Directives
Similar assembler directives, linker includes mnemonic directives which specify auxiliary actions performed linker. Following list linker directives. BALIGN BASE IDENT INCLUDE MEMORY REGION RESERVE SBALIGN Auto-align circular buffers region base address Object module identification Include directive file file format control region high memory address Establish memory region Reserve memory block Auto-align section buffers
2-16
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Introduction Debugger Software
SECSIZE SECTION SIZSYM START SYMBOL
section length section base address symbol value size symbol Establish start address symbol value
Introduction Debugger Software
This section briefly introduces Domain Technologies debugger, giving only details required work through this example. full details Debugger informative tutorial, consult Debug-56K Manual. Domain Technologies Debugger software development system DSP56303. Domain Technologies Debugger included with DSP56303EVM Domain Technologies CD-ROM, installed following on-line instructions. running Windows95 WindowsNT, software installer will launched automatically when insert into your drive. invoke Debugger, double-click icon labelled evm30xw EVM5630x program group created when Debugger installed. Debugger display similar that shown Figure 2-2; screen divided into four windows-the command window, data window, unassembly window, registers window. command window window selected, which means that strokes placed into command window. data window displays DSP56303 data. unassembly window displays DSP56303 programs highlighting next instruction executed. registers window shows contents DSP56303 internal registers.
Motorola
Example Test Program More Information This Product, www.freescale.com
2-17
Introduction Debugger Software
EVM-563xx COM2
AA1791
Figure 2-2. Example Debugger Window Display
When command window selected Figure 2-2, tool-bar screen will change show buttons commands used most often command window. From left right commands are"go", "stop", "step", "jump", "automatic update", "reset" "radix". "Go" runs DSP56303 from program counter. "Stop" stops DSP56303. "Step" executes single instruction. "Jump" similar step, except that subroutines treated instruction. "Automatic update" turns automatic screen update mode that DSP56303 periodically interrupted update data registers windows. "Reset" resets DSP56303. "Radix" used change radix selected window.
Other buttons appear when other windows selected, they function described Debug-56K Manual, which contained Domain Technologies CD-ROM.
2-18
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Running Program
Running Program
load example program into Debugger, click command window type load example. instruction line highlighted unassembly window because this first instruction executed. But, before executing program, verify that values expected data memory there. this, type display display y:0. data displayed data window. step through program, type step command window prompt. shortcut, click step button type start command press space bar, debugger will complete remainder command. repeat last command, press return. step through code, notice that registers registers window changed instructions. After each cycle, register that been changed highlighted. Once have stepped through program, ensure that program executed correctly checking that result accumulator 9F2051 6DFCC2. Stepping through program like this good short programs, impractical large, complex programs. debug large programs breakpoints, which user-defined points where execution code stops, allowing user step through section interest. example breakpoint, verify that values correct before loop, type break p:$106 command window. line before loop brightens unassembly window, indicating breakpoint been set. point DSP56303 back start point program, type change This changes program counter that points reset vector. program type click button. DSP56303 stops when reaches breakpoint, step through remainder code. exit Debugger, type quit command prompt.
Motorola
Example Test Program More Information This Product, www.freescale.com
2-19
Running Program
2-20
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Chapter DSP56303EVM Technical Summary
DSP56303EVM Description Features
overview description DSP56303EVM provided DSP56303EVM Product Brief (DSP56303EVMP/D) included with this kit. main features DSP56303EVM include following: DSP56303 24-bit digital signal processor FSRAM expansion memory Flash PEROM stand-alone operation. 16-bit CD-quality audio codec Command converter circuitry
DSP56303 Description
full description DSP56303, including functionality user information, provided following documents: DSP56303 Technical Data (Document order number DSP56303/D): Provides features list specifications including signal descriptions, power requirements, timing requirements, available packaging. DSP56303 User's Manual (Document order number DSP56303UM/AD): Provides overview description detailed information about on-chip components including memory maps, peripheral functionality, control status register descriptions each subsystem. DSP56300 Family Manual (Document order number DSP56300FM/AD): Provides detailed description core processor including internal status control registers detailed description family instruction set.
Refer these documents detailed information about chip functionality operation. These documents will provided either hard copy.
Motorola
DSP56303EVM Technical Summary More Information This Product, www.freescale.com
Memory
Note:
detailed list known chip errata also provided with this kit. Refer DSP56303 Chip Errata document information that changed since publication reference documentation listed previously. latest version obtained Motorola worldwide site
Memory
DSP56303EVM includes following external memory: 24-bit fast static (FSRAM) expansion memory 128K 8-bit flash memory stand-alone operation
Refer Figure location FSRAM Flash DSP56303EVM. Figure shows functional block diagram DSP56303EVM including memory devices.
MC74HCT04 DSP56002 AT29LV010A Flash DSP56303 GS71024T FSRAM MC34164 Test
MAX212 Debug JTAG/ OnCE QS3384
MC33269 3.3v 2.5v Power
LM4880
HDPHNE
Serial
CS4218
POWER
AA1928
Figure 3-1. DSP56303EVM Component Layout
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Memory
RS-232
FSRAM Data JTAG/ OnCETMPort DSP56303
Flash 128K Address
DSP56002 RS-232 EXTAL SCLK 153.6 Oscillator 19.6608
HOST PORT
EXTAL
Data ESSI0
Control ESSI1
Oscillator
12.288 CS4218 CLKIN
Headphone
AA1924
Figure 3-2. DSP56303EVM Functional Block Diagram
3.3.1 FSRAM
DSP56303EVM uses bank 24-bit fast static RAM(GS71024T-10, labelled memory expansion. GS71024T-10 uses single power supply access time following sections detail operation FSRAM. 3.3.1.1 FSRAM Connections basic connection FSRAM shown Figure 3-3.
DSP56303 A0-A15 D0-D23 FSRAM A0-A15 IO0-IO23
AA1929
Figure 3-3. FSRAM Connections DSP56303
Motorola
DSP56303EVM Technical Summary More Information This Product, www.freescale.com
Memory
data input/output pins IO0-IO23 FSRAM connected DSP56303 D0-D23 pins. FSRAM write (WE) output enable (OE) lines connected DSP56303 write (WR) read (RD) lines, respectively. FSRAM chip enable (CE1) generated DSP56303 address attribute (AA0). FSRAM activity controlled corresponding address attribute register (AAR0). FSRAM address input pins, A0-A15, connected respective port address pins DSP. This configuration selects unified memory words. unified memory does contain partitioned data, data, program memory. Thus, access P:$1000, X:$1000, Y:$1000 istreated access same memory cell 48-bit long memory data moves possible from external FSRAM.
3.3.1.2 Example: Programming AAR0 mentioned above, FSRAM activity controlled DSP56303 corresponding AAR0. AAR0 controls external access type, memory type, which external memory addresses access FSRAM. Figure shows memory that attained with AAR0 settings described this example. Note: this example, memory switch operating mode register (OMR) cleared 16-bit compatibility status register cleared.
Figure 3-4, FSRAM responds data memory addresses between $040000 $04FFFF. However, with unified memory map, accesses same external memory location treated accesses same memory cell. priority mechanism exists among four control registers. AAR3 highest priority AAR0 lowest. OMR, address priority disable (APD) bit, controls which pins asserted when selection conflict occurs (i.e. external address matches address space that specified more than AAR). cleared when selection conflict occurs, only highest priority asserted. when selection conflict occurs, lower priority pins asserted addition higher priority pin. this example, only must asserted, AA0. Thus, cleared.
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Memory
Memory Program
$FFFFFF
Data
Data
Internal Memory
$FF0000 $050000 Unified FSRAM $040000 $006000
$004000
$000000
AA1930
Figure 3-4. Example Memory with Unified External Memory
Figure shows settings AAR0 this example. external access type bits (BAT1 BAT0) respectively, denote FSRAM access. address attribute polarity (BAAP) cleared define active low. Address multiplexing needed with FSRAM; therefore, address multiplexing cleared. Packing needed with FSRAM; thus, packing enable BPAC cleared disable this option.
BAC11 BAC10 BAC9 BAC8 BAC7 BAC6 BAC5 BAC4 BAC3 BAC2 BAC1 BAC0
Address Compare X:$FFFFF9
BNC3 BNC2 BNC1 BNC0 BPAC BYEN BXEN BPEN BAAP BAT1 BAT0
External Access Type Polarity Program Space Enable Data Space Enable Data Space Enable Address Multiplexing Packing Enable Number Address Bits Compare
AA1931
Figure 3-5. Address Attribute Register AAR0
Motorola DSP56303EVM Technical Summary More Information This Product, www.freescale.com
Memory
data, data space Enable bits (BPEN, BXEN, BYEN) define whether FSRAM activated during external data, data space accesses, respectively. this example, BXEN BYEN bits set, BPEN cleared allow FSRAM respond data memory accesses only. number address bits compare BNC(3:0) address compare bits BAC(11:0) determine which external memory addresses access FSRAM. bits define number upper address bits that compared between bits external address determine FSRAM accessed. this example, FSRAM assigned respond addresses between $040000 $04FFFF. Thus, bits bits $040. eight most significant bits external address 00000100, FSRAM accessed.
3.3.2 Flash
DSP56303EVM uses Atmel AT29LV010A-20TC chip (U3) provide 8-bit CMOS Flash stand-alone operation (i.e., startup boot operation without accessing DSP56303 through JTAG/OnCE port). AT29LV010 uses power supply read access time 3.3.2.1 Flash Connections basic connection Flash shown Figure 3-6.
DSP56303 A0-A16 D0-D7 Flash A0-A16 I/O0-I/O7
AA1932
Figure 3-6. Flash Connections
flash address pins (A0-A16) connect respective port address pins DSP. flash data input/output pins I/O0-I/O7 connected DSP56303 D0-D7 pins. flash write enable (WE) output enable (OE) lines connect DSP56303 write (WR) read (RD) enable lines, respectively. Address attribute (AA1) generates flash chip enable 3.3.2.2 Programming Stand-Alone Operation DSP56303 mode pins determine chip operating mode start-up procedure when DSP56303 exits reset state. switch resets DSP56303
DSP56303EVM User's Manual Motorola
More Information This Product, www.freescale.com
Audio Codec
asserting then clearing RESET DSP56303. mode pins MODA, MODB, MODC, MODD sampled DSP56303 exits reset state. mode pins DSP56303EVM controlled jumper block shown Figure page Table 3-14 page 3-16. DSP56303 boots from Flash after reset there jumpers connecting pins pins (Mode MODA MODD set, MODB MODC cleared).
Audio Codec
DSP56303EVM analog section uses Crystal Semiconductor CS4218-KQ channels 16-bit conversion channels 16-bit conversion. Refer Figure page location codec DSP56303EVM Figure page functional diagram codec within evaluation module. CS4218 uses digital power supply analog power supply. CS4218 driven 12.288 signal codec master clock (CLKIN) input pin. oscillator creates 12.288 signal. QS3384 then converts signal input codec CLKIN DSP56303 EXTAL pin. Refer CS4218 data sheet included with this more information. CS4218 very flexible, offering selectable sampling frequencies between kHz. sampling frequency selected using jumpers jumper block Table shows jumper positions that select possible sampling frequencies DSP56303EVM.
Table 3-1. CS4218 Sampling Frequency Selection
Pins (MF6) Jumper Jumper Jumper Jumper Open Open Open Open Pins (MF7) Jumper Jumper Open Open Jumper Jumper Open Open Pins (MF8) Jumper Open Jumper Open Jumper Open Jumper Open Sampling Frequency (kHz) 48.0 32.0 24.0 19.2 16.0 12.0
codec connected DSP56303 ESSI0 through shorting jumpers shown Figure page 3-2. Jumper block connects ESSI1 pins
Motorola DSP56303EVM Technical Summary More Information This Product, www.freescale.com
Audio Codec
DSP56303 control pins CS4218. Jumper block connects ESSI0 pins DSP56303 data pins CS4218. removing these jumpers, user full access ESSI0 ESSI1 pins DSP56303. following sections describe connections analog digital sections codec.
3.4.1 Codec Analog Input/Output
DSP56303EVM contains 1/8-inch stereo jacks stereo input, output, headphones. Figure shows analog circuitry codec.
CS4218 Headphones (P5)
Stereo Input (P4)
RIN2 LIN2 LM4880
Unused
RIN1 LIN1 LOUT ROUT Stereo Output (P6)
AA1933
Figure 3-7. Codec Analog Input/Output Diagram
stereo jack labelled P4/IN DSP56303EVM connects codec right left input pins, RIN2 LIN2. Standard line level inputs codec requires that input levels limited VPP. Thus, voltage divider forms attenuator between CS4218. codec right left channel output pins, ROUT LOUT, provide their output analog signals, through stereo jack labelled P6/OUT DSP56303EVM. outputs codec also connected stereo jack labelled P5/HDPHNE DSP56303EVM through National Semiconductor's LM4880 dual audio power amplifier headphone stereo jack permits direct connection stereo headphones DSP56303EVM.
3.4.2 Codec Digital Interface
Figure shows digital interface codec. Table Table show jumper selections Enable/Disable code's digital signals.
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Audio Codec
DSP56303 STD0 SRD0 SCK0 SC00 SC02 SC10 SC11 SC12
CS4218 SDIN SDOUT SCLK RESET SSYNC MF4/CCS MF3/CCLK MF2/CDIN
AA1934
Figure 3-8. Codec Digital Interface Connections Table 3-2. Jumper Block Options
9-10 11-12 Signal Name SCK0 SC00 STD0 SRD0 SC01 SC02 Code Signal Name SCLK RESET SDIN SDOUT SSYNC
Table 3-3. Jumper Block Options
9-10 11-12 Signal Name SCK1 SC10 STD1 SRD1 SC12 SC11 Code Signal Name CDIN CCLK
serial interface codec transfers digital audio data control data into device. codec communicates with DSP56303 through ESSI0 data information through ESSI1 control information. codec three modes
Motorola
DSP56303EVM Technical Summary More Information This Product, www.freescale.com
Command Converter
serial operation that selected serial mode select SMODE1, SMODE2, SMODE3 pins. SMODE pins DSP56303EVM enable serial mode which separates audio data from control data. SMODE pins also enable master sub-mode with 32-bit frames, first bits being left channel, second bits being right channel. DSP56303 ESSI0 transfers data information from codec. DSP56303 serial transmit data (STD0) transmits data codec. DSP56303 serial receive data (SRD0) receives data from codec. These pins connected codec serial port data (SDIN) serial port data (SDOUT) pins, respectively. master sub-mode, codec serial port clock (SCLK) provides serial rate clock ESSI0 interface. connected DSP56303 bidirectional serial clock (SCK0) pin. DSP56303 serial control (SC00) programmed control codec reset signal RESET. serial control (SC02) connected codec serial port sync signal (SSYNC) signal. rising edge SSYNC indicates that frame about start. DSP56303 ESSI1 pins used general purpose (GPIO) signals transfer control data codec. control data needs transferred only when changes. DSP56303 serial control (SC10) programmed control codec multi-function control data chip select pin, MF4/CCS. This must entering control data. serial control (SC11) connects codec multi-function control data clock pin, MF3/CCLK. control data inputted rising edge CCLK. serial control (SC12) connected codec multi-function control data input pin, MF2/CDIN. This contains control data codec.
Command Converter
DSP56303EVM uses Motorola's DSP56002 perform JTAG/OnCE command conversion. DSP56002 serial communications interface (SCI) communicates with host through RS-232 connector. DSP56002 receives commands from host commands include read data, write data, reset OnCE module, reset DSP56303 (the DSP56002 then used reset DSP56303), request OnCE module, release OnCE module. DSP56002 command converter software interprets commands received from sends sequence instructions DSP56303's JTAG/OnCE port. DSP56303 then continue receive data transmit data back DSP56002. DSP56002 sends reply host give status information. replies include "acknowledge good", "acknowledge bad", debug mode", "out debug mode", "data read". When DSP56303 debug state, debug (LED2) illuminated.
3-10
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Command Converter
DSP56002 connects DSP56303 JTAG/OnCE port through shorting jumper Table shows JTAG enable/disable options. jumper must present DSP56002 command converter. Refer Figure page location DSP56303EVM Figure page functional diagram. Figure shows RS-232 serial interface diagram. Table shows RS-232 connectors pinout, (P2).
Table 3-4. On-Board JTAG Enable/Disable Option
Option Selected On-Board Command Converter Enabled On-Board Command Converter Disabled
OPEN
DSP56002 RESET
RS-232 TRANSCEIVER R4OUT T2IN R5OUT R4IN T2OUT R5IN
HOST
AA1935
Figure 3-9. RS-232 Serial Interface Table 3-5. Debug RS-232 Connector (P2) Pinout
Number Signal Name RESET Number Signal Name
Maxim's Powered RS-232 Transceiver MAX212 used transmit signals between host DSP56002. Serial data transmitted from host transmitted data (TD) signal received DSP56002 receive data (RXD) pin. Serial data similarly transmitted from DSP56002 transmit data (TXD) signal received host received data (RD) signal. data terminal ready (DTR) asserts RESET DSP56002.
Motorola
DSP56303EVM Technical Summary More Information This Product, www.freescale.com
3-11
Off-Board Interfaces
option, DSP56303EVM 14-pin JTAG/OnCE connector allows user connect command converter card directly DSP56303EVM, DSP56002 command converter software used jumper removed). been removed from that cable cannot connected DSP56303EVM incorrectly. Table shows JTAG/OnCE (J6) connector pinout. JTAG cable from command converter similarly keyed that cable cannot connected DSP56303EVM incorrectly.
Table 3-6. JTAG/OnCE (J6) Connector Pinout
Number Signal Name PRESET +3.3 Number Signal Name KEY-PIN TRST
Off-Board Interfaces
DSP56303EVM provides interfaces with off-board devices on-chip peripheral ports. Most ports connected headers facilitate direct access these pins using connectors jumpers.
3.6.1 Serial Communication Interface Port (SCI)
Connection DSP's port made Refer Table pinout. signals +3.3 signals straight from DSP. RS-232 level signals required, jumpers should installed Refer Table route DSP's signals through RS-232 level converter pinout shown Table 3-9. installing jumper J10, port will clocked on-board 153.6 oscillator instead being clocked externally serial port connector, internally timer. installed, jumper must removed.
3-12
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Off-Board Interfaces
Table 3-7. Header (J7) Pinout
Number Signal Name SCLK Number Signal Name
Table 3-8. Jumper Options
Signal Name SCLK
Table 3-9. Serial Port (P1) Connector Pinout
Number Signal Name Number Signal Name SCLK
3.6.2 Enhanced Synchronous Serial Port (ESSI0)
Connection DSP's ESSI0 port made Refer Table 3-10 header's pinout.
Motorola
DSP56303EVM Technical Summary More Information This Product, www.freescale.com
3-13
Off-Board Interfaces
Table 3-10. ESSI0 Header (J5) Pinout
Number Signal Name SCK0 SC00 STD0 SRD0 SC01 SC02 Number Signal Name
3.6.3 Enhanced Synchronous Serial Port (ESSI1)
Connection DSP's ESSI1 port made Refer Table 3-11 header's pinout.
Table 3-11. ESSI0 Header (J4) Pinout
Number Signal Name SCK1 SC10 STD1 SRD1 SC12 SC11 Number Signal Name
3.6.4 Host Port (HI08)
Connection DSP's HI08 port made Refer Table 3-12 header's pinout.
3-14
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Mode Selector
Table 3-12. HI08 Header (J3) Pinout
Number Signal Name HREQ +3.3 Number Signal Name RESET HACK
3.6.5 Expansion Control
Connection DSP's expansion control signals made Refer Table 3-13 header's pinout.
Table 3-13. Expansion Control Signal Header (J2) Pinout
Number Signal Name +3.3 BCLK CLKOUT Number Signal Name BCLK
Mode Selector
Boot mode selection DSP56303 made jumper selections header Refer Table 3-14 header jumper options.
Motorola
DSP56303EVM Technical Summary More Information This Product, www.freescale.com
3-15
Mode Selector
Table 3-14. Boot Mode Selection Options
Mode Number Boot Mode Selected OPEN OPEN OPEN OPEN OPEN JUMP JUMP JUMP OPEN OPEN JUMP JUMP OPEN JUMP JUMP JUMP OPEN JUMP JUMP OPEN Jump program $008000 Bootstrap from byte-wide memory Bootstrap from HI08 bootstrap ISA/DSP5630X mode HI08 Bootstrap HC11 non-multiplexed mode HI08 Bootstrap 8051 multiplexed mode. HI08 Bootstrap MC68302 mode.
OPEN OPEN
OPEN OPEN
OPEN OPEN
JUMP OPEN
3-16
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Appendix DSP56303EVM Schematics
Motorola
DSP56303EVM Schematics More Information This Product, www.freescale.com
'63*& '$%>@ ''%>@
&RUH9
5(6(7?
02'$
02'%
5(6(7? 5(6(7 02'' 02'& 02'% 02'$ %&/. %&/. &$6? %&/. %&/.?
02'& 02'' 02'& 02'% 02'$
02''
,54'?
02'( 6HOHFW
,54$?
%227675$3 )520 %<7(:,'( 0(025<
02'( 6(/(&7 %227675$3 7+528*+ %227675$3 ,6$'63;
&/.287 3,1,7 3&$3 (;7$/ ;7$/ &RUH9 5(6(7 5(6(7? &/.287 6&/. +'6? +&6? +5(4? +$&.? +5(4 +$&.
7,0(5
6&/.
PXVW URXWHG JURXQG SODQH YLDV H[FHSW XQGHU 3%*$ SDUW
5(6(7?
-7$*2Q&(
DSP56303EVM User's Manual
5(6(7 6:,7&+
7567 7567?
&21752/ +267
More Information This Product, www.freescale.com
%&/. &$6? +5(4? 5(6(7? +&6? +'6? +$&.?
7LWOH
:LUHOHVV 6XEVFULEHU 'LYLVLRQ
:LOOLDP &DQQRQ 'ULYH :HVW $XVWLQ 0'2(
%&/.? &/.287
6L]H
'RFXPHQW 1XPEHU 'DWH
7XHVGD\ 1RYHPEHU 'HVLJQHU 7RROV 6KHHW
MOTOROLA
Figure A-1. DSP56303
MOTOROLA
'$%>@ '$%>@
''%>@
$7/9$7&
''%>@
DSP56303EVM User's Manual
7LWOH
More Information This Product, www.freescale.com
([WHUQDO 0HPRU\
6L]H
:LUHOHVV 6XEVFULEHU 'LYLVLRQ
:LOOLDP &DQQRQ 'ULYH :HVW $XVWLQ 0'2(
'RFXPHQW 1XPEHU 'DWH
7XHVGD\ 1RYHPEHU 'HVLJQHU 7RROV 6KHHW
Figure A-2.
External Memory
7287 7287 7287
(QDEOH
7;'B
5;'B 0&+&7$'
0$;&$*
'(%8* 6(5,$/ 3257
DSP56303EVM User's Manual
5287 5287 5287 5287 5287
6(5,$/ 3257
5(6(7B?
0&+&7$' 0&+&7$' 0&+&7$' 0&+&7$' 0&+&7$'
9HUVLRQ VFKHPDWLF UHPRYHG 5HVHW VLJQDO IURP GHYLFH 5HPRYHG VLJQDO FRQQHFWLQJ *URXQGHG
6&/.
More Information This Product, www.freescale.com
7LWOH
:LUHOHVV 6XEVFULEHU 'LYLVLRQ
:LOOLDP &DQQRQ 'ULYH :HVW $XVWLQ 0'2(
,QWHUIDFH
6L]H
'RFXPHQW 1XPEHU 'DWH
7XHVGD\ 1RYHPEHU 'HVLJQHU 7RROV 6KHHW
MOTOROLA
Figure A-3. RS232 Interface
9FFFN 9FFS 9FFT 9FFT 9FFT 9FFT 9FFK 9FFK 9FFV 9FFF 9FFQ 9FFQ 9FFQ '6339 *1'&. *1'3 *1'4 *1'4 *1'4 *1'4 *1'+ *1'+ *1'+ *1'+ *1'6 *1'6 *1'&
&.287
5;'3&
7;'3&
3,17
3&$3
(;7$/
6&/.3&
65'3&
6&3&
67'3&
6&3&
6&.3&
&23&
5;'B 7;'B (QDEOH
2VFLOODWRU
DSP56303EVM User's Manual
MOTOROLA
02'&10, 02'%,54% 02'$,54$ '6&.26 '6,262 +(13% +$3% +$3% +$3% 5(6(7 *1'1 *1'1 *1'1 *1'1 *1'1 9FFG 9FFG 9FFG
5(6(7?
5(6(7B?
'(%8*
&.287
*1'' *1'' *1'' *1'' *1'' *1''
7567?
More Information This Product, www.freescale.com
2VFLOODWRU
21%2$5' &200$1' &219(57(5 (1$%/( -803(5
(QDEOH 6\QFKURQRXV &ORFN XVHG GXULQJ %227
6&/.
:LUHOHVV 6XEVFULEHU 'LYLVLRQ
:LOOLDP &DQQRQ 'ULYH :HVW $XVWLQ 0'2(
7LWOH
&RPPDQG &RQYHUWHU
6L]H
'RFXPHQW 1XPEHU 'DWH
7XHVGD\ 1RYHPEHU 'HVLJQHU 7RROV 6KHHW
Figure A-4. Command Converter
&6.4
5()%<
5()*1'
6:2'( 6:2'( 6:2'(
%<3$66
6(5,$/ 02'( 6(/(&7(' 0$67(5 %,76 )5$0(
6+87'1
5287 /287 &&6? &&/. &',1
5,1*B,1 7,3B,1 5()%8)
5,1*B287 7,3B287
/LQH
6WHUHR -DFN
/LQH 6WHUHR -DFN
&2'(&B5(6(7 &2'(&B)6<1& &2'(&B6&/. &2'(&B6'287 &2'(&B6',1 '*1'
&/.,1 5(6(7 66<1& 6&/. 6'287 6',1 $*1'
,1B$
287B$
,1B% 287B%
5,1*B3+1 7,3B3+1
+HDGSKRQH 6WHUHR -DFN
DSP56303EVM User's Manual
&2'(&B6&/. &2'(&B5(6(7 &2'(&B6',1 &2'(&B6'287 &2'(&B)6<1&
6DPSOH 6HOHFW (66,
More Information This Product, www.freescale.com
&&6? &',1 &&/.
(66,
:LUHOHVV 6XEVFULEHU 'LYLVLRQ
:LOOLDP &DQQRQ 'ULYH :HVW $XVWLQ 0'2(
7LWOH
$XGLR &RGHF
6L]H
'RFXPHQW 1XPEHU 'DWH
7XHVGD\ 1RYHPEHU 'HVLJQHU 7RROV 6KHHW
MOTOROLA
Figure A-5. Audio Codec
0&'7
&RUH YROWDJH VHOHFWRU
*5((1 32:(5
MOTOROLA
)(55,7( %($'
$&'& 32:(5 -$&.
)(55,7( %($'
&HQWHU
0&'7
)(55,7( %($' )(55,7( %($'
0&'7
&RUH9
)(55,7( %($'
DSP56303EVM User's Manual
7LWOH
More Information This Product, www.freescale.com
:LUHOHVV 6XEVFULEHU 'LYLVLRQ
:LOOLDP &DQQRQ 'ULYH :HVW $XVWLQ 0'2(
3RZHU 6XSSO\
6L]H
'RFXPHQW 1XPEHU 'DWH
7XHVGD\ 1RYHPEHU 'HVLJQHU 7RROV 6KHHW
Figure A-6. Power Supply
127(
127( 65$0
127( )/$6+
&RUH9
127( &2'(&
127(
127( ,19(57(5
DSP56303EVM User's Manual
7LWOH
More Information This Product, www.freescale.com
%\SDVV &DSDFLWRUV
6L]H
:LUHOHVV 6XEVFULEHU 'LYLVLRQ
:LOOLDP &DQQRQ 'ULYH :HVW $XVWLQ 0'2(
'RFXPHQW 1XPEHU 'DWH
7XHVGD\ 1RYHPEHU 'HVLJQHU 7RROV 6KHHW
MOTOROLA
Figure A-7. Bypass Capacitors
Appendix DSP56303EVM Parts List
Parts Listing
following table contains information parts devices DSP56303EVM.
Table B-1. DSP56303EVM Parts List
Designator Manufacturer Motorola Motorola Atmel Quality Semiconductor Motorola Crystal Semiconductor Pioneer Motorola Maxim Motorola Motorola Motorola Rectron Motorola Quality Technologies Quality Technologies Part Number DSP56303GC100 DSP56002PV80 GS71024T-10 AT29LV010A-20TC QS3384Q (JTAG/OnCE) FSRAM Flash Switch Description
MC34164D-3 CS4218-KQ
Power-On-Reset Audio Codec
LED1
LM4880M MC74HCT04AD MAX212CAG MC33269DT-3.3 MC33269DT-5.0 MC33269DT FM4001 MMBD6050LT1 HLMP1790
Audio Amplifier Inverter RS-232 Transceiver Regulator Regulator Regulator IN4001 Diode IN6050 Diode Green
LED2 LED3
HLMP1700
Motorola
DSP56303EVM Parts List More Information This Product, www.freescale.com
Parts Listing
Table B-1. DSP56303EVM Parts List (Continued)
Designator Manufacturer Part Number MC100CA-12.288MHZ OECS-196.6-3-C3X1A Description 12.288 Oscillator 19.6608 /153.6 Oscillator Switch DB-9 Female Connector Power Jack Miniature Stereo Jack Header double Header double Header double Header double Header double Header double Header single Capacitor, Capacitor, Capacitor
Panasonic Mouser
EVQ-QS205K 152-3409
Switchcraft
RAPC-722
Switchcraft
35RAPC4BHN2
Robinson Nugent
NSH-8DB-S2-TG
Robinson Nugent
NSH-16DB-S2-TG
Robinson Nugent
NSH-20DB-S2-TG
Robinson Nugent
NSH-12DB-S2-TG
Robinson Nugent
NHS-14DB-S2-TG
Robinson Nugent
NSH-6SB-S2-TG
Robinson Nugent
NSH-2SB-S2-TG
C120 C121
Panasonic
PCS1106CT
C124 C126 C101 C104 C105 C106 C110 C122 C123 C125 C102 C103 C107 C108 C109
Murata
GRM42-6Y5V105Z025BL
Murata
GRM40-X7R104K025BL
Murata
GRM40-X7R103K050BL
0.01 Capacitor
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Parts Listing
Table B-1. DSP56303EVM Parts List (Continued)
Designator Manufacturer Panasonic Part Number PCS1475CT Description Capacitor, 0.33 Capacitor 0.47 Capacitor 0.68 Capacitor Capacitor 2200 Capacitor Capacitor Capacitor, Capacitor, 1000 Capacitor, Ferrite Bead Inductor Resistor Resistor Resistor
Murata Murata Murata Xicon Murata Murata
GRM42-6Y5V334Z025BL GRM42-6Y5V474Z025BL GRM42-6Y5V684Z025BL 140-CC501N331J GRM40-COG222J050BL GRM40-X7R821K050BL TPSV476-025R0300
Panasonic
PCE3028CT
Xicon
XAL16V1000
Murata Murata Xicor
BL01RN1-A62 LQH4N150K04M00 NRC12RF1001TR 260-5K NRC12RF1002TR
Xicor Xicor Panasonic
260-20K NRC12RF3922TR 260-5.6K NRC12RF6040TR ERJ-6GEYJ240 260-4.7K
Resistor 39.2 Resistor Resistor Resistor Resistor Resistor
Motorola
DSP56303EVM Parts List More Information This Product, www.freescale.com
Parts Listing
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Appendix Motorola Assembler Notes
Introduction
This appendix supplements information Chapter this document provides detailed description following components used with Motorola Assembler: Special characters significant assembler Assembler directives Structure control statements
Assembler Significant Characters
Several one- two-character sequences significant assembler. following subsections define these characters their use.
C.2.1 Comment Delimiter Character
number characters preceded semicolon (;), part literal string, considered comment. Comments significant assembler, them document source program. Comments reproduced assembler output listing. Comments normally preserved macro definitions, this option turned off. (See directive.) Comments occupy entire line placed after last assembler-significant field source statement. comment starting first column source file aligned with label field listing file. Otherwise, comment shifted right aligned with comment field listing file.
Example C-1. Example Comment Delimiter THIS COMMENT BEGINS COLUMN SOURCE FILE LOOP COMPUTE THIS TRAILING COMMENT THESE COMMENTS PRECEDED SOURCE FILE
Motorola
Motorola Assembler Notes More Information This Product, www.freescale.com
Assembler Significant Characters
C.2.2
Unreported Comment Delimiter Characters
Unreported comments number characters preceded consecutive semicolons (;;) that part literal string. Unreported comments considered significant assembler included source statement, following same rules normal comments. However, unreported comments never reproduced assembler output listing never saved part macro definitions.
Example C-2. Example Unreported Comment Delimiter
THESE LINES WILL REPRODUCED SOURCE LISTING
C.2.3 Line Continuation Macro Argument Concatenation Character
following subsections define character used different instances. C.2.3.1 Line Continuation backslash character (\), used last character line, indicates assembler that source statement continues following line. continuation line concatenated previous line source statement, result processed assembler were single-line source statement. maximum source statement length (the first line continuation lines) characters.
Example C-3. Example Line Continuation Character THIS COMMENT EXTENDS OVER THREE LINES
C.2.3.2 Macro Argument Concatenation backslash also used cause concatenation macro dummy argument with other adjacent alphanumeric characters. macro processor recognize dummy arguments, they must normally separated from other alphanumeric characters non-symbol character. However, sometimes desirable concatenate argument characters with other characters. argument concatenated front behind some other symbol characters, then must followed preceded backslash, respectively.
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembler Significant Characters
Example C-4. Example Macro Concatenation
Suppose source input file contained following macro definition:
SWAP_REG MACRO MOVE MOVE MOVE ENDM REG1,REG2 ;swap REG1,REG2 using D4.L temp R\REG1,D4.L R\REG2,R\REG1 D4.L,R\REG2
concatenation operator indicates macro processor that substitution characters dummy arguments concatenated both cases with character this macro were called with statement,
SWAP_REG
resulting expansion would follows:
MOVE MOVE MOVE R0,D4.L R1,R0 D4.L,R1
C.2.4 Return Value Symbol Character
?<symbol> sequence, when used macro definitions, replaced ASCII string representing value <symbol>. This operator used association with backslash operator. value <symbol> must integer (not floating point).
Example C-5. Example Return Value Character
Consider following macro definition
SWAP_SYM MACRO MOVE MOVE MOVE ENDM REG1,REG2 ;swap REG1,REG2 using D4.L temp R\?REG1,D4.L R\?REG2,R\?REG1 D4.L,R\?REG2
source file contained following statements macro call,
AREG BREG SWAP_SYM AREG,BREG
resulting expansion would appear follows source listing:
MOVE MOVE MOVE R0,D4.L R1,R0 D4.L,R1
Motorola
Motorola Assembler Notes More Information This Product, www.freescale.com
Assembler Significant Characters
C.2.5 Return Value Symbol Character
%<symbol> sequence, when used macro definitions, replaced ASCII string representing hexadecimal value <symbol>. This operator used association with backslash operator. value <symbol> must integer (not floating point).
Example C-6. Example Return Value Symbol Character
Consider following macro definition:
GEN_LAB LAB\%VAL MACRO STMT ENDM GEN_LAB LAB,VAL,STMT
this macro were called follows,
HEX,NUM,'NOP'
resulting expansion would appear follows listing file:
HEXA
C.2.6 Macro Local Label Override
circumflex (^), when used unary expression operator macro expansion, causes local labels associated term evaluated normal scope rather than macro scope. This means that underscore labels expression term following circumflex will searched macro local label list. operator effect normal labels outside macro expansion. circumflex operator useful passing local labels macro arguments used referents macro.
Note: circumflex also used binary exclusive operator. Example C-7. Example Local Label Override Character
Consider following macro definition:
LOAD MACRO MOVE ENDM ADDR P:^ADDR,R0
this macro were called follows,
_LOCAL LOAD _LOCAL
assembler would ordinarily issue error since _LOCAL defined within body macro. With override operator assembler recognizes _LOCAL symbol outside macro expansion uses that value MOVE instruction.
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembler Significant Characters
C.2.7 Macro String Delimiter Quoted String DEFINE Expansion Character
following subsections define character used different instances. C.2.7.1 Macro String double quote ("), when used macro definitions, transformed macro processor into string delimiter, single quote ('). macro processor examines characters between double quotes macro arguments. This mechanism allows macro arguments literal strings.
Example C-8. Example Macro String Delimiter Character
Using following macro definition,
CSTR MACRO ENDM STRING "STRING"
macro call,
CSTR ABCD
resulting macro expansion would
'ABCD'
C.2.7.2 Quoted String DEFINE Expansion sequence characters which matches symbol created with DEFINE directive expanded character sequence contained within quoted string. Assembler strings generally enclosed single quotes ('). string enclosed double quotes then DEFINE symbols expanded within string. other respects, usage double quotes equivalent that single quotes.
Motorola
Motorola Assembler Notes More Information This Product, www.freescale.com
Assembler Significant Characters
Example C-9. Example Quoted String DEFINE Expression
Consider source fragment below:
STR_MAC DEFINE MACRO ENDM LONG 'short' STRING 'This LONG STRING' "This LONG STRING"
this macro were invoked follows,
STR_MAC sentence
then resulting expansion would follows
'This LONG STRING' 'This short sentence'
C.2.8 Function Delimiter
assembler built-in functions start with symbol.
Example C-10. Example Function Delimiter Character SVAL @SQT(FVAL) OBTAIN SQUARE ROOT
C.2.9 Location Counter Substitution
When used operand expression, asterisk represents current integer value runtime location counter.
Example C-11. Example Location Counter Substitution XBASE X:$100 *+$20 XBASE $120
C.2.10 String Concatenation Operator
strings concatenated with string concatenation operator (++). strings must each enclosed single double quotes, there must intervening blanks between string concatenation operator strings.
Example C-12. Example String Concatenation Operator 'ABC'++'DEF' 'ABCDEF'
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembler Significant Characters
C.2.11 Substring Delimiter [<string>,<offset><length>]
Square brackets delimit substring operation. <string> argument source string. <offset> substring starting position within <string>. <length> length desired substring. <string> legal string combination, including another substring. error issued either <offset> <length> exceed length <string>.
Example C-13. Example Substring Delimiter DEFINE ['DSP56000',3,5]; '56000'
C.2.12 Short Addressing Mode Force Operator
Many instructions allow short form addressing. value absolute address known assembler pass one, then assembler will always pick shortest form addressing consistent with instruction format. absolute address known assembler pass (that address forward external reference), then assembler picks long form addressing default. this desired, then short form addressing forced preceding absolute address short addressing mode force operator (<<).
Example C-14. Example Short Addressing Mode Force Operator
Since symbol IOPORT forward reference following sequence source lines, assembler would pick long absolute form addressing default:
IOPORT BTST #4,Y:IOPORT Y:$FFF3
Because long absolute addressing mode would cause instruction words long instead word short absolute addressing mode, would desirable force short absolute addressing mode shown below:
IOPORT BTST #4,Y:<<IOPORT Y:$FFF3
C.2.13 Short Addressing Mode Force Operator
Many instructions allow short form addressing. value absolute address known assembler pass one, FORCE SHORT directive active, then assembler will always pick shortest form addressing consistent with instruction format. absolute address known assembler pass (that address forward external reference), then assembler picks long form addressing default. this desired, then short absolute form addressing
Motorola
Motorola Assembler Notes More Information This Product, www.freescale.com
Assembler Significant Characters
forced preceding absolute address short addressing mode force operator (<).
Example C-15. Example Short Addressing Mode Force Operator
Since symbol DATAST forward reference following sequence source lines, assembler would pick long absolute form addressing default:
DATAST MOVE D0.L,Y:DATAST Y:$23
Because long absolute addressing mode would cause instruction words long instead word short absolute addressing mode, would desirable force short absolute addressing mode shown below:
DATAST MOVE D0.L,:<DATAST Y:$23
C.2.14 Long Addressing Mode Force Operator
Many instructions allow long form addressing. value absolute address known assembler pass one, then assembler will always pick shortest form addressing consistent with instruction format, unless FORCE LONG directive active. this desired, then long absolute form addressing forced preceding absolute address long addressing mode force operator (>).
Example C-16. Example Long Addressing Mode Force Operator
Since symbol DATAST forward reference following sequence source lines, assembler would pick short absolute form addressing:
DATAST MOVE Y:$23 D0.L,Y:DATAST
this desirable, then long absolute addressing mode forced shown below:
DATAST MOVE Y:$23 D0.L,Y:>DATAST
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembler Significant Characters
C.2.15 Immediate Addressing Mode
pound sign used indicate assembler immediate addressing mode.
Example C-17. Example Immediate Addressing Mode CNST MOVE #CNST,D0.L
C.2.16 Immediate Short Addressing Mode Force Operator
Many instructions allow short immediate form addressing. immediate data known assembler pass (not forward external reference) FORCE SHORT directive active, then assembler will always pick shortest form immediate addressing consistent with instruction. immediate data forward external reference, then assembler picks long form immediate addressing default. this desired, then short form addressing forced using immediate short addressing mode force operator (#<).
Example C-18. Example Immediate Short Addressing Mode Force Operator
following sequence source lines, symbol CNST known assembler pass one, therefore, assembler would long immediate addressing form MOVE instruction.
CNST MOVE #CNST,D0.L
Because long immediate addressing mode makes instruction words long instead word immediate short addressing mode, desirable force immediate short addressing mode shown below:
CNST MOVE #<CNST,D0.L
C.2.17 Immediate Long Addressing Mode Force Operator
Many instructions allow long immediate form addressing. immediate data known assembler pass (not forward external reference), then assembler will always pick shortest form immediate addressing consistent with instruction, unless FORCE LONG directive active. this desired, then long form addressing forced using immediate long addressing mode force operator (#>).
Motorola
Motorola Assembler Notes More Information This Product, www.freescale.com
Assembler Directives
Example C-19. Example Immediate Long Addressing Mode Operator
following sequence source lines, symbol CNST known assembler pass one, therefore, assembler would short immediate addressing form MOVE instruction.
CNST MOVE #CNST,D0.L
this desirable, then long immediate form addressing forced shown below:
CNST
MOVE
#>CNST,D0.L
Assembler Directives
following subsections define each directive use.
C.3.1 BADDR Buffer Address
BADDR R>,<expression>
BADDR directive sets runtime location counter address buffer given type, length which words equal value <expression>. buffer type either modulo reverse-carry. runtime location counter zero, this directive first advances runtime location counter base address that multiple where <expression>. error issued there insufficient memory remaining establish valid base address. Unlike other buffer allocation directives, runtime location counter advanced value integer expression operand field; location counter remains buffer base address. block memory intended buffer initialized value. result <expression> have memory space attribute must absolute integer greater than zero cannot contain forward references (symbols that have been defined). modulo buffer specified, expression must fall within range <expression> where maximum address target DSP. reverse-carry buffer designated <expression> power two, warning issued. label allowed with this directive.
Note: also BSM, BSB, BUFFER, DSM, DSR. Example C-20. Example BADDR Directive M_BUF BADDR X:$100 M,24 CIRCULAR BUFFER
C-10
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembler Directives
C.3.2 Block Storage Bit-Reverse
[<label>] <expression>[,<expression>]
directive causes assembler allocate initialize block words reverse-carry buffer. number words block given first expression, which must evaluate absolute integer. Each word assigned initial value second expression. there second expression, initial value zero assumed. runtime location counter zero, this directive first advances runtime location counter base address that multiple where greater than equal value first expression. error will occur first expression contains symbols that defined (forward references) expression value less than equal zero. Also, first expression power warning generated. Both expressions have memory space attribute. <label>, present, assigned value runtime location counter after valid base address been established. Only word object code shown listing, regardless large first expression However, runtime location counter advanced number words generated.
Note: also BSC, BSM, Example C-21. Buffer Directive BUFFER BUFSIZ INITIALIZE BUFFER ZEROS
C.3.3 Block Storage Constant
[<label>] <expression>[,<expression>]
directive causes assembler allocate initialize block words. number words block given first expression, which must evaluate absolute integer. Each word assigned initial value second expression. there second expression, initial value zero assumed. first expression contains symbols that defined (forward references) expression value less than equal zero, error generated. Both expressions have memory space attribute. <label>, present, assigned value runtime location counter start directive processing. Only word object code shown listing, regardless large first expression However, runtime location counter advanced number words generated.
Motorola Motorola Assembler Notes More Information This Product, www.freescale.com C-11
Assembler Directives
Note:
also BSM, BSB, Example C-22. Block Storage Constant Directive
UNUSED
$2FFF-@LCV(R),$FFFFFFFF; FILL UNUSED EPROM
C.3.4 Block Storage Modulo
[<label>] <expression>[,<expression>]
directive causes assembler allocate initialize block words modulo buffer. number words block given first expression, which must evaluate absolute integer. Each word assigned initial value second expression. there second expression, initial value zero assumed. runtime location counter zero, this directive first advances runtime location counter base address that multiple where greater than equal value first expression. error will occur first expression contains symbols that defined (forward references), value less than equal zero, falls outside range <expression> where maximum address target DSP. Both expressions have memory space attribute. <label>, present, assigned value runtime location counter after valid base address been established. Only word object code shown listing, regardless large first expression However, runtime location counter advanced number words generated.
Note: also BSC, BSB, Example C-23. Block Storage Modulo Directive BUFFER BUFSIZ,$FFFFFFFF; INITIALIZE BUFFER ONES
C.3.5 BUFFER Start Buffer
BUFFER R>,<expression>
BUFFER directive indicates start buffer given type. Data allocated buffer until ENDBUF directive encountered. Instructions most data definition directives appear between BUFFER ENDBUF pair, although BUFFER directives nested certain types directives such MODE, ORG, SECTION, other buffer allocation directives used. <expression> represents buffer size. less data allocated than size buffer, remaining buffer locations uninitialized. more data allocated than specified size buffer, error issued.
C-12
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembler Directives
BUFFER directive sets runtime location counter address buffer given type, length which words equal value <expression>. buffer type either modulo reverse-carry. runtime location counter zero, this directive first advances runtime location counter base address that multiple where <expression>. error issued there insufficient memory remaining establish valid base address. Unlike other buffer allocation directives, runtime location counter advanced value integer expression operand field; location counter remains buffer base address. result <expression> have memory space attribute must absolute integer greater than zero cannot contain forward references (symbols that have been defined). modulo buffer specified, expression must fall within range <expression> where maximum address target DSP. Reverse-carry buffer designated <expression> power warning issued.
Note: label allowed with this directive. also BADDR, BSM, BSB, DSM, DSR, ENDBUF. Example C-24. Buffer Directive BUFFER ENDBUF X:$100 M,24 CIRCULAR BUFFER 0.5,0.5,0.5,0.5 REMAINDER UNINITIALIZED
M_BUF
C.3.6 COBJ Comment Object File
COBJ <string>
COBJ directive used place comment object code file. <string> object file comment.
Note: label allowed with this directive. also IDENT. Example C-25. COBM Directive COBJ 'Start filter coefficients'
Motorola
Motorola Assembler Notes More Information This Product, www.freescale.com
C-13
Assembler Directives
C.3.7 COMMENT Start Comment Lines
COMMENT <delimiter> <delimiter>
COMMENT directive used define more lines comments. first non-blank character after COMMENT directive comment delimiter. delimiters used define comment text. line containing second comment delimiter considered last line comment. comment text include printable characters comment text reproduced source listing appears source file.
Note: label allowed with this directive. Example C-26. COMMENT Directive COMMENT COMMENT This line comment This multiple line comment. number lines placed between delimiters.
C.3.8 Define Constant
<label>] <arg>[,<arg>,.,<arg>]
directive allocates initializes word memory each <arg> argument. <arg> numeric constant, single multiple character string constant, symbol, expression. directive have more arguments separated commas. Multiple arguments stored successive address locations. multiple arguments present, more them null (two adjacent commas), which case corresponding address location filled with zeros. directive used memory, arguments evaluated stored long word quantities. Otherwise, error occurs evaluated argument value large represent single word. <label>, present, assigned value runtime location counter start directive processing. Integer arguments stored floating point numbers converted binary values. Single multiple character strings handled following manner: Single character strings stored word whose lower seven bits represent ASCII value character.
C-14
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembler Directives
Example C-27. Single Character String Definition $000052
Multiple character strings represent words whose bytes composed concatenated sequences ASCII representation characters string (unless NOPS option specified; directive). number characters even multiple number bytes word, then last word will have remaining characters left aligned rest word zero-filled. NOPS option given, each character string stored word whose lower seven bits represent ASCII value character.
Example C-28. Multiple Character String Definition
'ABCD'
$414243 $440000
Note:
also BSC, DCB. Example C-29. Directive
TABLE CHARS
1426,253,$2662,'ABCD' 'A','B','C','D'
C.3.9 Define Constant Byte
[<label>] <arg>[,<arg>,.,<arg>]
directive allocates initializes byte memory each <arg> argument. <arg> byte integer constant, single multiple character string constant, symbol, byte expression. directive have more arguments separated commas. Multiple arguments stored successive byte locations. multiple arguments present, more them null (two adjacent commas), which case corresponding byte location filled with zeros. <label>, present, assigned value runtime location counter start directive processing. Integer arguments stored must byte values (i.e., within range 0-255); floating point numbers allowed. Single multiple character strings handled following manner:
Single character strings stored word whose lower seven bits represent ASCII value character. (See Example C-27.) Multiple character strings represent words whose bytes composed concatenated sequences ASCII representation characters string (unless NOPS option specified; directive). number characters even multiple number bytes word, then last word will have remaining
Motorola Assembler Notes More Information This Product, www.freescale.com C-15
Motorola
Assembler Directives
characters left aligned rest word zero-filled. NOPS option given, each character string stored word whose lower seven bits represent ASCII value character.(See Example C-28.) Note: also BSC, Example C-30. Directive TABLE CHARS 'two',0,'strings',0 'A','B','C','D'
C.3.10 DEFINE Define Substitution String
DEFINE
<symbol>
<string>
DEFINE directive used define substitution strings that used following source lines. succeeding lines searched occurrence <symbol>, which replaced <string>. This directive useful providing better documentation source program. <symbol> must adhere restrictions non-local labels. That cannot exceed characters, first which must alphabetic, remainder which must either alphanumeric underscore(_). warning results definition previously defined symbol attempted. assembler output listing will show lines after DEFINE directive been applied therefore redefined symbols replaced their substitution strings unless NODXL option effect. C.3.42, "OPT Assembler Options," page C-34 Macros represent special case. DEFINE directive translations applied macro definition encountered. When macro expanded active DEFINE directive translations applied again. DEFINE directive symbols that defined within section will only apply that section. SECTION directive.
Note: label allowed with this directive. also UNDEF. Example C-31. DEFINE Directive
following DEFINE directive occurred first part source program:
DEFINE ARRAYSIZ SAMPLSIZ'
then source line below:
ARRAYSIZ
would transformed assembler following:
SAMPLSIZ
C-16
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembler Directives
C.3.11 Define Storage
[<label>] <expression>
directive reserves block memory length which words equal value <expression>. This directive causes runtime location counter advanced value absolute integer expression operand field. <expression> have memory space attribute. block memory reserved initialized value. expression must integer greater than zero cannot contain forward references (symbols that have been defined). <label>, present, assigned value runtime location counter start directive processing.
Note: also DSM, DSR. Example C-32. Directive S_BUF SAMPLE BUFFER
C.3.12 Define Modulo Storage
[<label>] <expression>
directive reserves block memory length which words equal value <expression>. runtime location counter zero, this directive first advances runtime location counter base address that multiple where <expression>. error issued there insufficient memory remaining establish valid base address. Next runtime location counter advanced value integer expression operand field. <expression> have memory space attribute. block memory reserved initialized given value. result <expression> must absolute integer greater than zero cannot contain forward references (symbols that have been defined). expression also must fall within range: <expression> where maximum address target DSP. <label>, present, assigned value runtime location counter after valid base address been established.
Note: also DSR. Example C-33. Directive M_BUF X:$100 CIRCULAR BUFFER
Motorola
Motorola Assembler Notes More Information This Product, www.freescale.com
C-17
Assembler Directives
C.3.13 Define Reverse Carry Storage
[<label>] <expression>
directive reserves block memory length which words equal value <expression>. runtime location counter zero, this directive first advances runtime location counter base address that multiple where <expression>. error issued there insufficient memory remaining establish valid base address. Next runtime location counter advanced value integer expression operand field. <expression> have memory space attribute. block memory reserved initialized given value. result <expression> must absolute integer greater than zero cannot contain forward references (symbols that have been defined). Because directive useful mainly generating buffers, warning generated <expression> power <label>, present, assigned value runtime location counter after valid base address been established.
Note: also DSM. Example C-34. Directive R_BUF X:$100 REVERSE CARRY BUFFER POINT
C.3.14 Duplicate Sequence Source Lines
[<label>] ENDM <expression>
sequence source lines between ENDM directives duplicated number specified integer <expression>. <expression> have memory space attribute. expression evaluates number less than equal zero, sequence lines will included assembler output. expression result must absolute integer cannot contain forward references (symbols that have already been defined). directive nested level. <label>, present, assigned value runtime location counter start directive processing.
Note: also DUPA, DUPC, DUPF, ENDM, MACRO.
C-18
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembler Directives
Example C-35. Directive
sequence source input statements,
COUNT ENDM COUNT COUNT
would generate following source listing:
COUNT ENDM COUNT COUNT
Note that lines
ENDM COUNT ;ASR COUNT
will only shown source listing option enabled. lines
will only shown source listing option enabled.
Note: directive this appendix more information options.
C.3.15 DUPA Duplicate Sequence With Arguments
[<label>] DUPA ENDM <dummy>,<arg>[<,<arg>,.,<arg>]
block source statements defined DUPA ENDM directives repeated each argument. each repetition, every occurrence dummy parameter within block replaced with each succeeding argument string. argument string null, then block repeated with each occurrence dummy parameter removed. argument includes embedded blank other assembler-significant character, must enclosed with single quotes. <label>, present, assigned value runtime location counter start DUPA directive processing.
Note: also DUP, DUPC, DUPF, ENDM, MACRO.
Motorola
Motorola Assembler Notes More Information This Product, www.freescale.com
C-19
Assembler Directives
Example C-36. DUPA Directive
input source file contained following statements,
DUPA ENDM VALUE,12,32,34 VALUE
then assembled source listing would show
DUPA ENDM VALUE,12,32,34
Note that lines
DUPA ENDM VALUE,12,32,34
will only shown source listing option enabled. lines
will only shown source listing option enabled.
Note: directive this appendix more information options.
C.3.16 DUPC Duplicate Sequence With Characters
[<label>] DUPC ENDM <dummy>,<string>
block source statements defined DUPC ENDM directives repeated each character <string>. each repetition, every occurrence dummy parameter within block replaced with each succeeding character string. string null, then block skipped. <label>, present, assigned value runtime location counter start DUPC directive processing.
Note: also DUP, DUPA, DUPF, ENDM, MACRO.
C-20
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembler Directives
Example C-37. DUPC Directive
input source file contained following statements,
DUPC ENDM VALUE,'123' VALUE
then assembled source listing would show:
DUPC ENDM VALUE,'123'
Note that lines
DUPC ENDM VALUE,'123'
will only shown source listing option enabled. lines
will only shown source listing option enabled.
Note: directive this appendix more information options.
C.3.17 DUPF Duplicate Sequence Loop
[<label>] DUPF ENDM
block source statements defined DUPF ENDM directives repeated general (<end> <start>) times when <increment> <start> starting value loop index; <end> represents final value. <increment> increment loop index; defaults omitted does <start> value). <dummy> parameter holds loop index value used within body instructions. <label>, present, assigned value runtime location counter start DUPF directive processing.
Note: also DUP, DUPA, DUPC, ENDM, MACRO.
Motorola
Motorola Assembler Notes More Information This Product, www.freescale.com
C-21
Assembler Directives
Example C-38. DUPF Directive
input source file contained following statements,
DUPF MOVE ENDM NUM,0,7 #0,R\NUM
then assembled source listing shows:
DUPF MOVE MOVE MOVE MOVE MOVE MOVE MOVE MOVE ENDM NUM,0,7 #0,R0 #0,R1 #0,R2 #0,R3 #0,R4 #0,R5 #0,R6 #0,R7
Note that lines
DUPF ENDM NUM,0,7
only shown source listing option enabled. lines
MOVE MOVE MOVE MOVE MOVE MOVE MOVE MOVE #0,R0 #0,R1 #0,R2 #0,R3 #0,R4 #0,R5 #0,R6 #0,R7
only shown source listing option enabled.
Note:
directive this appendix more information options.
C.3.18 Source Program
[<expression>]
optional directive indicates that logical source program been encountered. statements following directive ignored. optional expression operand field used specify starting execution address
C-22
DSP56303EVM User's Manual
Motorola
More Information This Product, www.freescale.com
Assembler Directives
program. <expression> absolute relocatable must have memory space attribute Program None. directive cannot used macro expansion.
Note: label allowed with this directive. Example C-39. Directive BEGIN BEGIN starting execution address
C.3.19 ENDBUF Buffer
ENDBUF
ENDBUF directive used signify buffer block. runtime location counter will remain just beyond buffer when ENDBUF directive encountered.
Note: label allowed with this directive. also BUFFER. Example C-40. ENDBUF Directive BUFFER ENDBUF X:$100 R,64 uninitialized reverse-carry buffer
C.3.20 ENDIF Conditional Assembly
ENDIF
ENDIF directive used signify current level conditional assembly. Conditional assembly directives nested level, ENDIF directive always refers most previous directive.
Note: label allowed with this directive. (See C.3.31, Conditional Assembly Directive," page C-28.) Example C-41. ENDIF Directive SAVEPC ENDIF @REL() Save current program counter
C.3.21 ENDM Macro Definition
ENDM
Every MACRO, DUP, DUPA, DUPC directive must terminated ENDM directive.
Note: label allowed with this directive. also DUP, DUPA, DUPC, MACRO.
Motorola
Motorola Assembler Notes More Information This Product, www.freescale.com
C-23
Assembler Directives
Example C-42. ENDM Directive SWAP_SYM MACRO MOVE MOVE MOVE ENDM REG1,R

Other recent searches


THS8134 - THS8134   THS8134 Datasheet
THS8134A - THS8134A   THS8134A Datasheet
THS8134B - THS8134B   THS8134B Datasheet
TGA2509 - TGA2509   TGA2509 Datasheet
SN74LVC646A - SN74LVC646A   SN74LVC646A Datasheet
SN54LVC646A - SN54LVC646A   SN54LVC646A Datasheet
L79xxC - L79xxC   L79xxC Datasheet
BYV52 - BYV52   BYV52 Datasheet
BSO301SN - BSO301SN   BSO301SN Datasheet
74VHC574 - 74VHC574   74VHC574 Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive