Home

XS40, XSP Board V1.3 User Manual

image

Contents

1. P3 6 WR P3 5 T1 7 Segment LED 100 MHz P3 4 TO P3 3 INT1 P3 2 INTO P3 1 TXD P3 0 RXD P0 7 A7 D7 P0 6 A6 D6 P0 5 A5 D5 P0 4 A4 D4 SBERR EEE GEER E reksprbie P0 3 A3 D3 P0 2 A2 D2 P0 1 A1 D1 P0 0 A0 D0 P2 7 A15 P2 6 A14 P2 5 A13 Prog Osc Data Outputs PC Parallel Port PC_D7 P2 4 A12 P2 3 A11 P2 2 A10 P2 1 A9 BAN DoOor WN P2 0 A8 PC_D6 PC D PC D4 PC_D3 PC D2 PC DI PC_DO not connected on XSP Board XS40 BOARD V1 3 USER MANUAL 32K x 8 SRAM 16 XS40 XSP Board V1 3 Schematic PAN ogee ain 089 99N and EIN ENN SG ez amp z ol zr De S Aoi DEN LG ANA anzz Anez z t zr D r 0691 6Y P SE 13 aNd 9 zr D I s 7 ares
2. 100 MHz Osc J8 not installed J12 J6 9VDC Power Supply O J11 SRAM Serial EEPROM Socket J10 J7 Microcontroller PS 2 Mouse VGA Monitor or Keyboard e Figure 2 Arrangement of components on the XS40 Board Connecting a PC to Your XS40 Board The 6 cable included with your XS40 Board connects it to a PC One end of the cable attaches to the parallel port on the PC and the other connects to the female DB 25 connector J1 at the top of the XS40 Board as shown in Figure 1 Connecting a VGA Monitor to Your XS40 Board You can display images on a VGA monitor by connecting it to the 15 pin J2 connector at the bottom of your XS40 Board see Figure 1 You will have to download a VGA driver circuit to your XS40 Board to actually display an image You can find an example VGA driver at http Awww xess com XS40 BOARD V1 3 USER MANUAL 5 Connecting a Mouse or Keyboard to Your XS40 Board You can accept inputs from a keyboard or mouse by connecting it to the J5 PS 2 connector at the bottom of your XS40 Board see Figure 1 You can find an example keyboard driver at http Awww xess com Setting the J umpers on Your XS40 Board The default jumper settings shown in Table 2 configure your XS40 Board for use in a logic design environment You will need to change the jumper settings only if you are m using your XS40 in a stand alone mode where it is unconnected from the PC parallel port see pag
3. J11 This prevents the PC interface circuitry on the XS40 Board from interfering with the clock and data signals from the FPGA 4 Apply power to the XS40 Board The FPGA will be configured from the serial EEPROM You may reattach the downloading cable if you need to inject test signals into your design using the XSPORT program XS40 BOARD V1 3 USER MANUAL 11 Programmer s Models This section discusses the organization of components on the XS40 Board and introduces the concepts required to create applications that use both the microcontroller and the FPGA Building FPGA based designs is covered in detail in the Practical Xilinx Designer Lab Book by Prentice Hall Microcontroller FPGA Design Flow The basic design flow for building microcontroller FPGA applications is shown in Figure 3 Initially you have to get the specifications for the system you are trying to design Then you have to determine what inputs are available to your system and what outputs it will generate At this point you have to partition the functions of your system between the microcontroller and the FPGA Some of the input signals will go to the microcontroller some will go to the FPGA and some will go to both Likewise some of the outputs will be computed by the microcontroller and some by the FPGA There will also be some new intra system inputs and outputs created by the need for the microcontroller and the FPGA to cooperate In general the FPGA will be u
4. JAX Seng eng Fe 0 X tege 40 1 NIOSO s r Zeng 8 yA S FETE 5 9 Mess vg 101snaox oir s sr En Ei ego WO B9SNEOX Terme 2 Mt een QO 2 o S inst D Sang vse ANN an9 ana SETET oer E DESNI yzy 8 T vein Er sf D e9 er Ac ZSr aaah anvo Z a 3M a bs ONS 99 x Dr CEP en Pe l ze sr E SE ee sr Kl awo anvo aro swo 3 2a 69 89 19 9 v v Wie BR L AS Ae AS I er v M AECH AS ve of 8 Er T8 Er 18 r og er BET BET Zr EE ZE tZ er Dr 69 f BET Z9 ET g9 cr Er z9 er L og cr BET es er ZE GET SST E r 1s er DE Bk ET Sk Cr ZE Sk ET Sy ot voor 8 10 SN99X VBSNEIX ERNST c8sngIx 18SNIXx ogsngIx 6ZSNEOX BZSNEIX DUR 9ISNEOX SZSNEIX TSNGOX OZSNEIX 69SNEIX 9SNGOX LOSNOX 99SNEIX 9SNEOX COSNEIX TOSNEIX O9SNOX 6SSNEIX 8 GX LSSNEIX 9SSNEIX ER SSNEIX 1GSNEIX 0 GX 6ySNOX 8r SngIX LYSNgox 9t SNgIX SvSNEIX CRU VSNGOX DREI 6ESNIX 8 GX LZESNEIX 9 SNIX GX ESNgIX baakt 0 ER 6 SNOX 8zsngIxX GX 9CSNEOX takt v ER ERD 0 GX 6LSNEOX SIS DEER STSNEIX vISNIX KLS DIS OSNOX EIERE ZOSNEIX g0Sngox SOSNOX vOSNEIX BEER
5. Programming This section will show you how to download a logic design from a PC into your XS40 Board and how to store a design in its optional serial EEPROM that will become active when power is applied Downloading Designs into Your XS40 Board During the development and testing phases you will usually connect the XS40 Board to the parallel port of a PC and download your circuit each time you make changes to it You can download an FPGA design into your XS40 Board as follows C gt XSLOAD CIRCUIT BIT where CIRCUIT BIT is an XC4000 or Spartan bitstream file that contains the configuration for the XC4000 or XCS FPGA This file is created using the XILINX Foundation software tools Make sure the file contains a bitstream for the type of FPGA chip installed on your XS40 Board Use one of the following commands if you need to configure the FPGA and also download an Intel formatted HEX file into the SRAM of the XS40 Board C gt XSLOAD FILE HEX CIRCUIT BIT where CIRCUIT BIT is a bitstream file and FILE HEX is a file containing hexadecimal data The HEX file could contain microcontroller object code generated by the ASM51 assembler or it could be arbitrary data from some other source Whatever its source the hexadecimal data is downloaded into the XS40 Board SRAM XSLOAD assumes the XS40 Board is connected to parallel port 1 of your PC You can specify another port number using the P option like so C gt XSLOAD P 2 FILE HEX CIRCUI
6. following steps will store a particular divisor into the oscillator chip memory 1 In a DOS window use the following command with the type of XS40 Board and the clock divisor you want listed as arguments Ci gt XSSETCLK XS40 005XL 8 The example shown above will set the programmable oscillator on an XS40 005XL Board to a frequency of 100 MHz 8 12 5 MHz You may use any divisor between 1 and 2052 depending upon the clock frequency you want to use 2 The XSSETCLK program will prompt you to remove the power and download cables from your XS40 Board Then you should place a shunt on jumper J12 Then re attach the download cable Then reattach the power cable only after the download cable is attached When power is restored to the XS40 Board the programmable oscillator will power up in its programming mode instead of generating a clock signal 3 Press RETURN and the clock divisor will be programmed into the oscillator chip If you wish to change the value of the divisor you may re issue the XSSETCLK command at this point with a new divisor without having to power down the XS40 Board 4 Finally remove the power and download cables from your XS40 Board Then remove the shunt from jumper J12 Then re attach the download cable and the power cable When power is restored to the XS40 Board the programmable oscillator will power up in its active mode and output a clock signal at the programmed frequency XS40 BOARD V1 3 USER MANUAL 8
7. supply through jack J9 or through the VCC and GND pins m Check that the XS40 Board is sitting upon a non conducting surface and that there are no connections to any of the pins except for the VCC and GND pins if this is the way you are powering the board m Verify that the jumpers are in their default configuration m Make sure the downloading cable is securely attached to the XS40 Board and the PC parallel port m Verify that the parallel port is in ECP mode The mode is usually set in the BIOS as either SPP EPP ECP or bidirectional ECP mode works most reliably while bidirectional mode is not recommended If all these checks are positive then test the board using another PC In our experience 99 9 of all problems are due to the parallel port If you cannot get your XS40 Board to pass the test even after taking these steps then contact XESS Corp to get a replacement board XS40 BOARD V1 3 USER MANUAL 7 Programming the XS40 Board Clock Oscillator The XS40 Board has a 100 MHz programmable oscillator a Dallas Semiconductor DS1075Z 100 The 100 MHz master frequency can be divided by factors of 1 2 up to 2052 to get clock frequencies of 100 MHz 50 MHz down to 48 7 KHz respectively The divided frequency is sent to the FPGA as a clock signal The divisor is stored in non volatile memory in the oscillator chip so it will resume operation at its programmed frequency whenever power is applied to the XS40 Board The
8. L 2608 Sweetgum Drive Apex NC 27502 Toll free 800 549 9377 A International 919 387 0076 FAX 919 387 1302 Corporation XS40 XSP Board V1 3 User Manual How to install test and use your new XS40 or XSP Board RELEASE DATE 9 24 1999 Copyright 1997 1999 by X Engineering Software Systems Corporation All XS prefix product designations are trademarks of XESS Corp All XC prefix product designations are trademarks of Xilinx All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any means electronic mechanical photocopying recording or otherwise without the prior written permission of the publisher Printed in the United States of America Limited Warranty RELEASE DATE 9 24 1999 X Engineering Software Systems Corp XESS warrants that the Product in the course of its normal use will be free from defects in material and workmanship for a period of one 1 year and will conform to XESS s specification therefor This limited warranty shall commence on the date appearing on your purchase receipt XESS shall have no liability for any Product returned if XESS determines that the asserted defect a is not present b cannot reasonably be rectified because of damage occurring before XESS receives the Product or c is attributable to misuse improper installation alteration accident or mishandling while in your possession Subject to the l
9. T BIT XS40 BOARD V1 3 USER MANUAL 9 Storing Non Volatile Designs in Your XS40 Board Once your design is finished you may want to store the design on the XS40 Board so that it is configured for operation as soon as power is applied The XC4000 or XCS FPGA on the XS40 Board stores its configuration in an on chip SRAM which is erased whenever power is removed You can place an external serial EEPROM in socket U7 which stores the FPGA configuration and reloads it on power up The XILINX XC1700 series of serial EEPROMs is a good choice for this but you will need an external programmer to download your bitstream into the XC1700 chip Also the XC1700 is one time programmable OTP so you will need a new chip every time you change your logic design Table 4 lists the serial EEPROM chip you need for storing the bitstream files for each type of XS40 Board e Table 4 Recommended XILINX serial EEPROMS for various types of XS40 Boards XS40 Board Type Bitstream Size XILINX EEPROM XS40 005E 95 008 XC17128E X 40 005XL 151 960 XC17256E XS40 010E 178 144 XC17256E XS40 010XL 283 424 XC1701 XSP 010 95 008 XC17S10 You also have the option of storing your design into an AT17C256 Atmel reprogrammable serial EEPROM if you have an XS40 005E XS40 005XL or XS40 010E Boards The XS40 Board can directly program the Atmel chip and the FPGAs on these boards have bitstream files which are small enough to fit in the AT17C256 You can load your design into the Atme
10. am that lets you send test XS40 BOARD V1 3 USER MANUAL 12 signals to the XS40 Board through the PC parallel port You can trace the reaction of your system to signals from the parallel port by programming the microcontroller and the FPGA to output status information on the LED digit much like placing printf statements in your C language programs This is admittedly crude but will serve if you don t have access to a programmable stimulus generator or logic analyzer Get specifications i Define inputs and outputs i Partition functions into the microcontroller and the FPGA Enter 8031 assembly Enter truth tables and code into a ASM file logic equations into an HDL file Use ASM51 assembler Use XILINX Foundation to to produce a HEX file produce a bitstream file L Use XSLOAD to download the HE via and bitstream files to the XS Board i Use XSPORT to debug the hardware and software e Figure 3 FPLD microcontroller design flow XS40 Board Component Interconnections The microcontroller and the FPGA on the XS40 Board are already connected together These pre existing connections save you the effort of having to wire them yourself but they also impose limitations on how your microcontroller program and the FPGA hardware will interact A high level view of how the microcontroller SRAM and FPGA on the XS40 Board are connected is shown on th
11. e 10 m reprogramming the clock frequency on your XS40 Board see page 8 m executing microcontroller code from internal ROM instead of the external SRAM on the XS40 Board You will have to replace the ROMless microcontroller on the XS40 Board with a ROM version to use this feature e Table 2 J umper settings for XS40 and XSP Boards Jumper Setting Purpose J4 On A shunt should be installed if you are downloading the XS40 or XSP Board through the parallel port default Off The shunt should be removed if the XS40 or XSP Board is being configured from the on board serial EEPROM U7 J6 On The shunt should be installed when the on board serial EEPROM U7 is being programmed Off The shunt should be removed during normal board use default J7 1 2 ext The shunt should be installed on pins 1 and 2 ext if the 8031 microcontroller program is stored in the default external 32 KByte SRAM U8 of the XS40 Board 2 3 int The shunt should be installed on pins 2 and 3 int if the program is stored internally in the microcontroller J8 On The shunt should be installed in XS40 or XSP Boards which use the 3 3V XC4000XL type of FPGAs Off The shunt should be removed on XS40 or XSP Boards which use the 5V XC4000E type of FPGAs J10 On The shunt should be installed if the XS40 or XSP Board is being configured from the on board serial EEPROM Off The shunt should be removed if the XS40 or XSP Board is being downloaded from the PC parallel defau
12. e following pages A more detailed schematic is also presented at the end of this manual The programmable oscillator output goes directly to a synchronous clock input of the FPGA The FPGA uses this clock to generate a clock that it sends to the XTAL1 clock input of the microcontroller XS40 BOARD V1 3 USER MANUAL 13 The microcontroller multiplexes the lower eight bits of a memory address with eight bits of data and outputs this on its PO port Both the SRAM data lines and the FPGA are connected to PO The SRAM uses this connection to send and receive data to and from the microcontroller The FPGA is programmed to latch the address output on PO under control of the ALE signal and send the latched address bits to the lower eight address lines of the SRAM Meanwhile the upper eight bits of the address are output on the P2 port of the microcontroller The 32 KByte SRAM on the XS40 Board uses the lower seven of these address bits The FPGA also receives the upper eight address bits and decodes these along with the PSENB and read write control line from pin P3 6 of port P3 from the microcontroller to generate the CEB and OEB signals that enable the SRAM and its output drivers respectively Either of the CEB or OEB signals can be pulled high to disable the SRAM and prevent it from having any effect on the rest of the XS40 Board circuitry One of the outputs of the FPGA controls the reset line of the microcontroller The microcontroller can be p
13. ep fos avo zr gi ir Lo rav S vo em BERG MEN DEE HOLIMS ino an SW 4 Drot Dora NANE oun O AS Q01d 1608 Aen g 101sngox 089 z zag l uaeib z 6r y Eemere Ges 0Zd LIVLXx Cor Doge VV an POE ER DIE Gw ZESNGOX Ses 0898 VV VT yen EST Ka Led rar Dara VV ain SE LEZ vza ER RER ERSE Be Ged SEd zz er ouksy et zrf I Oena IX Hee 92d SE SE Be EZ Eed Ge UASA zr gt Eeer tedi zi er EIERE TIX Cep JdCo senge o BISMEDX SCH Jg u er EL L im God Ce G ano DEI EE cod Sid D I KEE 2 SS SCH EI i 039 30 15 OvSNadX 7 In aO Has Kr e 00d Old Zn GERD f DNA Zu oF on genli DNA CA a o ax AS vr e 27 i X EI Som os FS j X C S ir Ly OF Or GER agas EEN BYSTIGIX ay SC 6 X man Ergo 28 SE BESNBOX ee Teena oy 4998 0 I Ed EE Ce BIKE INOG aigd dl Z nn 3d oi SWL g i D gt gox gg NWus0ud One Ee Is os ZISNEOX oemgne SE Ow 0 Ie gx oeSNeoX 7 em Lu ayx zg 994 0 1 Or oe Snax zs SSSNGOX In RE deeg ween i i H BSSTIGIX 6G EES X oe S VE oe S E m NVV Jena S r r Ee IQ D EIER Sz X Au ty 3d wos 01 SISNBOX Seen ce 1x00 9X Es X S den g 99 E Ges n o 0 X_Vezsngox 6 pee SU iz Son ee l Sna 9s ss ceo vISTHL Da 941 wg o 1 SE D 7 x y det ol ai T TTY 1n00 y99S 0 1 101 0 1 7 Ar D o ax eH 1909 St x Od 0 OGL AIP E vi D010 1499d 0 1 X o o lt At Od w03 sawos ndu WI cl poe EAT po9d 0 I Ge e dees ANM SECH 6 OSNEOX szoisa 0022 A8 SEHR g OSMEDX Ossna 08 L 0 A BEI 18 El DEIER gt 2 SE LS EE 6 It ERR
14. er problems m f you can t get the XS40 Board hardware to work send an e mail message describing your problem to fpga bugs xess com or check our web site at htto Avww xess com Our web site also has m answers to frequently asked questions m example designs for the XS Boards m aplace to sign up for our email forum where you can post questions to other XS Board users m If you can t get your XILINX Foundation software tools installed properly send an e mail message describing your problem to hotline xilinx com or check their web site at http support xilinx com m The XS40 Board requires an external power supply to operate It does not draw power through the downloading cable from the PC parallel port m f you are connecting a 9VDC power supply to your XS40 Board please make sure the center terminal of the plug is positive and the outer sleeve is negative m The V1 3 version of the XS40 Board now uses a programmable oscillator with a default frequency of 50 MHz You must reprogram the oscillator if you want to use another frequency The procedure for doing this is described on page 8 KA XS40 BOARD V1 3 USER MANUAL Packing List Here is what you should have received in your package m an XS40 or XSP Board note that your XSP Board will be labeled as an XS40 but the socket will contain a Xilinx Spartan FPGA with an XCS prefix m a6 cable with a 25 pin male connector on each end a3 5 floppy diskette or CDROM
15. gure 2 for the location of jack J9 on your XS40 Board The on board voltage regulation circuitry will create the voltages required by the rest of the XS40 Board circuitry Solderless Breadboard Installation The two rows of pins from your XS40 Board can be plugged into a solderless breadboard with holes spaced at 0 1 intervals One of the A C E protoboards from 3M is a good choice Once plugged in all the pins of the FPGA and microcontroller and SRAM are accessible to other circuits on the breadboard The numbers printed next to the rows of pins on your XS40 Board correspond to the pin numbers of the FPGA Power can still be XS40 BOARD V1 3 USER MANUAL 3 supplied to your XS40 Board though jack J9 or power can be applied directly through several pins on the underside of the board Just connect 5V 3 3V and ground to the following pins for your particular type of XS40 Board You will need 3 3V only if your XS40 Board contains an XC4000XL type of FPGA e Table 1 Power supply pins for the various XS40 Boards XS40 Board Type GND Pin V Pin 3 3V Pin XS40 005E V1 3 52 2 54 none XS40 005XL V1 3 52 2 54 XS40 010E V1 3 52 2 54 none XS40 010XL V1 3 52 2 54 XSP 010 V1 3 52 2 54 none PS 2 mouse or keyboard 9VDC center positive power supply VGA monitor e Figure 1 External connections to the X 40 Board XS40 BOARD V1 3 USER MANUAL PC Parallel Port
16. hese signals if you program the FPGA to pass them onto the FPGA I O pins connected to the microcontroller Communication from the XS40 Board back to the PC also occurs through the parallel port The parallel port status pins are connected to pins of microcontroller ports P1 and P3 Either the microcontroller or the FPGA can drive the status pins The PC can read the status pins to fetch data from the XS40 Board The FPGA also has access to the clock and data lines of a keyboard or mouse attached to the PS 2 port of the board XS40 BOARD V1 3 USER MANUAL 14 e Table 5 XS40 Board pin descriptions x40 Pin Gs fon bo Do D D LI E Ee z E ES O RN Es D vu fu bm mm fo fo gt p P S uv fu fo fo fu pp D CG D DO U Es D U gt C U D U bo s LI CH 2 D a a o a o a5 fag a ag a Le La ig Sen La e a leg Le Le 68 e LB 6 6 ai ao a a ea a L n sg sq so Lm La log ES z 7 Le gg A eg er les XS40 BOARD V1 3 USER MANUAL These pins drive the individual segments of the LED display SO S6 They also drive the color and horizontal sync signals for a VGA monitor These pins are driven by the data output pins of the PC parallel port Clocking signals can only be reliably applied through pins 44 and 45 since these have additional hysterisis circuitry Pins 32 and 34 are mode signals for the FPGA s
17. imitations specified above your sole and exclusive warranty shall be during the period of warranty specified above and at XESS s option the repair or replacement of the product The foregoing warranty of XESS shall extend to repaired or replaced Products for the balance of the applicable period of the original warranty or thirty 30 days from the date of shipment of a repaired or replaced Product whichever is longer THE FOREGOING LIMITED WARRANTY IS XESS S SOLE WARRANTY AND IS APPLICABLE ONLY TO PRODUCTS SOLD AS NEW THE REMEDIES PROVIDED HEREIN ARE IN LIEU OF a ANY AND ALL OTHER REMEDIES AND WARRANTIES WHETHER EXPRESSED OR IMPLIED OR STATUTORY INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE AND b ANY AND ALL OBLIGATIONS AND LIABILITIES OF XESS FOR DAMAGES INCLUDING BUT NOT LIMITED TO ACCIDENTAL CONSEQUENTIAL OR SPECIAL DAMAGES OR ANY FINANCIAL LOSS LOST PROFITS OR EXPENSES OR LOST DATA ARISING OUT OF OR IN CONNECTION WITH THE PURCHASE USE OR PERFORMANCE OF THE PRODUCT EVEN IF XESS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES In the United States some statutes do not allow exclusion or limitations of incidental or consequential damages so the limitations above 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 Preliminaries Here are some places to get help if you encount
18. l EEPROM by following these steps 1 Turn off power to the XS40 Board 2 Place the Atmel AT17C256 EEPROM chip into the U7 socket 3 Place a shunt on jumper J6 This enables the programming circuitry in the Atmel EEPROM chip 4 Apply power to the XS40 Board 5 Use the following command to load the FPGA bitstream file into the EEPROM C gt XSLOAD SERIAL_ EEPROM CIRCUIT BIT It will take less than a minute to program the contents of the bitstream in CIRCUIT BIT into the Atmel EEPROM 6 Turn off power to the XS40 Board XS40 BOARD V1 3 USER MANUAL 10 7 Remove the shunt on jumper J6 This disables the programming circuitry in the Atmel EEPROM chip so your design cannot be overwritten Once your design is loaded into an EEPROM the following steps will make the XS40 Board configure itself from the EEPROM in socket U7 instead of the PC parallel port interface 1 Remove the downloading cable from connector J1 of the XS40 Board As an alternative you can use the command XSPORT 0 to make sure the upper two data bits of the parallel port are at logic 0 These bits are connected to the mode pins of the FPGA and must be at logic 0 or the FPGA will not power up in the active serial mode 2 Place a shunt on jumper J10 This sets the FPGA into the active serial mode so it will provide a clock signal to the EEPROM which sequences the loading of the configuration from the EEPROM into the FPGA 3 Remove the shunts on jumpers J4 and
19. lt port J11 On The shunt should be installed if the XS40 or XSP Board is being downloaded from the PC parallel port default Off The shunt should be removed if the XS40 or XSP Board is being configured from the on board serial EEPROM J12 Off The shunt should be removed during normal operations when the programmable oscillator is default generating a clock signal On The shunt should be installed when the programmable oscillator frequency is being set XS40 BOARD V1 3 USER MANUAL 6 Testing Your XS40 Board Once your XS40 Board is installed and the jumpers are in their default configuration you can test the board by typing one of the commands listed in Table 3 into a DOS window e Table 3 Commands for testing the various types of X 40 Boards XS40 Board Type Test Command XS40 005E XSTEST XS40 005E XS40 005XL XSTEST XS40 005XL XS40 010E XSTEST XS40 010E XS40 010XL XSTEST XS40 010XL XSP 010 XSTEST XSP 010 The test procedure programs the FPGA loads the SRAM with a test program for the microcontroller and then the microcontroller executes this program The total test period including programming the board is about 15 seconds for an XS40 Board If the test completes successfully then you will see a O displayed on the LED digit However if the test program detects an error then the LED digit displays an E or remains blank In this case check the following items m Make sure the XS40 Board is receiving power from a 9V DC power
20. o you must adjust your design to account for the way that the Foundation tools handle these pins These pins connect to the pins of Port 1 of the uC Some of the pins are also connected to the status input pins of the PC parallel port Pin 67 drives the vertical sync signal for a VGA monitor These pins connect to some of the pins of Port 3 of the uC The uC has specialized functions for each of the port pins indicated in parentheses Pin 62 connects to the data write pin of the uC and the write enable pin of the SRAM Pin 69 connects to a status input pin of the PC parallel port and the PS 2 data line Pin 68 connects to the These pins connect to Port 0 of the uC which is also a multiplexed address data port These pins also connect to the data pins of the SRAM These pins connect to Port 2 of the uC which also outputs the upper address byte These pins also connect to the 7 upper address bits of the SRAM These pins drive the 8 lower address bits of the SRAM 15 Status Inputs VGA Inputs PC Parallel Port PC SI 4 PC _S6 lt PC_S5 lt PC SA lt PC_S3 lt VSYNC lt HSYNC lt RED1 lt REDO lt GREEN1 lt GREENO BLUE1 lt ____ ____ BLUEO lt __ PS 2 Port KR DATA KB_CLK XTAL1 RST ALE PSEN P1 7 P1 6 P1 5 P1 4 P1 3 P1 2 P1 1 P1 0 8031 uC P3 7 RD
21. revented from having any effect on the rest of the circuitry by forcing the RST pin high through the FPGA When RST is active the microcontroller pins are weakly pulled high Many of the I O pins of ports P1 and P3 of the microcontroller connect to the FPGA and can be used for general purpose I O between the microcontroller and the FPGA In addition to being general purpose I O the P3 pins also have special functions such as serial transmitters receivers interrupt inputs timer inputs and external SRAM read write control signals If you aren t using a particular special function then you can use the associated pin for general purpose I O between the microcontroller and the FPGA In many cases however you will program the FPGA to make use of the special purpose microcontroller pins For example the FPGA could generate microcontroller interrupts If you want to drive the special purpose pin from an external circuit then the FPGA I O pin connected to it must be tristated A seven segment LED digit connects directly to the FPGA These same FPGA pins can also drive a VGA monitor The FPGA can be programmed so the microcontroller can control the LEDs either through P1 or P3 or by memory mapping a latch for the LED into the memory space of the microcontroller The PC can transmit signals to the XS40 Board through the eight data output bits of the parallel port The FPGA has direct access to these signals The microcontroller can also access t
22. sed mainly for low level functions where signal transitions occur more frequently and the control logic is simpler A specialized serial transmitter receiver would be a good example Conversely the microcontroller will be used for higher level functions where the responses occur less quickly and the control logic is more complex Reacting to commands passed in by the receiver is a good example Once the design has been partitioned and you have assigned the various inputs outputs and functions to the microcontroller and the FPGA then you can begin doing detailed design of the software and hardware For the software you can use your favorite editor to create a ASM assembly language file and assemble it with ASM51 to create a HEX file for the microcontroller on the XS40 Board For the FPGA hardware portion you will enter truth tables and logic equations into a ABL or VHDL file and compile it into an BIT bitstream file using the XILINX Foundation software You can download the HEX program file and the BIT bitstream file to the XS40 Board using the XSLOAD program XSLOAD stores the contents of the HEX file into the SRAM on the XS40 Board and then it reconfigures the FPGA by loading it with the bitstream file When the XS40 Board is loaded with the hardware and software you need to test it to see if it really works The answer usually starts as No so you need a method of injecting test signals and observing the results XSPORT is a simple progr
23. with software utilities and documentation for using the XS40 Board XS40 BOARD V1 3 USER MANUAL 2 Installat Installing the XSTOOLs Utilities and Documentation XILINX currently provides the Foundation tools for programming their FRGAs and CPLDs Any recent version of XILINX software should generate bitstream configuration files that are compatible with your XS40 Board Follow the directions XILINX provides for installing their software XESS Corp provides the additional XSTOOLs utilities for interfacing a PC to your XS40 Board Run the SETUP EXE program on the 3 5 diskette or CDROM to install these utilities Once the XSTOOLs are installed you will see the following subdirectories XSTOOLS BIN contains the executable programs for downloading to the XS40 Board and for applying signals to the XS40 Board through the printer port An assembler for the microcontroller on the XS40 Board is also included XSTOOLS DOCS contains the documentation and schematics for the XS40 Board Applying Power to Your XS40 Board You can use your XS40 Board in two ways distinguished by the method you use to apply power to the board Using a 9VDC wall mount You can use your XS40 Board all by itself to experiment with logic and microcontroller designs Just place the XS40 Board on a non conducting surface as shown in Figure 1 Then apply power to jack J9 of the XS40 Board from a 9V DC wall transformer with a 2 1 mm female center positive plug See Fi

Download Pdf Manuals

image

Related Search

Related Contents

Samsung Samsung F250 manual do usuário  Systemtastatur mit 3-Achsen Joystick, KBD-CSK  MANUEL D`UTILISATION - Royal Kiddy London Royal Kiddy London  Manuel d`utilisation  JVC XV-N327B User's Manual  Hanns.G HA195ABB  Samsung SPS-300 Series PC Utility User`s Manual  取扱説明書(PDFファイル)  

Copyright © All rights reserved.
Failed to retrieve file