Home
DSP56009EVM User`s Manual
Contents
1. Equipment Anal Analog Inputs 15 Outputs L Rights Left2 Right2 Left Right Rightin LeftIn CS3310 CS4331 CS3310 CS4331 CS3310 CS4331 CS5390 Optical D CS8412 JP5 M Optical JP2 30 E JP7 09 SIMM Socket 58402 5 2 J3 DSP J9 Analog TK10C68 SPDIF Eos g Power In 90 b E J18 SPDIF 99 mE Out b 0000 68HC711E9 JP6 SC937 02 JP9 99 68 705 1 _ 1 RS 232 OnCE M LCD Display el Reset J2 Digital Infrared Power Remote Receiver Figure 1 1 Evaluation Module Component Layout 1 3 2 What you need to supply for AC 3 ProLogic Demonstration e An AC 3 or PCM bitstream source i e Laserdisc DAT CD source VHS etc e An audio amplifier driving headphones or speakers as shown on the following page in Figure 1 2 Power supplies dual 8 12V DC for analog circuits 8 15V or DC for digital circuits MOTOROLA DSP56009EVMUM 1 5 Quick Start Guide Installatio
2. Anal Analog Inputs 15 pe leg Outputs L Rights Left2 Right2 Left Right Rightin LeftIn CS3310 CS4331 CS3310 CS4331 CS3310 CS4331 CS5390 Optical n CS8412 JP5 E JP3 Optical JP2 99 30 Pin Out 7 3 m 59 SIMM PLD 58402 5 Socket 2 J3 DSP J9 E Analog TK10C68 JP4 56009 ole In ER E J18 SPDIF 66 EIS Out b 0000 68HC711E9 JP6 SC937 02 oo JP9 89 gt 68HC705K1 JP1 oo Ei RS 232 O OnCE LCD Display el Reset J2 Digital Infrared Power Remote Receiver Figure A 3 DSP56009EVM Pass through Setup A 6 DSP56009EVMUM MOTOROLA APPENDIXB SOUND FIELD PROCESSING EXAMPLE MOTOROLA DSP56009EVMUM B 1 Sound Field Processing Example B 1 B 2 B 3 4 5 6 7 8 9 10 2 INTRODUCTIONS os e ntt t uper o x t thee e B 3 EARLY REFLEGTIONS scat tet atk ceed ed ausi tA Aes B 3 DELAY LINE FOR COMBS REVERBERATION B 6 COMBE FILTER rer eee SR B 7 ALL PASS FIBTEHR seco 2 5a x ot B 8 DE CORRELATION B 9 DSP56009EVM SETUP FOR SFP DEMONSTRATION B 11 BLOCK DIAGRAM OF THE SOUND FIELD PROCESSOR B 13 X Y MEMOR
3. oan LOIN i aNov 5 0 ran OOOAV saw LOOAV OVIN VIN SYN 9VIN 8YN 6 OLVIN LEYIN ELYN VIVIN ESOW SLVN SSOWN ILVN ISOW ZLVIN OSOW UMN 79 9 D 6 0095450 94 LSOMOSA 94 74 Ast 99e JU 3940 osa OS SONS ANDION viv To VOUI VAON 13534 6 A ZN c LH 31100 2 us zaNoo 19 H KH 5 ZOONO FH 241 8 7H 891 Y 15 600954SA 8 4 lt 200W a lt 8dOW asa 8 vaow asa d v 0 va 158 asa 4 3 DSP56009EVMUM MOTOROLA DSP56009EVM Schematics Microcontroller and LCD pue 2 93 9 od ul an 7 Old mcm 58 8 va E Jepeeu uld Z VNV r3d 8dr o SNV S3d C YT 9NV 93d 8 8 29 9 NV E3d AS ou 34 8 V ZNV 23d EM TS 1 o nu gt cS 2 Bi OSIW eQd ARE en ISOW EGd 8v 08d an 49 0 41UO90191 N 1 2 EH 63 OUIX an LOO IVd Vd 100 200 9V
4. VA VA VD DGND Figure 3 3 CS3310 Stereo Digital Volume Control cs I bL ERA SDATAI N IZ R6 R5 R4 R2 17 16 15 13 12 11 10 7 SDATAO r7 R6 R5 R4 R3 R2 R1 RO L7 16 15 13 12 L1 10 LO Left Channel Least Significant Bit Right Channel Least Significant Bit L7 Left Channel Most Significant Bit R7 Right Channel Most Significant Bit SDATA is latched internally on the rising edge of SCLK SDATAO transitions after the falling edge of SCLK SDATAO bits reflect the data previously loaded into the CS3310 Figure 3 4 Serial Port Timing for the CS3310 3 4 58412 DIGITAL AUDIO INTERFACE RECEIVER The CS8412 is a monolithic CMOS device that receives and decodes audio data according to the AES 3 1992 EBU Tech 3250 E IEC 958 SPDIF and EIAJ CP 340 interface standards The CS8412 receives data from a transmission line recovers the MOTOROLA DSP56009EVMUM 3 5 Peripheral Specifications CS8402A Digital Audio Interface Transmitter clock and synchronization signals and de multiplexes the audio and non audio data Either differential or single ended inputs can be decoded The 58412 de multiplexes the channel user and validity data directly to dedicated output pins for the most commonly needed channel
5. etch ya aes oe 5 1 5 1 7032 PLD SPECIFICATIONS 5 3 5 1 1 PED SelomidlleS su a oo aa a ea boast Jo e oe ut 5 3 5 1 2 PUD EQUAONG aeg meisten 5 5 5 2 EVALUATION MODULE PARTS LIST 5 8 SECTION 6 EXAMPLE TEST PROGRAM 6 1 6 1 OVERVIEW RC RENE Ses 6 3 6 2 WRITING THE 6 4 6 2 1 Source Statement 6 4 6 2 2 Example 6 5 6 3 ASSEMBLING THE 6 7 6 3 1 Assembler Command 6 7 6 3 2 Assembler Options scot eee enti wee eh ee Ye 6 8 6 3 3 Assembler Directives 6 11 6 3 4 Assembling the Example Program 6 16 6 4 MOTOROLA 5 6 16 6 4 1 Linker ee 6 17 6 4 2 Linker DirecllV8s uu rua erri 6 23 6 5 INTRODUCTION TO THE DEBUGGER SOFTWARE 6 24 6 6 RUNNING THE PROGRAM 6 26 iv DSP56009EVMUM MOTOROLA APPENDIX A AUDIO PASS THROUGH EXAMPLE APPENDIX B SOUND FIELD PROCESSING EXAMPLE APPENDIX DSP56009EVM MULTIPLEX DEFINTITION MOTOROLA DSP56009EVMUM Figure 1 1 Figure 1 2 Figure 1 3 Figure 3 1 Figure 3 2 Figure 3 3 Figure 3 4 Figure 3 5 Figure 3 6 Figure 3 7 Figure 3 8 Figure 3 9 Figure 3 10 Figure 4 1 Figure
6. Nxt ee AC 3 Information AC 3 Information AC 3 Information Rm Typ 2 gt AC 3 Information AC 3 Information Tim Cod gt hr Ext Nxt AC 3 Information BS ID gt 8 Dial Nm 2 gt 0 Tim Cod gt min Nxt Ext Nxt Ext Nxt 3 10 DSP56009EVMUM AC 3 Information Tim Cod gt sec 8 Nxt AC 3 Information Tim Cod gt sec 8 AC 3 Information Tim Cod gt frm Ext Nxt AC 3 Information Tim Cod gt fre Ext Nxt AC 3 Information Stat gt OK Nxt Back to Smp Rat Menu MOTOROLA Peripheral Specifications Wiring For Keypad 3 9 WIRING FOR KEYPAD A wiring diagram for a generic keypad is shown in Figure 3 10 The keypad is not provided with the DSP56009EVM SUSE 2 10 Figure 3 10 Keypad Wiring Diagram MOTOROLA DSP56009EVMUM 3 11 SECTION 4 DSP56009EVM SCHEMATICS MOTOROLA DSP56009EVMUM 4 1 DSP56009EVM Schematics Figure 4 1 Figure 4 2 Figure 4 3 Figure 4 4 Figure 4 5 Figure 4 6 Figure 4 7 Figure 4 8 Figure 4 9 4 2 Der 59009 Microcontroller and LCD Programmable Logic Device SRAM and External Memory Interface RS 232 and OnCE Interface Analog to Digital Converter Digital to Analog Converter SPDIF VO stole se Power 5 DSP56009EVMUM MOTOROLA DSP56009EVM Schematics DSP56009 60096450 H t
7. I option Example dsplnk Ope 200 myprog Lmylib This example initializes the default P memory counter to hex 200 and maps the program space to external memory P lt pathname gt When the Linker encounters input files the current directory or the directory given in the library specification is first searched for the file If it is not found and the P option is specified the Linker prefixes the filename and optional pathname of the file specification with lt pathname gt and searches the newly formed directory pathname for the file The pathname must be a legal operating system pathname The P option may be repeated as many times as desired Example dsplnk P project testprog This example uses IBM PC pathname conventions and would cause the Linker to prefix any library files not found in the current directory with the project pathname R lt ctlfil gt This option indicates that a memory control file is to be read to determine the placement of sections in DSP memory and other Linker control functions lt ctlfil gt can 6 20 DSP56009EVMUM MOTOROLA Example Test Program Motorola DSP Linker be any legal operating system filename including an optional pathname If a pathname is not specified an attempt will be made to open the file in the current directory If no filename is specified the Linker will use the basename filename without extension of the first filename encountered in the link input file list and appen
8. an operand field up to two data transfer fields and a comment field For example the following source statement shows all six possible fields trm mac x0 y0 a x r0 x0 y r4 y0 Text Label Operation Operand X Data Transfer Y Data Transfer Comment 6 2 1 1 Label Field The label field is the first field of a source statement and can take one of the following forms e space or tab as the first character on a line ordinarily indicates that the label files is empty and that the line has no label An alphabetic character as the first character indicates that the line contains a symbol called a label e Anunderscore as the first character indicated that the label is a local label With the exception of some directives a label is assigned the value of the location counter of the first word of the instruction or data being assembled A line consisting of a label only is a valid line and has the effect of assigning the value of the location counter to the label 6 2 1 2 Operation Field The operation field appears after the label field and must be preceded by at least one space or tab Entries in the operation field may be one of three types Opcode mnemonics that correspond directly to DSP machine instructions e Directive special operation codes known to the Assembler which control the assembly process 6 4 DSP56009EVMUM MOTOROLA Example Test Program Writing the Program e Macro call invocation of a previousl
9. 4 2 Figure 4 3 Figure 4 4 Figure 4 5 Figure 4 6 vi LIST OF FIGURES Evaluation Module Component Layout 1 5 AC 3 Home Theater 1 6 Connecting the DSP56009EVM 1 8 CS5390 UOS sida een 3 3 5433 DAG Seam dde ade eed Rt ra Rr UR cede d 3 4 CS3310 Stereo Digital Volume 3 5 Serial Port Timing for the 53310 3 5 CS8412 Digital Audio Interface 3 6 CS8402 Digital Audio Interface Transmitter 3 6 STK10C68 8K x 8 5 3 7 SC937 02 AES EBU Transformer 3 8 LCD Softswitch 5 3 9 Keypad Wiring 3 11 DSPSOUUU Fog Dos 4 3 Microcontroller and LCD rear 4 4 Programmable Logic Device 4 5 SRAM and External Memory 4 6 RS 232 OnCE Interface 4 7 Analog to Digital Converter 4 8 DSP56009EVMUM MOTOROLA Figure 4 7 Figure 4 8 Figure 4 9 Figure 5 1 Figure 6 1 Figure 6 2 Figure A 1 Figure A 2 Figure A 3 Figure B 1 Figure B 2 Figure B 3 Figure B 4 Figure B 5 Figure B 6 Figure B 7 Figure B 8 Figure B 9 Figu
10. 8a3407 5734546 344787 938482 304 82 dc 123456 5657784 567123 5675634 KU KK IHNEN ART REAR ARIK PROGRAM WORK org p 0 put following program in program memory starting at location 0 jmp begin p 0 is the reset vector i e where the DSP looks for instructions after a reset org p PBASE start the main program at p PBASE begin move listl r0 set up pointer to start of listl move list2 r4 set up pointer to start of list2 clr a clear accumulator a move x 00 0 y r4 yO load the value of X memory pointed by the contents of r0 into 0 and post increment load the value of Y memory pointed to by the contents of r4 into 0 and post increment r4 6 6 DSP56009EVMUM MOTOROLA Example Test Program Assembling the Program Example 6 1 Simple DSP56009 Code Example Continued do 15 endloop do 15 times mac x0 y0 a x r0 x0 y r4 yO multiply and accumulate and load next values endloop jmp this is equivalent to label jmp label and is therefore a never ending empty loop SAAR RARE RE NK CR NOT RERA ENE KR END OF THE SIMPLE PROGRAM 6 3 ASSEMBLING THE PROGRAM The following sections describe the format of the Assembler command
11. 99 8 va 2 any ZN 2 1ndino 14 94 bir 4 nd no 0 IN er 1ndino 497 er 55 E ra 2 nuo C L nuo QNOV 8 2 A Ceyeq nuo 0v1vas E 95 198 muo eu 01850 009 111 990 009 Zed 820 LEEFSO ZS ari 2200 z200 teivas 819 49 95 0 9 SH a C muo 10A BiG 009 X 10S N3Q Iv1vas gt d VA 1 Wd JOUSAUOI wa 2 avs LEEFSO 970 wn _24 I u IV1vOS r dn 2200 An 7200 910 ovivas 9 9 99 se muo dia 9559 UNIV ein 009 aqui 0 10s N3a 1nov ora TNI Yos IV1vas TVA sen 474 t ro 2 SVO LeevSo 098 en Q 4 9 DSP56009EVMUM MOTOROLA DSP56009EVM Schematics SPDIF I O JIddS 8 r eunbig 1 19 69 78 2 70 2 1 nn 154 Jaywsuel 2 5 9d 004 10 5095784 jeondo 20 90 20 4 gir xig uia 0 10 _ 4 6 o8s 189 So 9 9 14 8 1enusuej nga say N 74 2 v3 S 4 395 2 1 0 859 Izn vivas 20 18605 tLe an r
12. EPM7032 PLD SPecifications 5 1 2 PLD Equations The following data represents the PLD equations for the DSP56009EVM Device EPM7032TC44 ACK RST INPUT CNTL_MUTE INPUT DSO INPUT DSP_RST INPUT EMI_MRD INPUT EXP2_ WSR INPUT FS SENS INPUT IRQA INPUT INPUT IRQC INPUT MODA SEL INPUT MODB SEL INPUT MODC SEL INPUT RCVMASTER SEL INPUT TXMASTER SEL INPUT 4M CIk INPUT 11MHZ INPUT 12MHZ CLK INPUT 8412 MCK INPUT ACK _LC031 LCELL _EQ001 GND _ 0001 _X001 _X001 EXP DSO amp _X002 _X002 ACK_RST amp X001 ADA_CLK _LC006 LCELL EQ002 GND _EQ002 FS SENS amp IRCVMASTER SEL amp 12MHZ 5 SENS amp RCVMASTER SEL amp 8412 IFS_SENS amp IRCVMASTER SEL amp 11MHZ MOTOROLA DSP56009EVMUM 5 5 DSP56009EVM PLD Specification and EVM Parts List EPM7032 PLD SPecifications 2 019 2 174393 151 1 2 TFFE VCC 0003 VCC VCC VCC _EQ003 _X003 amp _X004 amp _X005 _X003 EXP IFS SENS amp RCVMASTER SEL amp 8412 _X004 EXP FS SENS amp RCVMASTER SEL amp 12MHZ X005 5 SENS amp SEL amp 11MHZ DSP_CLK 020 DSP_CLK 174393m 82IQD DSP_CLK TFFE _EQ004 12MHZ VCC VCC _EQ004 _LC009 amp
13. El 4 ALL PASS FILTER Bu Center Channel and or Subwoofer XRF V R V R z V AY Ei V V VR 0 EARLY REFLECTION zZ tz V N V AV AY gt 0 lt zz V V V RV O gt DLON gt oT I 2 0 DO 2 9 gt gt gt PO gt r O N Pe Pe 2 0 gt G tc Atten Left B 14 DSP56009EVMUM MOTOROLA COMB FILTER Figure B 8 Sound Field Processor Sound Field Processing Example X Y Memory Map for Sound Field Processor B 9 MEMORY MAP FOR SOUND FIELD PROCESSOR Table B 5 shows the memory map of the X and Y memories of the DSP546009 running the SFPEVM09 CLD program Table B 5 X and Y Memory for Sound Field Processing Demo Label Address X Y Comments RSRVD5 005b reserved reserved RSRVD4 005a reserved reserved RSRVD3 0059 reserved reserved RSRVD2 0058 reserved reserved RSRVD1 0057 reserved reserved reserved also END_TABLE1 apf_rl_coeffs 0056 APFAgf_RL APFAg_RL apf_rr_coeffs 0055 APFAgf_RR APFAg_RR apf_fl_coeffs 0054 APFAgf FL APFAg FL apf fr coeffs 0053 APFAgf FR APFAg FR output allpass coefficients EEdelay rl 0052 DLY RL base DLY RL OFF EEdelay rr 0051 DLY RR base DLY RR OFF rear output delay lines EEapf rl 0050 APF RL base APF RL OFF EEapf rr 004f APF RR base APF RR OFF EEapf fl 004e APF FL base
14. Option Meaning ABC Perform address bounds checking Check form of address expressions ASC Enable absolute section bounds checking CSL Cumulate section length data ESO Do not allocate memory below ordered sections OVLP Warn on section overlap RO Allow region overlap RSC Enable relative section bounds checking SVO Preserve object file on errors WEX Add warning count to exit status Example dsplnk XWEX filter cIn fft cln fio cln This example allows the Linker to add the warning count to the exit status so that a project build will abort on warnings as well as errors 2 This option allows the Linker to strip source file line number symbol information from the output file Symbol information normally is retained for debugging purposes This option has no effect if incremental linking is being done see the I option Example dsplnk Zfilter cln fft cln fio cln In this example the files filter cln fft cln and fio cln are linked to produce the absolute object file filter cln The output file will contain no symbol or line number information 6 22 DSP56009EVMUM MOTOROLA Example Test Program Motorola DSP Linker 6 4 2 Linker Directives Similar to the Assembler directives the Linker includes mnemonic directives that specify auxiliary actions to be performed by the Linker The following sections briefly describe the Linker directives BALIGN Auto align circular buffers BASE Set region base address I
15. Output Format Out Format 3 2 Surr Ctr Samp LFE LFE Level On On Off Ext 2 1 2 2 3 0 Nxt Output Form Dly Rat Ext AC 3 Information Stat gt OK Ext Nxt Sample Rate Out Format gt 3 2 Samp Rat gt 48 kHz 3 1 3 2 Nxt 48 44 1 32 Ext o Surround Delay Center Delay on Surr Delay gt 0 ms Cntr Delay gt 0 ms Ext Et Figure 3 9 LCD Softswitch Screens MOTOROLA DSP56009EVMUM 3 9 Peripheral Specifications LCD Panel AC 3 Information Smp Rat gt 48 kHz Nxt SUME AC 3 Information BS Rat gt 384 kb s Ext Nt o o AC 3 Information Extra Word gt No Ext Nxt AC 3 Information AC 3 Information BS Mod gt Main Bt Nt AC 3 Information Lv gt 3 dB Ext AC 3 Information S Mx Lv gt 3 dB Et Nt AC 3 Information AC 3 Information Lang Cd gt 9 Et Nxt AC 3 Information Lang Cd 2 gt 0 Ext AC 3 Information Rm Typ gt Nxt AC 3 Information LFE Present gt No Dolby surr gt Unk Mix Lv gt Nxt Nxt Net AC 3 Information Aud Cod gt 3 2 Et Nxt AC 3 Information Frm Sz gt 768 wds Mix Lv 2 gt Nxt Ext Nxt AC 3 Information AC 3 Information Cpyrght Prot gt Yes Ext AC 3 Information riginal BS gt Yes Nxt ae AC 3 Information CRC Sz gt 468 wds Dial Nm gt 0 Nxt
16. code allows connection to MC68HC711 emulation systems 2x 16 character Liquid Crystal Display LCD and four softswitches for user interface Connector provides capability to use optional standard 4 x 4 keypad matrix e MC68705K1 microcontroller performing RS 232 to OnCE port command conversions MOTOROLA DSP56009EVMUM 1 3 Quick Start Guide Equipment 1 3 EQUIPMENT The following section gives a brief summary of the equipment required to use the Evaluation Module some of which is supplied with the Evaluation Module and some of which will have to be supplied by the user 1 3 1 What you get with the Evaluation Module e Evaluation Module board See Figure 1 1 e 3 5 disk titled Debug Evaluation Module 3 5 disk titled DSP56009EVM Demos PCM Passthrough Files Soundfield Processor Files Example Assembly Language Files example asm Debug Evaluation Module manual DSP56000 Family Manual DSP56009 User s Manual DSP56009 Technical Data sheet DSP56009 Product Brief e DSP56009 EVM User s Manual this document including Evaluation Module Schematics and Demonstration software documentation e Additional relevant documentation may be included in the form of a READ ME file on the Evaluation Module Software disk 1 4 DSP56009EVMUM MOTOROLA Quick Start Guide
17. current user screen or the results of these commands are then displayed by a modular LCD panel with a 2 x 16 character display The microcontroller code is capable of driving larger LCD displays but all user screens are designed for a 2 x 16 character display The MC68HC711E9 communicates with the DSP via the Serial Host Interface SHI port in SPI mode When SS is pulled low the microcontroller can write to the DSP The MOSI and MISO lines pass control data through the DSP SHI in 24 bit mode SCK is the SPI Shift Clock from the DSP Again the expansion connector J5 can be used to access or intercept host port communications MOTOROLA DSP56009EVMUM 2 5 Evaluation Module Theory of Operation Inputs and Outputs The Control_Data Control_Clock and Control_Latch lines from the microcontroller control the digitally controlled analog domain attenuators The Control_Mute line mutes the ADC and the DACs low is muted high is enabled 2 1 5 Operating Mode Selection DSP56009EVM modes can be selected at JP3 as shown in Table 2 3 Once the mode has been selected the PLD can receive interrupts from the network attached 10 19 Table 2 3 Jumpers ws ee je 0 X X X 1 X X 2 X X 3 X 4 X X 5 X 6 X X jumper installed no jumper 2 1 6 Port The OnCE port interface operates by receiving the serial data from the RS 232 Transceiver and executing commands sent by t
18. give a list of Assembler special characters and directives and give instructions to assemble the example program 6 3 1 Assembler Command Format The Motorola DSP Assembler is included with the DSP56009EVM on the Motorola 3 1 2 inch diskette and can be installed by following the instructions in Section 1 4 3 The Motorola DSP Assembler is a program that translates assembly language source statements into object programs compatible with the DSP56009 The general format of the command line to invoke the Assembler is asm56000 options lt filenames gt where asm56000 is the name of the Motorola DSP Assembler program and lt filenames gt is a list of the assembly language programs to be assembled The following section describes the Assembler options To avoid ambiguity the option arguments should immediately follow the option letter with no blanks between them MOTOROLA DSP56009EVMUM 6 7 Example Test Program Assembling the Program 6 3 2 Assembler Options This option indicates that Assembler should run in Absolute mode generating an absolute object file when the B command line option is given By default the Assembler produces a relocatable object file that is subsequently processed by the Motorola DSP Linker B lt objfil gt This option specifies that an object file is to be created for Assembler output lt objfil gt can be any legal operating system filename including an optional pathname The type of obje
19. of the DSP56009EVM Evaluation Module the equipment required to use the Evaluation Module and the specifications of the key components on the Evaluation Module Code samples and self test code are provided on the accompanying software diskette Evaluation Module schematic diagrams and a parts list are included as well 1 2 EVALUATION MODULE DESCRIPTION AND FEATURES The DSP56009EVM is a low cost platform for multichannel digital audio applications design prototyping and development The fully assembled and tested circuit board contains 24 bit DSP56009 Digital Signal Processor operating at 81 MHz for Dolby AC 3 and Dolby ProLogic e 8192 bytes of off chip SRAM and 8192 bytes of nonvolatile RAM e Standard 30 pin SIMM slot for easy inexpensive DRAM expansion e One 20 bit stereo Analog to Digital converter ADC three 18 bit stereo Digital to Analog converters DACs e Programmable analog domain attenuators on the Digital to Analog outputs RCA jacks for all analog audio Input Output e Optical and transformer isolated electrical SPDIF CP340 stereo digital audio inputs and outputs e 50 pin expansion connector to provide the capability for expansion and or substitution of other input output peripherals as well as easy interprocessor communication between Motorola Evaluation Modules Socketed MC68HC711E9 52 pin CLCC microcontroller to allow the user to substitute user programmed microprocessor and prototype custom 68HC711
20. on the DSP of the Receive EVM and available as discrete channels for post processing of certain decoding algorithms on the Transmit EVM The file 1isten cld must be downloaded onto the Receive DSP in order to de multiplex the serial audio stream The user s DSP assembly files may be linked with this source file A special cable must be built in order to take advantage of this special function C 2 MULTIPLEX CABLE SPECIFICATION The Mux cable must be connected from jumper block J5 on the Transmit board to J5 on the Receive board The cable must be no longer than seven or eight inches preferably six inches There must be ground wires interspersed between each clock and data line those marked with an Ground connections can be found at pins 1 2 11 12 etc as seen in the SRAM and External Memory Interface schematic The cable must be a ribbon cable split to carry the WST and SCKT signals and grounds physically separate from the WSR SCKR SDIO and 5011 signals and grounds Table C 1 DSP56009EVM MUX Cable Pinout Transmit Receive Description 8 4 13 14 WST 5 6 15 16 SCKT 14 4 WSR 16 6 SCKR 18 8 SDIO 20 10 5011 7 8 9 10 25 26 27 28 29 30 31 32 37 38 39 40 43 44 DSP56009EVMUM C 3 DSP56009EVM Multiplex Definition EVM Setup for Multiplexing Table C 1 DSP56009EVM Cable Pinout Transmit Receive Description 17 18 19 20 21 2
21. step completes the software installation Es MOTOROLA DSP56009EVMUM 1 9 Quick Start Guide Installation Procedure DSP5600 8EV MUM MOTOROLA SECTION 2 EVALUATION MODULE THEORY OPERATION MOTOROLA DSP56009EVMUM 2 1 Evaluation Module Theory of Operation 2 1 2 1 1 2 1 2 2 1 3 2 1 4 2 1 5 2 1 6 2 1 7 2 1 8 2 1 9 2 1 10 2 1 11 2 2 INPUTS AND OUTPUTS c 38 2 3 GIOCKSBlSet PP 2 4 Serial Audio Interface SAI 2 4 Sony Philips digital interface format SPDIF 2 5 Other inputs and Outputs 2 5 Operating Mode 2 6 see 2 6 RS232 Connections and JP1 2 7 Operating Modes and SRAM refresh in the 56009 2 7 Evaluation Module 2 7 Power 2 8 n ada arcc a wy Erb be QUEDA S E Fires 2 8 DSP56009EVMUM MOTOROLA Evaluation Module Theory of Operation Inputs and Outputs Refer to Section 4 56009EVM Schematics for reference to pinouts and jumper configurations 2 1 INPUTS AND OUTPUTS Analog signals connected to the Evaluation Module inputs are converted to 20 bit data at the ADC 019 and 020 attenuate the signal and convert it to Balanced mode The ADC has the Select Serial I O Mode SMODE pin pulled high to make the ADC the SAI receive clock ma
22. symbol names all symbols are mapped to lower case Example dsplnk N filter cln fft cln fio cln MOTOROLA DSP56009EVMUM 6 19 Example Test Program Motorola DSP Linker In this example the files filter cln fft cln and fio cln are linked to produce the absolute executable file filetr cld All symbol references are mapped to lower case O lt mem gt lt ctr gt lt map gt lt origin gt By default the Linker generates instructions and data for the output file beginning at absolute location zero for all DSP memory spaces This option allows the programmer to redefine the start address for any memory space and associated location counter lt mem gt is one of the single character memory space identifiers X Y L P The letter may be upper or lower case The optional lt ctr gt is a letter indicating the High H or Low L location counters If no counter is specified the default counter is used lt map gt is also optional and signifies the desired physical mapping for all relocatable code in the given memory space It may be I for Internal memory E for External memory R for ROM A for Port A and B for Port B If lt map gt is not supplied then no explicit mapping is presumed The lt origin gt is a hexadecimal number signifying the new relocation address for the given memory space The O option may be specified as many times as needed on the command line This option has no effect if incremental linking is being done see the
23. 0 b y r5 left from left get left rear right gain Store right front x0 yl a x r1 x0 y r5 b left from right get right rear right gain get right rear x0 yl b a x r5 y rl y0 right from right get right rear left gain Store left rear 0 x r5 t a 1 0 right from left get left front left gain loop Js 1 x x0 x in_in x X EDRO EDRO x1 X EDRI1 EDR1 yl get left front get 1 amp r delay line samples store l in base incremented get last left sample store r in base incremented get last r sample Figure B 1 Early Reflection DO loop DSP56009EVMUM B 5 Sound Field Processing Example Delay Line for Combs Reverberation The early reflection part is constructed such that the first EMI write transfer triggers are performed in lines 13 14 before the DO loop therefore the first delayed EMI read can occur after the first offsets are retrieved from X and Y memory in line 35 within the DO loop Following the beginning of the DO loop a trigger occurs lines 37 and 39 In the next iteration of the DO loop the corresponding read occurs lines 38 and 40 Therefore the final EMI reads transpire at the termination of the loop in lines 75 and 77 and the final left and right delay line samples are stored in X memory line 72 Each time the loop executes the left and right samples are multiplied by their corresponding gains from ER gains in poi
24. 0MHz I 4 0 MHz Crystal JP2 JP6 JP8 2 pin single row header J19 4 pin single row header JP1 JP5 4 pin double row header JP3 JP4 JP7 6 pin double row header J18 10 pin double row header DSP56009EVMUM MOTOROLA DSP56009EVM PLD Specification and EVM Parts List Evaluation Module Parts List Part Designator Manufacturer Part Number Description on PC board for U16 14 pin single row female header on PC board for U16 14 pin single row male header J5 50 pin double row male header on PC board for U15 SIMM socket J17 Sharp GP1F32R Optical Connector Receive J16 Sharp GP1F32T Optical Connector Transmit J1 Mouser 16PJ031 2 1 mm DIN power connec tor 4 Mouser 152 3409 PC mount 089 female nector J7 J9 J11 J13 J6 J8 Mouser 161 4215 RCA Jack J10 J13 J14 J15 on PC board for U2 McKensie PLCC 52P T 52 pin PLCC socket J2 2 position terminal block J3 3 position terminal block 51 52 S3 54 55 6mm pushbutton switch D6 Future HLMP1790 Green LED 2 mA 1 8 V D5 Future HLMP1700 Red LED 2 mA 1 8 V U22 Sharp GP1U56Y Infrared receiver L1 Future BLO1RN1 A62 Ferrite on PC board for U14 TO 220 0 5 compact heat sink a Crystal Semiconductor Corporation PO Box 17847 Austin TX 78760 512 445 7222 Fax 512 462 2723 b Scientific Conversion Inc 42 Truman Drive Novato CA 94947 415 892 2323 Fax 415 892 2321 c Simtek Corporation 1465 Kel
25. 1 C33 Murata GRM42 6X7R104K050B 0 1 uF capacitor C34 C35 C36 C37 C38 L C39 C40 C41 C42 C43 C44 C45 C46 C47 C48 C49 C50 C51 C52 C53 C54 C55 C56 C57 C58 C59 C60 C61 C62 C65 C67 C68 C69 C70 C71 C27 Venkel C1206X7R500 473KNE 0 047 uF capacitor C13 C14 C15 C16 C17 Venkel C1206X7R500 272KNE 0 0027 uF capacitor C18 C12 Venkel C1206X7R500 224KNE 0 22 uF capacitor MOTOROLA DSP56009EVMUM 5 9 DSP56009EVM PLD Specification and EVM Parts List Evaluation Module Parts List Part Designator Manufacturer Part Number Description R50 100 1 4W resistor R25 R26 R31 R32 Venkel CR1206 8W 39R2FT 39 2 Q 1 4W resistor R47 Venkel CR1206 8W 51R1FT 51 1 4W resistor R7 75 Q 1 4W resistor R44 Venkel CR1206 8W 90R9FT 90 9 1 4W resistor R43 Venkel CR1206 8W 3740FT 374 Q 1 AW resistor R37 R38 R39 R40 R41 Future NRC12F6040TR 604 1 4W resistor R42 R46 Future CRCW1206 102JRT1 1 0 KQ 1 4W resistor R16 R18 Newark 44F6300 1 5K 1 5 KQ 1 4W resistor R1 R2 R3 R4 R5 R6 R8 Future CR32 1002F T 10 1 4W resistor R9 R10 R11 R12 R13 R14 R15 R17 R19 R23 R24 R29 R30 R45 R48 R49 R57 R21 R27 20 1 4W resistors R51 R52 R53 R54 R55 56 1 4W resistors R56 R20 R22 R28 Digikey D4AA24 ND 20 1 4W trimpot thru hole Y1 MMD MB100HA 11 2896MHz 11 2896 MHz Clock Oscilla tor Y2 MMD MB100HA 12 288MHz 12 288 MHz Clock Oscilla tor Ecliptek EC2 040 4 00
26. 2 FS SENS amp RCVMASTER SEL amp 11MHZ_CLK clkdiv4 116l 1 96 _LC024 TFFE VCC 4 VCC VCC VCC 174393 15IQ1C 174393 151 5 _LC005 TFFE EQ012 _EQ013 VCC VCC VCC _ 0012 ADA_CIK 2 amp LC002 _EQ013 _X003 amp X004 amp _X005 174393 151010 74393 151 9 96 _LC007 TFFE _EQ014 _EQ015 VCC VCC _EQ014 2 amp _LC002 amp _LC005 _EQ015 _X003 amp _X004 amp X005 174393 15102 174393 151 28 _LC004 TFFE VCC LC007 VCC VCC VCC 26 174393 15102 174393 151 29 _LC013 TFFE _LC004 LC007 VCC VCC VCC 26 174393 15102 174393 151 30 _LC026 TFFE 0016 LC007 VCC VCC VCC _EQ016 _LC004 amp LCO013 MOTOROLA DSP56009EVMUM 5 7 DSP56009EVM PLD Specification and EVM Parts List Evaluation Module Parts List 174393 8210 174393 821 1 _LC014 TFFE VCC 12MHZ VCC VCC VCC 174393 821 74393m 821 3 96 _LC009 TFFE LC014 12MHZ CLK VCC VCC VCC 174393 8210 174393m 821 5 _LC027 TFFE _EQ017 12MHZ VCC VCC VCC _EQ017 _LC009 amp LCO014 CNTL_MUTE _LC029 CNTL_MUTE LCELL CNTL MUTE GND 5 2 EVALUATION MODULE PARTS LIST The following four pages contain in table form information on the parts and devices on the Evaluation Module Contact information for suppliers of key devices as indicated by footnote is also inclu
27. 2 25 26 27 28 29 30 31 32 37 38 39 40 43 44 EVM SETUP FOR MULTIPLEXING There are a few differences between the DSP56009EVM s typical setup and the setup for multiplexing JP5 Jumpers must be off on both boards and the JP2 Jumper must be connected The SPDIF connector must be input to both boards with an AC 3 demod ulated bit stream C 4 DSP56009EVMUM MOTOROLA DSP56009EVM Multiplex Definition EVM Setup for Multiplexing Analog Inputs GUI L RTL Rights Left2 Right2 Left Right Rightin LeftIn CS3310 CS4331 CS3310 CS4331 CS3310 CS4331 CS5390 Optical CS8412 JP5 89 Optical JP2 30 ul Jz 5 f SIMM 4 CS8402A 59 8 99 J3 DSP STK10C Power 99 10 68 O P SPDIF JP4 99 56009 OR 8 SPDIF 99 18 Out 59 8999 89 68HC711E9 JP6 SC937 02 85 JP9 99 E 68HC705K1 JP1 oo E RS 232 OnCE M LCD Display el Reset J2 A
28. 3 6 Object File Control The directives used for control of the object file are COBJ Comment object code IDENT Object code identification record SYMOBJ Write symbol information to object file 6 14 DSP56009EVMUM MOTOROLA Example Test Program Assembling the Program 6 3 3 7 Macros and Conditional Assembly The directives used for macros and conditional assembly are DUP Duplicate sequence of source lines DUPA Duplicate sequence with arguments DUPC Duplicate sequence with characters DUPF Duplicate sequence in loop ENDIF End of conditional assembly ENDM End of macro definition EXITM Exit macro IF Conditional assembly directive MACLIB Macro library MACRO Macro definition PMACRO Purge macro definition 6 3 3 8 Structured Programming The directives used for structured programming are BREAK Exit from structured loop construct CONTINUE Continue next iteration of structured loop ELSE Perform following statements when IF false ENDF End of FOR loop ENDI End of IF condition ENDL End of hardware loop ENDW End of WHILE loop FOR Begin FOR loop Begin IF condition LOOP Begin hardware loop REPEAT Begin REPEAT loop UNTIL End of REPEAT loop WHILE Begin WHILE loop MOTOROLA DSP56009EVMUM 6 15 Example Test Program Motorola DSP Linker 6 3 4 Assembling the Example Program The Assembler is aMS DOS based program thus to use the Assembler you will
29. 9EVM to the PC and Power 1 8 1 4 3 Installing the Software 1 9 SECTION 2 EVM THEORY OF OPERATION 2 1 2 1 INPUTS AND OUTPUTS 256255 e cats 2 3 2 1 1 oe qon PT 2 4 2 1 2 Serial Audio Interface 5 2 4 2 1 3 Sony Philips digital interface format SPDIF 2 5 2 1 4 Other inputs and 2 5 2 1 5 Operating Mode 2 6 2 1 6 OnDOCEIMPODL pc Bora aseo s 2 6 2 1 7 RS232 Connections and 1 2 7 2 1 8 Operating Modes and SRAM refresh in the 56009 2 7 2 1 9 Evaluation Module lt 2 7 2 1 10 Power 5 2 8 2 1 11 MEMON Ae 2 8 SECTION 3 PERIPHERAL SPECIFICATIONS 3 1 3 1 955990 STEREO ADG se eee 3 3 3 2 C433 STEREO DAG vita ae 3 4 3 3 CS3310 STEREO DIGITAL VOLUME CONTROL 3 4 3 4 CS8412 DIGITAL AUDIO INTERFACE RECEIVER 3 5 MOTOROLA DSP56009EVMUM iii 3 5 CS8402A DIGITAL AUDIO INTERFACE TRANSMITTER 3 6 3 6 STK10C68 CMOS 2K X 8 3 7 3 7 SC937 02 AES EBU TRANSFORMER 3 7 3 8 EOD PANEL cia nr 3 8 3 9 WIRING FOR 3 11 SECTION 4 DSP56009EVM SCHEMATICS 4 1 SECTION 5 DSP56009EVM PLD SPECIFICATION AND EVM PARTS
30. APF FL OFF EEapf fr 004d APF FR base APF FR OFF allpass output stage delay lines TCOMBS gain 004c tCOMBA gain tCOMBA gain total combs gain gains 004b RNDA6g RNDA18g round gains APF gains 004a APFAgf APFAg allpass filter gains 0049 COMB6g2A COMB6g1A 0048 COMB5g2A COMB5g1A 0047 COMB4g2A COMB4g1A 0046 COMB3g2A COMB3g1A 0045 COMB2g2A COMB2g1A COMB gains 0044 COMB1g2A COMB1g1A comb gains 0043 ERA_RRavg ERA_RLavg D_avgs 0042 ERA_FRavg ERA_FLavg delay line averaging gains 0041 ERA_RRrg6 ERA_RR1g6 0040 ERA_RLrg6 ERA_RL1g6 003f ERA_FRrg6 ERA_FR1g6 003e ERA_FLrg6 ERA_FL1g6 MOTOROLA DSP56009EVMUM B 15 Sound Field Processing Example X Y Memory Map for Sound Field Processor Table B 5 X and Y Memory for Sound Field Processing Demo 003d ERA RHrg5 ERA RH195 003c ERA RLrg5 ERA RL195 003b ERA FRrg5 ERA FR195 003a ERA FLrg5 ERA FL1965 0039 ERA RRrg4 ERA RR1g4 0038 ERA RLrg4 ERA RL1g4 0037 ERA FRrg4 ERA FR1g4 0036 ERA FLrg4 ERA FL1g4 0035 ERA RHrg3 ERA RHR193 0034 ERA RLrg3 ERA RL193 0033 ERA FRrg3 ERA FR193 0032 ERA FLrg3 ERA FL193 0031 ERA RHRrg2 ERA RR1g2 0030 ERA RLrg2 ERA RL19g2 002f ERA FRrg2 ERA FR1g2 002e ERA FLrg2 ERA FL1g2 002d ERA RRrg1 ERA RR1g1 002c ERA RLrg1 ERA RL1g1 002b ERA FRrgt ERA 101 002a ERA FLrg1 ERA FL1g1 ER gains 0029 ERA Ling ERA Ring early reflection gains EEapf 0028 APF base APFA OFF all
31. DENT Object module identification INCLUDE Include directive file MAP Map file format control MEMORY Set region high memory address REGION Establish memory region RESERVE Reserve memory block SBALIGN Auto align section buffers SECSIZE Pad section length SECTION Set section base address SET Set symbol value SIZSYM Set size symbol START Establish start address SYMBOL Set symbol value MOTOROLA DSP56009EVMUM 6 23 Example Test Program Introduction to the Debugger Software 6 5 INTRODUCTION TO THE DEBUGGER SOFTWARE This section will give a brief introduction of the Domain Technologies Debugger detailing only that which is required to work through this example Full details of the Debugger and an informative tutorial can be found in the Debug 56K Manual The Domain Technologies Debugger is a software development system for the DSP56009 The Domain Technologies Debugger is included with the DSP56009EVM on the Domain Technologies 3 1 2 inch diskette and can be installed by following the instructions in Section 1 4 3 To invoke the Debugger double click on the icon labelled EVM56007 Debugger in the EVM56007 program group that was created when the Debugger was installed The Debugger display will be similar to Figure 6 2 with the screen divided into four windows the command window the data window the unassembly window and the registers window DSP56303EVM Debugger shown The command window is the window selecte
32. DSP56009EVM User s Manual Motorola Incorporated Semiconductor Products Sector DSP Division 6501 William Cannon Drive West Austin TX 78735 8598 Introduction This document supports the DSP56009 Evaluation Module DSP56009EVM including a description of its basic structure and operation the equipment required to use it the specifications of the key components the provided software such as the demonstration code and the software required to develop and debug sophisticated applications schematic diagrams and a parts list Section 1 is a Quick Start Guide Section 2 provides evaluation module specifications Section 3 provides peripheral specifications Section 4 provides schematics for the DSP56009EVM Section 5 provides PLD equations and schematics and the parts list Section 6 provides an example program and information on the debugger Appendix A documents the audio pass through demonstration program provided with the EVM Appendix B describes the sound field processing demonstration Appendix C includes additional notes for using the Assembler This document has been designed for users experienced with DSP development tools For users with little or no DSP experience detailed information is provided in the additional documents supplied with this kit 2528 OnCe is a trademark of Motorola Inc gsm Motorola reserves the right to make changes without further notice to any products herein Moto
33. Digital Infrared Power Remote Receiver Figure C 1 DSP56009EVM Jumper Setting for Multiplexing MOTOROLA DSP56009EVMUM 5
34. EP X RIGHT AUDOUT X TXO MOVEP X RIGHT_AUDOUT X TX1 MOVE X RIGHT AUDOUT X TX2 movep x right digout x txO0 movep x right digout x txl movep x right digout x tx2 RTI Figure A 2 Output Interrupt Structure for Digital Input 4 DSP56009EVMUM MOTOROLA Audio Pass Through Example EVM Setup for Audio Pass Through EVM SETUP FOR AUDIO PASS THROUGH The input sources for the respective output channels for the demo passthru cld are illustrated below in Table A 1 The output channels are specified in the output interrupt routines SAI_LFT_TX_IRO and SAI RGT TX IRQ Table A 1 Output sources for audio pass through Audio Source EVM output Analog Inputs Left 1 Right 1 Analog Inputs Left 2 Right 2 Digital Inputs Left 3 Right 3 The audio pass through EVM jumper configuration is illustrated below in Figure A 3 Note that JP5 is configured to clock from the DSP clock and receive analog input data Therefore in order to receive the SPDIF input clock and data the jumper on JP5 3 and JP5 4 must be removed Also note that JP4 is set for non Optical input MOTOROLA DSP56009EVMUM 5 Audio Pass Through Example EVM Setup for Audio Pass Through
35. L PASS FILTER The all pass filter has a flat frequency response from 0 Hz to the Nyquist frequency however the phase response delays different frequencies by different amounts This provides a very distinct sound approaching a phasing effect Moorer defines the most natural sounding unit reverberator to contain a number of comb filters and a single all pass filter He also states that the use of more than six parallel comb filters and one all pass filter does not significantly enhance reverberant qualities Therefore only a single all pass filter is implemented here The delay must be set to six milliseconds or less as longer delays produce what Moorer describes as an audible repetition The gain constant g of the all pass filter is 0 7 The block diagram for the all pass filter is shown in Figure B 4 Figure B 4 All pass Filter B 8 DSP56009EVMUM MOTOROLA Sound Field Processing Example De Correlation Routine The value z n which is the value of the upper gain stage is computed first the delay z is accessed from the EDRO EMI Data Read register and v n is computed The parallel move feature of Motorola s DSP56K architecture allows this arithmetic to be achieved in only four instructions as shown in Figure B 5 T move b y0 1 transfer x n to yO for 2 multiplication get 1 2 at 1 3 mpy yO yl a x r0 x0 z n k x n 4 get y n T from EDRO to x0 5 macr 0 1 5 r4 compu
36. MOTOROLA SECTION 5 DSP56009EVM PLD SPECIFICATION AND EVM PARTS LIST MOTOROLA DSP56009EVMUM 5 1 DSP56009EVM PLD Specification and EVM Parts List 5 1 EPM7032 PLD SPECIFICATIONS 5 3 5 1 1 PUBESCHEMAUCS re a ee c mend De Ad 5 3 5 1 2 PLD Eg atioNS sene ae 5 5 5 2 EVALUATION MODULE PARTS LIST 5 8 5 2 DSP56009EVMUM MOTOROLA DSP56009EVM PLD Specification EVM Parts List EPM7032 PLD SPecifications 51 EPM7032 PLD SPECIFICATIONS 5 1 1 PLD Schematics The PLD schematic is illustrated on the following page in Figure 5 1 MOTOROLA DSP56009EVMUM 5 3 DSP56009EVM PLD Specification and EVM Parts List EPM7032 PLD SPecifications DSP gt MODA SELLE DSP MODA gt 2 GPIO2 E DSP_MODB MODB SELE DSP MODC IRQB gt MODC SELL IRQC gt NVRAM G Multiplexer CNTL MUTE gt 0o gt CNTL_MUTE EXP2_ WSR gt EXP2_WSR gt ADA CIk gt EXP2 SCKT D NANDLTCH DSO ACK ACK RST EXP2 WST clkdiv4 4M CIk gt Clock in Clock Out 1M_Clk 74393M clockpr4 12MHz gt OutputA 11 2 gt DSP CLK OutputB V _5 gt gt FS SENS gt E 5390 CLK TXMASTER gt gt 8412 gt Figure 5 1 PLD Schematic 5 4 DSP56009EVMUM MOTOROLA DSP56009EVM PLD Specification and EVM Parts List
37. OLA DSP56009EVMUM 3 1 Peripheral Specifications 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 3 2 99990 STEREO ADO ss ere 222 23321 3 3 54931 STEREO DAG urn A DB IS 3 4 CS3310 STEREO DIGITAL VOLUME CONTROL 3 4 CS8412 DIGITAL AUDIO INTERFACE RECEIVER 3 5 CS8402A DIGITAL AUDIO INTERFACE TRANSMITTER 3 6 STK10C68 CMOS 2K X8 3 7 SC937 02 AES EBU TRANSFORMER 3 7 EGD PANELS 5 Beeren 3 8 WIRING FOR KEYPAD cov cu Rep Ur aa 3 11 DSP56009EVMUM MOTOROLA Peripheral Specifications CS5390 Stereo ADC The following section describes the various peripheral devices used on the DSP56009EVM and includes any necessary equations and information Contact information for the manufacturers of significant peripheral devices is included along with the parts listing in Section 5 31 55390 STEREO ADC The 55390 is a complete Analog to Digital Converter ADC for stereo digital audio systems It performs sampling analog to digital conversion and anti alias filtering generating 20 bit values for both left and right inputs in serial form The output word rate can be up to 50 kHz per channel The 55390 uses fifth order delta sigma modulation with 64 times oversampling followed by digital filtering and decimation which removes the need for an external anti alias filter beyond the simple balanced RC filter formed by R25 R26 and C8 R31 R32 and C20 for the right channe
38. OUGH THEORY 4 EVM SETUP FOR AUDIO PASS THROUGH A 5 A 2 DSP56009EVMUM MOTOROLA Audio Pass Through Example Pass Through Theory PASS THROUGH THEORY The main program loop of the passthru asm code serves as a reference guide on how to pass data into and out of the EVM The following describes the operation of the passthru asm program Audio samples are composed of left and right data words that are received and trans mitted alternately The RX_HERE bit is polled until it is set indicating that a the left data word is shifted in on the associated serial receive data pin SDIO or SDI1 and transferred to the receive data register RX1 or RX2 This bit is cleared after the word is received The left receive interrupt service routine moves the word in the receive data register into the receive buffer LEFT AUDIN The received word is also saved into another register such as X1 user s code may be inserted in this section to perform any necessary audio processing The word to be transmitted out stored in X1 is then moved into the LEFT_AUDOUT transmit buffer The left transmit interrupt service routine moves the word in the transmit buffer into the transmit data register TX1 or TX2 and it is shifted out on the associated serial transmit data pin SDOO SDO1 or SDO2 The right data is received and transmitted similarly After the right word is received the HERE bit is s
39. Test Program Assembling the Program optional pathname The EA option causes the standard error stream to be written to lt errfil gt if lt errfil gt exists the output stream is appended to the end of the file The EW option also writes the standard error stream to lt errfil gt if lt errfil gt exists it will be overwritten Example asm56000 EWerrors prog asm This example redirects the standard output to the file errors If the file already exists it will be overwritten F lt argfil gt This option indicates that the Assembler should read command line input from lt argfil gt lt argfil gt can be any legal operation system filename including an optional pathname lt argfil gt is a text file containing further options arguments and filenames to be passed to the Assembler The arguments in the file need to be separated only by some form of white space A semicolon on a line following white space makes the rest of the line a comment Example asm56000 Fopts cmd This example invokes the Assembler and takes the command line options and source filenames from the command file opts cmd G This option sends the source file line number information to the object file This option is valid only in conjunction with the B command line option The generated line number information can be used by debuggers to provide source level debugging Example asm56000 B Gmyprog asm This example assembles the file myprog asm and
40. Y FOR SOUND FIELD PROCESSOR B 15 REVERB TIME 15 B 17 DSP56009EVMUM MOTOROLA Sound Field Processing Example Introduction B 1 INTRODUCTION The phrase sound field processing seems to embody a sense of extra space added to an original sound With the advent of practical multichannel sound processing certain sound fields artificially became attainable and edifies the listening environment when certain theaters or other settings are replicated in software In order to create the delay and reverberation elements that typify certain acoustical spaces filtering and delay components must be instituted Therefore DSPs ideally might handle even the toughest simulation The soundfield processing example offered here is a design based around studies performed independently by Manfred Schroeder and James Each provide important insight into effective algorithms that create artificial reverberation This appendix will explain specifically the reverberation blocks inherent in one particular example however this example provides only one of many as defined by Schroeder and Moorer This implementation uses filter coefficients collected by Schroeder that imitate the Boston Concert Hall A four channel output is generated left front right front left rear and right rear with a summed output feeding the center channel which may also be lowpass filtered to be used for a subwoofer channel T
41. _LC014 amp _LC027 9 DSP_MODA LC010 DSP MODA LCELL _EQ005 GND _EQ005 DSP_RST amp IRQA 4 IDSP RST amp MODA SEL 9 DSP_MODB _LCO11 96 DSP_MODB LCELL _EQ006 GND EQ006 DSP RST amp IRQB 4 IDSP RST amp MODB SEL 9 DSP_MODC _LC012 DSP_MODC LCELL _EQ007 GND _20007 DSP_RST amp IRQC IDSP RST amp MODC_SEL EXP2_GPIO2 LC016 EXP2_GPIO2 TRI _LC016 GLOBAL DSP_RST _LC016 LCELL GND GND EXP2_GPIO3 LC021 EXP2 GPIO3 TRI LC021 GLOBAL DSP_RST _LC021 LCELL GND GND EXP2_SCKT 174393 15IQ1B EXP2 SCKT TRI LC002 GLOBAL TXMASTER_SEL _LC002 TFFE 2 _EQ008 VCC VCC _EQ008 _X003 amp _X004 amp X005 EXP2_WSR _LC003 EXP2_WSR LCELL EXP2_ WSR GND 5 6 DSP56009EVMUM MOTOROLA DSP56009EVM PLD Specification and EVM Parts List EPM7032 PLD SPecifications EXP2_WST 174393 15IQ02D EXP2 WST TRI LC017 GLOBAL TXMASTER_SEL _LC017 TFFE EQ009 LC007 VCC VCC VCC _EQ009 _LC004 amp _LC013 amp _LC026 NVRAM G _LC001 NVRAM_G LCELL _EQ010 GND _EQ010 DSP_RST amp EMI DSP_RST amp MODC_SEL 1 _LC025 1 CIk lclkdiv4 116lClock_Out VCC _LC024 VCC VCC 5390_CLK _LC023 5390_CLK LCELL EQ011 GND _EQO11 FS SENS amp RCVMASTER_SEL amp 12MHZ FS_SENS amp RCVMASTER SEL amp 841
42. ality especially innoisy environments EMI compliance and EMI susceptibility are improved by the use of this type of transformer The transformer s ratio is 1 1 primary inductance is 600 uH inter winding capacitance is 1 1 pF bandwidth is 16 kHz to 100 MHz and rise time is 3 ns Input o o Output Rtn eg Input 2 Output Figure 3 8 SC937 02 AES EBU Transformer 3 8 LCD PANEL illustrates the different screens of the LCD panel and the corresponding actions of the soft switches 3 8 DSP56009EVMUM MOTOROLA Peripheral Specifications LCD Panel MAIN MENU Slct Code v1 09 Reset always returns here wa AC 3 PCM AC 3 Master Volume Mstr Pro Noise Mstr Mstr Vol gt 6 dB AC 3 Vol Logic Seq Vol Bt o e See Right ro AC 3 Logic On Off Compression AC 3 Cmp gt Lin 3 Pro Pro Logic gt Off Cst1 Cst2 Lin RF Cmp DRC Logic Nxt Off On Auto Nxt ProLogic Noise Sequencer Dyn Rnge Cntrl Menus AC 3 DCR Hi gt 0 00 at Pro Logic gt PL4 Noise Gen gt LF Ext Nxt Info Fmt LFE Nxt Ext Nxt o o o o Pro Logic Hi Dyn Rnge Cntrl Output Format os Noise Sequencer AC 3 DCR Lo gt 0 00 Out Format gt 3 2 Cntr Mode gt Nml Noise Gen gt LF Nml Wid Phtm Nxt 15 RS SW Nxt 1 Additional Menu Noise Sequencer Nxt 1 0 2 0 20PL Nxt 3
43. buggers to provide source level debugging Example dsplnk B Gmyprog cln This example links the file myprog cln and sends source file line number information to the resulting object file myprog cld I The Linker ordinarily produces an absolute executable file as output When the I option is given the Linker combines the input files into a single relocatable object file suitable for reprocessing by the Linker No absolute addresses are assigned and no errors are issued for unresolved external references Note that the B option must be used when performing incremental linking in order to give an explicit name to the output file If the filename were allowed to default it could overwrite an existing input file Example dsplnk I Bfilter cln main cln fft cln fio cln In this example the files main cln fft cln and fio cln are combined to produce the relocatable object file filter cln 6 18 DSP56009EVMUM MOTOROLA Example Test Program Motorola DSP Linker L lt library gt The Linker ordinarily processes a list of input files which each contain a single relocatable code module If the L option is encountered the Linker treats the following argument as a library file and searches the file for any outstanding unresolved references If amodule is found in the library that resolves an outstanding external reference the module is read from the library and included in the object file output The Linker continues to search a librar
44. cal JP4 3 to SPDIF JP4 5 JP4 4 to JP4 6 2 1 1 Clock Select The Evaluation Module provides a means for the user to select which clock controls the reception and transmission of digital audio see Table 2 2 below JP2 selects the ADC and DAC clocks which when jumpered are set at 44 1 KHz and when not jumpered at 48 KHz The expansion connector J5 can be used to directly access the DSP The receive SAI bus may be clocked by the selection made at JP2 44 1 KHz or 48 KHz or be clocked by the received SPDIF signal The transmit SAI bus may be clocked by either the clock selected at JP2 or by the received SPDIF signal It is the user s responsibility to ensure that data is output at the desired rate See Table 2 2 below Table 2 2 JP5 Jumpers Receive Jumper JP5 1 Jumper JP5 3 m em to JP5 2 to JP5 4 Jumper Rx Clocked by crys Clocked by received tal SPDIF Tx Clocked by crys Clocked by received tal SPDIF 2 1 2 Serial Audio Interface SAI The DSP56009 SAI transmitter drives the six analog outputs and the SPDIF output PS is the Default mode for DACs The Master Clock MCLK rate for the DACs is 256 x F The dual RC networks after the DACs serve as AC couplers for audio data 2 4 DSP56009EVMUM MOTOROLA Evaluation Module Theory of Operation Inputs and Outputs and as low pass filters to convert the delta sigma digital output pulses to analog waveforms The digitally controlled analog d
45. ct file produced depends on the Assembler operation mode If the A option is supplied on the command line the Assembler operates in Absolute mode and generates an absolute object cld file If there is no A option on the command line the Assembler operates in Relative mode and creates relocatable object cln file If the B option is not specified the Assembler will not generate an object file If no objfil is specified the Assembler will use the basename filename without extension of the first filename encountered in the source input file list and append the appropriate file type cln or cld to the basename The B option should be specified only once Example asm56000 Bfilter main asm fft asm fio asm This example assembles the files main asm fft asm and fio asm together to produce the relocatable object file filter cln D symbol string This option replaces all occurrences of symbol with string in the source files to be assembled Example asm56000 DPOINTS 16 prog asm This example replaces all occurrences of the symbol POINTS in the program prog asm by the string 16 EA errfil or EW lt errfil gt These options allow the standard error output file to be reassigned on hosts that do not support error output redirection from the command line lt errfil gt must be present as an argument but can be any legal operating system filename including an 6 8 DSP56009EVMUM MOTOROLA Example
46. d 100 00 SVd xe LO0 vOO v Vd gir LOO SOO VOI EVd 2 Lol ewd Q EV Od TESTS vO vV vOd SQ SV SOd oue SV VHLS 90 9v 90d d 091 LO LW LOd 1 1 W LX4 _ d 4 490 D ZHN T seJ1u02 oz N 2 AOL 2184 3 Ob ola AS MOTOROLA DSP56009EVMUM 4 4 DSP56009EVM Schematics Programmable Logic Device 91807 p ZHN 982 c ZHN 9682 x 1018 1080 Sg 8 20 5 ZHW 882721 Sues 54 vd 1 5 4 101211950 LEN Q 4HIN 9682711 can tl 159 MOV LA Aq peyoo p 4eduunf 74 9 je1sA19 peyoop annua 45 Aq pexoo p je1sA19 Aq x S8 8 2824 1 1 orl Hr PU pur PUL pur 29 9 0689 4 v 29 eat 19 8 158 dsa AON 2198 OQON val 5 T gaon asa AE TEOLNAH 31 vaoN sn vas 20 9 29 8 td 739 1 epo 99A 99A99A99A TH c ZI kE E I9 07 HJ 894 60 8 po s dnueslu ZMO H Sin V 9a S or 01 WVHAN vu siu 4 5 DSP56009EVMUM MOTOROLA SRAM and External Memory Inte
47. d ctl to the basename If the R option is not specified then the Linker will not use a memory control file The R option should be specified only once Example dsplnk Rproj filter cln gauss cln In this example the files filter cln and gauss cln are linked together using the memory file proj ctl U lt symbol gt This option allows the declaration of an unresolved reference from the command line lt symbol gt must be specified This option is useful for creating an undefined external reference in order to force linking entirely from a library Example dspInk Ustart Lproj lib This example declares the symbol start undefined so that it will be resolved by code within the library proj lib V This option causes the Linker to report linking progress beginning of passes opening and closing of input files to the standard error output stream This is useful to insure that link editing is proceeding normally Example dsplnk V myprog cln This example links the file myprog cln and sends progress lines to the standard error output MOTOROLA DSP56009EVMUM 6 21 Example Test Program Motorola DSP Linker X lt opt gt lt opt gt lt opt gt The X option provides for link time options that alter the standard operation of the Linker The options are described below means default All options may be preceded by NO to reverse their meaning The X lt opt gt sequence can be repeated for as many options as desired
48. d which means that key strokes will be placed in the command window The command window is where commands are entered The data window is used to display DSP56009 data The unassembly window is used to display the DSP56009 programs The next instruction to be executed will be highlighted The registers window shows the contents of the DSP56009 internal registers 6 24 DSP56009EVMUM MOTOROLA Example Test Program Introduction to the Debugger Software 303 COM2 Eile View Run Symbol Breakpoint Config Window Help 2 Unassemby exampeasm ______ rn memory starting a F98734 800000 jmp begin p 0 is the reset FEDCBA 487327 957572 369856 247978 803507 734546 344787 938482 304F82 123456 657784 list1 r0 567123 675634 list2 r4 D p 2FE9F5 177E4D 109012 B3B1C7 F36CCD o Command HEX 404020 240100 LOAD example 00000200000000 DISPLAY x 0 FF7112E3000000 DISPLAY y 0 00 000200 000000 the DSP looks for after a reset org p PBASE start the main pr FF 7112E3 000000 000810 FFFFFF 000001 000000 FFFFFF 000001 000080 FFFFFF B Figure 6 2 Example Debugger Window Display When the command window is selected as in Figure 6 2 the tool bar at the top of the screen contains buttons for the most often used commands From right to left the commands are go stop step jump automatic update reset and radix The go button runs the DSP56009 from the program counter The st
49. d JP5 4 must be removed MOTOROLA DSP56009EVMUM Sound Field Processing Example DSP56009EVM Setup for SFP Demonstration Analog Outputs Analog Inputs4 LS RS BS PUE L dead Left3 Right3 Left2 Right2 Left1 Right1 Rightin LeftIn CS3310 54331 63310 54331 CS3310 05438 CS5390 Optical nL CS8412 JP5 A JP3 Optical JP2 30 Pi Out 7 J5 PLD 99 SIMM CS8402A g Socket 9 J3 DSP 5 B O Analog TK10C68 SPDIF JP4 Eros S Power In 84 SPDIF 0 MIR Out O 90 68HC711E9 JP6 SC937 02 991 JP9 99 68 705 1 JP1 Eo 5 232 OncE LCD Display Reset e Digital Infrared Power Remote Receiver Figure B 7 EVM configuration for Sound Field Processing Demo In order to adequately run the SFPEVM09 CLD file a 256 kbyte 30 pin SIMM DRAM must also be provided at connector 1715 An audio source an audio amplifier driving headphones or speakers and cables with connect
50. ded at the end of the table Table 5 1 DSP56009EVM Parts List Part Designator Manufacturer Part Number Description U1 Motorola DSP56009 DSP U2 Motorola MC68HC711E9 Microcontroller U24 Motorola MC68HC705K1 Microcontroller OnCE U7 Crystal CS5390 KS ADC U8 U9 U10 Crystal 4 CS4331 KS DAC 021 Crystal CS8402 CS AES EBU Transmitter U23 Crystal CS8412 CS AES EBU Receiver U11 U12 013 Crystal CS3310 KS Digital Volume Controller 5 8 DSP56009EVMUM MOTOROLA DSP56009EVM PLD Specification EVM Parts List Evaluation Module Parts List Part Designator Manufacturer Part Number Description L3L4 Scientific SC937 02 Audio Isolation Transformer Conversion U6 Simtek STK1068 S45 SRAM nVRAM U16 Hitachi LMOS2L LCD Module U14 U17 Motorola MC7805 Voltage Regulator 018 Motorola MC7905 Voltage Regulator 019 020 Motorola MC33078 Op Amp U5 Altera EPM7032TC44 12 PLD D1 02 D3 D4 D7 Rectron FM4001 Rectifier SMD U4 Maxim MAX232CSE RS232 Transceiver C4 C5 C6 C7 C9 C10 Murata GRM42 6Y5V105Z16BL 1 0 uF capacitor C22 C24 C25 C28 C66 C72 C73 C74 CC1206CY5V335ZTR 3 3 uF capacitor C75 C1 C63 Murata GRM42 6XR103K050BD 0 01 uF capacitor C8 C20 Venkel C1210C0G500 682JNE 6 8 nF capacitor C11 C19 C21 C23 C64 Future SME25T101M6X16LL 100 uF Aluminum Electro lytic capacitor C2 C3 Murata GRM42 6C0G470J050B 47 pF capacitor D C26 C29 C30 C3
51. duce 7 move 7 1 set linear 8 move ffront r5 pointer r5 for samples 9 movep x ER ebar x EBARO FIR left delay line 10 movep y ebar 1 FIR right delay line 14 move 1 r4 x get 1 st stage left and 12 right offsets B 4 DSP56009EVMUM MOTOROLA 13 14 33 34 39 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 movep movep do ove ovep ovep ovep ovep front ac acr mac macr LOGUE ac acr ac acr end_FIR complete the move movep movep movep movep MOTOROLA Sound Field Processing Example Early Reflections x1 x EORO stage trigger of left x0 x EOR1 stage trigger of right nFIR 1 end FIR EMI reading l r4 x get next stage 1 amp offsets x1 x EORO next left trigger x EDRO x1 get left sample x0 x EOR1 next right trigger X EDRI1 yl get right sample 0 x rl x0 b y r5 left from left get left front right gain store right rear x0 yl a x r1 x0 y r5 b left from right get right front right gain get right front x0 yl b 5 y rl y0 right from right get right front left gain Store left front x1 y0 b x r5 a y rl yO0 right from left get left rear left gain get left rear 0 x rl x
52. e even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part Motorola and 4 registered trademarks of Motorola Inc Motorola Inc is Equal Opportunity Affirmative Action Employer How to reach us USA Europe Locations Not Asia Pacific Japan Listed Motorola Semiconductors H K Ltd Nippon Motorola Ltd Motorola Literature Distribution 8B Tai Ping Industrial Park Tatsumi SPD JLDC P O Box 20912 51 Ting Kok Road 6F Seibu Butsuryu Center Phoenix Arizona 85036 Tai Po N T Hong Kong 3 14 2 Tatsumi Koto Ku 1 800 441 2447 or 852 2662928 Tokyo 135 Japan 1 602 303 5454 03 3521 8315 Technical Resource Center MFAX 1 800 521 6274 RMFAX0 email sps mot com Internet TOUCHTONE 602 244 6609 DSP Helpline http www motorola dsp com dsphelp dsp sps mot com MOTOROLA 4 DSP56302EVMUM AD Preliminary MOTOROLA CONTENTS SECTION 1 QUICK START GUIDE 1 1 1 1 OVERVIEW eR Pet due ee Be ete dri rs 1 3 1 2 EVALUATION MODULE DESCRIPTION AND FEATURES 1 3 1 3 EQUIPMENT edd aba s EE IS 1 4 1 3 1 What you get with the Evaluation Module 1 4 1 3 2 What you need to supply for AC 3 ProLogic Demonstration 1 5 1 3 3 What you need to supply for software development 1 6 1 4 INSTALLATION PROCEDURE 1 6 1 4 1 Preparing the 5 56009 1 7 1 4 2 Connecting the DSP5600
53. ee the registers in the registers window being changed by the instructions After each cycle any register that has been changed will be brightened Once you have stepped through the program ensure that the program has executed correctly by checking that the result in accumulator a is FE 9F2051 6DFCC2 Stepping through the program like this is good for short programs but it is impractical for large complex programs The way to debug large programs is to set breakpoints These are user defined points at which execution of the code will stop allowing the user to step through the section of interest To set a breakpoint in the example to check that the values in r0 and r4 are correct before the do loop type break p 106 in the command window You will see the line before the loop brighten in the unassembly window indicating the breakpoint has been set To point the DSP56009 back to the start point of the program type change pc 0 This changes the program counter such that it is pointing to the reset vector To start the program running type go or click on the go button The DSP56009 will stop when it reaches the breakpoint and you will be able to step through the remainder of the code To exit the Debugger type quit at the command prompt 6 26 DSP56009EVMUM MOTOROLA APPENDIX A AUDIO PASS THROUGH EXAMPLE MOTOROLA DSP56009EVMUM A 1 Audio Pass Through Example 1 PASS THROUGH THEORY is rx ne 8 PERDE A 3 A 2 SPDIF INPUT PASS THR
54. eir manipulation occurs The instructions MOTOROLA DSP56009EVMUM B 9 Sound Field Processing Example De Correlation Routine front right movep x r4 x EBARO movep y r4 t x EORO front left movep x r4 x EBARI movep y 54 save the front right and left base offset values from the tables EEapf_fr and EEapf_fr and apf_fr_coeffs respectively Then the all pass function is simply imple mented as in B 5 All Pass Filter on page B 8 utilizing the corresponding channel s delays affecting phase only in an all pass filter The de correlation block diagram is shown in Figure B 6 LFnEv RndA18g RFRev RndA18g RndA18g RndA6g DD RndA18g Figure B 6 De Correlation Routine B 10 DSP56009EVMUM MOTOROLA Sound Field Processing Example DSP56009EVM Setup for SFP Demonstration The gains of the respective gains for the de correlation all pass filters are shown in Table B 3 below Table B 3 De Correlation All pass filter gains Channel 90 1 95 LF 0 65 0 58 RF 0 80 0 36 RR 0 75 0 44 LR 0 60 0 64 B 7 DSP56009EVM SETUP FOR SFP DEMONSTRATION The jumper configuration necessary to run the Sound Field Processing demonstration for the DSP56009EVM is shown below in Figure B 7 Note that JP5 is configured to clock from the DSP clock and receive analog input data Therefore in order to receive the SPDIF input clock and data the jumper on JP5 3 an
55. er can be used to verify the operation of programs The rounded blocks represent the assembly and object files The white blocks represent software programs to assemble and link the assemble programs The gray blocks represent hardware products The following sections give basic information regarding the assembly program the Assembler the Linker and the object files Detailed information about these subjects can be found in the Assembler and Linker manuals provided with the Motorola DSP CLAS software package available through your Motorola sales office or distributor The documentation is also available through the Motorola DSP internet URL http www motorola dsp com Assembly Program asm Assembler Relocatable Object File Linker Executable Nc Object File cld Y ADS Command 68HC711E9 Converter Card Y P DSP56009 DSP56009EVM Figure 6 1 Development Process Flow MOTOROLA DSP56009EVMUM 6 3 Example Test Program Writing the Program 6 2 WRITING THE PROGRAM The following sections describe the format of assembly language source statements and give an example assembly program 6 2 1 Source Statement Format Programs written in assembly language consist of a sequence of source statements Each source statement may include up to six fields separated by one or more spaces or tabs a label field an operation field
56. ernal comb state for LPF right 0007 front rear right channel before output to SAl left 0006 front rear left channel before output to SAl combs_input 0005 average input to combs central channel 0004 average pre input to combs rear 0003 left right rear sample storage front 0002 left right front sample storage in in1 0001 left in right in input samples from the SAI undisturbed by interrupts in in 0000 left in right in input samples from the SAI B 10 REVERB TIME ANALYSIS The time analysis for the response of the sound field processor is illustrated in Figure B 9 on the following page The RT60 reverberation time is defined as two seconds MOTOROLA DSP56009EVMUM Sound Field Processing Example Reverb Time Analysis 4 E early reflection reverberation Figure B 9 Sound Field Processor Time Analysis B 18 DSP56009EVMUM MOTOROLA APPENDIX DSP56009EVM MULTIPLEX DEFINITION MOTOROLA DSP56009EVMUM 1 DSP56009EVM Multiplex Definition C 1 C 2 C 3 2 OVERVIEW 22i east MULTIPLEX CABLE EVM SETUP FOR MULTIPLEXING 4 DSP56009EVMUM MOTOROLA DSP56009EVM Multiplex Definition Overview OVERVIEW Two DSP56009EVMs may be connected together to utilize the memory of two Symphony DSPs Six channel data is multiplexed to SDIO and SDII1 two of the SAI transmitters on the DSP of the Transmit EVM The data is then demultiplexed
57. et in the right receive interrupt routine to indicate that the next data to be received left data is a new sample The program loops back to the beginning of the main code to receive the next sample The illustration shown in Figure A 1 is the interrupt sequence for analog audio input MOTOROLA DSP56009EVMUM 3 Audio Pass Through Example SPDIF Input Pass Through Theory SAI_LFT_TX_IRO MOVEP X LEFT_AUDOUT MOVEP X LEFT_AUDOUT X TX1 MOVE X LEFT_AUDOUT X TX2 movep x left_digout x tx0 movep x left digout x txl movep x left digout x tx2 RTI 5 X RIGHT AUDOUT X TXO MOVEP X RIGHT AUDOUT X TX1 MOVEP X RIGHT AUDOUT X TX2 movep x right digout x txO0 movep x right digout x txl movep x right_digout x tx2 RTI Figure A 1 Output Interrupt Structure for Analog Input A 2 SPDIF INPUT PASS THROUGH THEORY In order to perform the pass through example with the S PDIF input instead of the analog inputs a few changes must be made to the file passthru asm The structure already supports digital input buffers therefore the only change necessary to enable digital audio input is in the interrupt routines as shown below in Figure A 2 SAI LFT TX MOVEP X LEFT AUDOUT X TXO MOVEP X LEFT AUDOUT X TX1 MOVE X LEFT AUDOUT X TX2 movep x left digout x txO movep x left digout x txl movep x left digout x tx2 RTI F SAI RGT TX MOV
58. g aaa 2 4 JP3 Rd 2 6 DSP56009EVM Parts ee 5 8 Output sources for audio 5 A 5 Early Reflection FIR 5 B 4 Comb filter loop back 5 B 7 De Correlation All pass filter gains B 11 Sound Field Processing Audio B 13 X and Y Memory Map for Sound Field Processing Demo B 15 DSP56009EVM MUX Cable 3 DSP56009EVMUM vii viii DSP56009EVMUM MOTOROLA SECTION 1 QUICK START GUIDE DSP56009EVMUM Quick Start Guide 1 1 1 2 1 3 1 3 1 1 3 2 1 3 3 1 4 1 1 4 2 1 4 3 1 2 OVERVIEW ne vo Aa ote tet ee Bea 1 3 EVALUATION MODULE DESCRIPTION AND FEATURES 1 3 EQUIPMENT 35 do UR Do ROI OH ER Rr eios 1 4 What you get with the Evaluation Module 1 4 What you need to supply for AC 3 ProLogic Demonstration 1 5 What you need to supply for software development 1 6 INSTALLATION PROCEDURE 1 6 Preparing the DSP56009EVM 1 7 Connecting the DSP56009EVM to the PC and Power 1 8 Installing the Software 1 9 DSP56009EVMUM MOTOROLA Quick Start Guide Overview 11 OVERVIEW This document describes the basic structure theory and operation
59. han 0 003 THD low clock jitter sensitivity and completely filtered line level outputs that use linear phase filtering DEM SCLK CONFIG AGND VA LRCK Serial Input i Voltage Reference SDATAI Interface Y Analog Delta Sigma Interpolator Modulator I pi n gt AOUTL Delta Sigma Analog Interpolator E Modulator gt on ee gt AOUTR MCLK Figure 3 2 54331 DAC 3 3 53310 STEREO DIGITAL VOLUME CONTROL The CS3310 is a complete stereo digital volume control designed specifically for audio systems It features a 16 bit serial interface that controls two independent low distortion 0 001 THD N audio channels The CS3310 includes an array of well matched resistors and a low noise active output stage that is capable of driving a 600 Q load A total adjustable range of 127 dB in 0 5 dB steps is achieved through 95 5 dB of attenuation and 31 5 dB of gain 3 4 DSP56009EVMUM MOTOROLA Peripheral Specifications CS8412 Digital Audio Interface Receiver The simple 3 wire interface provides daisy chaining of multiple CS3310s for multi channel audio systems The device operates from 5V supplies and has an input output voltage range of 3 75 V ZCEN Control CS Register Serial to lt SDATAI Parallel 1 SDATAO Register 6 SCLK AOUTR
60. he complete block diagram of the system is shown in Figure B 8 The software to implement this design is provided on the DSP56009 diskette for view ing editing as SFPEVMO9 ASM and for downloading onto the EVM as SFPEVMO9 CLD The SFPEVMO9 ASM may be operated with either a DSP56004 DSP56007 or DSP56009 The basic reverberation elements utilized in the file SFPEVMO9 ASM include an early reflection FIR filter for each of the four main channels and a reverberation unit comprised of six parallel comb filters and a single all pass filter This code as written can be implemented on the DSP56009EVM B 2 EARLY REFLECTIONS Schroeder suggested a method for simulating early wall reflections and room geometry by combining the direct summation of the original signal with a standard unit reverberator to recreate late echos The theory proposes that the first gains and delays simulate the room s geometry patterned after an FIR non recursive filter structure and the unit reverberator IIR recursive filter imitates the decay of the reverberation once the pulses become inseparable 1 Moore James About this Reverberation Business Computer Music Journal Vol 3 2 MOTOROLA DSP56009EVMUM B 3 Sound Field Processing Example Early Reflections Implemented in software the algorithm takes advantage of the SAI Serial Audio Interface and the EMI External Memory Interface two of the peripherals on Motorola s Symphony line of DSPs The inp
61. he host computer These commands can reset the DSP put the DSP in Debug mode release the DSP from Debug mode read and write to the OnCE port and read and write to the DSP itself The serial bit rate is 19 200 bits second The RS 232 serial communications are performed in software on the MC68705K1 Port A of the MC68705K1 communicates with the DSP and Port B communicates with the host computer The acknowledge signal from the OnCE port is a low going pulse on 050 Since the 68705 1 is too slow to reliably 2 6 DSP56009EVMUM MOTOROLA Evaluation Module Theory of Operation Inputs and Outputs catch this very narrow pulse the pulse is latched in the PLD and the output of the latch appears on the ACK pin PA2 When this occurs the 68705K1 illuminates red LED 05 to indicate that the DSP is in the Debug mode For more information on the port see the DSP56000 Family Manual The reset switch will reset the microcontroller which will subsequently reset DSP56009 The MC68705K1 source and object code are available from the Motorola DSP Division contact your local Motorola FAE 2 1 7 RS232 Connections and JP1 RS 232 is an often abused standard and the direction of the signals present on pins 2 and 3 of the DB9 connector do not always conform to the standard JP1 provides the user with the ability to reverse these two pin connections without resorting to NULL Modem adapters or rewiring cable connectors As shipped JP1 1 is con
62. ic flooring and bench surfaces Always use grounded wrist straps when handling sensitive components Never remove components from anti static packaging until required for installation Always transport sensitive components in anti static packaging DSP56009EVMUM 1 7 Quick Start Guide Installation Procedure 1 4 2 Connecting the DSP56009EVM to the PC and Power Figure 1 3 shows the interconnection diagram for connecting the PC and the external power supply to the DSP56009EVM board Use the following steps to complete cable connections DB9 Interface Cable External 8 12V PC compatible Power Computer Connect cable to RS 232 port External 5 Power DSP56009EVM Figure 1 3 Connecting the DSP56009EVM Cables 1 Connect the DB9P end of the RS 232 interface cable to the RS 232 port connection on the PC 2 Connect the DB9S end of the cable to J4 shown in Figure 1 1 on page 1 5 on the DSP56009EVM board This provides the connection to allow the PC to control the board function 3 Make sure that the external power supplies do not have power supplied to them 4 Connect the output power connectors into J2 and J3 shown in Figure 1 1 on page 1 5 on the DSP56009EVM board 5 Apply power to the power supply The green Power LED will light when power is correctly applied 1 8 DSP56009EVMUM MOTOROLA 1 4 3 Quick Start Guide Installatio
63. l The ADC uses a differential architecture that provides excellent noise rejection The CS5390 has a filter passband of DC to 21 7 KHz The filters are linear phase have 0 005 dB passband ripple and greater than 100 dB stopband rejection The operating temperature range is 0 to 70 ICLKA APD ACAL OCLKD ICLKD FSYNC SCLK L R A A LP Filter Digital Decimation Lo Filter Comparator DAC Digital Decimation LP Filter Filter Calibration Calibration Microcontroller SRAM VA VL LGND DCAL DPD VD DGND Comparator Figure 3 1 CS5390 ADC MOTOROLA DSP56009EVMUM 3 3 Peripheral Specifications CS4331 Stereo DAC 3 2 54331 STEREO DAC The 54331 is a complete stereo Digital to Analog Converter DAC with 18 bit resolution including interpolation 1 bit digital to analog conversion and output analog filtering in an 8 pin package The 54331 is based on delta sigma modulation where the modulator output controls the reference voltage input to an ultra linear analog low pass filter This architecture allows for infinite adjustment of sample rate between 1 kHz and 50 kHz while maintaining linear phase response simply by changing the master clock frequency The CS4331 contains optional on chip de emphasis and operates from a single 5 V power supply The 54331 has 96 dB dynamic range less t
64. ly Johnson Blvd Colorado Springs CO 80920 800 637 1667 Fax 719 531 9481 MOTOROLA DSP56009EVMUM 5 11 SECTION 6 EXAMPLE TEST PROGRAM MOTOROLA DSP56009EVMUM 6 1 Example Test Program 6 1 6 2 6 2 1 6 2 2 6 3 6 3 1 6 3 2 6 3 3 6 3 4 6 4 6 4 1 6 4 2 6 5 6 6 6 2 OVERVIEW 23 992a kia SIO RE REINE 6 3 WRITING THE 6 4 Source Statement 6 4 Example Program eux t ERE 6 5 ASSEMBLING THE PROGRAM 6 7 Assembler Command 6 7 Assembler 6 8 Assembler Directives 6 11 Assembling the Example 6 16 MOTOROLA DSP LINKER 2 2 6 16 Linker ODHOFis cox eee ws 6 17 Linker Directives pe eris 6 23 INTRODUCTION TO THE DEBUGGER SOFTWARE 6 24 RUNNING THE PROGRAM xa ees 6 26 DSP56009EVMUM MOTOROLA Example Test Program Overview 61 OVERVIEW This section contains an example that illustrates how to develop a very simple program for the DSP56009 This example has been designed for users who have little or no experience with the DSP development tools The example demonstrates the form of assembly programs gives instructions on how to assemble programs and shows how the Debugg
65. miter Unreported comment delimiter N Line continuation character or macro dummy argument concatenation operator Macro value substitution operator Macro hex value substitution operator Macro local label override operator 44 Macro string delimiter or quoted string DEFINE expansion character Function delimiter Location counter substitution String concatenation operator Substring delimiter lt lt I O short addressing mode force operator Short addressing mode force operator Long addressing mode force operator Immediate addressing mode operator lt Immediate short addressing mode force operator gt Immediate long addressing mode force operator MOTOROLA DSP56009EVMUM 6 11 Example Test Program Assembling the Program 6 3 3 2 Assembly Control The directives used for assembly control are COMMENT DEFINE END FAIL FORCE HIMEM INCLUDE LOMEM MODE MSG ORG RADIX RDIRECT SCSJMP SCSREG UNDEF WARN Start comment lines Define substitution string End of source program Programmer generated error message Set operand forcing mode Set high memory bounds Include secondary file Set low memory bounds Change relocation mode Programmer generated message Initialize memory space and location counters Change input radix for constants Remove directive or mnemonic from table Set structured control branching mode Reassign st
66. n Procedure 1 3 3 What you need to supply for software development e 386 or higher with minimum 2 Mbytes of memory a 3 5 floppy disk drive and a serial port capable of at least 19 200 bits per second data transfer rate RS 232 cable DB9 male to DB9 female Subwoofer powered Power Amp Subwoofer unpowered H dL gg RF Demodulator al _ m z SEEEEERE O DSP56009EVM Laserdisc Player Listener Figure 1 2 AC 3 Home Theater Demonstration 1 4 INSTALLATION PROCEDURE Installation requires four basic steps 1 Preparing the DSP56009EVM board 2 Connecting the board to the PC and power 3 Installing the software 1 6 DSP56009EVMUM_ MOTOROLA Quick Start Guide Installation Procedure 4 Testing the installation Preparing the DSP56009EVM CAUTION Because all electronic components are sensitive to the effects of electrostatic discharge ESD damage correct procedures should be used when handling all components in this kit and inside the supporting personal computer Use the following procedures to minimize MOTOROLA the likelihood of damage due to ESD Always handle all static sensitive components only in a protected area preferably a lab with conductive anti stat
67. n Procedure Installing the Software The DSP56009EVM demo software includes the following Motorola diskette containing Demonstration code passthru sfpevm09 example Domain Technologies diskette containing the windowed user interface debug software Use the following steps to install the software Insert the Motorola software diskette into the PC diskette drive If the system is not already running in Windows start Windows From Windows select a DOS window and run the install program The general format for the command line of the install program is install lt source gt For example if your diskette drive is the a drive type in a install a The program installs the software in the default destination c evm56007 Close the DOS window and remove the Motorola software diskette from the diskette drive Insert the Domain Technologies diskette labeled Debug 56K into the drive From Windows run the Debugger installation program install exe on the diskette This can be done from the Microsoft Windows Program Manager by pulling down the File menu choosing Run entering a install on the command line and clicking OK Read the README TXT if you are installing the Debugger program for the first time This provides information in addition to that provided by the Domain Technologies manual included with this kit The install program creates a program group called EVM56007 and a program icon called EVM56007 within Windows This
68. n hosts that do not support error output redirection from the command line lt errfil gt must be present as an argument but can be any legal operating system filename including an optional pathname The EA option causes the standard error stream to be written to lt errfil gt if lt errfil gt exists the output stream is appended to the end of the file The EW option also writes the standard error stream to lt errfil gt if lt errfil gt exists it will be overwritten Example dsplnk EWerrors myprog cln MOTOROLA DSP56009EVMUM 6 17 Example Test Program Motorola DSP Linker This example redirects the standard error output to the file errors If the file already exists it will be overwritten F lt argfil gt This option indicates that the Linker should read command line input from lt argfil gt lt argfil gt can be any legal operating system filename including an optional pathname lt argfil gt is a text file containing further options arguments and filenames to be passed to the Linker The arguments in the file need be separated only by some form of white space A semicolon on a line following white space makes the rest of the line a comment Example dspInk Fopts cmd This example invokes the Linker and takes command line options and input filenames from the command file opts cmd G This option sends source file line number information to the object file The generated line number information can be used by de
69. nected via shorting jumpers to JP1 3 and JP1 2 is connected to JP1 4 This connects J4 2 to the OUTPUT of the Evaluation Module s RS 232 level converter U4 and J4 3 to the INPUT of the board s RS 232 receiver These directions can be reversed by reorienting the shorting jumpers and turning them 90 degrees one quarter turn thereby connecting JP1 1 to JP1 2 and JP1 3 to JP1 4 The user should never need to rewire an RS 232 connector in order to establish Evaluation Module communications with a host computer 2 1 8 Operating Modes and SRAM refresh in the 56009 In Modes 0 1 2 and 3 the SRAM is refreshed from the nvRAM and the DSP can bootstrap from the SRAM via the EMI if a valid Bootstrap mode is used When in Modes 4 5 6 and 7 the SRAM is not refreshed Refreshes are not affected by jumpers on the expansion connector J5 Jumpers J5 37 and J5 39 must be inserted to have full DSP control of the SRAM and nvRAM after bootstrap 2 1 9 Evaluation Module Parts The parts list of the DSP56009EVM is shown in Section 5 MOTOROLA DSP56009EVMUM 2 7 Evaluation Module Theory of Operation Inputs and Outputs 2 1 10 Power Supplies The Evaluation Module requires power sources for both analog and digital circuits in order to operate Bipolar analog power use a linear power supply for best results is received through screw terminals at J3 Digital power is received through screw terminals at J2 or via a 2 1mm connector J1 When the power is
70. need to exit Windows or open a MS DOS Prompt Window assemble the example program type asm56000 a b g example asm in the evm007 directory created by the installation process from Section 1 4 3 This will create two additional files example cld and example lst example cld file is the absolute object file of the program and this is what will be downloaded into the DSP56009 The example lst file is the listing file and gives full details of where the program and data will be placed in the DSP56009 memory 6 4 MOTOROLA DSP LINKER Though not needed for our simple example the Motorola DSP Linker is also discussed here in the DSP56009EVM User s Manual The DSP Linker may be obtained through your Motorola sales office or distributor The Motorola DSP Linker is a program that processes relocatable object files produced by the Motorola DSP Assembler generating an absolute executable file that can be downloaded to the DSP56009 The general format of the command line to invoke the Linker is dsplnk options lt filenames gt where dsplnk is the name of the Motorola DSP Linker program and lt filenames gt is a list of the relocatable object files to be linked The following section describes the Linker options To avoid ambiguity the option arguments should immediately follow the option letter with no blanks between them 6 16 DSP56009EVMUM MOTOROLA Example Test Program Motorola DSP Linker 6 4 1 Linker Options A Thi
71. nter r1 lines 43 46 and routed to the corresponding output For instance the comment in line 43 left from left signifies that the left FIR multiply is routed to the left output The comment in line 46 left from right likewise denotes that the right FIR multiply is routed to the left output This structure can be explicitly seen in Figure B 8 on page 14 The pointer r5 contains the input samples for the early reflections and the pointer r4 contains the delay values for the FIR as stated previously The block diagram of the early reflection is illustrated in Figure B 2 19 9ms 35 4ms 38 9ms 41 4ms 69 9ms 79 6ms y n Figure B 2 Early Reflection FIR Block one channel B 3 DELAY LINE FOR COMBS REVERBERATION This portion of the code acts as the gathering point for the results of the four early re flection FIR blocks for the left front right front left rear and right rear respectively The saved values from each of these processes are summed with averaging weights and stored in a delay line for use in the following comb filter and all pass filter blocks B 6 DSP56009EVMUM MOTOROLA Sound Field Processing Example Comb Filter which generate the diffuse reverberation The timing of the delay is designed to syn chronize the inputs to the comb filter section The summed value is routed to the center channel B 4 COMB FILTER Following the early reflections there follows a section of six parallel comb filters that c
72. o INO 1 199 ONASd s r edt aNov dn 270 0 10 8 120 yg 03 09 So gt Lavo 23 89 04 99 uj jeondo 210 JBAIBOS 18994 N93 53V 2439 clvsso 4 18188 indul ten MOd elSo 2 8 69 9 v3 S 64 6 22 gt Ul OVEdD a E um 990 20 4698 dn 0 MON 278 gt v1 929 54992 ASt DSP56009EVMUM 4 10 DSP56009EVM Schematics Power Supply A ddns 6 4 EN 290 1 690 950 PSO 021 199 611 099 10 179 699 8990 211 0 2 252 950 jou jo 559 11 sdeo Bu dnoasq eBeyoA SPAM S06ZOW 659 240 GSO 059 T NOA NIA aNd any 1 Sc 10199uu05 1 Jamog Boyeuy ZO OT 1 er 9 y 790 NOA NIA eBeyoA 90820 0 040 699 2902 199 099 859 959 90 290 259159 679 Zin LZSSNI 4284 1 va jndu Od OV 0c S Ir 870 770 279179 070 660 860 LED 960 SEO VED 660 260 169 060 629 9164 Jojeindeyg la AS SO8ZOW jndu er Sn L 620 21 860 760 620 pajou asimiayjo ssajun 4r y o sdey Buljdnooap je big 4 11 DSP56009EVMUM
73. omain attenuators receive the audio data and attenuate or amplify the data as determined by the microcontroller The attenuators receive the Serial Clock input SCLK Serial Data Input SDATAJ and the Chip Select latch CS from the microcontroller 2 1 3 Sony Philips digital interface format SPDIF The SPDIF transmitter receives data from the DSP through the Serial Data input SDATA using the Frame Sync FSYNC and the Serial Data Clock SCK The transmitter outputs SPDIF audio signals through J15 electrical and J16 optical Fs sens from the clock select appears at the expansion connector in order to read the sampling rate with the DSP s General Purpose I O GPIO1 at J5 41 and also at U21 2 to select the state of the sample rate bits transmitted within the channel status block See the SPDIF specification for more information The channel status bits and block sync signals Blk DTrn Blk DRcv CS and DTrn C5 are available at J5 43 to allow the DSP to read one of them as well Isolation transformers are used on both input and output although they are not strictly required for SPDIF because this Evaluation Module is intended to be used as a development system 2 1 4 Other inputs and Outputs The clock master is derived from one of two sources the 11 2896 MHz clock or the 12 288 MHz clock The microcontroller also receives commands from either the soft switches S1 S2 53 or 4 or from the Keypad Expansion Port J18 The
74. on D6 green LED is illuminated Analog power input may be 8 to 12 volts and digital power input may be 8 to 15 volts While the voltage regulator can accommodate higher input voltage potentials the added heat dissipation required at these input voltage levels will result in the regulator becoming dangerously warm and it is not recommended that the user subject the board to power inputs in excess of the maximum levels listed Note Always supply the Evaluation Module with analog power prior to or simultaneous with the application of digital power If digital power is supplied before the analog power the DACs may go into one of three possible error modes no long term damage to the device will occur and will not function correctly If analog power is supplied first or if both analog power and digital power are applied simultaneously these problems do not appear and the DACs are properly initialized 2 1 11 Memory The Evaluation Module has 8192 bytes each of fast Static RAM SRAM and of nonvolatile RAM nvRAM The SRAM operates at zero wait states at a 40 MHz DSP clock speed one wait state at 50 66 MHz and two wait states at 81 MHz The contents of the SRAM may be block loaded into nvRAM and the contents of the nvRAM may be block loaded into the SRAM The lowest 3072 bytes of the nvRAM may also be used to store code to load into the DSP via EMI bootstrap ESE 2 8 DSP56009EVMUM MOTOROLA SECTION 3 PERIPHERAL SPECIFICATIONS MOTOR
75. op button stops the DSP56009 The step button executes a single instruction The jump button is similar to the step button except that subroutines are treated as one instruction The automatic update button turns the automatic screen update mode on so that the DSP56009 is interrupted periodically to update the data and registers windows The reset button resets the DSP56009 The radix button can be used to change the radix of the selected window Other buttons will appear when other windows are selected and the function of these buttons can be found in the Debug 56K Manual MOTOROLA DSP56009EVMUM 6 25 Example Test Program Running the Program 6 6 RUNNING THE PROGRAM To load the example program developed above into the Debugger click in the command window and type load example The instruction at line 33 will be highlighted in the unassembly window as this will be the first instruction to be executed However before we start to execute the program we should check that the values we expect to be in data memory are there To do this type display x 0 and display y 0 The data will be displayed in the data window To step through the program type step at the command window prompt Asa shortcut you can click on the step button or you can type the start of the command and press the space bar and the debugger will complete the remainder of the command To repeat the last command simply press return As you step through the code you will s
76. ors for five channels required to use the demo software SFPEVM09 CLD demo operates with five of the six channel outputs shown in Table B 4 below Table B 4 Sound Field Processing Audio Outputs EVM output Demo channel Left 1 Front Left Right 1 Front Right B 12 DSP56009EVMUM MOTOROLA Sound Field Processing Example Block Diagram of the Sound Field Processor Table B 4 Sound Field Processing Audio Outputs Left 2 N A Right 2 Center Left 3 Rear Left Right 3 Rear Right In order to operate the sound field processing demonstration open the Debug EVM and load the file SFPEVM09 CLD Once the object file has downloaded successfully type GO in the command window or click on the RUN icon The demonstration should now execute Macro commands that enable and disable the reverberation routines are provided with the Sound Field Processing code The command file normal cmd may be input in the command window of the Domain Debugger as normal and the reverberation will be effectively bypassed Likewise the command file reverb cmd may be input in the command window as reverb to enable the sound field processor B 8 BLOCK DIAGRAM OF THE SOUND FIELD PROCESSOR The block diagram of the sound field processor utilizing the four aforementioned blocks is shown in Figure B 8 MOTOROLA DSP56009EVMUM B 13 Sound Field Processing Example Block Diagram of the Sound Field Processor gt gt
77. pass filters EBAR and EOR pair 0027 6 base COMB6A OFF 0026 COMB5 base COMB5A OFF 0025 COMBA base COMBAA OFF 0024 COMB3 base COMB3A OFF 0023 2 base COMB2A OFF EEcomb 0022 COMB1 base COMB1A OFF combs EBARs and EORs Dcomb ebar 0021 DL base DLA OFF delay line EBAR and EOR also Dcomb eor 0020 ER OFFA6 ER OFFA6 001f OFFA5 5 001 OFFA4 OFFA4 001d ER_OFFA3 ER_OFFA3 001c ER_OFFA3 ER_OFFA2 ER_off_buf 001b ER_OFFA2 ER OFFA1 early reflection EORs ER ebar 001a Left base Right base early reflection EBARs also TABLE1 B 16 DSP56009EVMUM MOTOROLA Sound Field Processing Example Reverb Time Analysis Table B 5 X and Y Memory for Sound Field Processing Demo temp2 0019 temp storage temp1 0018 temp storage t3 add 0017 x left y right third transmitter addresses to transmit control 0016 control flags mode timeout 0015 mode change mode change delay count delay count shi mode new 0014 shi mode new gpio mode new 0013 gpio mode new new mode shi mode set 0012 shi mode set shi counter gpio mode set 0011 gpio mode set gpio counter mode during previous pass apf2s 0010 reserved 2nd allpass filter in series result apfis 000f apfis 1st allpass filter in series result APin 000e double precision input to allpass filters also APout 000d v n 6 000c v n 5 000b v n 4 000a v n 3 0009 v n 2 combs_ states 0008 v n 1 int
78. re C 1 MOTOROLA Digital to Analog 4 9 SEDIE NO SEA EA nk Trot BR a 4 10 Power SUPPIy s os Eten EIER ED ht S 4 11 PLE SONG MAC ore UR WEE SERIE E ea 5 4 Development Process 6 3 Example Debugger Window 6 25 Output Interrupt Structure for Analog Input 4 Output Interrupt Structure for Digital Input A 4 DSP56009EVM Pass through A 6 Early Reflection DO B 6 Early Reflection FIR Block one channel B 6 Comb Filter one 5 8 55 pss feck oh Dee B 9 All Pass Filler 9 De Gorrelation Routine 11 EVM configuration for Sound Field Processing Demo B 12 Sound Field Processor 5 a d B 14 Sound Field Processor Time 5 B 18 DSP56009EVM Jumper Setting for Multiplexing 5 DSP56009EVMUM vii Table 2 1 Table 2 2 Table 2 3 Table 5 1 Table A 1 Table B 1 Table B 2 Table B 3 Table B 4 Table B 5 Table C 1 MOTOROLA LIST OF TABLES JPA JUImpele ve in aaa c 2 3 UPI MUIMPS Set a ee Ce n
79. read and written an unlimited number of times while independent nonvolatile data resides in EEPROM Data may easily be transferred from the SRAM to the EEPROM STORE cycle or from the EEPROM to the SRAM RECALL cycle using the NE pin Nonvolatile Enable It combines the high performance and ease of use of a fast SRAM with nonvolatile data integrity The STK10C68 features 12 15 20 and 25 ns output enable access times hardware STORE and RECALL initiation automatic STORE and RECALL timing 10 or 10 STORE cycles to EEPROM unlimited RECALL cycles from EEPROM and 10 year data retention in EEPROM The STK10C68 requires a single 5 V power supply EEPROM Array 256 x 256 Input Buffers Store Static RAM Array 256 x 256 Recall Input Buffers Column Store DQ Recall DQ Column Decoder Control DQ Ag 2 Aro Aq zm Figure 3 7 STK10C68 8 K x8 nvSRAM 3 7 SC937 02 AES EBU TRANSFORMER The AES EBU circuit incorporates a transformer to reject common mode interference while transmitting the signal with fast rise time and minimum aberration The SC937 02 is a surface mount low capacitance wide band AES EBU transformer The MOTOROLA DSP56009EVMUM 3 7 Peripheral Specifications LCD Panel SC937 02 has a very low capacitance shielded winding that reduces both radiated and received noise coupling and provides decreased jitter and improved audio qu
80. reate diffuse field reverberation Recursive comb filters provide delay and incorpo rate feedback which generate a toothed frequency response Moorer determined that the gain g should be a function of the reverberation time according to the formula g 1 0 366 T where T reverberation time A 1 The values of the optimal gain in the feedback loop 91 are determined by the room humidity versus distance from the source and the sample rate of the system From Moorer s diagrams the coefficients for a 44 1 kHz sample rate can be discerned Larger values of 21 will produce bright reverberation at the onset followed by a muffled decay The loopback gain 25 can be determined by the equation 92 9 1 91 2 The total reverberation time for SFPEVMO9 ASM is designed for two seconds There fore using the overall gain g is 0 83 The values of 21 for the seven tap comb filter model are shown in Table B 2 below Table B 2 Comb filter loop back gains Comb Delay in ms 94 Comb 1 50 0 45 Comb 2 56 0 47 Comb 3 61 0 49 Comb 4 68 0 51 Comb 5 72 0 52 Comb 6 78 0 54 The block diagram of one of the six comb filter structures is shown in Figure B 3 MOTOROLA DSP56009EVMUM B 7 Sound Field Processing Example All Pass Filter below Figure B 3 Comb Filter one of six The output of each of the six comb filters is summed and routed to the all pass filter portion of the program B 5 AL
81. rface DSP56009EVM Schematics eoejeju euJ9 x3 pue WVHS t r 4 _ E46 2 WVHAN gt INVH u NVHS vac Old IH gt 7 8 8 29 9 29 8 0 4 TI 5 99 1 24 2 ma 077 SVHW JOPSUUOY uoisuedx3 Tr UMN sr 5 WINIS 06 9 Sg 8 90 6 S 9 suos 54 10318 AYN um Zaf 3958 ya ua so gt 69 8 69 8 so ua gt 9 ua MOTOROLA DSP56009EVMUM 4 6 DSP56009EVM Schematics RS 232 and OnCE Interface eoepelu JDUQ pue 262 5 rt ISOPMOSG Mov vs vi t osa sa E isd Mov 211 150H 39UO vr 2 2 8 6 E31 jeues 189 dsa ULL JeAIS9SUEJ 262 59 20 cECXVIN 2 MO Lc8S8NI 4 7 DSP56009EVMUM MOTOROLA DSP56009EVM Schematics Analog to Digital Converter 9 p 4 _80 6 ain indu Bojeuy 1 5 124 8 29 8 T 6 A V 4 0e D 066960 gey TUN zn TNIV ESOS 2 015 INIV E T F 4 0 02 ied D d ip indu Bojeuy 1497 MOTOROLA DSP56009EVMUM 4 8 DSP56009EVM Schematics Digital to Analog Converter 4 flH er 4 indino 1487 er
82. rola makes no warranty representation or guarantee regarding the suitability of its products for any particular purpose nor does Motorola assume any liability arising out of the application or use of any product or circuit and specifically disclaims any and all liability including without limitation consequential or incidental damages typical parameters which may be provided in Motorola data sheets and or specifications can and do vary in different applications and actual performance may vary over time All operating parameters including Typicals must be validated for each customer application by customer s technical experts Motorola does not convey any license under its patent rights nor the rights of others Motorola products are not designed intended or authorized for use as components in systems intended for surgical implant into the body or other applications intended to support life or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur Should Buyer purchase or use Motorola products for any such unintended or unauthorized application Buyer shall indemnify and hold Motorola and its officers employees subsidiaries affiliates and distributors harmless against all claims costs damages and expenses and reasonable attorney fees arising out of directly or indirectly any claim of personal injury or death associated with such unintended or unauthorized us
83. ructured control statement registers Undefine DEFINE symbol Programmer generated warning DSP56009EVMUM MOTOROLA Example Test Program Assembling the Program 6 3 3 3 Symbol Definition The directives used to control symbol definition are ENDSEC End section EQU Equate symbol to a value GLOBAL Global section symbol declaration GSET Set global symbol to a value LOCAL Local section symbol declaration SECTION Start section SET Set symbol to a value XDEF External section symbol definition XREF External section symbol reference 6 3 3 4 Data Definition Storage Allocation The directives used to control constant data definition and storage allocation are BADDR Set buffer address BSB Block storage bit reverse BSC Block storage of constant BSM Block storage modulo BUFFER Start buffer DC Define constant DCB Define constant byte DS Define storage DSM Define modulo storage DSR Define reverse carry storage ENDBUF End buffer MOTOROLA DSP56009EVMUM 6 13 Example Test Program Assembling the Program 6 3 3 5 Listing Control and Options The directives used to control the output listing are LIST List the assembly LSTCOL Set listing field widths NOLIST Stop assembly listing OPT Assembler options PAGE Top of page size page PRCTL Send control string to printer STITLE Initialize program subtitle TABS Set listing tab stops TITLE Initialize program title 6 3
84. s option auto aligns circular buffers Any modulo or reverse carry buffers defined in the object file input sections are relocated independently in order to optimize placement in memory Code and data surrounding the buffer are packed to fill the space formerly occupied by the buffer and any corresponding alignment gaps Example dsplnk A myprog cln This example links the file myprog cln and optimally aligns any buffers encountered in the input B lt objfil gt This option specifies that an object file is to be created for Linker output lt objfil gt can be any legal operating system filename including an optional pathname If no filename is specified or if the B option is not present the Linker will use the basename filename without extension of the first filename encountered in the input file list and append cld to the basename If the I option is present see below an explicit filename must be given This is because if the Linker followed the default action it possibly could overwrite one of the existing input files The B option should be specified only once If the file named in the B option already exists it will be overwritten Example dsplnk Bfilter cld main cln fft cln fio cln In this example the files main cln fft cln and fio cln are linked together to produce the absolute executable file filter cld EA lt errfil gt or EW lt errfil gt These options allow the standard error output file to be reassigned o
85. sends the source file line number information to the resulting object file myprog cln I pathname This option causes the Assembler to look in the directory defined by pathname for any include file not found in the current directory lt pathname gt can be any legal operating system pathname Example asm56000 I project testprog MOTOROLA DSP56009EVMUM 6 9 Example Test Program Assembling the Program This example uses IBM PC pathname conventions and would cause the Assembler to prefix any include files not found in the current directory with the project pathname L lt istfil gt This option specifies that a listing file is to be created for Assembler output lt Istfil gt can be any legal operating system filename including an optional pathname If no lt Istfil gt is specified the Assembler will use the basename filename without extension of the first filename encountered in the source input file list and append Ist to the basename The L option should be specified only once Example asm56000 L filter asm gauss asm This example assembles the files filter asm and gauss ams together to produce a listing file Because no filename was given the output file will be named using the basename of the first source file in this case filter and the listing file will be called filter lst M lt pathname gt This option causes the Assembler to look in the directory defined by lt pathname gt for any macro file no
86. status bits VD DGND VA FILT AGND MCK M2 M1 SDATA SCLK RXP RS 422 Clock amp Data L Serial Port FSYNC RXN Receiver Recovery C gt Registers U 6 75 4 4372 CS12 FCK SEL Cb Cc Cd Cal FO E1 E FO F1 F2 y 25 15 CBL Figure 3 5 CS8412 Digital Audio Interface Receiver 3 5 CS8402A DIGITAL AUDIO INTERFACE TRANSMITTER The 58402 is a monolithic CMOS device that encodes and transmits audio data according to the AES 3 1992 EBU Tech 3250 E IEC 958 SPDIF and EIAJ CP 340 interface standards The 58402 accepts audio and non audio data and multiplexes and encodes the data The audio serial port is double buffered and capable of supporting a wide variety of formats The CS8402A multiplexes the channel user and validity data directly from dedicated input pins for the most commonly needed channel status bits M2 1 MO MCK RST Serial Port RS422 Driver Registers Dedicated Channel CBL TRNPT Status Bits Figure 3 6 CS8402 Digital Audio Interface Transmitter 3 6 DSP56009EVMUM MOTOROLA Peripheral Specifications STK10C68 CMOS 2k x 8 nvSRAM 3 6 STK10C68 CMOS 2K X 8 NVSRAM The Simtek STK10C68 is a Fast Static RAM 25 30 35 and 45ns with a nonvolatile electrically erasable PROM EEPROM element incorporated in each static memory cell The SRAM can be
87. ster When the ADC is in Master mode the ADC s Serial Data Clock SCLK and Left Right Select L R word clock pins are outputs The L R word clock output is the opposite polarity of PS It is inverted in the Programmable Logic Device PLD to create true S The ADC receives its oversampling clock on the Digital Section Clock Input ICLKD which is then internally divided by two and this signal is provided to the Analog Section Clock Input ICLKA ICLKD can be driven from the 11 2896 MHz clock the 12 288 MHz clock or the 256 x F clock produced by the 58412 AES EBU Receiver The Audio Power Down input APD and Digital Power Down input DPD pins are wired to the Cntl Mute signal of the PLD When pulled high the ADC will be muted When first pulled low the ADC will be reset then it will be enabled The other possible input source comes from the SPDIF inputs J14 for electrical input and J17 for optical input Jumper JP4 selects the source see Table 2 1 below When receiving valid SPDIF input the SPDIF Receiver drives the Master Clock MCK output that is 256 times the Frame Sync frequency of the received data The 58412 operates in Mode 3 the 125 Slave mode Table2 1 JP4 Jumpers Jumper Selection Settings Electric JP4 1 to SPDIF JP4 3 4 2 to JP4 4 MOTOROLA DSP56009EVMUM 2 3 Evaluation Module Theory of Operation Inputs and Outputs Table 2 1 JP4 Jumpers Selection Settings Opti
88. t found in the current directory lt pathname gt can be any legal operating system pathname Example asm56000 Mfftlib trans asm This example uses IBM PC pathname conventions and would cause the Assembler to look in the fftlib subdirectory of the current directory for a file with the name of the currently invoked marco found in the source file trans asm V This option causes the Assembler to report assembly progress to the standard error output stream Z This option causes the Assembler to strip symbol information from the absolute load file Normally symbol information is retained in the object file for symbolic references purposes This option is only valid with the A and B options Note Multiple options can be used A typical string might be Example asm56000 A B L G filename asm 6 10 DSP56009EVMUM MOTOROLA Example Test Program Assembling the Program 6 3 3 Assembler Directives In addition to the DSP56009 instruction set the assembly programs can contain mnemonic directives that specify auxiliary actions to be performed by the Assembler These are the Assembler directives These directives are not always translated into machine language The following sections briefly describe the various types of Assembler directives 6 3 3 1 Assembler Significant Characters There are several one and two character sequences that are significant to the Assembler The Assembler significant characters are Comment deli
89. te x n tk y n T 6 pointer goes to APF end 7 macr 0 b x r0 compute v n z n 1 k 2 y n T 8 store y n Figure B 5 All Pass Filter Routine In the above example r6 points to the COMB gains r0 points to the EMI data read register EDRO and r4 points to EEcomb which is the base addresses of the delays The final instructions in the routine store the all pass output v n and the base address EBARO of the latest sample to be passed to the decorrelator and rear delay lines as shown in Figure B 6 below A description of the de correlator and delay line are provided in B 6 De Correlation Routine on page B 9 The all pass portion may be set to loop to allow for more multiple filter designs However James Moorer states that this produces only a negligible increase in rever berant quality B 6 DE CORRELATION ROUTINE The data stream output from the main reverb routine is combined with each of the separate early reflection values to provide the four discrete outputs left front right front left rear and right rear This routine takes the output of the first early reflection value and decorrelates the signals from each of the other three channels The de cor relation is performed by using all pass filters with different coefficients to adjust the phase of each channel independently The all pass filter s delay base and offset values and the gains are saved using pointers r0 and r4 and then extracted as th
90. tory by the installation procedure MOTOROLA DSP56009EVMUM 6 5 Example Test Program Writing the Program Example 6 1 Simple DSP56009 Code Example SAALEARARAAAREREARA RAR ARAARARAR AL ER Ro ECKE ER ERKRANKTE KO oe SIMPLE PROGRAM CALCULATING THE SUM OF PRODUCTS EGO RC AGKOR OK UC KOK OCIO EAE AR PBASE EQU 100 instruct the assembler to replac every occurrence of PBASE with 200 XBASE EQU 0 used to define the position of the data in X memory YBASE EQU 50 used to define the position of the data in Y memory KO RC ER RRR AK AGE ADAE ACRIOR X MEMORY KORR RON AL RERO CE CK EUR KOREA org x XBASE instructs the assembler that we are referring to X memory starting at location XBASE listl de 5475638 738301 92673a 898978 091271 25067 de 5987153 3A8761 987237 34b852 734623 5233763 de 76156 423423 5324732 40029 REN A RAAT CONDE IGNORAR ON EUREN E ACE CARES Y MEMORY KORR EK OK RAE GE o EA ARERR AR A IAEA org y YBASE instructs the assembler that we are referring to Y memory starting jat location YBASE list2 dc 98734 5800000 Sfedcba 5487327 5957572 369856 dc 5247978
91. ut samples are received by the SAI as left and right channel data stored in memory These samples are delayed several milliseconds and retrieved according to the early reflection offset table ER off buf ER off buf is constructed as a seven tap FIR section See Figure B 1 Table B 1 below illustrates the respective tap and its associated time delay and gain as patterned after the Boston Concert Hall Table B 1 Early Reflection FIR Structure Tap Time Delay Gain 0 0 1 00 1 0 0199 1 02 2 0 0354 0 818 3 0 0389 0 635 4 0 0414 0 719 5 0 0699 0 267 6 0 0796 0 242 Twelve samples are read from the delay line two channels left and right multiplied by the offset table which is six deep and four FIR filters are calculated Reading of the delayed samples is triggered by writing offset values to the EMI s EORO and EOR1 registers as defined by the values DAx The FIR filter creates the early reflection defining the room size and reflective characteristics of the room environment The FIR filter is implemented within a DO loop instructions 33 70 in which the offset information is retrieved by a post incrementing pointer r4 and the left and right data samples are read via the EDR registers The DO loop is shown in Figure B 1 below 1 clr a ER_off_buf r4 clr acc offset start 2 address in r4 3 loop reduce 4 clr b ER_gains rl clr acc gains start 5 address in rl 6 loop re
92. y defined macro which is to be inserted in place of the macro call 6 2 1 3 Operand Field The interpretation of the operand field is dependent on the contents of the operation field The operand field if present must follow the operation field and must be preceded by at least one space or tab 6 2 1 4 Data Transfer Fields Most opcodes can specify one or more data transfers to occur during the execution of the instruction These data transfers are indicated by two addressing mode operands separated by acomma with no embedded blanks If two data transfers are specified they must be separated by one or more blanks or tabs Refer to the DSP56000 Family Manual for a complete discussion of addressing modes that are applicable to data transfer specifications 6 2 1 5 Comment Field Comments are not considered significant to the Assembler but can be included in the source file for documentation purposes A comment field is composed of any characters that are preceded by a semicolon 6 2 2 Example Program This program takes two lists of data one in X memory and one in Y memory and calculates the sum of the products of the two lists Calculating the sum of products is the basis for many DSP functions Therefore the DSP56009 has a special instruction MAC that multiplies two values and adds the result to the contents of an accumulator This program is provided as example asm on the DSP56009EVM demos diskette and is placed in the EVM56007 direc
93. y until all external references are resolved or no more references can be satisfied within the current library The Linker searches a library only once when it is encountered on the command line Therefore the position of the L option on the command line is significant Example dspInk B filter main fir Lio This example illustrates linking with a library The files main cln and fir cln are combined with any needed modules in the library io lib to create the file filter cld M lt mapfil gt This option indicates that a map file is to be created lt mapfil gt can be any legal operating system filename including an optional pathname If no filename is specified the Linker will use the basename filename without extension of the first filename encountered in the input file list and append map to the basename If the M option is not specified then the Linker will not generate a map file The M option should be specified only once If the file named in the M option already exists it will be overwritten Example dsplnk M filter cln gauss cln In this example the files filter cln and gauss cln are linked together to produce a map file Because no filename was given with the M option the output file will be named using the basename of the first input file in this case filter The map file will be called filter map N The Linker considers case significant in symbol names When the N option is given the Linker ignores case in
Download Pdf Manuals
Related Search
Related Contents
Suitcase Compact USER MANUAL - AV-iQ MANUAL DE PROCEDIMIENTOS DEL CONSEJO Dicota MultiSuccess Bluetooth - TensioMed Apple MC413LL/A User's Manual Chamberlain HD150DM User's Manual 888 Digital ASDA-A2 Dishwasher User Manual Manual de Instruções Copyright © All rights reserved.
Failed to retrieve file