Home

SPM186420 SPM176430 SPM176431 dspModule™ User`s Manual

image

Contents

1. 31 16 15 2 1 0 CNT Rsvd START RW 0000 0000 0000 0000 R 0000 0000 0000 00 RW 00 Field Description CONT Transfer count in bytes START Start master read or write START 00 transaction not started flush current transaction START 01 start a master write START 10 start a master read to prefetchable memory BARO START 11 start a master read to non prefetchable memory BAR1 START returns to 00b after transaction complete Do not change during DMA operation 7 2 2 Monitor Registers 7 2 2 1 CDSPA Register containing the DSP current address during the master transaction 31 0 CDSPA R 0000 0000 0000 0000 0000 0000 0000 0000 Field Description CDSPA DSP s current address during the master transactions 7 2 2 0 CPCIA Register containing the PCI current address during the master transaction 31 0 CPCIA R 0000 0000 0000 0000 0000 0000 0000 0000 Field Description CDSPA PCIs current address during the master transactions 7 2 2 5 CCNT Register containing the current byte count left until the master transaction is completed 31 16 15 0 Reserved CCNT R 0000 0000 0000 0000 R 0000 0000 0000 0000 Field Description CCNT current byte count left SPM1x64xx RTD Embedded Technologies Inc 37 7 3 PCI Master Target Modes In order to support the greatest number of host CPUs the PCI bus of theSPM1x64xx can operate in several different modes Th
2. Byte Address Register Name Initial setup in SPM1x64xx 32MB 128MB 256MB 512MB 0180 0000h EMIFA global control 0008 20A4h 0180 0004h EMIFA CE 1 space control n a n a n a FFFF FFDFh 0180 0008h EMIFA CEO space control FFFF FFDFh 0180 000Ch Reserved Reserved 0180 0010h EMIFA CE2 space control n a 0180 0014h EMIFA CE3 space control n a 0180 0018h EMIFA SDRAM control 5711 6000h 5311 6000h 5B116000h 5B116000h 0180 001Ch EMIFA SDRAM refresh control 0000 0190h 0180 0020h EMIFA SDRAM extension 0005 5CA8h 0180 0024h Reserved 0180 0040h 0180 0044h EMIFA CEl Secondary Control n a 0180 0048h EMIFA CEO Secondary Control n a 0180 004Ch Reserved Reserved 0180 0050h EMIFA CE2 Secondary Control n a 0180 0054h EMIFA CE3 Secondary Control n a Table 6 2 EMIF B Register Settings Byte Address Register Name Initial setup in SPM1x64xx 25 MHz PBCLK out 50 MHz PBCLK out 01A8 0000h EMIEB global control 0009 20A4h 0005 20A4h 01A8 0004h EMIFB CE1 space control 3351 4D10h 01A8 0008h EMIFB CEO space control 83F8 CF1Fh 01A8 000Ch Reserved Reserved 01A8 0010h EMIFB CE2 space control 3351 4D10h 01A8 0014h EMIFB CE3 space control 1181 4610h 01A8 0018h EMIFB SDRAM control n a 01A8 001Ch EMIFB SDRAM refresh control n a 01A8 0020h EMIFB SDRAM extension n a 01A8 0024h Reserved Reserved 01A8 0040h SPM1x64xx RTD Embedded Technologies Inc 53 01A8 0044h EMIFB CE1 Secondary Control
3. D Q ADIO_OUT ADIO_DIR D Q ADIO_ENABLE Q D ADIO_IN Figure 3 3 Digital I O Block Diagram 3 12 2 Advanced Interrupts An Advanced Interrupt block is provided that can generate an interrupt on a match or event The match and event interrupts are across all 7 digital I O The bits can be individually selected When an interrupt is generated the data on all of the ports is latched into the Capture registers Bits are tested regardless of whether a pin is an input or output A Match interrupt is generated when the following expression is true for ALL bits y PORT y xor COMP y and not MASK y 0 SPM1x64xx RTD Embedded Technologies Inc 21 An Event interrupt is generated when the following expression is true for ANY ports x and bits y Note that the Capture register is updated at every interrupt or event PORT y xor CAPT y and not MASK y 1 When changing interrupt modes the mask register or the compare register the interrupt should first be disabled by setting FPGA_ADIO_INT_MODE to DISABLED This will clear the de bounce filter and prevent the loss of an interrupt or a spurious interrupt If the interrupt is left enabled and the settings of the aDIO is changed from one set of conditions that cause an interrupt to another set of conditions that cause and interrupt before the de bounce filter can react the second interrupt will be lost 3 12 3 Interrupt De boun
4. 5 2 1 11 FPGA DSP TIMEO SEL FPGA DSP TIMEI SEL FPGA DSP TIME2 SEL This register is used to select the input to the three timers on the DSP There is one register for each timer 15 3 2 0 Reserved SEL R 0000 0000 0000 0 RW 4000 Field Description SEL Selects source for DSP timer SEL 000 Timer input is set to 0 SEL 001 Timer input is set to 1 SEL 010 PB_Timer 0 is sent to timer input SPM186420 only SEL 011 PB_Timer 1 is sent to timer input SPM186420 only SPM1x64xx RTD Embedded Technologies Inc 38 Field Description SEL 100 Reserved SEL 101 SyncBus 0 is sent to timer input SEL 110 SyncBus 1 is sent to timer input SEL 111 SyncBus 2 is sent to timer input 5 2 1 12 FPGA_PB_TIME0_SEL FPGA PB TIMEI SEL SPM186420 only This register is used to select the source for the two PlatformBus timer outputs There is one register for each timer SPM186420 only 15 3 2 0 Reserved SEL R 0000 0000 0000 0 RW 000 Field Description SEL Selects source for the PlatformBus timer output SEL 000 Timer output is set to 0 SEL 001 Timer output is set to 1 SEL 010 DSP Timer 0 is sent to timer output SEL 011 DSP Timer 1 is sent to timer output SEL 100 DSP Timer 2 is sent to timer output SEL 101 SyncBus 0 is sent to timer output SEL 110 SyncBus 1 is sent to timer output SEL 111 SyncBus 2 is sent to ti
5. 15 7 6 0 Reserved MASK 6 0 R xx Xxxx RW 00 0000 Field Description MASK 0 Pin tested for interrupt 1 Pin is ignored for interrupt 5 2 1 37 FPGA_ADIO_COMP SPM176431 Only This register sets the compare value for interrupt on Match There is one bit for each aDIO pin When changing the compare register be sure to first disable the interrupt to prevent losing an interrupt 15 7 6 0 Reserved COMPARE 6 0 R xx XXXX RW 00 0000 Field Description COMPARE 0 Interrupt when pin is low 1 Interrupt when pin is high 5 2 1 38 FPGA ADIO CAPT SPM176431 Only This register captures the value of the aDIO port whenever an interrupt occurs There is one bit for each aDIO pin 15 7 6 0 Reserved CAPTURE 6 0 R xx XXxx R 00 0000 Field Description CAPTURE 0 Pin was low at interrupt 1 Pin was high at interrupt SPM1x64xx RTD Embedded Technologies Inc 50 5 2 1 39 FPGA COM MODE SPMI76431 Only This register sets the mode for the COMM Ports When in RS 422 485 mode the output drivers are controlled by the RTS signal 15 6 5 4 3 2 1 0 Reserved COM2 1 0 Reserved COM 1 1 0 R 0000 0000 00 RW 00 R 00 RW 00 Field Description COMn 00 Port is disabled 01 Reserved 10 RS 232 Mode 11 RS 422 485 Mode 5 2 1 40 FPGA_AUDIO_MODE SPM176431 Only Select between line level output and headphone o
6. 0 RC 0 RC 0 SPM1x64xx RTD Embedded Technologies Inc 42 Field Description PCI_RST PCI Reset Interrupt Status Reads PCI_RST 0 A PCI reset has not occurred PCI_RST 1 A PCI reset has occurred Writes PCI_RST 0 No Effect PCI_RST 1 Clears interrupt condition DBELL DSP Doorbell Interrupt Status Reads DBELL 0 PCI Doorbell register contains all zeros DBELL 1 PCI Doorbell register does not contain all zeros Writes DBELL 0 No Effect DBELL 1 Clears interrupt condition MAILO MAIL1 MAIL2 MAIL3 Mailbox Register Interrupt Status Reads MAIL 0 The Mailbox has not been written to MAIL 1 The Mailbox has been written to Writes MAIL 0 No Effect MAIL 1 Clears interrupt condition COMI COM2 Interrupt from the COM port UART Reads COM 0 A COM port interrupt has not occurred COM 1 A COM port interrupt has occurred Writes COM 0 No Effect COM 1 Clears interrupt condition ADIO Interrupt from the Advanced Digital I O block Reads ADIO 0 An aDIO interrupt has not occurred ADIO 1 An aDIO interrupt has occurred Writes ADIO 0 No Effect ADIO 1 Clears interrupt condition FLASH_RDY Flash Ready Interrupt status An interrupt is generated when the Flash device is ready Reads FLASH_RDY 0 A Flash ready interrupt has not occurred FLASH_RDY 1 A Flash ready timer interrupt has occurred Writes FLASH_RDY 0 No Effe
7. PCI Options 1 Slot Selection 0 2 Slot Selection 1 3 PCI Master 4 Four Master PCI bus connector JP4 Reser short DSP in Reset open After Reset pulse generation Reset line inactive High state SW2 DSP Options 1 ROM Boot 2 Flash Write 3 User Switch 3 4 User Switch 4 P CN4 SyncBus Connector CNS McBSP 0 serial port CN6 McBSP 1 serial port CN7 McBSP 2 serial port CN11 LED Connector ISA Bus connector CN8 Power Connector CN9 JTAG Connector CN10 Xilinx Programming Figure 2 2 SPM176430 Connector Locations SPM1x64xx RTD Embedded Technologies Inc PCI bus connector SW2 Master Target JP4 Reset Boot Mode E short DSP in Reset 1 PCI Master open DSP operational 2 ROM Boot 3 Flash Write OB E CN13 COM1 RS232 422 485 CNS McBSP 0 aDIO 4 Four Master CN14 COM2 RS232 422 485 H Q CNI2 Audio port E ISA Bus connector SWI Slot selection Switch CN11 LED Connector CN8 Power Connector CN9 JTAG Connector Figure 2 3 SPM176431 Connector Locations 2 2 Switch Configurations 2 2 1 PCI Configuration Options To install the dspModule into the stack the PCI Slot Number must be configured correctly This is done by the PCI Slot Selector located at SW1 There are four possible PCI Slot Numbers 0 3 Each PCI devi
8. Pin is low 1 Pin is high 5 2 1 33 FPGA ADIO DIR SPM176431 Only This register sets the direction of the pins on the aDIO port There is one bit for each aDIO pin 15 7 6 0 Reserved ADIO_DIR 6 0 R xx XXXx RW 00 0000 Field Description ADIO_DIR 0 Pin is an input 1 Pin is an output 5 2 1 34 FPGA_ADIO_ENABLE SPM176431 Only Select between aDIO and McBSPO for CNS 15 1 0 Reserved ENABLE R 0000 0000 0000 000 RW 1 Field Description ENABLE 0 McBSPO is selected 1 aDIO is selected 5 2 1 35 FPGA ADIO INT MODE SPM176431 Only Sets the interrupt mode for the aDIO port When changing interrupt modes be sure to first disable the interrupt 15 3 2 1 0 Reserved DEBOUNCE INT SEL 1 0 R XX XXXX RW 0 RW 00 SPM1x64xx RTD Embedded Technologies Inc 49 Field Description DEBOUNCE Selects the amount of debounce for the interrupt 0 20ms 1 40 ns fast interrupts INT_SEL Selects the interrupt mode 00 Disabled 01 Reserved 10 Match 11 Event 5 2 1 36 FPGA_ADIO_MASK SPM176431 Only This register is used to mask bits from the Match and Event interrupts Note that by default output pins are also tested for interrupts There is one bit for each aDIO pin When changing the mask register be sure to first disable the interrupt to prevent losing an interrupt
9. pulled up on SPM186420 Ground Power Power Power Description reset signal Can be activated from hardware or software Read active cycle Signal Write Enable signal Platform Output Enable signal Platform Select Enable 1 Platform Select Enable 2 Platform Ready Interrupt signal Interrupt signal Bus clock 25 50 100MHz Timer Output 0 the buffered TOUTO signal Timer Output 1 the buffered TOUTI signal Timer Input 0 Timer Input 1 Ground 3 3V Maximum load current 1 2A Supplied by the PCI bus power 5V Maximum load current 1 2A Supplied by the PCI bus power 12V Max current 200mA RTD Embedded Technologies Inc of lines 10 Description of lines ae en Supplied by the PCI bus power 12V Max current 200mA 1 Supplied by the PCI bus power Leave unconnected 1 Leave unconnected 1 Table 4 2 PlatformBus Signals by Connector Pin CNI KEY PTINPO 40 39 PVCC3 PBCLK PTOUTI 38 37 PRESETL GND PTOUTO 36 35 PINT7H PCE2L PVCC3 34 33 PINT6H PWEL PRDYH 32 31 PREL PA15 GND 30 29 GND PA11 PAI6 28 27 PA17 GND PA12 26 25 PAI PA7 PAS 24 23 PA9 PA3 PA4 22 21 PA5 PD31 PD28 20 19 PVCCS PD27 PD24 18 17 PD29 PVCCS PVCCS 16 15 PD25 PD23 PD20 14 13 PD21 PD19 PD16 12 11 PD17 PD13 PD14 10 9 GND PD9 PD10 EXE PDI5 PDS GND E E PD11 PDI PD6 4 3 PD7 GND PD2 SICH PD3 4 5 PlatformBus Timing Diagrams The operat
10. EMUO 14 EMU 2 3 5 Power Connector CNS The SPM1x64xx can be powered externally using this connector The 5V power is the only one used on this board The 12V 12V and 3 3V power is used to supply the PlatformBus ISA bus and PCI bus This connector can also be used to power external devices Table 2 7 Power Connector Pin Assignments GND No Connection No Connection GND GND n c 2 3 6 aDIO Advanced Digital I O CN5 SPM176431 Only The pin out of the aDIO ports is show in Table 2 8 Table 2 8 aDIO Pin Assignments aDIO 6 2 GND aDIO 5 4 aDIO 4 aDIO 3 6 GND aDIO 2 8 aDIO 1 aDIO 0 10 GND 2 3 7 COM RS 232 422 485 Serial Ports CN13 amp CN14 SPM176431 Only Two standard PC serial ports are provided that can be configured as RS 232 422 485 When in RS 422 485 mode the RTS signal controls the enable for the drivers The pin assignments for RS 232 mode are shown in Table 2 9 and the pin assignments for RS 422 485 mode are shown in Table 2 10 Table 2 9 RS 232 Pin Assignments DCD 2 DSR RXD 4 RTS TXD 6 CTS DTR 8 RI GND 10 GND Table 2 10 RS 422 485 Pin Assignments Reserved 2 Reserved RXD 4 TXD SPM1x64xx RTD Embedded Technologies Inc 12 Reserved RI 2 3 8 Audio AC97 Audio Input and Output CN12 SPM176431 Only The pin out of the Audio port is show in Table 2 11 The audio output can be selected as either Line level or Headphone level Line level is 1VRMS
11. FPGA MAIL 2 H Mailbox 2 High 0x6C08 006C FPGA MAIL 3L Mailbox 3 Low 0x6C08 006E FPGA MAIL 3 H Mailbox 3 High 0x6C08 0070 FPGA DOOR PS DSP to PCI Doorbell Set Low 0x6C08 0072 FPGA DOOR P DSP to PCI Doorbell Set High 0x6C08 0074 FPGA DOOR P DSP to PCI Doorbell Clear Low 0x6C08 0076 FPGA DOOR P DSP to PCI Doorbell Clear High 0x6C08 0078 PCI to DSP Doorbell Set Low 0x6C08 007A FPGA DOOR D PCI to DSP Doorbell Set High 0x6C08 007C FPGA DOOR D PCI to DSP Doorbell Clear Low 0x6C08 007E S_ SEN C FPGA DOOR DS S_ LC m CN FPGA DOOR D PCI to DSP Doorbell Clear High 0x6C08 0080 FPGA STATUS Signal Statue 0x6C08 0082 FPGA SCRATCH 0 Scratchpad 0 0x6C08 0084 FPGA_SCRATCH_1 Scratchpad 1 0x6C08 0086 FPGA_SCRATCH_2 Scratchpad 2 0x6C08 0088 Reserved 0x6C08 008C 0x6C08 0090 FPGA_ADIO_INOUT ADIO Input and Output SPM176431 Only 0x6C08 0092 FPGA_ADIO DIR ADIO Direction SPM176431 Only 0x6C08 0094 FPGA_ADIO_ENABLE ADIO Enable SPM176431 Only SPM1x64xx RTD Embedded Technologies Inc 33 Table 5 3 FPGA Memory Map Address Name Description 0x6C08 0098 FPGA_ADIO_INT_MODE ADIO Interrupt Mode SPM176431 Only 0x6C08 009A FPGA_ADIO_MASK ADIO Mask SPM176431 Only 0x6C08 009C FPGA_ADIO_COMP ADIO Compare SPM176431 Only 0x6C08 009E FPGA ADIO CAPT ADIO Capture SPM17
12. IIR UR WERE TCU A TEE 16 3 4 SERIAL PORTS ieiunio atc n eis e at eri cid eri 16 3 4 1 MEBS P2 A dd acta alive 16 3 5 ELASHMEMOR Vi is 17 3 5 1 Memory REGIONS ii e Pee ER vede eet rane en eee dE 17 309 2 hin pA 17 3 6 SYNCBUS SPM176430 AND SPM186420 ONLY 17 3 7 RESET STRUCTURE ite n dee ie Sed xia utei eeiam 18 3 8 WATCHDOG RE 19 3 8 1 Watchdog Timer EE 19 3 8 2 Watchdog Timer Bit t t e eerte ee 19 3 9 INTERRUPTS ias 19 3 10 PROCESSOR SPEED DETECTION ccoo aida diia 20 3 11 RS 232 422 485 SERIAL PORTS SPM176431 ONLY 20 3 11 1 Serigh POFt EE EE 20 3 11 2 E Mod e EE Bi RE BRERA BRA 20 3 11 3 RS422 or RS485 Serial Port eis ENNEN eee e ia dic 20 3 12 ADIO SPM176431 ONLY 21 3 12 1 Internal Architecture deals AA a beh dd eng 21 3 12 2 Advanced Int rrupts Ee ia dira 21 3 12 3 Interrupt De bo nce aie KOENEN EEN N ERKE Ea EEE 22 3 13 AC97 AUDIO SPM176431 ON 22 3 13 1 Ter 22 3 13 2 AUdIO DAA e o AN hah a da ee cba e SL 23 3 13 3 AC97 Initialization RR 23 INTERFACING I O SYSTEM VIA THE PLATFORMBUS SPM186420 ONLY ccssssscssssseeees 24 4 1 THE PLATFORMB OS eode ate WA as ene ae A dele 4 2 EMIF TO PLATFORMBUS BRIDGE cccccccccecececececececececececececccccecceececeeeeecececececececeseseseeeeeress 4 3 CHANGING THE PLATFORMBUS CLOCK RATE 4 4 PLATFORMBUS SIGNAL DESCRIPTION 4 5 PLATFORMBUS TIMING DIAGRAMS eee eee
13. Interface SDRAM Asynchronous RS 232 We 422 485 SDRAM 128 256MB Control iO RARE Logic Figure 1 3 Block diagram of SPM176431 When the ROM Boot Switch is off the system after power up is in the RESET state waiting for the loading of a program to the on chip memory via the PCI bus interface All of the memory resources of the DSP can be accessed from the PCI bus Thus the memory at zero address on chip RAM can be accessed After loading the program into the memory at address zero you can start the program operation using the DSPINT command that wakes up the DSP from RESET When the ROM Boot switch is on you can use the Flash memory as a boot device Flash can be programmed from the DSP or from the PCI bus A watch dog timer can be used as an automatic RESET generator in critical applications It can be used with the Flash memory boot Data transfer over the PCI bus and the DSP can be done by several methods e Host CPU as a PCI bus master CPU can directly access the DSP s internal memory or the DSP s external memory or the memory off of the Platform bus without using DSP resources e DMA controller inside DSP chip as a PCI master DSP and CPU resources are not used e External device as a PCI bus master The external device can directly access the DSP s internal memory or the DSP s external memory or the memory off of the Platform bus without using DSP resources There are Interrupt connections between the DSP an
14. MAIL1 Reads MAIL2 MAIL 0 The Mailbox has not been written to MAIL3 MAIL 1 The Mailbox has been written to Writes MAIL 0 No Effect MAIL 1 Clears interrupt condition PB_INT6H PlatformBus Interrupt 6 7 Status These signals generate an active high PB_INT7H interrupt Reads PB_INTH 0 A PlatformBus interrupt has not occurred PB_INTH 1 A PlatformBus interrupt has occurred Writes PB_INTH 0 No Effect PB_INTH 1 Clears interrupt condition PB_TINO PlatformBus Timer Input Interrupt Status The timer inputs generate PB_TIN1 an active high interrupt Reads PB_TINO 0 A PlatformBus timer interrupt has not occurred PB_TIN1 1 A PlatformBus timer interrupt has occurred Writes PB_TINO 0 No Effect SPM1x64xx RTD Embedded Technologies Inc 44 Field Description PB TINI 1 Clears interrupt condition FLASH_RDY Flash Ready Interrupt status An interrupt is generated when the Flash device is ready Reads FLASH_RDY 0 A Flash ready interrupt has not occurred FLASH_RDY 1 A Flash ready timer interrupt has occurred Writes FLASH_RDY 0 No Effect FLASH_RDY 1 Clears interrupt condition SYNCO SyncBus Interrupt Status An interrupt is generated on the positive SYNCI edge of the SyncBus signal SYNC2 Reads SYNC 0 A SyncBus interrupt has not occurred SYNC 1 A SyncBus interrupt has occurred Writes SYNC 0 No Effect SYNC 1 Clears interrupt condition
15. NOTE Disabling the write commands also disables the auto select command which is used to identify the flash device 3 5 1 Memory Regions There are two memory regions associated with the Flash Device The region CE1 is located from 0x6400 0000 to 0x641F FFFF The region CE2 is located from 0x6800 0000 to 0x681F FFFF For the 4 MB Flash device the lower sectors are mapped to CE1 and the upper sectors are mapped to CE2 For the 2 MB device the entire device is mapped to both locations Note that there are several images of CEl repeated from 0x6400 0000 to 0x643F FFFF so the entire 4 MB flash device can be accessed from 0x6760 0000 to 0x681F FFFF 3 5 2 Booting There are two methods for booting the DSP When the Flash Boot switch is turned off the DSP will power up in an internal reset mode The PCI interface is then used to load a program into the DSP The DSPINT bit of the HDCR register is then set and the DSP will start executing from address 0x0000 0000 When the Flash Boot switch is turned on the DSP will boot from flash The first 1 kB from the CE1 memory region is transferred to internal memory at address 0x0000 0000 The DSP then begins executing from address 0x0000 0000 During flash boot the DSP assumes that an 8 bit flash is used However the flash device on the SPM1x64xx is 16 bits wide Therefore to load a program into Flash only the even bytes can be used 3 6 SyncBus SPM176430 and SPM186420 only The SyncB
16. No N1 22 N1 21 N2 24 Q Z N N LA 1 24 1 23 e Z 1 Qyayaqyayaya NIN NIN Ie IES VI ALA Q Z Q Q Z N N 9 2 o ala T mtr bo 1 Z N f e Z Z N 1 1 oo 110 o S tn aaa zz nlc N2 10 Q Z N NO N1 10 N1 7 N1 12 NI 11 N2 12 2 11 1 14 1 13 2 14 N2 13 N1 18 N1 15 N2 16 N2 17 NI 20 CNI 17 CN2 18 CN2 19 alallala Q Q Q Z Q E alajal ala EE CH k Type Output Input Output High Z Description Platformbus Lword Address Platform Data of lines 16 32 PRESETL SPM1x64xx CNI 37 Output Active Platform Reset buffered version of DSP RTD Embedded Technologies Inc 25 Signal Pin No Type Name PREL CNI 31 Output Active Low PWEL POEL CN2 32 CN2 31 Output Active Low Output Active Low PCEIL CN2 34 Output Active Low PCE2L CN2 33 PRDYH CNI 32 PINT6H CNI 33 PINT7H CNI 35 PBCLK CN2 37 Output Active Low Input Active High pulled up on SPM186420 Input Active High pulled up on SPM186420 Input Active High pulled up on SPM186420 Output Clock PTOUTO CNI 36 Output Clock PTOUTI CNI 38 PTINPO CNI 40 PTINPI CN2 40 9 PGND CNI PVCC3 PVCC5 PVCCI2 CN2 36 SPMIx64xx 26 Output Clock Input Clock pulled up on SPM186420 Input Clock
17. PCI host The doorbell registers generate an interrupt when any bit is set Bits are set by writing a 1 to the appropriate location in a set register Bits are cleared by writing a 1 to the appropriate location in a clear register Reading from either location returns the value of the doorbell register There are two doorbell registers the DSP to PCI Doorbell generates a PCI interrupt and the PCI to DSP Doorbell generates a DSP interrupt The Mailbox Registers generate an interrupt when they are written to There are four Mailbox registers all of which can generate a DSP interrupt The Mailbox Register cannot determine if it is being accessed by the PCI host or by the DSP It will generate an interrupt any time it is written to Therefore the DSP must disable the Mailbox interrupt whenever it modifies the Mailbox Register SPM1x64xx RTD Embedded Technologies Inc 15 3 3 4 EEPROM The PCI interface uses an EEPROM to identify the module This EEPROM can also be used to store user information The total size of the EEPROM is 256 Words The first 13 words are used for PCI configuration The next 19 are used for system information The reset of the EEPROM is available for the user The user must ensure that the PCI configuration information is not corrupted Because the EEPROM is part of the PCI interface it requires a valid PCI reset in order to operate Therefore the EEPROM should not be used in systems without a host CPU For mor
18. 1 4 4 Master ON Enabled 4 masters on the PCI bus OFF Slot 2 and 3 share arbitration signals SW2 1 ROM Boot ON Boot from on board flash OFF Wait for code to be loaded from PCI bus SW2 2 Flash Wrt ON Enable writing to flash OFF Disable writing to flash SW2 3 User Switch 3 Read from FPGA_SWITCH_READ SW2 4 User Switch 4 Read from FPGA_SWITCH_READ 2 2 3 SPM176431 and SPM186420 The SPM176431 and SPM186420 provide a rotary switch to configure the PCI slot and toggle switches to configure other options The switch definitions are shown in the tables below Table 2 2 Rotary Switch Definitions SPM176431 and SPM186420 Switch Position Description 0 Slot 0 Closest to CPU 1 Slot 1 2 Slot 2 3 Slot 3 Farthest from CPU others Reserved Table 2 3 Switch Definitions SPM176431 and SPM186420 Switch Name Description SW2 1 PCI Master ON PCI Master Enabled OFF PCI Target Only SW2 2 ROM Boot ON Boot from on board flash OFF Wait for code to be loaded from PCI bus SW2 3 Flash Wrt ON Enable writing to flash OFF Disable writing to flash SW2 4 4 Master ON Enabled 4 masters on the PCI bus OFF Slot 2 and 3 share arbitration signals SPM1x64xx RTD Embedded Technologies Inc 10 2 3 VO Connectors 2 3 1 PlatformBus CN1 CN2 SPM186420 only The Platform Bus connector is described in Section 4 on page 24 2 3 2 SyncBus CN4 The SyncBu
19. 30 controls the communication via the PCI bus Interrupts from the host to the DSP can be generated in one of two ways e Mailbox registers 8 word wide registers e Doorbell registers 4 word wide registers Mailbox interrupts are generated any time a write is done to the mailbox register and doorbell interrupts are generated any time the doorbell register contains a non zero value Doorbell interrupts remain until all bits are cleared to zero 8 3 Interrupts from the DSP to the Host See section 5 1 FPGA register descriptions for the various sources and mask registers These interrupt sources are multiplexed onto the INTA B C D depending of the rotary switch state interrupt line which is assigned to one of the free IRQ channels by the PCI BIOS Sources of PCI interrupts from the DSP are e DSP PCI peripheral e Doorbell registers 4 word wide registers The PCI peripheral interrupt is an interrupt that is written to by the DSP software and can be sourced by any of the DSP peripherals The PCIIS register bit 3 HOSTSW is the location the software should write a one to to request an interrupt See section 5 1 FPGA register descriptions for the various doorbell registers SPM1x64xx RTD Embedded Technologies Inc 59 Appendix A Limited Warranty RTD Embedded Technologies Inc warrants the hardware and software products it manufactures and produces to be free from defects in materials and workmanship for one year following the date
20. 31 Only teens 52 6 INITIALIZATION OF THE SPM1X64XX uuu ccssssccsssccccsssccccsssccccssssccccsssccscsssscccssssccesssesecesssscsessnse 53 6 1 INTERNAL PERIPHERAL BUS EPMltptrosmR nana nennen eene neis 53 6 2 EMIF REGISTER DESCRIPTION Si Age Eege 54 7 COMMUNICATION BETWEEN THE HOST AND THE DSDP cccccccsssscsscccssssssscccsccesssssssccssccesees 55 7 1 SLAVE TRANSEBBS 4 eoi ce heredero deett a a eed usted decet tees e enu 55 7 2 MASTER TRANSFER etcetera EENS estne ne eeu veuve ie ed env bee naues 56 7 2 1 7 2 1 1 7 2 1 2 7 2 1 3 7 2 2 4 2 2 1 4 2 2 2 7 2 2 3 7 3 8 INTERRUPTS ere EE Eed 59 8 1 EXTERNAL INTERRUPT OF THE DSb eene nara r ara ra nennen eene eene eene 59 8 2 INTERRUPTS FROM THE HOST TO THE Dh 59 8 3 INTERRUPTS FROM THE DSP TO THE Host 59 APPENDIX A LIMITED WARRANTY eere eese ene en statuens ta insons tan sontes enses stan sosta ens on sean senses ense suane 60 1 Overview The PCI 104 SPM186420 and the PC 104 Plus SPM17643x are high performance DSP boards that are configurable to be either bus mastering or target only on the PCI bus The SPM186420 has a PCI connector an 80 pin DSP Platform Bus connector and 3 high speed max 75Mbit s 5V compliant Multi channel Buffered Serial Ports McBSPs The Platform Bus and McBSPs allow easy connection to high speed analog or other front end modules without tying up the PCI bus The SPM176430 is a PC 104 Plus board that has a PCI connector an ISA connect
21. 5 2 1 22 FPGA INT4 ENA L FPGA_INTS_ENA_L FPGA INT6 ENA L FPGA_INT7_ENA_L These register stores the mask for the DSP interrupts There is a register for each of the four DSP external interrupts For bit meanings see the appropriate FPPGA INT STAT L register above Field Description Any 0 Interrupt is disabled 1 Interrupt is enabled 5 2 1 23 FPGA MAIL 0 L FPGA MAIL 0 H FPGA MAIL 1 L FPGA MAIL 1 H FPGA MAIL 2 L FPGA MAIL 2 H FPGA MAIL 3 L FPGA MAIL 3 H These registers are used to pass messages from the Host to the DSP Writes to these registers can generate an interrupt to the DSP There are four 32 bit registers arranged as eight 16 bit registers Each of the four registers can generate a separate interrupt There is no differentiation between DSP initiated writes and Host initiated writes 15 0 MAILBOX RW 0000 0000 0000 0000 Field Description MAILBOX Message Register 5 2 1 24 FPGA DOOR P S L FPGH DOOR PS H This is a doorbell register used to pass messages from the DSP to the Host For more information see Section 3 3 3 This register is to be written to by the DSP This register can be set to generate a PCI interrupt when it contains a non zero value 15 0 DB_SET SPM1x64xx RTD Embedded Technologies Inc 45 15 0 RW 0000 0000 0000 0000 Field Description DB_SET Doorbell Set Register Reads DB_SET 0 Doorbell is not active DB_S
22. 6431 Only 0x6C08 00A0 FPGA COM MODE COM Port Mode SPM176431 Only 0x6C08 00A2 FPGA AUDIO MODE Audio Mode SPM176431 Only 0x6C08 00A4 FPGA AC97 COMMAND STAT AC97 Command Status SPM176431 Only 0x6C08 00A6 FPGA AC97 WR DATA AC97 Write Data SPM176431 Only 0x6C08 00A8 FPGA AC97 RD DATA AC97 Read Data SPM176431 Only 0x6C08 00AA FPGA AC97 McBSP ENA ACHT Enable McBSP SPM176431 Only 0x6C08 00AC 0x6C08 00FA Reserved 0x6C08 00FC FPGA DSP SPEED DSP CPU Speed 0x6C08 00FE FPGA VERSION FPGA Version Register 5 2 1 Register Descriptions The following sections contain an explanation of each of the FPGA registers described in a register diagram Each diagram consists of a row divided into columns that represent the fields of the register Each field is labeled with its name inside its beginning and ending bit numbers above and its properties below The properties are R readable register W writeable register C register can be cleared x value after reset depends on board conditions 0 value is O after reset 1 value is 1 after reset A description of each field follows the register diagram 5 2 1 1 FPGA_SYNC_n_SEL SPM176430 and SPM186420 only This register is used to control the source for the SyncBus when it is master mode This has no effect when the SyncBus is in slave mode There is one register for each of the three syncBuse
23. CI Bus interface PlatformBus External Memory Interface PlatformBus SDRAM Asynchronous interface SDRAM 128MB Control 2 100 MHz Logic To other SyncBus RTD boards interface with SyncBus Figure 1 1 Block diagram of SPM186420 The SPM186420 is labeled as a DSP accelerator while the SPM176430 is labeled as a DSP coprocessor board Though we use different names both boards can be used as either a coprocessor or as a high speed accelerator to an analog front end module If the application needs an analog interface the PlatformBus which is actually the asynchronous interface of the DSP SPM186420 only can be used for easy direct high speed data transfers SPM1x64xx RTD Embedded Technologies Inc 4 between the DSP and the analog interface without tying up the PCI bus The other possibility of interfacing the analog front end directly to the DSP without tying up the PCI bus is through the three high speed McBSPs Serial Port Clock generator 41 67 50 60MHz Serial McBSP1 Port DSP TMS320C6414 Serial McBSP2 Port PCI Bus interface ISA bus External Memory Interface SDRAM Asynchronous Power connection from ISA Control Logic To other SyncBus RTD boards interface with SyncBus Figure 1 2 Block diagram of SPM176430 SPM1x64xx RTD Embedded Technologies Inc 5 Clock generator 41 67 50 60MHz ES McBSP DSP A aDIO TMS320C6414 PCI Bus interface connection from ISA External Memory
24. ET 1 Doorbell is active Writes DB_SET 0 No Effect DB_SET 1 Doorbell is set 5 2 1 25 FPGA_DOOR_P_C_L FPGA DOOR P C H This is a doorbell register used to pass messages from the DSP to the Host For more information see Section 3 3 3 This register is to be written to by the Host This register can be set to generate a PCI interrupt when it contains a non zero value 15 0 DB CLEAR RW 0000 0000 0000 0000 Field Description DB CLEAR Doorbell Clear Register Reads DB CLEAR 0 Doorbell is not active DB CLEAR 1 Doorbell is active Writes DB_ CLEAR 0 No Effect DB_ CLEAR 1 Doorbell is cleared 5 2 1 26 FPGA DOOR D S L FPGA_DOOR_D_S_H This is a doorbell register used to pass messages from the Host to the DSP For more information see Section 3 3 3 This register is to be written to by the Host This register can be set to generate a DSP interrupt when it contains a non zero value 15 DB SET RW 0000 0000 0000 0000 Field Description DB SET Doorbell Set Register Reads DB SET 0 Doorbell is not active DB_SET 1 Doorbell is active Writes DB_SET 0 No Effect DB_SET 1 Doorbell is set SPM1x64xx 46 RTD Embedded Technologies Inc 5 2 1 27 FPGA_DOOR_P_C_L FPGA_DOOR_P_C_H This is a doorbell register used to pass messages from the Host to the DSP For more information see Section 3 3 3 This register is to be wr
25. EVENT THE PRODUCT IS NOT FREE FROM DEFECTS AS WARRANTED ABOVE THE PURCHASER S SOLE REMEDY SHALL BE REPAIR OR REPLACEMENT AS PROVIDED ABOVE UNDER NO CIRCUMSTANCES WILL RTD EMBEDDED TECHNOLOGIES BE LIABLE TO THE PURCHASER OR ANY USER FOR ANY DAMAGES INCLUDING ANY INCIDENTAL OR CONSEQUENTIAL DAMAGES EXPENSES LOST PROFITS LOST SAVINGS OR OTHER DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PRODUCT SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR CONSUMER PRODUCTS AND SOME STATES DO NOT ALLOW LIMITATIONS ON HOW LONG AN IMPLIED WARRANTY LASTS SO THE ABOVE LIMITATIONS OR EXCLUSIONS MAY NOT APPLY TO YOU THIS WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS AND YOU MAY ALSO HAVE OTHER RIGHTS WHICH VARY FROM STATE TO STATE SPM186420 176430 RTD Embedded Technologies Inc 60 RTD Embedded Technologies Inc P O Box 906 103 Innovation Blvd State College PA 16803 USA Our website www rtd com SPM1x64xx RTD Embedded Technologies Inc 61
26. Fx clocking source are independent of each other Figure 3 1 shows the clocking options of the SPM1x64xx board EMIFA e EMIF ok 100MHz gt CA 10 SOURCE mz d SDRAM e A 01 e 00 EMIFA_1 EMIFB PLATFORM ES m S x 14 10 BUS EMIFB_2 _ 01 _____ _ _ 00 EMIFB_1 gt x gt McBSP CORE CLK a tj 18 9 Timers FLASH SOURCE x12 Pt EMIFB BUS x Peripherals gt CPU Core Source CPU 41 66667MHz 500MHz 50 00000MHz 600MHz 60 00000MHz 720MHz Figure 3 1 SPM1x64xx onboard clocking SPM1x64xx RTD Embedded Technologies Inc 14 3 3 PCI Interface The DSP can communicate directly with the PCI bus It is capable of responding to memory and I O cycles It is also capable of generating memory I O and configuration cycles In order for the PCI interface to operate a cpuModule must also be present in the stack The cpuModule provides PCI clocks and arbitration The cpuModule also configures the PCI bus The SPM1x64xx is not capable of generating PCI clocks and also cannot generate arbitration signals Furthermore the PCI interface of the DSP must be configured by an external master before it can configure other modules After the PCI bus is configured the SPM1x64xx is fully capable of accessing any
27. I POUR MSTRK5 please see section 7 3 15 6 5 4 3 2 1 0 Reserved USR_SW4 USR_SW3 FOUR MSTR FLASH WRT 2 FLASH BOOT PCIMSTR R 0000 0000 00 R x R x R x R x R x R x Field Description USR_SW4 Status of User Switch 4 SPM176430 only USR_SW 0 Switch is ON USR_SW 1 Switch is OFF SPM1x64xx RTD Embedded Technologies Inc 35 Field Description USR_SW3 Status of User Switch 3 SPM176430 only USR_SW 0 Switch is ON USR_SW 1 Switch is OFF FOUR_MSTR Status of PCI Four Master Switch FOUR_MSTR 0 Four bus master mode FOUR_MSTR 1 Three bus master mode FLASH_WRT Status of Flash Write Enable Switch FLASH_WRT 0 Flash writing is enabled FLASH_WRT 1 Flash writing is disabled FLASH_BOOT Status of Flash Boot Switch FLASH_BOOT 0 Flash boot is enabled FLASH_BOOT 1 PCI boot is enabled PCI_MSTR Status of PCI Master Switch PCI_MSTR 0 PCI Master function is enabled PCI_MSTR 1 PCI Master function is disabled 5 2 1 5 FPGA_WDT_ENABLE This register is used to enable or disable the watchdog timers and to set the mode 15 4 3 2 1 0 Reserved B_MODE B_TIME B_ENA A_ENA R 0000 0000 0000 RW 0 RW 0 RW 0 RW 0 Field Description B_MODE Enable or disable Watchdog Timer B_MODE 0 Watchdog B generates a reset B_MODE 1 Watchdog B generates an NMI B TIME Select the t
28. INT_STATUS_L register An interrupt source is selected to an interrupt by writing a 1 to the corresponding bit in the FPGA INT x ENA L register where x is the interrupt number 4 to 7 The FPGA INT STATUS L register is a sticky register A bit is set to 1 when an interrupt condition occurs It will stay high until it is cleared by the DSP A bit is cleared by writing a 1 to it The status register should always be cleared before enabling interrupts SPM1x64xx RTD Embedded Technologies Inc 19 The external interrupts on the DSP are rising edge active Therefore it is possible for a missed interrupt to disable all subsequent interrupts Consider a system in which Sync 0 Event and Sync 1 Event are both mapped to Interrupt 4 During the interrupt service routine ISR for Sync 0 a Sync 1 Event occurs The ISR completes clears the Sync O bit of the status register and exits However Interrupt 4 is still high The DSP does not detect this because a rising edge did not occur Because Interrupt 4 remains high any subsequent Sync 0 or Sync 1 events will not generate an interrupt To avoid this condition the ISR for Interrupt 4 must check the status of the interrupt pin before exiting This is best done by reading the GPVAL register If the interrupt is still high the ISR must then be performed again to determine which interrupt is pending This technique should be followed any time more than one interrupt source drives an i
29. SPI SPM1x64xx RTD Embedded Technologies Inc 23 4 Interfacing I O system via the PlatformBus SPM186420 only 4 1 The PlatformBus The PlatformBus of the SPM186420 is the buffered version of the asynchronous External Memory Interface EMIF of the DSP It is used to interface external analog or other type of I O systems to the SPM186420 The Address range of this platform is 64 K long words or 256KB The PlatformBus has 32bit wide data bus and uses a dedicated programmable memory controller The bus has a clock signal which can be used to synchronize the external device to the EMIF clock This clock has a programmable rate and can be set to EMIF clock EMIF clock 2 and EMIF clock 4 The signaling level of the PlatformBus is 3 3V The bus speed and the structure of the bus cycle can be programmed by the DSP 4 2 EMIF to PlatformBus Bridge The SPM186420 requires a bridge between the PlatformBus and the EMIF This is because the EMIF is 16 bits wide and the PlatformBus is 32 bits wide The operation of the bridge is transparent and optimized for speed It is compatible with FIFO buffers on the PlatformBus It is recommended that only 32 bit operations be used on the PlatformBus The PlatformBus does not have byte enables and therefore a non 32 bit write may write garbage to some of the byte lanes 4 3 Changing the PlatformBus Clock Rate The PlatformBus clock rate can be changed between 25 MHz and 50 MHz This clock affects both the timin
30. SPM186420 SPM176430 SPM176431 dspModule User s Manual Utilizing the Power of the Texas Instrument TMS320C6416 DSP ta RTD Embedded Technologies Inc Real Time Devices Accessing the Analog World BDM 610030005 ev SPM1x64xx dspModule User s Manual RTD EMBEDDED TECHNOLOGIES INC 103 Innovation Blvd State College PA 16803 0906 Phone 1 814 234 8087 FAX 1 814 234 5218 E mail sales rtd com techsupport rtd com Web site http www rtd com Manual Revision History Rev A Initial Release Based on BDM 610030004 Rev B Added SPM176431 information Published by RTD Embedded Technologies Inc 103 Innovation Boulevard State College PA 16803 Copyright 2006 by Real Time Devices Inc All rights reserved Printed in U S A The RTD Embedded Technologies Logo is a registered trademark of RTD Embedded Technologies dspModule cpuModule and utilityModule are trademarks of RTD Embedded Technologies PC 104 PC 104 Plus and PCI 104 are registered trademark of PC 104 Consortium TMS320C64x VelociTI and C64x are trademarks of Texas Instruments All other trademarks appearing in this document are the property of their respective owners 1 NASA O A O 2 1 1 WHEN YOU NEED HELP EES dere Ree e Ed sa Ever ed ER EEN 2 1 2 Ibi dig usu EE 2 1 3 BOARD FEATURES tete pee A epo bie ie oa 4 HARDWARE INSTALLATION reete cotto ooo sa eaae noe eU neon o e vene Eege eade Une o EUR een Poe EUR Neo
31. STAT L SPM176431 5 2 1 21 FPGA INT STAT L SPM186420 5 2 1 22 FPGA INT4 ENA L FPGA INT5 ENA L FPGA INT6 ENA L FPGA_INT7_ENA_L 45 5 2 1 23 FPGA MAIL O0 L FPGA MAIL OH FPGA MAIL 1 L FPGA MAIL 1 H FPGA MAIL 2 L FPGA MAIL 2 H FPGA MAIL 3 L FPGA MAIL 3 H 1 Tte enne 45 5 2 1 24 FPGA DOOR P S L FPGA DOOR PSH 5 2 1 25 FPGA DOOR P C L FPGA DOOR P CH 5 2 1 26 FPGA DOOR D S L FPGA DOOR D S H 22 eee eene eeeeee nennen nennen nennen eere enne 46 5 2 1 27 FPGA DOOR P C L FPGA DOOR P C H 1 netten i enne nennen eene eene eene 47 5 2 1 28 FPGA STATUS 5 2 1 29 FPGA SCRATCH 0 FPGA SCRATCH 1 FPGA SCRATCH 2 2 eene 48 5 2 1 30 FPGA DSP SPEBD abc e EES EEN vera ei E aen Fa eurn Pe ea e oon HEe 48 5 2 1 31 FPGA VERSION 5 2 1 32 FPGA ADIO INOUT SPM176431 Only sese nete ennt tnnt nenne 5 2 1 33 FPGA ADIO DIR SPM176431 Onlvt nenne nennen reete E 5 2 1 34 FPGA ADIO ENABLE SPM176431 Only 5 2 1 35 FPGA ADIO INT MODE SPM176431 Only 49 5 2 1 36 FPGA ADIO MASK SPM176431 Only 50 5 2 1 37 FPGA ADIO COMP SPM176431 Only 5 2 1 38 FPGA ADIO CAPT SPM176431 Only 5 2 1 39 FPGA COM MODE SPM176431 Only 5 2 1 40 FPGA_AUDIO_MODE SPM176431 Only 51 5 2 1 41 FPGA_AC97_COMMAND_STAT SPM176431 Only Sul 5 2 1 42 FPGA AC97 WR DATA SPM176431 Only 232 5 2 1 43 FPGA AC97 RD DATA SPM176431 Only 202 5 2 1 44 FPGA_AC97_McBSP_ENA SPM1764
32. Timer A generates a reset after a fixed amount of time It is a hardware device and the reset that it generates is identical to the Reset Jumper This watchdog is enabled by writing to the FPGA_WDT_ENABLE register The watchdog will then generate a reset if it is not refreshed within 550 to 1650 ms It is recommended that the watchdog be refreshed every 250 ms when in use The watchdog is refreshed by writing to the FPGA_WDT_REFRESH register The value of the write does not matter 3 5 2 Watchdog Timer B Watchdog Timer B generates either a Non Maskable Interrupt NMI or reset and provides two choices for the timeout period An NMI is the highest priority interrupt The reset generated by Watchdog B is identical to writing to the FPGA_DSP_RESET register This watchdog can be set to timeout at 336 ms or 5 3 seconds by setting a bit in the FPGA_WDT_ENABLE register Setting Watchdog B to generate an interrupt at the shorter timeout and enabling Watchdog A provides a very robust system If the system becomes non functional an NMI is generated which allows the DSP to attempt to recover If it does not recover the DSP will then reset 3 9 Interrupts There are four external interrupts to the DSP and one Non Maskable Interrupt NMI An NMI is generated by writing OxAA55 to the FPGA_NMI register or by Watchdog timer B The external interrupts are numbered 4 through 7 An interrupt can be generated from any combination of the sources listed in the FPGA_
33. _INT 1 DSP PCI Interrupt is active 5 2 1 16 FPGA_PCI_INT_ENA This register stores the mask for the PCI interrupt conditions 15 2 1 0 Reserved DB_INT PCI_INT R 0000 0000 0000 00 RW 0 RW 0 Field Description DB_INT PCI Doorbell Interrupt Mask DB_INT 0 PCI Doorbell interrupt is disabled DB_INT 1 PCI Doorbell interrupt is enabled PCI INT DSP PCI Interrupt Mask DB INT O DSP PCI interrupt is disabled DB INT 1 DSP PCI interrupt is enabled 5 2 1 17 FPGA PB CON 0 SPMIS6420 only This register controls the memory timing for the PlatformBus SPM186420 only 15 14 13 8 7 2 1 0 RST Reserved READ_STR Reserved READ_HLD RW 0 R 0 RW 11 1111 R 0010 00 RW 11 SPM1x64xx RTD Embedded Technologies Inc 40 Field Description RST PlatformBus Reset RST 0 PlatformBus is not reset RST 1 PlatformBus is reset READ_STR Width of the read strobe in BECLKOUT 2 clock cycles strobe READ STR 1 t BECLKOUT2 READ HLD Width of the hold phase of the read cycle in BECLKOUT2 clock cycles hold READ HLD 2 t BECLKOUT2 5 2 1 18 FPGA PB CON 1 SPM186420 only This register controls the memory timing for the PlatformBus SPM186420 only 15 12 11 6 5 4 3 0 WRITE SET WRITE STR WRITE HLD READ SET RW 1111 RW 1111 11 RW 11 RW 1111 Field Description WRITE_SET Width of the setup phase of the write
34. amers ST Bus Switching AC97 Compatible Up to 256 Channels Each Serial Peripheral Interface SPI Compatible MotorolaTM e Three 32 Bit General Purpose Timers e EEE 1149 1 JTAG Boundary Scan Compatible e 0 12 um 6 Level Metal Process CMOS Technology e 3 3 V I Os SPM1x64xx RTD Embedded Technologies Inc 3 LA Board Features The SPM1x64xx boards use all of the above listed DSP chip features on a very small PCI 104 and PC 104 Plus form factor respectively The board also includes the following features Up to 128 MB of Synchronous SDRAM with 800 MB s transfer rate 256 MB available 2 MB bootable FLASH for storing application programs 4 MB available Two stage Watch Dog Timer On Board 3 3V and Core Voltage Generation 3 3V signaling 5V compliant PCI Interface SyncBus for synchronous operation with RTD s high performance PC 104 Plus Data Acquisition dataModules or other types of analog interfaces Three high speed max 75Mbits s Multi channel Buffered Serial Ports T1 E1 MVIP SCSA ST bus AC97 SPI Compatible Platform Bus on the PCI 104 SPM186420 for dedicated high speed DSP connection Power Connector to power the dspModule and any attached modules Doorbell and Mailbox registers to communicate between the PCI bus and the DSP DSP to PlatformBus bridge to maximize transfer efficiency between the 32 bit PlatformBus and 16 bit EMIFB Clock circuit 41 67 50 60MHz Serial Port DSP TMS320C6416 P
35. ce A de bounce filter is provided to prevent spurious interrupts The de bounce period can be set to 20ms or 40ns An interrupt will not be generated unless the input is stable for the entire de bounce period The de bounce filter is cleared when interrupts are disabled and every time an Event interrupt is generated 3 13 AC97 Audio SPM176431 Only The AC97 CODEC uses a 5 wire digital serial link or AC Link between the audio codec device and its digital controller An AC 97 device can perform digital to analog conversion analog to digital conversion and analog input mixing It supports different analog audio inputs outputs and can communicate with a digital controller through the AC Link The AC Link is attached to the on board FPGA The AC Link provides for communication of both control data and audio data In order to improve efficiency control data and audio data are handled separately The CODEC used on this board is the National Semiconductors LM4550A Information on its capabilities and register set can be found at www national com 3 13 1 Control Data The AC97 CODEC has several control registers that adjust the sample rate volume record input etc These are accessed through a set of registers in the FPGA The registers are FPPGA AC97 COMMAND STAT FPGA AC97 WR DATA and FPGA AC97 RD DATA See section 5 2 1 on page 34 for more details To write to a CODEC register 1 Wait until FPGA AC97 COMMAND STAT READY 1 2 W
36. ce PC 104 Plus or PCI 104 must a use a different slot number The slot number is related to the position of the board in the stack Slot 0 represents the PCI device closest to the CPU Slot 3 represents the PCI devices farthest away from the CPU Note In a PC 104 Plus or PCI 104 system all PCI devices should be located on one side of the CPU board above or below the add on cards The CPU should not be located between two PCI devices When the PC 104 Plus Specification was first introduced it only allowed for three PCI add on cards to be bus masters The cards in slot 2 and 3 shared arbitration signals REQ and GNT and only one could be configured as a master Version 2 0 of the PC 104 Plus specification was released in November 2003 This version of the specification adds support for all 4 PCI slots to be bus masters In order to provide compatibility with the original specification a 4 Master switch is provided SPM1x64xx RTD Embedded Technologies Inc 9 2 2 2 SPM176430 The SPM176430 provides a set of switches to configure the PCI slot and other options The switch definitions are shown in the table below Table 2 1 Switch Definitions SPM176430 Switch Name Description SWI 1 Slot Selects the PCI Slot as follows SW1 2 SWI1 2 SWI 1 PCI Slot OFF OFF 0 OFF ON 1 ON OFF 2 ON ON 3 SW1 3 PCI Master ON PCI Master Enabled OFF PCI Target Only SW
37. ct FLASH_RDY 1 Clears interrupt condition SYNCO SYNCI SYNC2 SyncBus Interrupt Status An interrupt is generated on the positive edge of the SyncBus signal Reads SYNC 0 A SyncBus interrupt has not occurred SYNC 1 A SyncBus interrupt has occurred Writes SYNC 0 No Effect SYNC 1 Clears interrupt condition SPM1x64xx RTD Embedded Technologies Inc 43 5 2 1 21 FPGA INT STAT L SPM186420 This register stores the status of the DSP interrupt conditions This is a sticky register an interrupt condition will cause a bit to be set and the bit will remain set until cleared The bits are cleared by writing a 1 15 14 13 12 11 10 9 8 7 Reserved PCI RST DBELL MAIL3 MAIL2 MAIL1 MAILO PB INT7H R 00 RC 0 RC 0 RC 0 RC 0 RC 0 RC 0 RC 0 6 5 4 3 2 1 0 PB_INT6H PB_TIN1 PB_TINO FLASH_RDY SYNC2 SYNCI SYNCO RC 0 RC 0 RC 0 RC 0 RC 0 RC 0 RC 0 Field Description PCI_RST PCI Reset Interrupt Status Reads PCI_RST 0 A PCI reset has not occurred PCI_RST 1 A PCI reset has occurred Writes PCI_RST 0 No Effect PCI_RST 1 Clears interrupt condition DBELL DSP Doorbell Interrupt Status Reads DBELL 0 PCI Doorbell register contains all zeros DBELL 1 PCI Doorbell register does not contain all zeros Writes DBELL 0 No Effect DBELL 1 Clears interrupt condition MAILO Mailbox Register Interrupt Status
38. cycle in BECLKOUT2 clock cycles setup WRITE SET 1 t y BECLKOUT2 WRITE STR Width of the strobe phase of the write cycle in BECLKOUT clock cycles strobe WRITE STR 1 tye BECLKOUT2 WRITE_HLD Width of the hold phase of the write cycle in BECLKOUT clock cycles hold WRITE_HLD 2 t BECLKOUT2 READ_SET Width of the setup phase of the read cycle in BECLKOUT2 clock cycles setup READ _SET 1 t BECLKOUT2 5 2 1 19 FPGA_INT_STAT_L SPM176430 This register stores the status of the DSP interrupt conditions This is a sticky register an interrupt condition will cause a bit to be set and the bit will remain set until cleared The bits are cleared by writing a 1 SPM1x64xx 15 14 13 12 11 10 9 8 T Reserved PCI_RST DBELL MAIL3 MAIL2 MAILI MAILO Reserved R 00 RC 0 RC 0 RC 0 RC 0 RC 0 RC 0 R 0 6 5 4 3 2 1 0 Reserved Reserved Reserved FLASH_RDY SYNC2 SYNCI SYNCO R 40 R 0 R 0 RC 0 RC 0 RC 0 RC 0 Field Description PCI_RST PCI Reset Interrupt Status RTD Embedded Technologies Inc 41 Field Description Reads PCI_RST 0 A PCI reset has not occurred PCI_RST 1 A PCI reset has occurred Writes PCI_RST 0 No Effect PCI_RST 1 Clears interrupt condition DBELL DSP Doorbell Interrupt Status Reads DBELL 0 PCI Doorbell register contains all zeros DBELL 1 PCI Doorbell regist
39. d Host CPU that allow each of them to interrupt the other SPM1x64xx RTD Embedded Technologies Inc 6 2 Hardware Installation 2 1 Connecting the dspModule The SPM1x64xx is designed for PCI 104 PC 104 Plus systems To install the board you need to do the following steps See Figures below e Make sure that your PCI 104 or PC 104 Plus system is powered off e Use electrostatic wrist strap e Set the slot selection switch to the proper position See Section 7 3 e Turn on the PCI Master switch if you want to use the SPM186420 176430 as bus master on the PCI bus e Set the ROM Boot switch to the proper position according to the needed boot mode e Connect push button to JP4 or use a jumper to reset the DSP and PlatformBus Optional e Insert your card into your system PCT bus JP4 Reset connector short DSP PlatfomBus in Reset Xe open After Reset pulse generation SW2 Master Target Reset line inactive High state Boot Mode X 1 PCI Master A 2 ROM Boot P 3 Flash Write N 4 Four Master Ot CN4 SyncBus Connector CNS McBSP 0 serial port E L_CN6 McBSP 1 serial port cS CN11 LED Connector Q CN7 McBSP 2 serial port Platform Bus connector CN8 Power Connector SW2 Slot selection CN9 JTAG Connector Switch CN10 Xilinx Programming Figure 2 1 SPM186420 Connector Locations SPM1x64xx RTD Embedded Technologies Inc 7 SW1
40. e 8M region for viewing DSP memory mapped registers 31 22 21 0 0000 0001 1 Base Address Register 1 BARO 7 2 Master Transfers These transfers are initiated by the SPM board Source and Target address and Control are mapped into PCI memory mapped peripheral registers which can be accessed by the DSP Transfers are limited to 64k bytes 7 2 1 Control Registers 7 2 1 1 DSPMA Register containing the source address for master writes to the PCI or the destination address for doing master reads from the PCL This register also contains the auto increment bit which will increment the source address by four bytes after each internal data transfer 31 2 1 0 ADDRMA AINC Rsvd RW 0000 0000 0000 0000 0000 0000 0000 00 RW 0 R 0 Field Description ADDRMA DSP s word address for doing master transfers to the PCI AINC Auto increment mode of DSP address AINC 0 Auto increment enabled AINC 1 Auto increment disabled 7 2 1 2 PCIMA Register containing the destination address for master writes to the PCI or the source address for doing master reads from the PCI 31 2 1 0 ADDRMA Rsvd RW 0000 0000 0000 0000 0000 0000 0000 00 R 00 Field Description ADDRMA PCIs double word address for doing master transfers to the PCI SPM1x64xx RTD Embedded Technologies Inc 56 7 2 13 PCIMC Register containing the control information for master transfers
41. e information on the EEPROM interface see Section 3 4 1 Table 3 1 EEPROM Word Assignments Address Description Default 0x00 Vendor ID 0x1435 0x01 Device ID 0x6420 0x6430 0x02 Class Code 7 0 Revision ID Ox00FF 0x03 Class Code 23 8 0x0B40 0x04 Subsystem Vendor ID 0x104C 0x05 Subsystem ID OxA106 0x06 Max Latency Min Grant 0x0000 0x07 PC_D1 PC_DO power consumed D1 DO 0x0000 0x08 PC D3 PC D2 power consumed D3 D2 0x0000 0x09 PC DI PC_DO power dissipated D1 DO 0x0000 0x0A PC D3 PC D2 power dissipated D3 D2 0x0000 Ox0B Data scale PD_D3 PC_DO 0x0000 0x0C 0000 0000 PMC 14 9 PMC 5 PMC 3 0x0000 OxOD Checksum CheckSum Ox0E Nominal Speed DSP Speed OxOF Flash Flash Size Ox10 SDRAM SDRAM Size 0x11 Ox1F Reserved for system information Reserved 0x20 OxFF User EEPROM Area 3 4 Serial Ports The SPM1x64xx provides three Multi Channel Buffered Serial Ports McBSP These ports connect directly the DSP They can be used to transfer data between the dspModule and a dataModule They can also be used to transfer data between dspModules The McBSP ports are 5V tolerant 3 4 1 McBSP 2 McBSP 2 is shared between the serial port connector and the PCI EEPROM A switch is provided that can disconnect the McBSP port from the connector when it is being used for the EEPROM interface This prevents external devices from interfering with EEPROM opera
42. e same as a normal PC 104 Plus board In this case you can build a PC 104 Plus system with the DSP I O board pair on the top SPM1x64xx RTD Embedded Technologies Inc 28 V SCORE 550 0 13 97 250 0 6 35 t A A 200 0 5 08 NOTE GOLD PLATING 3775 0 95 9 3575 0 90 8 a a ul Y lt 2 2 o E E 2 o 5 u d x a S 1 X a en V SCORE STYLE V 4 3 OF BOARD REMAINS V SCORE A IN THE MIDDLE 250 0 6 35 3350 0 85 1 3550 0 90 2 Figure 4 3 SPM186420 Mechanical Dimensions SPM1x64xx RTD Embedded Technologies Inc 29 A possible PC 104 system is shown in Figure 4 4 PCB surface on both side for T O circuits and it O EXE VO board interface PlatformBu connector PCB surface on both side for SPM18642 components SPM186420 O OI PCIbus ST connector PlatformBu connector CN2 ss PlatformBus External I O p 3 connector CNI board with C L c PlatformBus PlatformBus SPM186420 Sa ect dspModule with u PlatformBus PC 104 ISA a C 104 IS any PC 104 Plus board pur ee PC 104 Plus cpuModule CMM7686GX Figure 4 4 SPM186420 Stacking Example SPM1x64xx RTD Embedded Technologies Inc 30 5 SPM1x64xx Memory Map The memory map of the SPM1x64xx is shown in Table 5 1 The different areas are largely determined by the arch
43. enne eren 4 6 PLATFORMBUS EXTERNAL I O BOARD MECHANICAL DIMENSIONS SPMIX64XX MEMORY MAP ME 31 5 1 EEN Lal Ae E NEE 5 2 FPGA REGISTERS 3 24 Register Descriptions 5 2 1 1 FPGA SYNC n SEL SPM176430 and SPM186420 only 5 2 1 2 FPGA_SYNC_n_OEN SPM176430 and SPM186420 only 5 2 1 3 FPGA_SYNC_n_GEN SPM176430 and SPM186420 only 5 2 1 4 FPGA SWITCH RPA D n beeein eto tatu en oa e in nora ea eu en aee e aan aa e e ia n E Earn v e e ve ea e nari da eoe Ue ea e Eon sa eo ae 5 2 1 5 FPGA WDT EE E EE 5 2 1 6 FPGA_WDT_REFRESH 5 2 1 7 Idae eu EE 5 2 1 8 FPGA DSP RESET rettet er tt e ia e aor ea ee eo ee eee a oon ta teo oe Fa e Eben Fa ee eo va ve e a ast ga ro e da ar Eben vae ra ua 5 2 1 9 FPGA_BOOTMODE 5 2 1 10 FPGA MCBSPCON EE 5 2 1 11 FPGA_DSP_TIMEO_SEL FPGA DSP TIMEI SEL FPGA_DSP_TIME2_ SEL 38 5 2 1 12 FPGA PB TIMEO SEL FPGA PR TIMEI SEL SPM186420 only 39 5 2 1 13 FPGA DSP GPIOO SEL FPGA DSP GPIOI1 SEL FPGA DSP GPIO2 SEL EPGA DSP GPIOS3 SBL 5 eret det EEN ENNEN ANEN Pee be ree ETE E EE PEE ee 39 5 2 1 14 FPGA LED 5 2 1 15 EPGA PCI INT STXAT recette ar ttu e in eoo aen eae eo ee ee eta oon vetoes ie ee e aer Ya ee eo va ee aeri ta eoe da ae Eben eae roin 5 2 1 16 FPGA PCLINTENA evt eon eee et eo ea vue e ear eu ap vo eo can eere e ve o eee ara e a an Po ean eara ea en vn eene ar ea en d 5 2 1 17 FPGA PB CON 0 SPM186420 only 5 2 1 18 FPGA PB CON 1 SPM186420 only 5 2 1 19 FPGA INT STAT L SPM176430 5 2 1 20 FPGA INT
44. er does not contain all zeros Writes DBELL 0 No Effect DBELL 1 Clears interrupt condition MAILO MAIL1 MAIL2 MAIL3 Mailbox Register Interrupt Status Reads MAIL 0 The Mailbox has not been written to MAIL 1 The Mailbox has been written to Writes MAIL 0 No Effect MAIL 1 Clears interrupt condition FLASH_RDY Flash Ready Interrupt status An interrupt is generated when the Flash device is ready Reads FLASH_RDY 0 A Flash ready interrupt has not occurred FLASH RDY 1 A Flash ready timer interrupt has occurred Writes FLASH RDY O No Effect FLASH RDY 1 Clears interrupt condition SYNCO SYNCI SYNC2 SyncBus Interrupt Status An interrupt is generated on the positive edge of the SyncBus signal Reads SYNC 0 A SyncBus interrupt has not occurred SYNC 1 A SyncBus interrupt has occurred Writes SYNC 0 No Effect SYNC 1 Clears interrupt condition 5 2 1 20 FPGA INT STAT L SPM176431 This register stores the status of the DSP interrupt conditions This is a sticky register an interrupt condition will cause a bit to be set and the bit will remain set until cleared The bits are cleared by writing a 1 15 14 13 12 11 10 9 8 7 Reserved PCI RST DBELL MAIL3 MAII2 MAILI MAILO COM2 R 00 RC 0 RC 0 RC 0 RC 0 RC 0 RC 0 RC 0 6 5 4 3 2 1 0 COMI ADIO Reserved FLASH RDY SYNC2 SYNCI SYNCO RC 0 RC 0 R 0 RC 0 RC
45. ese modes are to allow the DSP to operate with CPUs that support either three or four PCI bus masters The modes are detailed in Table 7 1 Table 7 1 PCI Modes Slot Rotary Slot Three Master CPU Four Master CPU SIS SEET Master Switch Four Master Master Four Master Switch Switch Switch 0 OFF OFF ON OFF ON ON 1 OFF ON ON OFF ON ON 2 ON OFF ON OFF ON ON Slot 3 is target only OFF OFF Slot 3 is master 3 ON ON ON OFF ON ON Slot 2 is target only OFF OFF Slot 2 is master Note The SPM186420 uses a Slot Rotary Switch and the SPM176430 uses two slot selection toggle switches The board closest to the CPU must always be set to the lowest slot number and successive boards set to the next numbers No two boards may share a slot SPM1x64xx RTD Embedded Technologies Inc 58 8 Interrupts The SPM1x64xx system has interrupt channels between the host and the DSP and between the PlatformBus and the DSP and between the SyncBus and the DSP 8 1 External Interrupt of the DSP The External Interrupts of the DSP are can be found in Section 5 2 1 19 The DSP can have interrupts coming from the Host PlatformBus SyncBus Mailboxes and Flash Each external interrupt can multiplex up to 14 sources with a mask associated with each one 8 2 Interrupts from the Host to the DSP The communication channel between the DSP and the host is the PCI bus The PCI interface of the SPM186420 1764
46. eserved 0x8000 0000 0x87FF FFFF 128M SDRAM External Memory 0x8800 0000 0xFFFF FFFF 1 875G Reserved 5 1 UART Registers The UART register map is shown in Table 5 2 The register definitions are discussed in detail in the Exar XR16L2552 datasheet found at www exar com All of the registers are 8 bits wide but occupy 16 bits of address space because the DSP cannot perform 8 bit accesses Table 5 2 UART Mamory Map Address Name Description COMI Registers 0x6000 0000 COMI RHR THR Receive Transmit Holding Register 0x6000 0002 COMI IER Interrupt Enable Register 0x6000 0004 COMI ISR FCR Interrupt Status FIFO Control 0x6000 0006 COMI LCR Line Control Register 0x6000 0007 COMI MCR Modem Control Register 0x6000 000A COMI LSR Line Status Register SPM1x64xx RTD Embedded Technologies Inc 31 Table 5 2 UART Mamory Map Address Name Description 0x6000 000C COMI MSR Modem Status Register 0x6000 000E COMI SPR Scratch Pad register COM Registers 0x6000 0010 COM2 RHR THR Receive Transmit Holding Register 0x6000 0012 COMO IER Interrupt Enable Register 0x6000 0014 COMO ISR FCR Interrupt Status FIFO Control 0x6000 0016 COM2_LCR Line Control Register 0x6000 0017 COM2_MCR Modem Control Register 0x6000 001A COM2 LSR Line Status Register 0x6000 001C COM2 MSR Modem Status Register 5 0 FPGA Registers The FPGA register map is shown in Table 5 3 and discussed
47. formBus Timer Input Status PB_TIN1 PB_TIN 0 Timer input is 0 PB_TIN 1 Timer input is 1 PB_TOUTO PlatformBus Timer Output Status PB TOUTI PB TOUT 2O Timer output is 0 PB_TOUT 1 Timer output is 1 5 2 1 29 FPGA SCRATCH 0 FPGA SCRATCH 1 FPGA SCRATCH 2 These registers are general purpose registers They have no defined function 15 0 SCRATCHPAD RW 0000 0000 0000 0000 Field Description SCRATCHPAD Scratchpad Register 5 2 1 30 FPGA DSP SPEED This register returns the speed of the DSP core See Section 3 10 for details 15 12 1l 0 Reserved SPEED R 0000 R XXXX XXXX XXXX Field Description SPEED DSP core speed in MHz 5 2 1 31 FPGA VERSION This register contains the version information for the FPGA 15 0 FPGA VERSION RW XXXX XXXX XXXX XXXX Field FPGA VERSION Description Version of this FPGA SPM1x64xx RTD Embedded Technologies Inc 48 5 2 1 32 FPGA ADIO INOUT SPM176431 Only This register reads the value of the aDIO port and sets the value when it is configured as an output 15 14 8 7 6 0 Reserved ADIO_IN 6 0 Reserved ADIO_OUT 6 0 R 0 R XX XXXx R 0 RW 00 0000 Field Description ADIO OUT The output value of the aDIO connector when it is configured as an output 0 Pin is low 1 Pin is high ADIO_IN The input value of the aDIO connector 0
48. g parameters for the PlatformBus and the PBCLK signal on the PlatformBus connector In order to change clock rates the following procedure must be followed 1 Place PlatformBus in reset FPGA_PB_CON_O RST 1 2 Set EMIF B GBLCTL EK2RATE to appropriate value See Table 6 2 3 Wait 50 us 4 Bring PlatformBus out of reset FPGA PB CON O RST 0 4 4 PlatformBus Signal Description The Platform Bus is a 32 bit wide asynchronous buffered 3 3V bus with maximum 100 MHz bus frequency The platform bus signals can be grouped 32 data lines PDO 31 16 address lines PA2 17 Flow control lines PREL PWEL POEL PCE2L PCE1L Ready signal PRDYH for slow I O devices to lengthen the bus cycle 25 50 100MHz clock PBCLK Interrupt lines PINT6H PINT7H to interrupt the DSP from the I O device The two channel DSP timer input output lines PTOUTO PTOUT 1 PTINPO PTINP1 3 3V and 5V 12V Ground lines Table 4 1 PlatformBus Signals by Signal Type Signal Pin No Type Description of lines Name Eet CN2 22 CN2 21 SPM1x64xx RTD Embedded Technologies Inc 24 Signal Name 4 uv gt gt Dlr gt PAI PA PA9 PA10 PA11 PA12 PA13 PA14 PA15 PA16 PA17 9 Z O Z N m PD1 PD2 PD PD4 D ala Z Z N R be be D D be XQ PD10 PD11 PD12 PD13 PD14 PD15 PD16 PD17 PD18 PD19 PD20 PD21 PD22 PD23 PD24 PD25 PD26 PD27 PD28 PD29 PD30 PD31 Pin
49. imeout for Watchdog Timer B B TIME 0 Timeout is 5 3 sec B TIME 1 Timeout is 336 ms B ENA Enable or disable Watchdog Timer B B ENA O Watchdog is disabled B ENA 1 Watchdog is enabled A ENA Enable or disable Watchdog Timer A A_ENA 0 Watchdog is disabled A ENA 1 Watchdog is enabled 5 2 1 6 FPGA_WDT_REFRESH Writes to this register refresh the watchdog timer Reads always return a zero 15 2 1 0 Reserved B_REF A_REF R 0000 0000 0000 00 RW 0 RW 0 SPM1x64xx RTD Embedded Technologies Inc 36 Field Description B_REF Enable or disable Watchdog Timer B B_REF 1 Watchdog is refreshed B_ENA 0 No Effect A_REF Enable or disable Watchdog Timer A A_REF 1 Watchdog is refreshed A_ENA 0 No Effect 5 2 1 7 FPGA NMI This register is used to generate a Non Maskable Interrupt NMI to the DSP 15 0 NMI RW 0000 0000 0000 0000 Field Description NMI Generate a NMI Reads always return zeros Writes NMI 0xAAS55 Generate a NMI NMlI others No effect 5 2 1 8 FPGA DSP RESET This register is used to generate a hardware reset to the DSP 15 0 RST RW 0000 0000 0000 0000 Field Description RST Generate a reset Reads always return zeros Writes RST 0xAA55 Generate a reset RST others No effect 5 2 1 9 FPGA BOOTMODE This register can be used to override the Boot Mode jumper se
50. in detail in section 5 2 1 Table 5 3 FPGA Memory Map Address Name Description 0x6C08 0000 FPGA SYNC 0 SEL SyncBus 0 Select 0x6C08 0002 FPGA_SYNC_0_OEN SyncBus 0 Master Slave Select 0x6C08 0004 FPGA_SYNC_0_GEN Write generates event 0x6C08 0006 Reserved 0x6C08 0008 FPGA_SYNC_1_SEL SyncBus Select 0x6C08 000A FPGA SYNC 1 OEN SyncBus 1 Master Slave Select 0x6C08 000C FPGA SYNC 1 GEN Write generates event 0x6C08 000E Reserved 0x6C08 0010 FPGA_SYNC_2_SEL SyncBus 2 Select 0x6C08 0012 FPGA_SYNC_2_OEN SyncBus 2 Master Slave Select 0x6C08 0014 FPGA_SYNC_2_GEN Write generates event 0x6C08 0016 FPGA SWITCH READ Switch Readback 0x6C08 0018 FPGA_WDT_ENABLE Watchdog Timer Enable 0x6C08 001A FPGA_WDT_REFRESH Watchdog Timer Refresh 0x6C08 001C FPGA NMI NMI Generate 0x6C08 001E FPGA DSP RESET DSP Reset Generate 0x6C08 0020 FPGA BOOTMODE Bootmode Control 0x6C08 0022 FPGA MCBSP CON McBSP 2 Control Register SPM176430 SPM186420 Only 0x6C08 0024 FPGA DSP TIMEO SEL Timer 0 Input Select 0x6C08 0026 FPGA DSP TIME SEL Timer 1 Input Select 0x6C08 0028 FPGA DSP TIME2 SEL Timer 2 Input Select 0x6C08 002A Reserved 0x6C08 002C FPGA PB TIMEO SEL PlatformBus Timer 0 Output Select SPM186420 only 0x6C08 002E FPGA PB TIME SEL Pla
51. ion of the PlatformBus is modeled after the 32 bit asynchronous mode of the EMIF The cycle parameters can be adjusted by changing the FPGA_PB_CON_0 and FPGA PB CON 1 registers Descriptions of these registers are found in Sections 5 2 1 17 and 5 2 1 18respectivly The basic programming parameters are e Setup The time from address valid and CE asserted to the assertion of the read or write strobe e Strobe The time that the read or write strobe are asserted e Hold The time from strobe de assertion to until CE is de asserted or the address changes Timing diagrams for the PlatformBus are shown in Figure 4 1 for read cycles and Figure 4 2 for write cycles Although the PlatformBus should be treated as an asynchronous interface all signals change at the positive edge of PCLK and read data is latched in at the positive edge of PCLK SPM1x64xx RTD Embedded Technologies Inc 27 READ STR 1 WRITE HLD 2 WRITE STR 1 Figure 4 2 PlatformBus Write Cycle 4 6 PlatformBus external I O board mechanical dimensions Figure 4 3 shows the connectors of the SPM186420 It can be seen that the board is a PCI 104 i e it does not have an ISA connector The normal place of the ISA connector is used as the PlatformBus connector CN1 CN2 The external I O system with PlatformBus should have the same size as the SPM186420 The PlatformBus connector should be on the same place as on the SPM186420 The height of the I O board components should b
52. itecture of the TMS320C6416 DSP This table shows the areas that are unique to the SPM1x64xx in bold Note that there are other memory map options including how much internal RAM is used as L2 cache Please refer to the documentation for the TMS320C6416 for more information Table 5 1 Memory Map Address Range Hex Size Bytes Description 0x0000 0000 0x000F FFFF 1M Internal RAM L2 Cache 0x0010 0000 0x017F FFFF 23M Reserved 0x0180 0000 0x01B7 FFFF 3 5M Internal Configuration Registers 0x01B8 0000 0x01BF FFFF 512k Reserved 0x01C0 0000 0x01C3 FFFF 256k Internal configuration PCI Registers 0x01C4 0000 0x01FF FFFF 3 75M Reserved 0x0200 0000 0x0200 0033 52 QDMA Registers 0x0200 0034 0x2 FFF FFFF 736M Reserved 0x3000 0000 0x33FF FFFF 64M McBSPO Data 0x3400 0000 0x37FF FFFF 64M McBSP1 Data 0x3800 0000 0x3BFF FFFF 64M McBSP2 Data 0x3C00 0000 0x5FFF FFFF 576M Reserved 0x6000 0000 0x601F FFFF 2M CE0 Dual UART SPM176431 Only 0x6020 0000 0x63FF FFFF 62M Reserved 0x6400 0000 0x641F FFFF 2M CE1 Flash Page 0 Boot Area 0x6420 0000 0x67FF FFFF 126M Reserved CE1 Flash Page O images 0x6800 0000 0x681F FFFF 2M CE2 Flash Page 1 0x6820 0000 0x6BFF FFFF 126M Reserved CE2 Flash Page 1 images 0x6C00 0000 0x6C03 FFFF 256k PlatformBus CE 1 0x6C04 0000 0x6C07 FFFF 256k PlatformBus CE 2 0x6C08 0000 0x6C08 00FF 256 FPGA Registers 0x6C08 0100 0x7FFF FFFF 319 5M R
53. itten to by the DSP This register can be set to generate a DSP interrupt when it contains a non zero value 15 0 DB_CLEAR RW 0000 0000 0000 0000 Field Description DB_ CLEAR Doorbell Clear Register Reads DB_ CLEAR 0 Doorbell is not active DB_ CLEAR 1 Doorbell is active Writes DB_ CLEAR 0 No Effect DB_ CLEAR 1 Doorbell is cleared 5 2 1 28 FPGA_STATUS This register returns the status of several signals on the board 15 14 13 12 11 10 GPIO3 GPIO2 GPIO1 GPIOO FLASH_RDY DSP_TIN2 R 0 R 0 R 0 R 0 R 0 9 8 7 6 5 DSP TINI DSP TINO Reserved DSP TOUT2 DSP TOUTI R 0 R 40 R 0 R 0 R 0 4 3 2 1 0 DSP_TOUTO PB_TIN1 PB_TINO PB TOUTI PB TOUTO R 0 R 0 R 0 R 0 R 40 Field Description GPIOO DSP General Purpose I O Status GPIO1 GPIO 0 Signal is 0 GPIO2 GPIO 1 Signal is 1 GPIO3 FLASH_RDY Flash Ready Status Used to monitor Flash during write and erase operations FLASH_RDY 0 Flash memory is busy FLASH_RDY 1 Flash memory is ready SPM1x64xx RTD Embedded Technologies Inc 47 Field Description DSP_TINO DSP Timer Input Status DSP_TIN1 DSP_TIN 0 Timer input is 0 DSP_TIN2 DSP_TIN 1 Timer input is 1 DSP_TOUTO DSP Timer Output Status DSP TOUTI DSP_TOUT 0 Timer output is 0 DSP_TOUT2 DSP_TOUT 1 Timer output is 1 PB_TINO Plat
54. ls are sent to the DSP The AC97 link is still active so commands can be sent to the CODEC and all audio information sent is silence Disabling the McBSP interface happens immediately When the interface is enabled there is guaranteed to be 20us before the next Frame Sync This allows time for the McBSP and the DMA controller that is feeding it to initialize 15 1 0 Reserved ENA R 0000 0000 0000 000 RW 0 Field Description ENA 0 McBSPI Frame Sync is masked 1 McBSPI Frame Sync is enabled SPM1x64xx RTD Embedded Technologies Inc 52 6 Initialization of the SPM1x64xx This chapter describes the DSP initialization of the DSP memory controller The memory controller needs to be configured to match the specific types of memory that are found on this board Because the DSP registers can be accessed from both the DSP and the PCI bus these settings can be done from either source The DSP source is recommended 6 1 Internal peripheral bus EMIF register The SPM1x64xx has on board SDRAM memory FLASH memory PlatformBus devices and on board control logic devices These memory mapped devices can be used after the appropriate EMIF register initialization All speeds of the SPM1x64xx use a 100 MHz clock as the master clock for EMIF A and EMIF B The EMIF is controlled by memory mapped registers in Table 5 1 Table 6 1 EMIF A Register Settings
55. lso has independent FIFOs however they cannot be accessed simultaneously All parts exist within the DSP see Figure 8 1 below For an in depth description of the PCI interface see the TMS320C6000 DSP Peripheral Components Interconnect Slave Write FIFO Slave Read FIFO Reference Guide SPRU581 at www ti com Master Write FIFO Master Read FIFO Figure 7 1 SPM1x64xx PCI transfers 7 1 Slave Transfers The PCI host has full access to SPM186420 SPM176430 on board memory via three address regions which are part of the PCI Configuration Registers e Base Address 0 BARO 4MB prefetchable to all of DSP memory e Base Address 1 BAR1 8MB non prefetchable to DSP memory mapped registers e Base Address 2 BAR2 16 byte I O contains I O registers for the host These registers are configured by the host via BIOS or operating system SPM1x64xx RTD Embedded Technologies Inc 55 BAR 0 is concatenated with the DSPP register to form the 4M region with which to view the DSP space DSPP is one of the PCI I O registers configurable only from the host and is used for slave accesses to the board These PCI I O registers can be accessed via BAR2 at offset Oh or via BARI at offset 41 FFFOh The user should be careful not to cross boundary space between external internal and peripheral memory while doing accesses 31 22 21 0 DSPP register Base Address Register 0 BARO BARI is concatenated with 0180 0000h to form th
56. mer output 5 2 1 13 FPGA_DSP_GPIOO_SEL FPGA_DSP_GPIO1_SEL FPGA DSP GPIO2 SEL FPGA DSP GPIO3 SEL This register is used to select the source for the General Purpose Input Outputs to DSP There is a separate register for each of the four GPIO lines 15 3 2 0 Reserved SEL R 0000 0000 0000 0 RW 000 Field Description SEL Selects source for DSP GPIO SEL 000 GPIO is set to high impedance The value can be read from the FPGA STATUS register SEL 010 GPIO is set to 0 SEL 011 GPIO is set to 1 SEL others Reserved 5 2 1 14 FPGA_LED This register is used to control the LED 15 4 3 0 Reserved MODE SPM1x64xx RTD Embedded Technologies Inc 39 15 4 3 0 R 0000 0000 0000 RW 1111 Field Description MODE Controls the LED Mode MODE 0000 LED is off MODE 0001 LED is on MODE 1110 LED blinks about twice per second MODE 1111 LED pulses about once per second 5 2 1 15 FPGA_PCI_INT_STAT This register stores the status of the PCI interrupt conditions 15 2 1 0 Reserved DB_INT PCI INT R 0000 0000 0000 00 R 0 R 0 Field Description DB_INT PCI Doorbell Interrupt Status DB_INT 0 PCI Doorbell register contains all zeros DB_INT 1 PCI Doorbell register does not contain all zeros PCI INT Interrupt Status from PCI interface of DSP DB_INT 0 DSP PCI Interrupt is not active DB
57. n a 01A8 0048h EMIFB CEO Secondary Control n a 01A8 004Ch Reserved Reserved 01A8 0050h EMIFB CE2 Secondary Control n a 01A8 0054h EMIFB CE3 Secondary Control n a 6 2 EMIF Register descriptions For a description of these registers and what each of the fields mean please refer to the TMS320C6000 DSP Peripherals Overview Texas Instruments document number SPRU190 or the TMS320C6000 DSP External Memory Interface Reference Guide Texas Instruments document number spru266 Both of these documents are available from the Texas Instruments website www ti com SPM1x64xx RTD Embedded Technologies Inc 54 7 Communication between the Host and the DSP The DSP has a PCI interface and is capable of communicating to the Host CPU The Interface has three types of PCI registers PCI Configuration PCI I O and PCI Memory mapped Peripheral Only PCI Memory mapped peripheral registers can be accessed by the DSP All registers are accessible from the Host The PCI Interface is configured at boot with values from a serial EEPROM Data transferred over the PCI bus can be e Slave Transfers e PCI host initiated reads e PCI host initiated writes e Master Transfers e DSP SPM186420 SPM176430 initiated reads e DSP SPM186420 SPM176430 initiated writes All transfers use the onboard Enhanced DMA controller for data transfer Each slave transfer has an independent FIFO to read and write data independently and simultaneously Each master transfer a
58. n eeu do 7 2 1 CONNECTING THE D PMopLE eene entes nnn rsen nenne innen nnne nnns 7 2 2 SWIICH CONFIGURATIONS 3 cet tre teer fee eee b sie er fece tle e ee gripe 9 2 2 1 PCI Configuration Options eee E e EIER ree eire Eee dots 9 2 2 2 SPMT76430 ei eto e e pe Me e Ie EE 10 2 2 3 SPMI76431 and SPM IRo 70 nennen nenne ses eeneernnn esses teneras sss 10 2 3 I O CONNEGTORS teer cott La e ee dtt iru feet leg 11 2 3 1 PlatformBus CN1 CN2 SPM186420 only 11 2 3 2 SyncB s e stai tere au i e tre tta eere ba e s e A E i 11 2 3 3 McBSP Multi channel Buffered Serial Port CNS CN6 CN 11 2 3 4 JTAG Emulator Connector CN lI 2 3 5 Power Connector CNG WV HO ac 12 2 3 6 aDIO Advanced Digital I O CNS SPM176431 Only essere 12 2 3 7 COM RS 232 422 485 Serial Ports CN13 amp CN14 SPM176431 Only 12 2 3 8 Audio AC97 Audio Input and Output CN12 SPM176431 Only eee 13 HARDWARE DESCRIPTION jsisisssscssvssvsnssctsvonsevsucssestesssctsssnvscestersansevenestostenecsontvesnesbuntecserssestssunsecnecseus 14 3 1 AN CIE CR lee RL CHE 14 3 2 GYOCKING 2 etum ne UP ria 14 3 3 jue INTERFACE HL 15 3 3 1 Memory REGIONS ii te Mee tte STE RA E ERES TA ECHTE 15 3 3 2 PCI Interr pts eaedem quiam quiu tud ente ts 15 3 3 3 Doorbell amp Mailbox Registers eese nennen nennen nnne ere R a 15 3 3 4 EEPROM cei de RR IURE AE MR kr
59. nd in Table 2 10 on page 12 When using RS422 or RS485 mode you can use the port in either half duplex two wire or full duplex four wire configurations For half duplex 2 wire operation you must connect RXD to TXD and connect RXD to TXD A 120 ohm termination resistor is provided on the dspModule Termination is usually necessary on all RS422 receivers and at the ends of the RS485 bus If the termination resistor is required it can be enabled by closing jumper JP1 for Serial Port 1 or JP2 for Serial Port 2 SPM1x64xx RTD Embedded Technologies Inc 20 When using the serial port in RS 422 or RS 485 mode the serial transmitters are enabled and disabled under software control The transmitters are enabled by manipulating the Request To Send RTS signal of the serial port controller This signal is controlled by writing bit 1 of the Modem Control Register MCR as follows e If MCR bit 1 1 then RTS 0 and serial transmitters are disabled e f MCR bit 1 0 then RTS 1 and serial transmitters are enabled 3 12 aDIO SPM176431 Only The Advanced Digital Input Output aDIO shares a connector with McBSPO on the SPM176431 The connector is aDIO by default and can be changed by writing to the FPGA_ADIO_ENABLE register found on page 49 3 12 1 Internal Architecture A diagram of the standard I O is shown in Figure 3 3 Each digital I O pin can be individually configured as an input or output
60. nominal A bias voltage MIC_VREF provides 2 2V at 5mA to bias a microphone The line inputs use a pseudo differential input the LINE_IN_GND must be connected to the ground of the line input source Table 2 11 Audio Pin Assignments MIC_VREF 1 2 MIC_IN GND 3 4 LINE_IN_LEFT LINE_IN_GND 5 6 LINE_IN_RIGHT GND 7 8 OUTPUT_LEFT GND 9 10 OUTPUT_RIGHT SPM1x64xx RTD Embedded Technologies Inc 13 3 Hardware Description 3 1 Other Documents The TMS320C6416 Digital Signal Processor is a very complex device A full description of its internal functions and registers is beyond the scope of this document Full documentation is supplied by Texas Instruments TI also supplies application notes to demonstrate many of the functions of this DSP For more information search TI s website www ti com for the phrase TMS320C6416 Of particular interest is the TMS320C6000 Peripherals Overview This document from TI gives a brief description of all of the on chip peripherals and provides link for detailed manuals of each This includes the PCI interface Serial Ports Timer Counters DMA engine and many other things The Texas Instruments internal document number is SPRU190 This document covers several devices from the C6000 family so care should be taken to insure the correct information is being used This document will focus on the features that are unique to the SPM1x64xx 3 2 Clocking The core peripheral clocking source and the EMI
61. nterrupt pin 3 10 Processor Speed Detection The processor speed is automatically detected after reset The value is stored in the FPGA_DSP_SPEED register This is the actual measured speed in MHz It may vary up to 2 depending on power up conditions 3 11 RS 232 422 485 Serial Ports SPM176431 Only The two serial ports are implemented on connectors CN7 and CNS respectively Each port can be configured as a PC compatible full duplex RS232 port full duplex RS422 or half duplex RS485 3 11 1 Serial Port UART The serial port is implemented with a 16550 compatible UART Universal Asynchronous Receiver Transmitter This UART is capable of baud rates up to 115 2 kbaud in 16450 and 16550A compatible mode and up to 921 6 kbaud in extended mode It includes a 16 byte FIFO Please refer to the Exar XR16L2552 datasheet found at www exar com for more detailed information 3 11 2 RS 232 Mode The full duplex RS232 mode is selected by setting FPGA COM MODE COM n 10 for the appropriate serial port With this mode enabled the serial port connector must be connected to RS232 compatible devices The pin assignment for RS 232 mode is found in Table 2 9 on page 12 3 11 3 RS422 or RS485 Serial Port You may select RS 422 485 mode by setting FPGA COM MODE COMn 11 for the appropriate serial port In this case you must connect the serial port to an RS422 or RS485 compatible device The pin assignment for RS 422 485 mode is fou
62. of shipment from RTD EMBEDDED TECHNOLOGIES INC This warranty is limited to the original purchaser of product and is not transferable During the one year warranty period RTD EMBEDDED TECHNOLOGIES will repair or replace at its option any defective products or parts at no additional charge provided that the product is returned shipping prepaid to RTD EMBEDDED TECHNOLOGIES All replaced parts and products become the property of RTD EMBEDDED TECHNOLOGIES Before returning any product for repair customers are required to contact the factory for an RMA number THIS LIMITED WARRANTY DOES NOT EXTEND TO ANY PRODUCTS WHICH HAVE BEEN DAMAGED AS A RESULT OF ACCIDENT MISUSE ABUSE such as use of incorrect input voltages improper or insufficient ventilation failure to follow the operating instructions that are provided by RTD EMBEDDED TECHNOLOGIES acts of God or other contingencies beyond the control of RTD EMBEDDED TECHNOLOGIES OR AS A RESULT OF SERVICE OR MODIFICATION BY ANYONE OTHER THAN RTD EMBEDDED TECHNOLOGIES EXCEPT AS EXPRESSLY SET FORTH ABOVE NO OTHER WARRANTIES ARE EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND RTD EMBEDDED TECHNOLOGIES EXPRESSLY DISCLAIMS ALL WARRANTIES NOT STATED HEREIN ALL IMPLIED WARRANTIES INCLUDING IMPLIED WARRANTIES FOR MECHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE LIMITED TO THE DURATION OF THIS WARRANTY IN THE
63. on the SPM1x64xx One is the PCI domain Resets in this domain only control the registers that provide address decode on the PCI bus The PCI reset generates a DSP interrupt The other domain is the DSP reset This domain has several levels of reset which are summarized in Table 3 2 The PCI Reset is performed by resetting the host system Warm Reset is performed by setting the WARMRESET bit of the HDCR register FPGA_DSP_RESET is performed by writing to the FPGA_DSP_RESET register The Watchdog Reset occurs when the watchdog timer is enabled and expires Installing JP4 results in a Jumper Reset A Power On Reset occurs when the power supply drops below a minimal level SPM1x64xx RTD Embedded Technologies Inc 18 Table 3 2 Reset Summary Reset Type PCI Registers Reset DSP Registers FPGA Registers FPGA Reloaded Reset Reset PCI Reset Yes No No No Warm Reset No Yes No No FPGA_DSP_RESET No Yes Yes No Watchdog B Reset No Yes Yes No Watchdog A Reset No Yes Yes Yes Reset Jumper JP4 No Yes Yes Yes Power On Reset Yes Yes Yes Yes The Boot Mode Control register FPGA_BOOTMODE is not affected See Section 3 4 1 for a description of McBSP port 2 during reset 3 8 Watchdog Timers Two watchdog timers are provided to provide an interrupt and or a reset if the DSP becomes non functional They may be used separately or in conjunction with each other 3 8 1 Watchdog Timer A Watchdog
64. or and 3 high speed max 75Mbit s 5V compliant McBSPs The SPM176431 is a PC 104 Plus board that has a PCI connector an ISA connector and 1 high speed max 75Mbit s SV compliant McBSPs and AC97 Audio interface and 2 RS 232 422 485 serial ports 1 1 When you need help This manual and all the example programs will provide you with enough information to fully utilize all the features on this board If you have any problems installing or using this board contact our Technical Support Department 814 234 8087 during EST business hours or send an Email to techsupport rtd com When sending an Email request please include your company s name and address your name your telephone number and a brief description of the problem 1 2 DSP Features The heart of the board is the very high performance Texas Instruments TMS320C6416 DSP The main features of the DSP chip include n Performance Fixed Point Digital Signal Processors DSP TMS320C6416 500 600 1000 MHz Clock Rate 2 1 67 1 ns Instruction Cycle Time Eight 32 Bit Instructions Cycle 4000 4800 8000 MIPS Fully Software Compatible With C62x including SPM6020 and SPM6030 e VelociTI 27M Advanced Very Long Instruction Word VLIW C64xTM DSP Core Eight Highly Independent Functional Units With VelociTI 2 Extentions Six ALUs 32 40 Bit Two 16 Bit Multipliers 32 Bit Result Load Store Architecture With 64 32 Bit General Purpose Registers Inst
65. resources on the PCI bus This includes system memory video cards hard drives etc 3 3 1 Memory Regions The SPM1x64xx appears on the PCI bus as three Base Address Registers BARO through BAR2 BARO is a 4 M Byte memory mapped window into the DSP s internal address space The window is set through the DSP Page register BARI is an 8M Byte memory mapped window into the DSP s internal registers It is permanently set to start at address 0x0180 0000 BAR2 is a set of I O mapped registers They include the DSP Page register and reset and interrupt controls 3 3 2 PCI Interrupts There are two sources for generating PCI interrupts from the DSP The first is the PCI interface itself An interrupt can be generated by setting a bit in the DSP reset source register It is then cleared on the PCI side by writing to a bit in PCI registers in either BARI or BAR2 The second source of PCI interrupts is the DSP to PCI Doorbell register The DSP generates an interrupt by setting one of the bits in the DSP to PCI Doorbell register The PCI side can then clear the bit to clear the interrupt PCI interrupts must be enabled before they can be asserted The appropriate interrupt must first be enabled in the FPGA PCIINTEN register Also to enable the PCI interface interrupt the HSR INTAM bit must be cleared 3 3 3 Doorbell amp Mailbox Registers A set of Doorbell and Mailbox Registers are provided to aid in the communication between the DSP and the
66. rite the data value to be written into FPGA AC97 WR DATA 3 Write the address to be written to FPGA ACO7 COMMAND STAT also setting the READY bit and clearing the READ bit This can be done in a single operation 4 When FPGA ACO97 COMMAND STAT READY 1 the write has completed There is no need to wait for the READY bit to be set as long as another CODEC read or write is not started To read from a CODEC register 1 Wait until FPGA AC97 COMMAND STAT READY 1 2 Write the address to be written to FPPGA AC97 COMMAND STAT also setting the READY bit and setting the READ bit This can be done in a single operation 3 Wait until FPPGA AC97 COMMAND STAT READY 1 4 The register value can now be read from FPGA AC97 RD DATA SPM1x64xx RTD Embedded Technologies Inc 22 3 13 2 Audio Data Audio data from the CODEC is attached to McBSP1 A Transmit Frame Sync signal is provided to the DSP when output audio data is requested A Receive Frame Sync signal is provided to the DSP when input audio data is available When each frame sync is generated two 32 bit elements are transferred the first is for Left audio the second is for Right audio Each 32 bit element contains a left justified 20 bit data element MSB first followed by 12 dummy bits If 16 bit audio is desired only access the upper word of the Data Receive Register DRR or Data Transmit Register DXR 3 13 3 AC97 Initialization The AC97 reset signal is attached to Timer O
67. ruction Packing Reduces Code Size All Instructions Conditional e Instruction Set Features Byte Addressable 8 16 32 Bit Data 32 Bit Address Range 8 Bit Overflow Protection Bit Field Extract Set Clear Bit Counting Normalization VelociTI 2 Increased Orthogonally e Viterbi Decoder Coprocessor VCP Supports Over 500 7 95 Kbps AMR Programmable Code Parameters e Turbo Decoder Coprocessor TCP SPM186420 176430 RTD Embedded Technologies Inc 2 Supports up to Six 2 Mbps 3GPP 6 Iterations Programmable Turbo Code and Decoding Parameters e L1 L2 Memory Architecture 128 k Bit 16 kB LIP Cache Direct Mapped 128 k Bit 16 kB L1D Cache 2 Way Set Associative 8M Bit IMB L2 Unified Mapped RAM Cache Flexible Allocation e Two External Memory Interfaces EMIFs One 64 Bit EMIFA for SDRAM One 16 Bit EMIFB for Flash and PlatformBus Separation prevents slower accesses from delaying SDRAM operations e Enhanced Direct Memory Access EDMA Controller 64 Independent Channels e 32 Bit 33 MHz PCI Master Slave Interface Conforms to PCI Specification 2 2 Three PCI Bus Address Ranges Prefetchable Memory Non Prefetchable Memory I O Four Wire Serial EEPROM Interface PCI Interrupt Request Under PCI Control DSP Interrupt Via PIC I O or Memory Cycle e Three Multi channel Buffered Serial Ports McBSPs Direct Interface to T1 E1 MVIP SCSA Fr
68. s Reserved SEL R 0000 0000 0000 00 RW 00 Field Description SEL Selects source for SyncBus Master SEL 00 Write Command SEL 01 DSP Timer 0 SPM1x64xx 34 RTD Embedded Technologies Inc Field Description SEL 10 DSP Timer 1 SEL 11 DSP Timer 2 5 2 1 2 FPGA SYNC n OEN SPM176430 and SPM186420 only This register is used to select between master mode and slave mode on the SyncBuses There is one register for each of the three SyncBuses 15 1 0 Reserved MSTER R 0000 0000 0000 000 RW 0 Field Description MSTER Selects between master and slave mode MSTER 0 Slave Mode Selected Pin is tri stated MSTER 1 Master Mode Selected Pin is driven according to FPGA_SYNC_SEL 5 2 1 3 FPGA SYNC n GEN SPM176430 and SPM186420 only This register is used to generate a synchronization pulse on the SyncBuses There is one register for each of the three SyncBuses This is only valid when FPGA_SYNC_SEL 00 15 1 0 Reserved GEN R 0000 0000 0000 000 W 0 Field Description GEN Generate synchronization event Reads always return a zero GEN 0 No effect GEN 1 Generate a synchronization event if FPGA_SYNC_n_SEL SEL 00 and FPGA_SYNC_n_ OEN MSTER 1 5 2 1 4 FPGA_SWITCH_READ This register provides read back status from the jumpers switches For detail on the effect of PCI MSRT and PC
69. s is an RTD defined bus for synchronous operation with other RTD s boards The SyncBus connector is the CN3 Connector at the right top corner of the board The SyncBus is a TTL signaling level and 5V compliant tri state bus The SyncBus can be used to trigger an analog front end or to receive signaling Table 2 4 syncBus Pin Assignments SyncBusO 2 GND GND 4 GND SyncBusl 6 GND GND 8 GND SyncBus2 10 GND 2 3 3 McBSP Multi channel Buffered Serial Port CNS CN6 CN7 The SPM186420 176430 contains three max 75Mbit s data rate 5V compliant McBSP serial buses to interface a front end to the DSP The CN5 CN6 and CN7 are the connectors of McBSPO 1 and 2 respectively The SPM176431 contains one max 75Mbit s data rate SV compliant McBSP serial buses to interface a front end to the DSP The CN5 connector is the connector to McBSPO and can also be configured as aDIO The pin out of the McBSP ports identical for all serial ports is show in Table 2 5 Table 2 5 McBSP Pin Assignments CLKS 2 GND CLKR 4 FSR CLKX 6 GND DR 8 FSX DX 10 GND 2 3 4 JTAG Emulator Connector CN9 Using this connector the SPM1x64xx can be debugged by JTAG emulator hardware supplied by several manufacturers It is compatible with Spectrum Digital XDS510 emulator with 3V cable Table 2 6 JTAG Emulator Pin Assignments l TMS 1 2 msr SPM1x64xx RTD Embedded Technologies Inc 11 TDI 4 GND 3 3V 6 Key TDO 8 GND TCK 10 GND TCK 12 GND
70. tformBus Timer 1 Output Select SPM186420 only 0x6C08 0030 FPGA DSP GPIOO SEL GPIO 0 Source Select 0x6C08 0032 FPGA DSP GPIO SEL GPIO 1 Source Select 0x6C08 0034 FPGA DSP GPIO2 SEL GPIO 2 Source Select 0x6C08 0036 FPGA DSP GPIO3 SEL GPIO 3 Source Select SPMIx64xx 32 RTD Embedded Technologies Inc Table 5 3 FPGA Memory Map Address Name Description 0x6C08 0038 Reserved 0x6C08 003A FPGA_LED_CON LED Control 0x6C08 003C FPGA PCI INT STAT PCI Interrupt Status 0x6C08 008E FPGA PCI INT ENA PCI Interrupt Enable 0x6C08 0040 FPGA PB CON 0 PlatformBus Control 0 SPM186420 only 0x6C08 0042 FPGA PB CON 1 PlatformBus Control 1 SPM186420 only 0x6C08 0044 FPGA INT STAT L Interrupt Status 0x6C08 0046 Reserved 0x6C08 0048 FPGA INT4 ENA L Interrupt 4 Enable 0x6C08 004A Reserved 0x6C08 004C FPGA INT5 ENA L Interrupt 5 Enable 0x6C08 004E Reserved 0x6C08 0050 FPGA_INT6_ENA_L Interrupt 6 Enable 0x6C08 0052 Reserved 0x6C08 0054 FPGA_INT7_ENA_L Interrupt 7 Enable 0x6C08 0056 0x6C08 005E Reserved 0x6C08 0060 FPGA MAIL 0 L Mailbox 0 Low 0x6C08 0062 FPGA_MAIL 0 H Mailbox 0 High 0x6C08 0064 FPGA MAIL 1 L Mailbox 1 Low 0x6C08 0066 FPGA MAIL 1 H Mailbox 1 High 0x6C08 0068 FPGA MAIL 2 L Mailbox 2 Low 0x6C08 006A
71. tions Switching between McBSP mode and EEPROM mode is generally automatic During DSP Reset or PCI Reset the port is placed in McBSP mode After either reset is negated the port is switched to EEPROM mode for 5ms The port is then switched to McBSP mode until the next reset SPM1x64xx RTD Embedded Technologies Inc 16 The implication is that if McBSP 2 is being used when the Host system PCI resets the DSP will temporarily lose communication with the device on McBSP 2 If this cannot be tolerated the port can be locked to McBSP mode by writing the FPGA_MCBSP_CON register However if the host resets the PCI interface of the DSP will be un initialized and will not be recognized by the driver To use the EEPROM for user functions the McBSP port must first be locked to EEPROM mode This is done by writing the FPGA_MCBSP_CON register See Section 5 1 for details 3 5 Flash Memory Either 2MB or 4MB of flash memory is provided This memory is designed to store DSP firmware The Flash device is separated into several sectors An entire sector must be erased at a time A special procedure must be used to erase or program the flash For detail refer to the AM29LV320D 4 MB or AM29LV160D 2MB datasheet from AMD www amd com A write enable switch is provided on the SPM1x64xx This is the third switch on SW2 When the switch is on the Flash can be written to When the switch is off all write commands are disabled
72. ttings FPGA DSP RESET register It is not affected by a reset from the 15 2 1 0 Reserved OR_VALUE OVRRIDE R 0000 0000 0000 00 RW 0 RW 0 Field Description OR_VALUE Boot Mode to use when FPGA_BOOTMODE OVRRIDE 1 OR_VALUE 0 PCI Boot OR_VALUE 1 Flash Boot SPM1x64xx RTD Embedded Technologies Inc 37 Field Description OVRRIDE Boot Mode Override Enable OVRRIDE 0 Use Boot Mode Switch Value OVRRIDE 1 Use FPGA_BOOTMODE OR_VALUE 5 2 1 10 FPGA_MCBSP_CON This register selects how McBSP port 2 is controlled See Section 3 4 1 for details 15 5 4 3 2 1 0 Reserved ENA_VAL OE_VAL OV_ENA OV_OE OVRRIDE R 0000 0000 000 R 0 R 0 RW 0 RW 0 RW 0 Field Description ENA_VAL Current value of McBSP2 Enable ENA_VAL 0 McBSP port 2 is enabled ENA_VAL 1 EEPROM interface is enabled OE_VAL Current value of McBSP2 output enable OE_VAL 0 McBSP2 output is enabled OE VAL 1 McBSP2 output is disabled OV ENA Value to use for McBSP2 Enable when FPGA_MCBSP_CON OVRRIDE 1 OV_ENA 0 Enable McBSP2 OV_ENA 1 Enable EEPROM interface OV_OE Value to use for McBSP2 output enable when FPGA_MCBSP_CON OVRRIDE 1 OV_OE 0 Enable McBSP2 Output OV_OE 1 Disable McBSP2 Output OVRRIDE McBSP2 Override Enable OVRRIDE 0 McBSP2 Enable and Output Enable is automatically controlled OVRRIDE 1 Use override values for McBSP2 Enable and Output Enable
73. us is a bus that synchronizes the operation of multiple SPM1x64xx or other boards The source of signals can be from itself or from other boards The signals driven on the SyncBus are generally a short pulse The rising edge of the pulse signals a synchronization event The synchronization events can generally be used for either periodic captures or to start a capture sequence SPM1x64xx RTD Embedded Technologies Inc 17 The SyncBus connector provides three channels Each of these channels can be a master or a slave When a channel is a master it is driven by the SPM1x64xx It can be driven by any of the three internal counter timers or by a memory write operation When a channel is a slave the synchronization events can cause an interrupt on any of the four interrupt pins and can feed into any of the three counter timers The synchronization event can also be sent to the Tout pins of the PlatformBus SPM186420 only A channel can be both a master and a slave at the same time SyncBus0 source SyncBusl source SyncBus2 source SyncBus0 enable dy SyncBus1 ec SyncBus2 es SyncBus SyncBus to other to other boards boards yo o NT E SyncBus0 buffered SyncBusl buffered SyncBus2 buffered Figure 3 2 The SyncBus structure It is important that a SyncBus signal can have only one enabled active buffer See sections 5 2 1 1 5 2 1 2 and 5 2 1 3 for register setup and description 3 7 Reset Structure There are two separate reset domains
74. utput 0 This must be set high by writing to CTLO before accessing the control registers or attempting to send audio data Because the Frame Syncs for McBSPI are generated external to the DSP care must be taken to ensure that the left and right channels are synchronized If the McBSP transmitter is brought out of reset shortly before the Frame Sync arrives the DSP or EDMA may not have a chance to service the Data Transmit Register In that case the transmitter shifts out the default value for the Left Audio data When the Data Transmit Register is serviced the Left Audio data is then shifted out in the time slot for the Right Audio data The channels will continue to be swapped until the McBSP is restarted This condition is avoided by using the FPGA_AC97_McBSP_ENA register as described below The following procedure is recommended for initializing the audio interface 1 Bring the AC97 CODEC out of reset by setting CTLO 0x00000004 2 Initialize the AC97 CODEC registers as outlined in Section 3 13 1 3 Verify that the AC97 McBSP interface is disabled FPGA_AC97_McBSP_ENA ENA 0 4 Initialize and enable the EDMA channels that service McBSP1 5 Initialize McBSPI RCRI 0x000101A0 XCR1 0x000101A0 PCR1 0x00000000 6 Enable McBSP1 SPCRI 0x02012001 7 Enable the AC97 McBSP FPGA_AC97_McBSP_ENA ENA 1 Because there will be at least 20us before the first Frame Sync there is guaranteed to be enough time for the EDMA to service McB
75. utput of the AC97 CODEC for the audio output 15 1 0 Reserved MODE R 0000 0000 0000 000 RW 0 Field Description MODE 0 Line Output 1 Headphone Output 5 2 1 4 FPGA AC97 COMMAND STAT SPM176431 Only This register is used to modify the registers of the AC97 codec 15 10 9 8 7 0 Reserved READ READY REG 7 0 R 0000 00 RW 0 RC 0 RW 0000 0000 Field Description REG CODEC Register to access READY Read 0 Register interface is busy DO NOT MODIFY ANY FPGA_AC97_ REGISTERS 1 Register interface is ready Read data is valid FPGA AC97 registers can be modified Writes 0 Does nothing 1 Start read write command READ 0 Register access it a Write 1 Register access is a Read SPM1x64xx RTD Embedded Technologies Inc 51 5 2 1 4 FPGA AC97 WR DATA SPM176431 Only Data value to be written to the AC97 register 15 0 DATA RW 0000 0000 0000 0000 Field Description DATA Data value to be written to the AC97 register 5 2 1 43 FPGA AC97 RD DATA SPM176431 Only Data value read from the AC97 register 15 0 DATA R 0000 0000 0000 0000 Field Description DATA Data value read from the AC97 register 5 2 1 44 FPGA AC97 McBSP ENA SPM176431 Only Enabled or disables the McBSP interface to the AC97 CODEC McBSP1 When the McBSP interface is disabled no Frame Sync signa

Download Pdf Manuals

image

Related Search

Related Contents

Cambios en controles volumétricos  120A Brushless Marine Waterproof ESC  User`s Manual - Quest Controls Inc.  MAI 2011  取扱説明書 - 測定器レンタル 株式会社メジャー  E KERN 572/573/KB/DS/FKB/KBJ  MINISTÉRIO DO TRABALHO E EMPREGO GABINETE DO  Sony VAIO VPCY216GX  ZUO 98246 Installation Guide  

Copyright © All rights reserved.
Failed to retrieve file