Home
User`s Manual PDF File
Contents
1. 0005 45 List of Tables 1 Key SPP 01 Hardware Components lllseeeee hh hh ns 8 2 SPP 01 Hardware Component References een 9 3 Config ratiorrof Serial Port cass RR Ra RERLR RR CRURA keene whe RA EEG bed ide QURE dee eS 13 4 SPP 01 Kernel Core and Templates llle hh 15 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com FREQUENCY SPPDS 01 Development Suites DEVICES INC Operations Manual Chapter Introduction This manual is for developers familiar with Texas Instruments Tl Code Composer Studio CCS and the assembly language for DSPs within the C54X family from TI It provides enough detail for the user to modify the templates and create calls to user specific routines Frequency Devices Signal Processing Platform Development Suite SPPDS 01 allows users to develop Digital Signal Processor DSP software to be run on the SPP 01 dual channel signal processing platform SPP 01 s are easy to use and enable the designer to take advantage of a proven hardware platform with a flexible software kernel so products can be quickly and econom ically developed The SPPDS 01 runs in CCS TI s powerful DSP development environment and uses the Spectrum Digital Emulator SDE XDS510PP Plus JTAG This is the only emulator tested The SPP 01 dual channel signal processing platf
2. where fn is the filename of the command file an example is below Note that the input COFF filename and the output filename will need to be changed to be compatible with the names of the user specific application Also the entry point must be changed if it is altered in the 54x code 7t uc UR WETTER ET CERO ESOP UN co aR RY PIVEN A WY CARTREF TT Se TERS ad file hex cmd I Author FDI Engineering Project SPP 01 Kernel Date 8 21 02 x ft pu cT xf Usage hex500 hex cmd ki f aaa EE C RE aM EE ME E M EE E Ee E E a e i E ES E xf Copyright 2002 Frequency Devices Inc I A SAS PEENE E AEE ha ae tL xf kernel example out input COFF file name i Intel MCS 86 Object format e 100h Entry point boot Bootload all sections in the input file bootorg SERIAL Boot from serial device f memwidth 8 EEPRROM width is 8 bits EF o kernel example hex Output file name i eR end of file hex cmd ee Asoo 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com FREQUENCY SPPDS 01 Development Suites DEVICES INC Operations Manual 7 Appendix A FIR Filter Example Appendix A describes the creation of a user specific application Two FIR filters are imple mented using normal precision Two channels are used to demonstrate the S
3. FREQUENCY SPPDS 01 Development Suites DEVICES INC Operations Manual Appendix C SPP 01 Code Listings File Author Project Purpose Revision RS NMI SINT INTO st SCLKDIV AR4 bit rate sysclk accuA 1 st SRGR2_sub AR4 Set Sub bank Address to SRGR2 st 2000h AR4 Configure frames rpt Z 2 SCLKDIV 18 Delay for 2bit clocks nop 2 SCLKDIV 9 cycles st ZSPCR2 sub AR4 Set Sub bank Address to SPCR2 st 0240h AR4 Take clk gen out of reset 1 5 rpt 2 SCLKDIV 18 Delay for 2bit clocks nop 2 SCLKDIV 9 cycles st ZPCHR sub AR44 Set Sub bank Address to PCR st 0A0Dh AR4 CLKXM 1 FSXM 1 CLKXP 0 CLKRP 1 FSRPZFSXP 1 2 rpt 2 SCLKDIV 18 Delay for 2bit clocks nop 2 SCLKDIV 9 cycles st ZSPCH1 sub AR4 Set Sub bank Address to SPCR1 st 01801h AR4 Enable McBSP transmitter 5 st ZSPCR2 sub AR4 Set Sub bank Address to SPCR2 st 0241h AR4 Enable McBSP reciever 5 rpt Z 2 SCLKDIV 18 Delay for 2bit clocks nop 2 SCLKDIV 9 cycles VECTORS asm FDI Engineering SPP 01 Kernel C5402 interrupt vectors table SPP 01 8 20 02 title c5402 vectors table Page6 47 mmregs ref main brintO bxintO sect vectors BD main GOTO main NOP NOP RETE NMI 0004h NOP NOP NOP space 16 4 14 sint17 0008h sint30 003fh RETE exter intO 0040h NOP NOP NOP 38 25 Locust St Haverhill Massachusetts 0
4. Main memory page read B1READ set OD4h Buffur1 read B2READ set OD6h Buffer2 read SRREAD set 0D7h Status Register Read Program and Erase Commands B1WHITE set 84h Buffer1 write B2WRITE set 87h Buffer2 write LLL 838 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com 7 FREQUENCY SPPDS 01 Development Suites DEVICES INC Operations Manual Appendix C SPP 01 Code Listings B1TOMPINEHRS set 83h Buffer1 to Main page Prog with erase B2TOMPINERS set 86h Buffer2 to Main page Prog with erase B1TOMPNOERS set 88h Buffer1 to main page prog without erase B2TOMPNOERS set 89h Buffer2 to main page prog without erase PAGEERASE set 81h page Erase BLOCKERASE set 50h Block erase MMPPBYB1 set 82h Main Memory Page Prog through Buffer MMPPBYB2 set 85h Main Memory Page Prog through Buffer2 Additional Commands MPTOB1TR set 53h Main memory Page to Buffer1 transfer MPTOB2TR set 55h Main memory Page to Buffer2 transfer MPTOB1CMP set 60h Main memory page to Buffer Compare MPTOB2CMP set 61h Main memory page to Buffer2 Compare PRWBYB1 set 58h Auto Page Rewrite through Buffer1 PRWBYB2 set 59h Auto Page Rewrite through Buffer2 Note after calling this subroutine the father routine must store intm ovm and sxm bit if necessory Reg used ar2 first page in FLASH a b PA
5. bration and disabling the de emphasis filter Configuration of the two serial ports and the general purpose input output I O Allocation of memory and variables Linker Directive Examples that specify how sections are allocated in memory A Hex Utility Example that creates a bootable table for the DSP which can be interpret ed by the SPPDB 01 or universal programmers The CDDS 01 software contains DSP templates These templates include placeholders that provide a link between the SPPDS 01 software and the application specific software developed by the user An SPPDB 01 program utility is also provided This utility uses the RS232 interface to burn the SPP 01 EEPROM with a bootable program and loads coefficients into Flash memory 6 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com gt SPPDS 01 Development Suites lt FREQUENCY DEVICES INC Operations Manual Chapter Introduction 1 3 SPP 01 Architecture A detailed block diagram of the SPP 01 hardware is shown in Figure 4 The SPP 01 hardware is built around Tl s TMS320C5402 DSP C5402 The C5402 is a 16 bit fixed point processor operating at 100 MHz which corresponds to a 10 ns CPU instruction cycle There are 16k words of RAM on the C5402 Analog inputs and outputs for the SPP 01 hardware are pro vided by dual 24 bit ADCs amp D
6. loading of new EEPROM algorithms and Flash memory coefficient sets using the above mentioned SPPDB 01 programmer software An example of Flash memory mapping for an FIR filter is also provided See 5 _ _ lt _ lt _ lt _ _ _ _ _ _ _ _ _ 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com gt SPPDS 01 Development Suites DEVICES INC Operations Manual Chapter Introduction Figure 3 shows a functional block diagram of the SPP 01 depicting the flow of audio band width signal from input to output The SPP 01 data sheet details electrical and mechanical specifications along with a list of application specific algorithms for those customers who desire a turnkey solution ADC DAC DSP Analog Digital Analog I O g Filters Converters Filters 10 wire digital input bus 0 Program 0 memory EE Prom Digital Signal Flash memory coefficients 3 wire digital output bus Figure 3 SPP 01 Functional Block Diagram SPPDS 01 software CDDS 01 contains core DSP assembly routines a memory directive command file and templates The core DSP assembly routines provide Initialization of the DSP including stack pointers and relocation of the vector table Initialization of the ADC and DAC including disabling the high pass filter enabling cali
7. 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com gt SPPDS 01 Development Suites N DEVICES INC Operations Manual Appendix B SPP 01 Utilities B 1 4 EEPROM Programming Example Converts the SPP 01 into an FIR filter Follow the steps below to program the EEPROM with the example HEX file sppdf 01 hex This file is included with the SPPDB 01 software on the CDDS 01 CDRom 1 Start the SPPDB 01 software 2 Use the Comport Switch to select the proper Comport COM1 or COM2 depending upon which pc comport the RS232 DB9 cable is plugged into 3 Choose the EEPROM target 4 Press the blue button on the Select A File window to select the HEX file indicated below 5 Select sppdf 01 hex This file is located on CDDS 01 in the Samples folder which is in the folder for the SPPDB 01 Programmer software After entering the selected file CLICK on the load button in the selection window 6 Press the Program button then formatting programming and verification will proceed for about 2 3 minutes When verification is completed a message will appear that says Programming OK 8 Press the Quit button to exit the program 9 Turn the power to the SPPDB 01 OFF and ON to re boot the SPP 01 with the new EEP ROM data The SPP 01 will now be running the new code just programmed onto the EEP ROM 10 In this case using the sppdf 01 hex file the SPP 01 now has the appropriate boot ker
8. B 1 SPPDB 01 Program Utility SPPDB 01 program utility on the CDDS 01 CDRom is used together with the SPPDB 01 develop ment board to program the EEPROM and Flash memory on the SPP 01 B 1 1 Introduction The SPPDB 01 Programming Software is a part of the SPPDS 01 Development Suite and is found on the CDDS 01 CDRom This programming utility allows the user to burn executable files into the SPP 01 s EEPROM and or load coefficient files into its Flash memory via an RS232 interface on the SPPDB 01 development board The SPP 01 EEPROM executable files contain a kernel integrated with an algorithm for the DSP program along with booting and initialization instructions for the SPP 01 Upon power up the SPP 01 EEPROM file is read and loaded into the DSP s RAM memory All executable files must be in HEX format before programming the EEPROM using the SPPDB 01 program utility software Files can be converted to HEX format by using the HEX utility contained in the CCS Development Suite The next step in the SPP 01 booting sequence is reading the addressed coefficient files in Flash Memory into the SPP 01 DSP Whenever the SPP 01 address lines change state a different set of coefficients is read altering how the algorithm program affects the signal processing Before using the SPPDB 01 program utility it is assumed that correctly generated and tested suc cessfully emulated code exists and has been converted into the appropriate file format B
9. Build the project Load the executable file Run the application Ww gt Tp a0 nmuo 18 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com Chapter III FREQUENCY DEVICES INC SPPDS 01 Development Suites Operations Manual SPP 01 Custom Applications 3 4 Modifying brint asm BRINTO is the routine that needs to be modified so it calls the user specific algorithms main asm may need to be modified as well The basic structure for each channel is read process write Figure 7 shows a code fragment of brintO asm Note that the program flow is to either the left or right channel based on a test condition of the top of the routine See Section 2 2 for a description of the time and flow of these routines Three lines of code are highlighted and they need to be changed to reflect the name of the user specific module ref brintO stm mvmd mvmd stm dst stm rete imm right channel right channel mvdm mvdm st stm stm st call firSGL mvmd mvmd stm dst stm rete firSGL TapsNum 1 0 0x38 0100000000000001b 0x39 0x20 a Ox21 b ar7 0x01 right channel tc QCOF L INDEX ar4 QDAT L INDEX ar5 324 TapsNum_1 325 bk 1 arO a ar5 0 firSGL ar5 DAT_L_INDEX ar4 COF_L_INDEX 22h ar1 b ar1 Ox1 ar7 QCOF R INDEX ar4 QDAT R INDEX ar5 324 TapsNum 1 32
10. Id 1111111111111110b a volume right call WriteDAC ret Write 32 bit data to AD1852 DAC control register WriteDAC Id Ox3d b CS 0 and 0x0f7 b stl b Ox3d call wppr Write 32bit data via SPI Id Ox3d b CS 1 or 0x08 b stl b Ox3d ret end f wwennnnenennennne end of AD1852 asm 29 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com QRS SPPDS 01 Development Suites FREQUENCY B DEVICES INC Operations Manual Appendix C SPP 01 Code Listings File CS5397 asm z Author FDI Engineering Project SPP 01 Ker Purpose Write 32bit data to CS5397 ADC register for SPP 01 Revision 8 20 02 Input Register A Used Register B mmregs def init ADC ref wppr sset FSTART and GND CAL init_ADC Id 0001h 16 a or 0C000h a call WriteADC rpt 200 nop set LRCK to 48KHZ from 96Khz set DFS as I2S Id 0002h 16 a or 4a00h a call WriteADC set FSTART and GND CAL Id 4000 a Delay1 nop rpt 65500 nop sub 1 a no p bc Delay1 aneq rpt 4200 nop Id 0001h 16 a or 0000h a call WriteADC rpt 200 nop Id 0002h 16 a or 0a00h a call WriteADC ret 30 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com FREQUENCY
11. MatLab environment FIR filter development object code coefficient loading software library files documentation and user manual Channel naming conventions Different lables are used interchangeably as channel names Conventions are Channel 1 is also channel A and the Left Clock phase Channel 2 is also B and the Right Clock phase DAC Digital to analog converter Field Programmability Appendix D provides guidance on how SPP 01 memory accessibility may be designed into the user s application LRCK Left Right Clock SCLK Serial Clock SDE Spectrum Digital Emulator SPP 01 Signal Processing Platform The 2 inch by 2 inch printed circuit board containing the DSP the ADCs the DACs EEPROM Flash etc SPP 01 Software Kernel A collection of DSP software around which user applications are writ ten The SPP Software Kernel initializes the two serial ports on the C5402 samples data from the ADCs and writes data to the DACs It forms the core of the EEPROM bootable file SPPDB 01 Development Board Hardware that interfaces with the SPP 01 platform and also serves as a convenient mounting assembly for bench top testing of programmed units SPPDF 01 Digital FIR Filter Development Suite FIR Filter Development Suite utilizes the SPPDM 01 and SPPDB 01 hardware along with CDDF 01 software to design FIR filters SPPDM 01 An pre programmed dual channel FIR platform usually supplied with the SPPDF 01 FIR Development Suite when pu
12. O1FIR Filter Development Suite using the MatLab utilities See program example in Appendix section B 1 4 NOTE Because the SPPDF 01 FIR Filter Development Suite may be purchased as a stand alone item the full operating manual and operating software for the SPPDF 01 is contained on the enclosed CDDF 01 CDRom 26 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com FREQUENCY DEVICES INC Appendix C File main asm Author FDI Engineering Objective Main routine for SPP 01 Kernel 8 20 02 REVISION mmregs def main ref init bspO init bsp1 ref init ADC init DAC init FIR TOS usect BOS usect stack 1h sect START main ssbx intm stm 0x0FFFF ifr stm BOS sp 5432109876543210 stm 74000000001 0100000b pmst 0000000011I Ol x 11l 0 stm 0x0ff Ox03c 576543210 stm 01011101b Ox3d rpt 8000 nop call init_bsp1 cal init_bspO stm 0x9F 0x3d rpt 200 nop call init_ADC cal init_DAC cal init_FIR stm Oxffff ifr stm 0x0030 imr stm 0 ar7 rsbx ovm ssbx sxm ssbx ffrct rsbx intm loop nop wait forever nop b loop end f end of main asm SPPDS 01 Development Suites Operations Manual SPP 01 Code Listings stack 1Fh 15 define the stack to reside at location disable all interrupts Clear IFR flag set stack point to B
13. SPPDS 01 Development Suites DEVICES INC Operations Manual Appendix C SPP 01 Code Listings Write 32 bit data to CS5397 ADC control register WriteADC ld Ox3db JCS 0 and O0xOfffb b stl b Ox3d call wppr write 32bit data via SPI ld Ox8d b CS 1 or 0x0004 b stl b Ox3d ret end File bxint0 asm a Author FDI Engineeri Project SPP01 Kernel REVISION 8 20 02 def bxintO bxintO stm 0x0 ar7 File brint0 asm z Author FDI Engineering Project SPP 01 Kernel Objective s McBSPO receive interrupr service routine REVISION 8 20 02 mmregs def brintO ref DAT_L_INDEX DAT_R_INDEX COF_L_INDEX COF_R_INDEX ef firSGL TapsNum_1 brintO stm 0 0x38 stm 20100000000000001b 0x39 Idm 0x20 a read most significant word from drr20 Idm 0x21 b read least significant word from drr10 cmpm ar7 0x01 determine which channel is active now nop bc right channel tc nop ss Left channel left channel mvdm QCOF L INDEX ar4 get pointers mvdm DAT_L_INDEX ar5 st 324 TapsNum_1 stm 325 bk set circular buffer size TE ee 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com CE SPPDS 01 Development Suites FREQUENCY B DEVICES INC Operations Manual Appendix C SPP 01 Code Listings stm 1 arO stl a ar5 0 save n
14. b Ox3d b GPIOSR Hd0 HD7 make HDO 0 CS 0 DRR21 set DRR11 set DXR21 set DXR11 set SPSA1 set SPSD1 set SPCR1 set SPCR2 set RCR1 set RCR2 set XCR1 set XCR2 set SRGR1 set SRGR2 set PCR set 40h 41h 42h 43h 48h 49h SPPDS 01 Development Suites McBSP1 subbank address McBSP1 subbank data Serial Port Control Register 1 Serial Port Control Register 2 Recieve Control Register 1 Recieve Control Register 2 Transmit Control Register Transmit Control Register Sample Rate Generator Register 1 Sample Rate Generator Register 2 Pin Control Register MACRO for SPI flash operation using c5402 s McBSP1 entry A 8 bit op code 16 bit address 8 bit data output A stores byte from flash 8 bit LSB is valid note The caller must make up the 32 bit frame by himself before calling this routine SPIRW STM SPSA1 AR4 STM DXR21 AR5 1 2 35 Operations Manual SPP 01 Code Listings 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com nE SPPDS 01 Development Suites FREQUENCY N DEVICES INC Operations Manual Appendix C SPP 01 Code Listings DST A AR5 ST SPCR2 AR4 BIT AR4 14 test XRDY BCD NTC BITF AR4 2h MAR AR4 ARA 5SPSA1 MAR AR5 AR5 gt DRR11 MAR AR5 AR5 gt DRR21 ST SPCR1 AR4 BIT AR4 14 BC
15. message word are 32 bit Q31 format words and are stored in the Flash in Motorola format This means the MSB is the lower address while the LSB is the higher address A Message Word gives the DSP some information about the filter such as the number of taps and odd or even symmetric Bit 31 to bit 16 and bit 13 to bit 9 are zeros and bit 8 to bit O repre sents the number of taps If the number of taps is even set bit 15 to 0 otherwise to 1 If the coefficients are even symmetric set bit 14 to O otherwise to 1 n Ba 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com nE SPPDS 01 Development Suites FREQUENCY DEVICES INC Operations Manual Appendix D SPP 01 Field Programmability For example Figure 13 shows the Flash memory mapping of an FIR filter with 268 taps It is designed evenly symmetrical with floating point coefficients Because of the even number of taps and even symmetric both ET and ES are set to 0 in the message word The number of taps 268 equals the binary number 100001100 Put this binary word into the message word bit locations from bit 8 to bit O Next convert the floating point coefficients into Q31 integer format Assume this filter is number 3 then the start page on the flash memory for the coefficients is page 9 Now program the page 9 10 and 11 with the first half coefficients zeros and the mes sag
16. oad ea eine es daa dim date Sells Save eed ae e CR diem ee 22 B SPP OT Utllities se 2 013 ao teer oder Bd Roda ndo Oe eerie ae de Dae dod Edd ae e a 23 C Code ListingS us remake sce wa wee gue macx d Ru Pe oe RA RUE ede RO Te e e e eA E RE s 27 D Field Programmability llli RR RR Rhen 41 E Terminol gy sec cnc 2h bard d ETER erred Ea UR ao Fa PER RE HE RPE E e TOR Te cR Rar Sox LR ean de Y s 46 List of Figures 1 RS232 Cable Connection for SPPDB 01 ssssseeeeeee hr 4 2 SPPDS 01 Development Suite Hardware Configuration liliis 5 3 SPP 01 Functional Block Diagram isllieeeeee ehh hr 6 4 SPP 01 Architecture oc couche heats Seeks poe ee eee GR ne ee as hehe NR x Re Eug RR due hus 7 5 SPP 01 Inputs and Outputs cseakuwn ie umb kane a aan DARHERUUIMS abe Rr REA Ra nes diea 10 6 SPP 01 DSP Interrupts to the I2S Serial Audio Format Protocol 0 0 c eee eee eee 11 7 Code Fragment of BRINTO asm Kernel Template slilllee ee 19 8 SPPDB 01 Hardware Configuration 0 aaa sehr 24 9 SPPDB 01 GUI Control Display lleeeeeeeeeeeee hh rr 25 TO Biriflle display x eere eck mn qu mna PE Wt bonc anc do wg egy Rn S m S ow oue Ree Re er a eU unu 25 11 SPP 01 SPI Interface Block Diagram 2 006 es 41 12 An FIR filter Flash Memory Map Illustration llel Br KK 44 13 Circuit required to provide memory access for the SPP 01 family of products
17. signal going from the ADC to the DSP is the data line which contains the digital word sam pled in the ADC The fourth line is the digital word sent from the DSP to the DAC after process ing 2 4 Module init bspO0 asm configures McBSPO Seven DSP registers related to McBSPO are configured so that the port operates as an I2S slave compatible with the ADC and DAC Those registers are g Serial port control register 1 Serial port control register 2 Receive control register 1 Receive control register 2 Transmit control register 1 Transmit control register 2 Pin control register The port is set up as a dual phase frame where a phase corresponds to a channel of the analog input Although the port is capable of multiple words per frame the ADC only sends out a single word per frame Each word is 32 bits Note that the ADC only sends out 24 bits The extraneous 8 bits are zero and the DAC only accepts the first 24 bits in each word 315 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com SPPDS 01 Development Suites lt FREQUENCY Se DEVICES INC Operations Manual Chapter II SPP 01 Platform Description Table 3 lists the bits that are different than the default settings See Tl s SPRU302 Table 2 Section 1 4 the reference volume that describes the enhanced features of the McBSPO for a description of
18. the SPPO1 core rou tines F Debug the user specific algorithm LLL o lL I 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com CE SPPDS 01 Development Suites Nez i DEVICES INC Operations Manual Chapter III SPP 01 Custom Applications Although this should be familiar to 54x developers the steps involved in creating a user spe cific application around the SPP 01 core are outlined below This should only be done after it has been determined that CCS is communicating properly with the SPP 01 From windows create a new directory for your application Copy the following into this newly created directory a All files in the SPP 01 Kernel Core b main asm from the SPP Kernel Templates brintO asm Open CCS Create a new project and save in the newly created directory Add the following files to the project i All the files in the new project including the link cmd file ii The application specific source file s c In the build option i Insert start for the code entry point ii Make sure the c option is NOT included in the linker build options C Edit a main asm to include any calls to initialization routines b brintO to insert calls to the application specific routines c link cmd to make any necessary modifications to the memory map Develop user specific algorithm
19. the default settings fee See ome e Acronym or bits and value Description PCRO CLKRP 1 Rx data sampled on rising edge Table 3 Configuration of Serial Port The last digit in the register acronym indicates serial port 0 Note These only apply to McBSPO There is another set for McBSP1 2 5 Initialization of Serial Port 1 for SPI protocol McBSP1 is configured to operate in the Serial Peripheral Interface SPI mode The SPI protocol is a synchronous data link that has a master and several slaves On the SPP 01 the DSP is the master and the EEPROM Flash ADC and DAC control registers are slaves The link to the ADC control register is used to disable the high pass filters and enable calibration The link to the DAC control register is used to setup the sampling rate software mute de emphasis and other functions The DSP selects these slaves through chip select pins 2 6 Memory Map The memory map defines the placement in DSP memory i e DSP RAM of the following e Text the DSP code Variables O Input data samples o Output data samples o Filter coefficients or other constants o Scratch pad o Stack 13 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com SS FREQUENCY SPPDS 01 Development Suites ij DEVICES INC Operations Manual Chapter II SPP 01 Platform Description The memory map is defined
20. to the analog input A serial clock SCLK and a left right clock LRCK accom pany the data line The amplitudes of the analog DAC outputs 2 Vrms are multiplied by 3 5 providing a default gain of O dB and a full scale output of 7 VRMS As mentioned earlier multiple SPP 01 platforms can be used if the MASTER SLAVE option is taken advantage of The clock on the Slave is removed and in their place the clock from the Master is used This in addition to tying all of the LRCK signals together will sync up the data acquired at each SPP 01 8 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com FREQUENCY SPPDS 01 Development Suites DEVICES INC Operations Manual Chapter Introduction 1 4 Related Documents Table 2 below provides hardware component references that apply to the chips on the SPP 01 and software related to CCS Tl s books may be obtained from TI s literature center 800 477 8924 at no cost Other documents are available for download at the respective manu facturer s web sites muE Reference Date Code Composer Studio Users Guide SPRUS28B February 2000 Emulator Model XDS510PP Part Number 701014 TMSS20056 ran Language Tools SPRU102D December 1999 www ti com TMS320C54x DSP Reference Set Vol 5 SPRU302 June 1999 Enhanced Peripherals TMS320C54x DSP Reference Set Vol 2 SPRU
21. 1 2 SPPDB 01 Program Utility installation 1 Place the CDDS 01 CD in the PC CD Rom drive 2 Select Run in the Windows Start Up menu 3 Click browse and select the appropriate drive letter 4 Choose and open the SPPDB 01 folder then select the setup file 5 CLICK Open then CLICK OK 6 Follow the instructions on the display to complete the installation The program should now be listed under the Programs Menu 23 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com SPPDS 01 Development Suites FREQUENCY DEVICES INC Operations Manual Appendix B SPP 01 Utilities B 1 3 Initialization and GUI description With PC RS232 connection and the SPPDB 01 hardware set up as shown in Figure 8 launch the SPPDB 01 software from the program menu The GUI Control Display appears in Figure 9 y FDI s CDDS 01 SPPDS 01 SPPDB 01 Development SPPDB 01 Programmer RS 232 BNC Connectors Figure 8 SPPDB 01 Hardware Configuration 24 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com A E SPPDS 01 Development Suites FREQUENCY Se DEVICES INC Operations Manual Appendix B SPP 01
22. 172B June 1998 Mnemonic Instruction Set TMS320C54x DSP Reference Set Vol 1 SPRU131 April 1999 CPU and Peripherals TMS320VC5402 Fixed Point Signal SPRSO79B October 1998 Processor Datasheet Revised July 1999 ATMEL 4 megabits Serial DataFlash Rev 1432D 01 01 AT45DB041A www atmel com ATMEL SPI Serial EEPROMs AT25256 Rev 0872F 09 99 TPS70151 Dual Output Low Dropout SLVS22A December 1999 Voltage Regulators with Power Up Rev March 2000 Sequencing for Split Voltage DSP Systems Crystal 24 bit 105 dB ADC CS5937 DS290PP3 Apr 00 www cirrus com Analog Devices 24 bit DAC AD1852 www analog com Rev 0 Table 2 SPP 01 Hardware Component References eC 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com FREQUENCY SPPDS 01 Development Suites DEVICES INC Operations Manual 7 Chapter II SPP 01 Platform Description 2 1 Hardware Inputs Outputs Figure 5 shows the inputs and outputs on the SPP 01 platform The differential inputs go through a 3 pole Butterworth anti aliasing filter that attenuates the signals by 5 The signals have to be attenuated so the SPP 01 input range 7 Vays can match up with the ADC input range 1 4 Vams The signals then enter the ADCs The outputs from the DACs up to 2 Vans are fed into reconstruction filters that multiply the signals by 3 5 This is done to compensate for th
23. 1830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com Appendix C INT1 INT2 TINT BRINTO BXINTO BRINT2 BXINT2 INT3 HPINT BRINT1 BXINT1 DMAC4 DMAC5 reserved RETE NOP NOP NOP RETE NOP NOP NOP RETE NOP NOP NOP BD brintO NOP NOP BD bxintO N RETE NOP NOP NOP RETE NOP NOP NOP RETE NOP NOP NOP RETE NOP NOP NOP RETE NOP NOP NOP RETE NOP NOP NOP RETE NOP NOP NOP RETE NOP NOP NOP space 16 4 2 END FREQUENCY DEVICES INC SPPDS 01 Development Suites Operations Manual SPP 01 Code Listings exter intl 0044h exter int2 0048h stimer 004ch McBSPO rx 0050h McBSPO tx 0054h McBSP2 rx DMACO 80058h McBSP2 tx DMAC1 005ch exter int3 90060h HPI int 0064h McBSP1 rx DMAC2 0068h McBSP2 tx DMAC3 006ch DMA channel 4 90070h DMA channel 5 0074h 0078h to 007fh 39 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com m FREQUENCY SPPDS 01 Development Suites DEVICES INC Operations Manual Appendix C SPP 01 Code Listings File wppr asm Write Poll Poll Read Author FDI Engineering Project SPPO1 Kernel Objective Write 32 bit out through McBSPO SPI to ADC DAC EEPROM and FLASH REVISION 8 20 02 A Th
24. 232 SPPFP 01 FROM SPP PROGRAMMING UTILITIES C MAX232AC Figure 13 Circuit required to provide memory access for the SPP 01 family of products For layout and assembly the customer is responsible for obtaining the manufacturer data sheets and listed raw materials The only item that must be obtained from FDI is the SPPFP 01 8 bit 2k byte preprogrammed micro controller Contact factory for pricing and delivery information Note See Figure 12 for component location U4 SPPFP 01 ATMEL AT89C2051 8 BIT 2K byte preprogrammed micro controller U3 TI SN74CBTD3384 10 Bit Bus FET Switch U5 MAXIM MAX232AC RS232 12 to 5 Volt Level Shifter May not be required along with its associated capacitors if U4 is connected to 5 volt logic C11 16 4 7UF 20V 20 Tantalum C17 18 33PF 50 100V 5 1206 R12 8 25k 1 10W 1 R13 14 4 75k 1 10W 1 Y1 22 1184 MHz SMT Crystal 18PF n G 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com FREQUENCY SPPDS 01 Development Suites ij DEVICES INC Operations Manual Appendix E Terminology ADC Analog to digital converter CCS Code Composer Studio CDDS 01 Software for the SPPDS 01 Contains example programs utilities a user manual and software for the SPPDS 01 Development Suite CDDF 01 Software for the SPPDF 01 Software includes a compatible MatLab GUI linking the system to the
25. 5 bk 1 arO a ar5 0 ar5 DAT_R_INDEX ar4 COF_R_INDEX 22h ar1 b ar1 0x0 ar7 read most significant word from drr20 read least significant word from drr10 determine which channel is active n get pointers set circular buffer size save new data to buffer run algorithm update pointers send data out through McBSPO get pointers set circular buffer size save new data to buffer run algorithm updates pointers send data out through McBSPO Figure 7 Code Fragment of brint0 asm Kernel Template 19 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com CE SPPDS 01 Development Suites Nez i DEVICES INC Operations Manual Chapter III SPP 01 Custom Applications 3 5 Reading the Serial Port Receive Register s On the C5402 the McBSPO receive registers are at memory location 0x20 and Ox21 Two 16 bit locations are needed so that words up to 32 bits can be clocked into the device Two different methods can be used to read data that has arrived from the ADC 3 5 1 Normal Precision For processing in normal precision 16 bit words use the following 54x instructions Id Ox20 a Id Ox21 b These load the 16 most significant bits into the least significant bits of the a accumulator The least significant 8 bits from the conversion are placed in b accumulator and are not used See e
26. 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com FREQUENCY SPPDS 01 Development Suites DEVICES INC Operations Manual Appendix C SPP 01 Code Listings init FIR left channel is a 325 taps lowpass fir filter which coefficients are stored in flash memory from page 300 to 302 stm 300 ar2 ar2 gt first page stm 2 ar3 ar3 TotalPage 1 stm COEF_L ar6 first location of coef memory call ReadFLASH right channel is a 325 taps bandpass fir filter which coefficients are stored in flash memory from page 303 to 305 stm 303 ar2 ar2 gt first page stm 2 ar3 ar3 TotalPage 1 stm ZCOEF R ar6 first location of coef memory call ReadFLASH stm iD COF L INDEX initialize pointers for left stm DATA_L GDAT L INDEX channel i e channel one stm ZCOEF R COF R INDEX initialize pointers for right stm ZDATA R 9DAT R INDEX channel i e channel two rSGL single precision fir Regs used ar4 ar5 b ar0 TapsNum 1 asg AR5 FIR BUF P point to the oldest sample asg ARA FIR COF P firSGL LD 0000h B RPT Q TapsNum 1 MAC FIR BUF P096 FIR_COF_P 0 B RET end File FLASH asm Author FDI Engineering Project SPP01 Kernel Objective s S Provides the DSP capability to read ATASDBO41A DataFlash in SPPO1 platform REVISION 8 20 02 Read Commands CAREAD set OE8h Continuous Array Read total chip read MPREAD set OD2h
27. ACs operating at a sampling rate of 48 kHz on each of two chan nels for a total throughput of 96k samples per second A three wire digital output bus 12S gives the user access to the C5402 s serial data output The SPP 01 boots from a 256 kbits EEPROM at power up The DSP can read pre stored data from the 4 Mbits of onboard Flash USER INPUT VOLTAGE TRANSLATOR SN74CBTD3384PW 5VDC LDO DSP TPS70151 TMS320VC5402 EEPROM AT25256 ADC CS5937 FLASH AT45DB041A DAC AD1852 4Mb FILTER COEFFICIENTS 256Kb DSP CODE 12 288 MHz Figure 4 SPP 01 Architecture Le 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com FREQUENCY SPPDS 01 Development Suites DEVICES INC Operations Manual 7 Chapter Introduction The key components of the SPP 01 hardware are listed in Table 1 Item Part Number Supplier DSP TMS320VC5402DSP Texas Instruments EEPROM AT25256 Atmel Flash AT45DB041A Atmel LDO TPS70151 Texas Instruments ADC CS5937 Cirrus Logic DAC AD1852 Analog Devices Voltage Translator SN74CBTD3384PW Texas Instruments Table 1 Key SPP 01 Hardware Components An LDO voltage regulator provides th
28. D NTC test RRDY BITF AR4 2h LD AR5 16 A OR AR5 A rx word to A ret end File INIT BSPO asm E Author FDI Engineering Project SPP 01 Kernel Objective Configure McBSPO of c5402 as Slave of an 12S protocol communicating with CS5397 ADC and AD1852 DAC REVISION 8 20 02 Uage ref init bspO call init_bspO regs used none mmregs def init bspO init bspO stm 0x0 0x38 stm 0100000000100000b 0x39 stm 0x1 0x38 stm 0x0 0x39 stm 2 0x38 stm 0000000010100000b 0x39 stm 3 0x38 stm 1000000010100101b 0x39 stm 4 0x38 stm 0000000010100000b 0x39 stm 5 0x38 stm 1000000010100101b 0x39 stm 0x0E 0x38 stm 0x03 0x39 stm 1 0x38 stm 0000000000100001b 0x39 rpt 100 wait for serial port ready 36 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com X OCEEU SPPDS 01 Development Suites lt FREQUENCY DEVICES INC Operations Manual Appendix C SPP 01 Code Listings nop File init_bsp1 asm Author FDI Engineering Project SPP 01 Kernel Objective Initialize the McBSP1 of c5402 as a SPI master which can communicate with EEPROM and FLASH in SPI modeo REVISION 8 20 02 Usage ref init bsp1 call init_bsp1 z Regs used ar4 SPSA1 set 48h McBSP1 Address register SPSD1 set 49h McBSP1 Data Regis
29. GE_LEN ReadFLASH LoopB 25 Locust St ar3 Total Page 1 ar6 first location of destination memory ar4 ar5 a b in SPIRW def ReadFLASH SPIRW set 66 asg ar2 PAGE P ar2 gt first page asg ar3 TOTAL PAGE P ar3 TotalPage 1 asg ar6 COEFTBL P first location of coef memory ld MPREAD 16 a a Ox 00 00d2 0000 sftl a 8 a Ox 00 d200 0000 Idm PAGE P b sftl b 9 or b a or opcode and page address result in a call LowCS nop nop nop cal SPIRW 1 Send out opcode and address no need to store Id 0 a put zero into a as don t care transmission cal SPIRW 2 Send 32 don t care bits no need to store stm Z PAGE LEN 1 brc 66 32 bit words corresponds to one page nop rptb LoopB 1 nop ld 0x0 a a dummy write call SPIRW 3 Send 32 don t care bits but keep data that was nop nop dst a COEFTBL P nop nop make CS 1 end of reading 34 Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com Appendix C HighCS PAGE_P b 1 b b PAGE_P FREQUENCY DEVICES INC PAGE_P points to next page banz ReadFLASH TOTAL_PAGE_P Make the HDO CS low to select DataFlash LowCS Id and stl Ox3d b 0xOfffe b b Ox3d b GPIOSR Hd0 HD7 make HDO 0 CS 0 Make the HDO CS low to select DataFlash HighCS Id or stl ret Ox3d b 0x0001 b
30. Make sure the c option is NOT included in the linker build options Edit this step can be bypassed since it was already done main asm to include any calls to initialization routines brintO asm to insert calls to the application specific routines link cmd to make any necessary modifications to the memory map 9 Develop user specific algorithm this had been done and is represented in the file fir asm 10 Build the project 11 Load the executable file For operation of the SPPDB 01 program utility see Appendix B1 12 Run the application CON O See below for a listing of the user specific files They include Modified to call init_FIR Initialize pointers etc for use and implement a normal precision FIR algorithm Modified to call firSGL 22 ae 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com gt SPPDS 01 Development Suites REX REQUENCY Se DEVICES INC Operations Manual Appendix B SPP 01 Utilities Two utilities for the SPP 01 are described below One is the SPPDB 01 Program Utility software on the CDDS 01 CDRom which is used to download files from a computer to the EEPROM or FLASH on the SPP 01 The second is the SPPDF 01 FIR filter design suite The user can easily design and implement FIR digital filters using MatLab for the SPP 01 via the SPPDF 01 software interface on CDDF 01
31. PP 01 programming flexibility A low pass filter is implemented in the left channel and a band pass filter is implement ed in the right channel After developing this project and creating an executable file the file should be loaded into the SPP 01 Signals can be input into the left 1 and right 2 channels and the outputs can be observed on the left and right outputs The left channel should exhibit a cut off at about 3000 Hz and the right channel should operate in a band pass filter mode The coefficients for these two FIR filters are included in a binary file coeff bin To use this FIR example the user must download this coefficient file to the Flash memory on the SPP 01 by using the SPPDB 01 program utility on the CDDS 01 CDRom and described in Appendix B1 1 From Windows create a directory for the new application 2 Copy the following into this newly created directory All files in the SPP 01 Kernel Core All the SPP 01 Kernel Example Application Specific Files Normally at this step the files from the templates would be copied into the directory and then modified The modification of the templates has already been done in this example 3 Open CCS 4 Create a new project and save in the newly created directory 5 Add the following files to the project All the files in the new project including the link cmd file The application specific source file s Inthe build option Insert start for the code entry point
32. SPPDS 01 Development Suites Operations Manual For SPP 01 Platform Products SPPDS 01 Development Suites Operations Manual Table of Contents Chapter Page TA AMMUOCUGUION PET 3 T2 Set Up iiis imaa pennig e ei eee eee de Fa ES Ra Marti sderd batur bed a RA ee ae ee 5 1 3 SPP 01 Architecture i sasa aoia a a ea eee 7 1 4 Related Documents 05002052 cc eke eee eee ee n e ACE REOR OE GE Rom ee GR REOR Ee eek 9 Chapter Il 2 1 Hardware Inputs Outputs se an aa aa Ea ae 10 22 liming InterruptS eges ses Se Rae ee ee a ES be Wade REREN eee ae ec Oe 11 2 3 Initialization of the Serial PortO as an l28 Slave 0 00 eee 12 2 4 Module init bspO0 asm configures MCBSPO 00 0 ee 12 2 5 Initialization of Serial Port 1 for SPI Protocol 0 00 tee 13 2 6 Memory Map REG Wy bt SV wad ee ee Ee REN Oe eee he ORE ee eR de RES OG EEUU 13 Chapter Ill 3 1 Developing of Custom Applications 2 0 eee 15 3 2 Creating a Code Composer Studio project CCS 2 00 ee 17 3 3 Creating your own application is atei aaa hr 17 3 4 Modifying BRINTO aSITI ius eno Rx Rer eem eee EUR Uk RR e SURGE eee eee BUR ee UN 19 3 5 Reading the Serial Port Receive Register s iiilllllleeeeesl nh 20 3 6 Writing to the Serial Port Transmit Register S llle 20 3 7 Creating a Bootable 2s pe ec eee nd tan etek Osada et eek REGE EOM tee EUR ERR PEE RES 21 Appendix As An FIR Filter Example re Ret br
33. Utilities EJ SPPDB 01 PROGRAMMER x Setup COMPORT 1 B comi FLASH ame 3 gt ll cov2 vi Select A File 4 fds spt itty sppdf 07 Sdsp code sppaf 01 hex vj Formatting 2 5 PROGRAM Copyright 2002 Frequency Devices Inc Figure 9 SPPDB 01 GUI Control Display Description of Controls 1 Comport Switch selects between COM1 and COM2 Setting depends upon which Comport the SPPDB 01 s RS232 DB9 cable is connected to 2 Target Switch selects between programming the Flash memory coefficients or the EEPROM with an executable file 3 Start Page controls the page number at which the Flash memory programming begins 4 To Select A File press the blue button to select a HEX or BIN file for programming Figure 10 Bin File Display will appear as below Specify binary file to open i x Directory CASPPDB 01 e lii CASPPDB 01 hd Lookin i 5ppdb 01 ze al er jai otesthex Filesofype i Cancel Figure 10 Bin File Display 5 The Program Button begins programming of the EEPROM or the Flash with the previ ously selected file The process can take 1 to 3 minutes after which an indication of successful programming is provided Programming OK 6 The Quit Button exits the SPPDB 01 program To execute the program the SPP 01 must be rebooted by removing and re applying power Ug c e 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374
34. e attenuation in the anti aliasing filters and provides SPP 01 outputs of 7 Vans The output signals from the SPP 01 are single ended FLAG PIN SCLK LRCLK Do Dg 9 bit program select pins 3 DSP Digital Do Channel select pin Da Output Port JTAG Ponc EE UN Ch 1 O Ch 2 1 D Serial e NOT USED Out1 amp 2 Analog outputs EN oir Peripheral nay ee i H Interfaces E zinputs 1 amp 2 Differential analog inputs Fi Select Port S controls le ER 15V Analog DC power In D o e SPI SCK sti D SPI WP 5V Digital Power In gt le A Gnd Analog Grounds 3 D Gnd Digital Grounds 2 pus pauses Differential NS JTAG JTAG port 15V e Analog PS Analog e AGND AGND e9 Inputs IN2 15V le IN2 SPP 01 TOP VIEW PIN IDENTIFICATION Figure 5 SPP 01 Inputs and Outputs ee 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com FREQUENCY SPPDS 01 Development Suites DEVICES INC Operations Manual Chapter II SPP 01 Platform Description 2 2 Timing and Interrupts A 12 288 MHz crystal provides the master clock which is the timing reference for the ADC A divider in the ADC generates a left right clock LRCK with a frequency of 48 kHz and a serial clock SCLK with a frequency of 3 072 MHz for sampling the input signals If this is a Slave SPP 01 th
35. e data to be written read is passed returned in accu A AR2 Temp local storage ARS Address to perform operation on is passed here ARA Must point to serial port sub bank address reg SPSA AR5 Must point to data transmit register2 DXR2x SPCR1_sub SPCR2_sub RCR1_sub RCR2_sub XCR1_sub XCR2_sub SRGR1_sub SRGR2_sub PCR_sub DRR21 DRR11 DXR21 DXR11 SPSA1 SPSD1 wppr set set set set set set set set set set set set set set set def stm stm dst bit bcd Bitf mar stm bit bcd bitf Id 00h Serial Port Control Register 1 Oih Serial Port Control Register 2 02h Recieve Control Register 1 03h Recieve Control Register 2 O4h Transmit Control Register 1 05h Transmit Control Register 2 06h Sample Rate Generator Register 1 07h J Sample Rate Generator Register 2 OEh Pin Control Register 40H Data Receive Register 2 41H Data Receive Register 1 42h McBSP1 Data Transmit Register 2 43h McBSP1 Data Transmit Register 1 48H Serial Port 1 Sub bank Address Register 49H Serial Port 1 Sub bank Data Register wppr DXR21 ar5 ZSPSA1 ar4 a arb send out 32 bit word st ZSPCR2 sub AR4 Set Sub bank Address to SPCR2 ARA 14 TC XRDY for first poll ntc Loop for polling ARA 02h Poll XRDY AR4 AR4 gt SPSA 0x40 ar5 SPCR1 S AR4 SPSA gt SPCR1 AR4 gt SPSD E 14 TC RRDY for first poll n L
36. e dual voltages for the DSP core and the DSP peripherals It also provides initial power sequencing to the DSP when power is applied to the SPP 01 hardware The ADC and DAC sampling frequency of 48 kHz are derived from a 12 288 MHz oscillator which is divided by 256 within the ADC The ADC is the master of the industry standard 12S Inter IC Sound serial audio protocol that is used to communicate between ADC DAC and the DSP The DSP s McBSPO is the slave of this interface and is configured for the I2S protocol Selecting the ADC as the master of the interface minimizes jitter in the sampling times that may occur in a DSP master implementation During normal operation the DSP boots from the serial EEPROM after power up because the INTS pin is tied to the BDX1 pin The boot loader software in the C5402 ROM loads the user specific DSP software into DSP RAM according to the parameter setting of the hex conver sion utility see Section 3 4 for details on the hex conversion process Execution begins after the software is transferred to DSP RAM The DSP can read pre stored data from the Flash The Flash is read at power up and again if the user input lines change state The SPP 01 hardware accepts two fully differential analog inputs For the maximum 7 Vrms input the signal is attenuated by 5 before going to the ADC which allows an input of 1 4 Vrms There are two analog outputs from the SPP 01 hardware as well as two digital outputs that correspond
37. e master clock SCLK and LRCK signals come from the Master SPP 01 The ADC samples the two channels simultaneously The 24 bit words are clocked into the DSP on an alternating basis Figure 6 shows the clock and data signals that exist between the ADC DAC and the DSP The SCLK LRCK and the serial data out lines are also available to the user via SPP 01 I O pins Figure 6 also shows the interrupts generated in the DSP BXINT BRINT BRINT RIGHT LRCK D mnnrnnnnn SCLK Nnnnnnnnnnnnannrinnnrhnnnnnnnnnnrhnnn SDIN SDOUT Figure 6 DSP interrupts to I2S Serial Audio Format Protocol There are three interrupts for each period of the LRCK The BXINTO interrupt the Buffered serial port Transmission INTerrupt on port number 0 is generated by the rising edge of LRCK See Section 2 3 for the configuration of Serial Port 0 The BXINTO interrupt service routine tags the samples as coming from the left In the single channel implementation the samples from the second channel are ignored There are two BRINTO interrupts the Buffered serial port Receive INTerrupt on port number 0 per LRCK cycle one for each of the two channels These interrupts signal the reception of the last bit of the sampled data for that sampling period After this interrupt the data either a left or a right channel sample can be transferred from the DSP s data receive register to the DSP main memory Processin
38. e right channel data is processed through a band pass filter with a center frequency of approximately 3050Hz and bandwidth of 100Hz The left and right inputs can be tied to the same signal source and the outputs can be observed on a scope CASPPO1 Kernel Example Executable CASPPO1 Kernel Example Executable Kernel_example out d These files include all the source and command files for the memory map These files can be copied into your user directory to form the basis for creating a CCS Project This directory is provided to help the user become familiar with creating CCS projects CASPPO1 Kernel Example CASPPO1 Kernel ExampleVoxintO asm CNSPPO01 Kernel Example brintOl asm CASPPO1 Kernel Example init_bsp0 asm CASPPO1 Kernel Example init_bsp1 asm CASPPO1 Kernel Example fir asm CASPPO1 Kernel ExampleMlash asm CNSPPO01 Kernel Example ad1852 asm CNSPPO01 Kernel Example main asm CASPPO1 Kernel Example cs5397 asm CASPPO1 Kernel ExampleWectors asm CASPPO1 Kernel ExampleNink cmd CASPPO1 Kernel ExampleWppr asm CASPPO1 Kernel ExampleWernel example mak 16 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com FREQUENCY SPPDS 01 Development Suites DEVICES INC Operations Manual Chapter III SPP 01 Custom Applications 3 2 Creating a Code Composer Studio CCS Project The SPP 01 kernel was developed using Tl s CCS and the SPPDS 01 De
39. e word Each Q31 format coefficient has 32 bits while the flash is organized as 8 bit bytes The coefficients must be divided into 4 bytes with the MSB programmed into the lower address on the Flash 4 A Filter 0 Page 9 C 0 K Byte 0 Q31 Q24 Filter 1 C 1 Byte 1 Q23 Q16 Filter 2 y Byte 2 Q15 Q8 Filter 3 Byte 3 Q7 Q0 C 2 to C 65 Filter 4 Page 10 C 66 C 67 Filter 5 to 680 Page 11 C 132 C 133 Filter 681 all zeros 4 message word PY 31 16 15 14 13 12 11 10 9 87 6 5 43 2 1 0 0 O0 ETES 00 00 0 amp 8 S9 ET Even Tap ES Even Symmetric Figure 12 An FIR programmed SPP 01 Flash Memory Map Illustration 44 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com FREQUENCY SPPDS 01 Development Suites DEVICES INC Operations Manual Appendix D SPP 01 Field Programmabilit 5 RS232 interface FDI has a solution for customers who wish to use a PC and an RS232 interface to re program the EEPROM or the Flash in the field Incorporating the following circuit schematic into the users subassembly permits reprogramming of the SPP 01 by allowing modification to the signal processing platform program by using the SPPDB 01 programming utility normally used with the SPPDB 01 development board Figure 12 essentially mimics the SPPDB 01 TO THE SPP 01 SPI BUS c UUUUUUUU mir eid EE O NWSMHON U4 RS
40. ew data to buffer call firSGL run algorithm mvmd ar5 DAT L INDEX update points mvmd ar4 9COF L INDEX stm 22h ar1 dst b ar1 send data out through McBSPO stm Ox1 ar7 rete iM right channel right channel mvdm QCOF R INDEX ar4 get pointers mvdm QDAT R INDEX ar5 st 324 TapsNum 1 stm 325 bk set circular buffer size stm 1 arO stl a ar5 0 save new data to buffer call firSGL run algorithm mvmd ar5 9DAT R INDEX updates pointers mvmd ar4 9COF R INDEX stm 22h ar1 dst b ar1 send data out through McBSPO stm 0x0 ar7 rete end File fir asm Author FDI Engineering Project SPP01 Kernel Objective Implements a single precision 16 bit data and 16 bit coeficients FIR filter REVISION 8 20 02 i mmregs def firSGL init_FIR def COEF L COEF R DATA L DATA R def DAT L INDEX DAT R INDEX COF L INDEX COF R INDEX def TapsNum 1 ref ReadFLASH DAT L INDEX set 60h COF L INDEX set 61h DAT R INDEX set 62h COF R INDEX set 63h TapsNum 1 set 64h sect BUF L DATA L space 2048 16 reserved for left channel data in sect BUF R DATA R space 2048 16 reserved for right channel data in sect COF_L COEF L space 2048 16 coefficients table for left channel sect COF R COEF R space 2048 16 coefficients table for right channel text 32 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074
41. ficients in the Flash See ATMEL AT25256 EEPROM and AT45DB041A Flash data sheet for further details The AT45DB041A Flash memory is organized into 2048 pages each with 264 bytes In the FIR filter example Appendix A and C each filter coefficient set occupies 3 pages regardless of the number of taps required for the filters so the Flash memory can theoretically accommodate up to 682 filters The coefficient of the first filter are stored in pages O to 2 and the coefficients of the second filter are stored in pages 3 to 5 and so on The linear phase FIR filters for the SPPDM 01 are designed to ensure that the filter coefficients are odd or even symmetric For example with a filter of N taps the coefficients set is c n where n is from 0 to N 1 If c 0 is equal to c N 1 then this is even symmetric If c O is equal to minus c N 1 then this filter is odd symmetric Also N can be odd or even If N is even only the first half of the coefficients i e from c 0 to c N 2 1 need to be programmed into appropriate pages in the Flash memory If N is odd the coefficients from c 0 to c N 1 2 1 must be pro grammed into the Flash memory See the FIR programmed SPP 01 Flash memory map Figure 13 The half filter coefficients are followed by a number of zeros and a message word The sum of taps zeros and message word must be 198 Assuming N is 278 then N 2 is 139 and the number of zeros is 198 139 1 58 All coefficients zeros and the
42. for booting reading flash and communicating with the ADC and DAC Table 4 shows the files classified into 2 categories The modules used in initialization are files that need not be modified and are referred to as SPP Kernel Core Vectors asm and bxintO asm are not used at initialization but are included in the core since they do not need to be modified The Kernel Templates will need to be modified by the user in the development of custom applications The key routine is brintO asm SPP Kernel Core ad1852 asm cs5397 asm flash asm bimQasm S Vedosasm mtbepuasm mibspiasm werasm TABLE 4 Kernel Core and Templates This routine is responsible for the exchange of digital data between the ADC the DAC and the DSP Specifically this routine reads data in the DSP receive registers samples from the ADC and writes data to the DSP transmit registers samples to the DAC It is from this routine that user specific algorithms are called The SPP 01 kernel comes with the following files a Source files of the kernel s core routines CASPPO01 Kernel Core CASPPO01 Kernel Core ad1852 asm CASPPO01 Kernel Core cs5397 asm CASPPO01 Kernel CoreWoxintO asm CASPPO01 Kernel Core flash asm CNSPPO01 Kernel CoreNnit bspO asm CASPPO1 Kernel CoreWnit bsp1 asm CASPPO01 Kernel Core vectors asm CNSPPO01 Kernel Core wppr asm The user will modify these templates CASPPO1 Ker
43. g for a given channel can occur upon the reception of the last bit When two chan nels are being processed the processing must complete approximately 500 nanoseconds before the reception of the next BRINTO interrupt to ensure that the data can be clocked in and out correctly During dual channel operation there are approximately 9 microseconds available for pro cessing The Output Flag Pin XF on the SPP 01 see Figure 5 Section 2 1 can be used to observe the algorithm timing on an oscilloscope For example XF can be set upon entering a channel and can be cleared upon leaving These processing durations can be compared to the LRCK which is also an output on the SPP 01 A dual channel example is described in Appendix A and C The DSP template is brint asm 11 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com CE SPPDS 01 Development Suites FREQUENCY B DEVICES INC Operations Manual Chapter II SPP 01 Platform Description If only a single channel is needed and processing can be completed in one 9 microsec ond period then the application program should be set up as a two channel system where only one channel is processed This allows the left or the right channel to be used in single channel mode For single channel applications requiring greater than 9 microseconds of processing time the extended processing te
44. h Iz03f80h 0100h 1fffh DARAM 8k data space PAGE 1 SCRATCH RW o200060h 1200020h Scratch Pad RAM DARAMS RWIX 0 0080h I 03f80h On Chip DARAM 8K PREP eee pee okoeio RESTA RE RARER ER ER EN ekdoloekieoleka elei okeieine j specify the output sections FREER PERRIER ERE ESAS ERE EERE AE EERENEEEEERERE REREREEREEEE SECTIONS vectors load DARAM1 PAGE 0 START load DARAM2 PAGE 0 text load DARAM2 PAGE 0 BUF_L load 0x1800 PAGE 1 BUF_R load 0x2000 PAGE 1 COF L load 0x2800 PAGE 1 COFR load 0x3000 PAGE 1 stack load Ox3feO PAGE 1 f wnennnennnnnenens end of link cmd 28 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com FREQUENCY SPPDS 01 Development Suites DEVICES INC Operations Manual Appendix C SPP 01 Code Listings File AD1852 asm Author FDI Engineering Project SPP 01 Kernel Purpose Write 32bit data to AD1852 control register for SPP 01 Revision 8 20 02 Copyright 2002 by Frequency Devices Inc input Register A Used Register B mmregs def init DAC ref wppr initialize AD1852 DAC 5109876543210 init_DAC Id 000000000001b a constrol reg call WriteDAC rpt 10 nop 55432109876543210 Id 1111111111111100b a_ volume left call WriteDAC rpt 10 nop 55432109876543210
45. ific algorithms are working as intended The SDE is connected to the JTAG interface on the SPP 01 board JTAG refers to Tl s scan based emulation and is a superset of the IEEE 1149 1 standard The SDE is connected to the PC s parallel printer port via a DB25 cable The SPP 01 hardware platform is attached to the SPPDB 01 development board which is connected to a PC with a DB9 cable via the RS232 interface FDI s Spectrum Digital CDDS 01 Emulator Serpe XDS510PP or Equiv SPPDB 01 Toll Printer To JTAG on Development Port SPP 01 C O E BNC Connectors Figure 2 SPPDS 01 Development Suite Hardware Configuration See the SPPDB 01 Development Platform datasheet for a detailed schematic The user writes the algorithm on a PC using Tl s CCS The programmer can then download this code into the SDE through the parallel port The SDE is also connected to the SPP 01 via the JTAG The Algorithm can be tested single stepped and run in real time Upon successful testing of the code the cus tomer can then burn the code into the EEPROM and load the coefficient files into the flash memory on the SPP 01 via the serial interface on the SPPDB 01 using the SPPDB 01 programmer software contained on the CDDS 01 Field programmability may be added to the SPP 01 application by building the circuit shown in Appendix D Figure 13 This circuit emulates the SPPDB 01 development board and permits field
46. in Appendix C example file link cmd This file includes assembler directives The 5402 scratch pad is located from 0x60 to Ox7F and is never used by the kernel However the enclosed FIR example program does utilize the following scratch pad locations 0x61 0x62 0x63 0x64 and 0x65 The stack is located from Ox3fe0 to the end of memory Ox3fff Although this 32 word stack is large enough for most applications the user can make it larger by modifying usect stack 1Fh 15 in main asm and stack load Ox3feO PAGE 1 in link cmd The interrupt vector table is placed at locations 0x80 to Oxff The FIR example code is started at Ox100 and can extend to Ox17ff which are 5 8k words of program space The kernel uses 0 34k words of this space so there are 5 5k words of space available for user specific code For each channel there are 4k words of space available for input data and coefficients See link cmd for detail e L L 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com gt SPPDS 01 Development Suites lt FREQUENCY Se DEVICES INC Operations Manual Chapter III SPP 01 Custom Applications 3 1 Developing Custom Applications The SPP 01 kernel is designed to handle all of the following tasks initializing the DSP enabling it bringing data in and sending data out This includes the two serial ports
47. mplate must be used The extended processing template doubles the available processing time to 18 microseconds To do this the left channel uses the processing normally allocated to the right channel Since each DAC channel normally expects a digital word every 10 8 microseconds see Figure 6 Section 2 2 the processing must be modified using the single channel template The template executes the following upon the rising edge of LRCK the BXINTO is trig gered bxint asm sets the right channel next flag FALSE to indicate the next receive interrupt will be the result of the last bit of the left channel clocking in When the BRINTO interrupt occurs the left channel data is read Left channel processing continues with interrupts enabled so that the processing can continue through the next interrupt which will correspond to the last bit of the right channel being clocked in Upon completion the data is sent to the transmit register 2 3 Initialization of the Serial Port 0 as an I2S Slave The Serial Port 0 is dedicated to communicating with the ADC and DAC This port is con figured as the slave in an I2S protocol which uses four digital lines to exchange data between the ADC DAC and DSP The ADC provides a SCLK for clocking the sampled data into the DSP This same clock is used to send the processed data into the DAC The LRCK also generated by the ADC provides the interrupts to the DSP for distinguishing between the two channels The third
48. n software into the kernel the SPP 01 also pro vides complete flexibility to pick and choose among the kernel elements A single precision FIR filter algorithm is included as an example of how to develop user specific DSP algorithms See Appendix A and C Using this example enables users to quickly develop their own software The Signal Processing Platform Development Suite SPPDS 01 allows users to develop Digital Signal Processor DSP software to run on SPP 01 hardware LLLLa CELER GM RC IM 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com gt gt SPPDS 01 Development Suites FREQUENCY ii DEVICES INC Operations Manual Chapter Introduction The SPPDS 01 Development Suite includes SPP 01 Dual Channel Signal Processing Platform SPPDB 01 Development Board Hardware for the SPP 01 CDDS 01 SPPDS 01 Development Software that includes example programs utilities documentation and this Operations Manual SPPDF 01 FIR Filter Design Suite utilizes SPP 01 and SPPDB 01 hardware along with CDDF 01 software CDDF 01 Contains o The Filter Coefficient Generator FCG A MatLab compatible FIR GUI linked to the MatLab engine V5 3 or V6 0 and the FIR filter development object code o The Filter Coefficient Loader FCL A tool that translates MatLab generated coeffi cient files into correc
49. nel Templates CASPPO1 Kernel Templates main asm CASPPO1 Kernel Templates WorintO0 asm CASPPO1 Kernel Templates link cmd Ub 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com FREQUENCY SPPDS 01 Development Suites DEVICES INC Operations Manual i Chapter III SPP 01 Custom Applications b FIR filter examples are included in the SPPDS 01 Development Suite See Appendix A and C These files implement a low pass FIR filter on channel one and band pass filter on channel two This directory when combined with the files of the core forms a CCS project Among these files coeff bin is a binary file that includes the low pass and band pass filter coefficients The reason this example is included is to give the user familiarity with developing SPP 01 applications CNSPPO01 Kernel Example App Specific Files CASPPO1 Kernel Example App Specific Files main asm CASPPO1 Kernel Example App Specific Files firasm CASPPO1 Kernel Example App Specific Files coeff bin c An executable file created by the FIR example is also included This is useful when start ing out to ensure that the hardware SPP 01 and SDE emulator and the software are in working order The program takes the left channel data and processes it through a low pass digital filter with a 0 01dB cut off of approximately 3000 Hz and a 96cB stop of approximately 3700Hz Th
50. nel to accept coefficients created in MatLab utilizing the SPPDF 01 FIR utilities contained on the CDDF 01 CD B 2 SPPDF 01 The SPPDF 01 is an FIR digital filter design and implementation suite designed to be used in conjunction with MatLab V 5 3 or V 6 0 The software on the CDDF 01 CD is divided into two parts 1 The Filter Coefficients Generator FCG Software provides tools for the generation of sets of coefficients for single or multiple filters over a predefined bandwidth The software pro vides data to produce a signal representation in the frequency domain It is designed to allow the user to add or modify frequency selective types of FIR filters such as low pass high pass band pass and band stop filters 2 The Filter Coefficients Loader FCL Software provides the mechanisms to perform the following functions interfacing loading communicating translating and formatting The software is a communication translation programming interface that loads single or multi ple sets of coefficients for different filter types into an SPP 01 using an SPPDB 01 devel opment board NOTE SPPDF HEX is a file provided on the CDDS 01 CD in the SPPDB 01 program folder This file represents an FIR filter algorithm program used with the SPPDF 01 FIR filter development suite The SPPDF HEX file can be programmed or written into the SPP 01 EEPROM by the SPPDB 01 program utility so the SPPDS 01 user can use the FIR filter as in the SPPDF
51. oop for polling SARA 02h Poll RRDY AR5 A Get received word ar5 b get remaining 16 bit word 25 Locust St Haverhill e mail sales freqdev com Web Address http www freqdev com 4O 2 ooo ooo Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 YS SPPDS 01 Development Suites Se DEVICES INC Operations Manual Appendix D SPP 01 Field Programmability SPP 01 s contain on board EEPROM and Flash memories are SPI compatible and may be field programmed if the user integrates a Serial Peripheral Interface into his application The Serial Peripheral Interface and Control pins are used to program the EEPROM and the Flash See Figure 11 for the SPI interface diagram and the SPP 01 data sheet for pin locations 1 SPI Programming Interface EMU1 OFF SPI_CS_FLASH SPI_CS_EEPROM SPI WP SPI SCK SPI SI SPI SO DGND EEPROM Figure 11 SPP 01 SPI Interface Block Diagram A a 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com gt SPPDS 01 Development Suites N DEVICES INC Operations Manual Appendix D SPP 01 Field Programmability 2 SPI Pin Descriptions There are a total of 7 signal pins used for in system or field programming All signals require 3 3V volts The DGND should be connected to Programmer s ground DGND
52. orm combines 24 bit A D and D A convert ers a powerful DSP 4 megabits of flash memory and 256k bits of EEPROM making it well suit ed for a broad range of audio bandwidth applications from 10 Hz to 20 kHz 1 1 Hardware Description The SPP 01 hardware uses a 24 bit ADC to digitize both analog input channels and transfers the digitized data to buffers in DSP memory for processing The processed data is then trans ferred to a 24 bit DAC where it is converted back to an analog signal The SPP 01 will operate utilizing either normal precision or extended precision depending on the particular requirements of a given application The SPPDS 01 Development Suite also provides the option of single channel processing which doubles the SPP 01 processing power A JTAG interface is provided for access to the SPP 01 platform hardware If desirable multiple SPP 01 platforms can be used by taking advantage of the MASTER SLAVE option which with an external driver allows the user to sync up several slave SPP 01 s with a master The SPP 01 software kernel is designed for ease of use allowing the end user to easily link application specific DSP algorithms The kernel implements DSP initialization ADC and DAC ini tialization serial port configuration interrupts and saves the contents of the registers allowing the design engineer to link the application specific DSP software to the existing SPP 01 software kernel For designers who wish to insert their ow
53. ottom Of Stack IPTR relocate vector to 0x0080 MP MC 0 on chip ROM addressable OVLY 1 prog and data memory overlap DROM 0 on chip ROM not mapped to data config HPI8 as output PINs Flash CS DAC RST ADC CS DAC CS not used SPI HDO HD1 HD2 HD3 HD4 HD5 ANP HD6 ADC DAC CDIN buffer control HD7 ADC SDATAM buffer control stime delay make ADC out of reset set current channel to left 27 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales 9freqdev com Web Address http www freqdev com gt SPPDS 01 Development Suites FREQUENCY CE i DEVICES INC Operations Manual Appendix C SPP 01 Code Listings File link cmd i Author FDI Engineering Project SPP01 Kernel Objective linker cmd file for spp01 REVISION 8 21 02 FEA SEE ESE ENTE REEL ERT SEAR RSE NER NOR oe SLL eR NTN See J Copyright 2002 Frequency Devices Inc PERSIE RARE EAREREERSEREAE SER EEREERRE SERENE NER ERARER EERE HERA xj m Kernel example map creat an output map o Kernel example out name the COFF output file RRR heieeiee ie edokekekdekoieek ole eoe ocio ekle oleo i specify the memory configurations PERREREREESREREREREEERESRERERERERERERERASERERE RENEE SER ER EE MEMORY program space PAGE 0 DARAM1 RWIX o200080h I 00080h for interrupt vect DARAM2 RWIX o200100
54. rchased separately from the SPPDS 01 Development Suite SPPDS 01 Development Suite SPP 01 platform SPPDB 01 hardware CDDS 01 software ker nel SPPDF 01 FIR Filter Development Suite library and operations manual Tl s Texas Instruments ee ee 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com
55. represents the digital ground of SPP 01 EMU1 OFF When set low all output drivers of the DSP become high impedance When the DSP is disconnected from the EEPROM and Flash an external processor may then access both memories without conflict During in system programming the EMU1 OFF pin must be set low SPI CS FLASH Chip select Signal for the Flash Set Low when programming Flash SPI CS EEPROM Chip select signal for the EEPROM Set Low when programming EEPROM SPI SO Serial data output from the memory Shared by the EEPROM and the Flash SPI SI Serial data input to the memory Shared by the EEPROM and the Flash SPI CLK SPI Clock input to the memory Shared by the EEPROM and the Flash SPI WP Write Protect Shared by the EEPROM and Flash When set low all write operations are invalid During programming this signal must be set high 3 Timing Issues To program the EEPROM follow these steps a EMUT OFF 0 Disable the DSP SPI WP 1 Disable write protect SPI CS FLASH l The Flash is not selected SPI CS EEPROM 2 0 The EEPROM is selected b ProgramEEPROM please refer to the AT25256 Datasheet from ATMEL for detailed information C SPI_ WP 0 enable write protect EMUT OFF 1 enable the DSP To program the Flash please follow these steps d EMU1 OFF 0 Disable the DSP SPLIWP 1 Disable write protect SPI_CS_EEPROM 1 The EEPROM is not selected SPI CS FLASH 0 The Flash is selected e P
56. rogramFlash please refer to the AT45DB041A Datasheet from ATMEL for detailed information f SPI JWP 0 enable write protect EMUT OFF 1 enable the DSP 42 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com gt SPPDS 01 Development Suites FREQUENCY Se DEVICES INC Operations Manual Appendix D SPP 01 Field Programmability 4 Memory Map Illustration for a Programmable FIR Filter The SPPDF 01 Filter Development Suite software resides on the CDDF 01 CD This software provides utilties that use the MatLab engine to create and load coefficients into a dual channel double precision FIR filter programmed into an SPP 01 FIR sppdf hex program file on CDDS 01 The coefficient memory addresses are mapped for the Flash memory by the FIR algorithm The FIR program resides in the EEPROM and coefficients loaded into the Flash control the fre quency response of the FIR filter Each channel can have its own unique coefficients The DSP reads a 32 bit coefficient set from Flash memory for each channel according to the user s selec tion The maximum number of taps is 300 Any type of FIR filter such as low pass band pass multi step can be implemented with the DSP algorithm This section gives some guidelines for those users who may want to use the SPP 01 FIR filter program example EEPROM but change the filter coef
57. t format for writing into the SPP 01 for FIR filter development o The SPPDF 01 Manual data sheets and library files DB9 RS232 Cable See Figure 1 PROVIDED BY CUSTOMER Personal Computer Spectrum Digital Emulator SDE Model XDS510PP w DB25 and JTAG cables No other emulator has been tested Code Composer Studio CCS Tl s C54x specific version 1 20 or later e MatLab Software version V5 3 or V6 0 SIGNAL PIN PIN SIGNAL Figure 1 DB9 RS232 Cable Connection for SPPDB 01 4 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com Qs SPPDS 01 Development Suites lt FREQUENCY DEVICES INC Operations Manual Chapter Introduction 1 2 Set Up Algorithm Development is done using the SPP 01 hardware and software Tl s CCS and the SDE CCS must be installed and set up to use the SPPDS 01 Development Suite See the CCS manual for installation and setup of CCS and the SDE manual for installation and setup of the emulator The SDE must be compatible with a 1 8 volt core and 3 3 volt peripherals Figure 2 depicts the elements in the SPPDS 01 development environment The SDE in con junction with CCS provides access to the DSP for debugging single stepping use of breakpoints etc The SDE also allows you to run your software so measurements can be made to ensure that application spec
58. ter SPCR1 sub set 00h Serial Port Control Register 1 SPCR2 sub set Oth Serial Port Control Register 2 RCR1 sub set 02h Recieve Control Register 1 RCR2 sub set 03h Recieve Control Register 2 XCR1 sub set 04h Transmit Control Register 1 XCR2 sub set 05h Transmit Control Register 2 SRGR1 sub set 06h Sample Rate Generator Register 1 SRGR2 sub set 07h Sample Rate Generator Register 2 PCR sub set OEh Pin Control Register def init bsp1 SCLKDIV set 199 ithe divisor for the serial clock rate of SPI init bsp1 stm SPSA1 ar4 ar4 point to SPSA1 st ZSPCH1 sub AR4 Sub bank Address SPSA SPCR1 st 1800h AR4 Reset xmiter and enable clkstp 11b st XCR1 sub AR4 Set Sub bank Address to XCR1 st 0A0h AR4 Select 32 bit packets for xmit st XCR2_sub AR4 Set Sub bank Address to XCR2 st 1h AR4 Select 1bit delay for xmit st SPCR2_sub AR4 Set Sub bank Address to SPCR2 st 0200h AR4 Reset rcvr and clk gen FREE 1 1 above should be tx not rcvr st ZRCHR1 sub AR4 Set Sub bank Address to RCR1 st 0A0h AR4 Select 32 bit packets for rcv st RCR2_sub AR4 Set Sub bank Address to RCR2 st 1h AR4 Select 1bit delay for rcv st ZSRGR1 sub AR4 Set Sub bank Address to SRGR1 37 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com 7
59. velopment Suite Before creating a project make sure CCS has been installed Also make sure the emula tor software has been installed A Connect the emulator to the PC and the JTAG connector on the SPP 01 B Connect power both 5 volts and 15 volts to the SPP 01 by connecting them to the SPPDB 01 development board See Figure 2 Section 1 2 C Power up the SDE emulator and the SPPDB 01 Optionally a signal generator can be connected to the SPP 01 analog inputs through the BNCs on the SPPDB 01 development board A scope may be connected to the SPP 01 analog and or digital outputs or the clock signals Assuming that CCS was installed and configured correctly start CCS If the CCS window does not come up recheck the configuration in the CCS setup utility or contact Tl s Technical Support 3 3 Creating Your Own Application It is assumed that all user specific applications will be written in 54x assembly language The steps in creating user specific applications include A Write a C54x assembly language algorithm suitable for calling by the kernel see the section on brint asm B Modify the brint asm template so that it calls the user specific algorithm C Write an initialization routine which will probably be called from main asm which is unique or required for the user specific algorithm Optional D Modify the memory map link cmd Optional E Create a CCS project based on the user specific routines and
60. xample Figure 7 3 5 2 Extended Precision If extended precision processing is required then the above two instructions should be replaced with Id 0x20 16 a or 0x21 a which places the entire 24 bit sample into the a accumulator left justified The instruc tions should be replaced in both the left and the right channels if extended precision is required in both channels Note there is no requirement that the left and right chan nels be processed with the same precision 3 6 Writing the Serial Port Transmit Register s For writing data to the DAC use dst b ari where ar1 must be pointing to the McBSPO tx register i e memory location Ox22 Note that this instruction writes 32 bits into the registers i e 0x22 and 0x23 as required for transmission to the DAC For single precision use the 16 bits should be in the high portion of the accumula tor 20 25 Locust St Haverhill Massachusetts 01830 Tel 800 252 7074 978 374 0761 FAX 978 521 1839 e mail sales freqdev com Web Address http www freqdev com gt SPPDS 01 Development Suites lt FREQUENCY Se DEVICES INC Operations Manual Chapter III SPP 01 Custom Applications 3 7 Creating a Boot Table The following ascii file or a modified version of it should be used in conjunction with CCS s hex conversion utility to generate a file that is compatible with the EEPROM on the SPP 01 The hex command executed from DOS is hex500 fn cmd
Download Pdf Manuals
Related Search
Related Contents
SETUP FOR ACCESSORY PLOTTING KITS MOBY - Habitat Automatisme E-M5DVR-3 - EAGLE Technology 電話録音(通話録音)について はじめに 「ぱそって 1 Contents Chapter 1 Introduction Resumo do aparelho 第29期 取扱説明書 ION Batman Games User's Manual Copyright © All rights reserved.
Failed to retrieve file