5I24 ANYTHING I/O MANUAL

Similar documents
4I74 QUADRATURE COUNTER MANUAL

5I20 ANYTHING I/O MANUAL

4I39 RS-422 ANYTHING I/O MANUAL

5I23 ANYTHING I/O MANUAL

7I80HD ETHERNET ANYTHING I/O MANUAL

7I93 ETHERNET ANYTHING I/O MANUAL

4I68 ANYTHING I/O MANUAL

5I21 SERIAL ANYTHING I/O MANUAL

7I80DB ETHERNET ANYTHING I/O MANUAL

YSSC2P A SSCNET II PCI Interface Adapter. User manual

3X20 ANYTHING I/O MANUAL

V1.3 7I96 ETHERNET STEP/DIR MOTION CONTROL INTERFACE

HCAL DCC Technical Reference E. Hazen - Revised March 27, 2007 Note: Latest version of this document should be available at:

ACR8000 Hardware Manual

MegaAVR-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

Nios Embedded Processor Development Board

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

MINI-CAN User Manual. Issue 1.02

TAP Expander Blackhawk Emulator Expansion Pod. Document Part Number: REV B

UNIVERSAL MOTION INTERFACE (UMI) ACCESSORY

FreeForm/104 PC/104 Reconfigurable Digital I/O with Counter/Timers User's Manual

ONYX-MM-XT PC/104 Format Counter/Timer & Digital I/O Module

Subject: Jumper, DIP and optional resistor settings for ROACH rev Location of jumpers, switches and resistors on hardware

Mega128-Net Mega128-Net Mega128 AVR Boot Loader Mega128-Net

MESA ELECTRONICS PRICE LIST 9/21/12

RFID A1 Module User Manual V1.183

TIP111. Motion Controller with Absolute Encoder Interface (SSI) User Manual. The Embedded I/O Company. Version 1.1. Issue 1.4 September 2005 D

Pmod modules are powered by the host via the interface s power and ground pins.

MAXPROLOGIC FPGA DEVELOPMENT SYSTEM Data Sheet

7I44 MANUAL 8 CHANNEL RS-422 INTERFACE

7I74 MANUAL 8 CHANNEL RS-422 INTERFACE

GPIO-MM User Manual. FPGA-based PC/104 Counter/Timer and Digital I/O Module. User Manual v1.0 Personality 0x22

ACR8020 Hardware Manual

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

MESA ELECTRONICS PRICE LIST 04/01/17

FPGA Discovery-III XC3S200 Board Manual

P-ROC. Pinball Remote Operations Controller. Version 2.4 August 8, Copyright 2017, Multimorphic, Inc. 1/28

15-pin Nano-D Digital Interface

ACROMAG INCORPORATED Tel: (248) South Wixom Road Fax: (248) P.O. BOX 437 Wixom, MI U.S.A.

KNJN I2C bus development boards

I2C-IN830M, I2C-IN830MA 8-Input Optocouplers I2C-bus, DIN rail supports

PIC-32MX development board Users Manual

Version 1.6 Page 2 of 25 SMT351 User Manual

HAND HELD PROGRAMMER QUICK START GUIDE

DIO16 8 Channel digital input and 8 Channel digital output board. V1.0 August CANBUS-DIO16 Rev B v1.0

Figure 1. JTAGAVRU1 application The JTAGAVRU1 is supported by AVR Studio. Updated versions of AVR Studio is found on

User Manual for SMT111

Revision: 5/7/ E Main Suite D Pullman, WA (509) Voice and Fax. Power jack 5-9VDC. Serial Port. Parallel Port

TPMC x ADC, 16x/0x DAC and 8x Digital I/O. Version 1.0. User Manual. Issue May 2018

MicroBolt. Microcomputer/Controller Featuring the Philips LPC2106 FEATURES

MD3. Microstepping Motor Driver Page 1 of 7. Description. Software. Mechanical Drawing. Features

PCI-FRM11. User s Manual. PCI-FRM11 User s Manual (Rev 1.1)

TTC/TTS Tester (TTT) Module User Manual

TPMC815 ARCNET PMC. User Manual. The Embedded I/O Company. Version 2.0. Issue 1.2 November 2002 D

Emulation Tech Note 8 Using SdConfigEx

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

ACR2000 Hardware Manual

ED1021 I/O Expander with UART interface & analog inputs

Polmaddie6 User Manual. Issue 1.0

User s Manual. PCIe-FRM10 User s Manual (Rev 1.3)

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

PANDORA HACKER GUIDE

User s Manual. PCIe-FRM11 User s Manual (Rev 1.4)

TPMC Digital Inputs/Outputs (Bit I/O) Version 2.0. User Manual. Issue February 2014

MPU User Guide Updated 3/11/15. Overview

RoBoard RB-100 Manual V2.00 The Heart of Robotics. Jan 2009 DMP Electronics Inc

cpci-dart Base-Board & Daughter-Board

Document Part Number: Edition 1. Copyright 2009, Corelis Inc.

UNIVERSAL MOTION INTERFACE (UMI) ACCESSORY

SpiNN 3 System Diagram

Logosol Joystick Node LS-731

APMC4110 POWERED PMC CARRIER STANDALONE PCI INTERFACE MODULE

XC2000 Family AP Application Note. Microcontrollers. XC2236N Drive Card Description V1.0,

Microcontroller. BV523 32bit Microcontroller. Product specification. Jun 2011 V0.a. ByVac Page 1 of 8

Wireless Sensor Networks. FireFly 2.2 Datasheet

Avnet, Xilinx ATCA PICMG Design Kit Hardware Manual

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

Digilab 2 XL Reference Manual

SyncLink GT Serial Adapter

MOTENC Axis PCI Motion & I/O Control Board. Reference Manual Rev 1A, April Copyright 2004 VITAL Systems Inc

SC2004MBS 20x4 Characters MODBUS RTU Slave LCD

The Atmel ATmega168A Microcontroller

MOTENC-Lite 4-Axis PCI Motion & I/O Control Board. Reference Manual Rev 1.1, June 20, Copyright 2005 VITAL Systems Inc

1. TIMS-0201 STEPPER CONTROLLER MODULE HARDWARE GENERAL SOFTWARE DESCRIPTION TIMS-0201 LABVIEW INSTRUMENT DRIVERS...

DS-MPE-GPIO. PCIe MiniCard Digital I/O Module with FPGA. Rev A.1 June 2015

EASY219 / IEC CANopen Master / Slave

Features: Analog to Digital: 12 bit resolution TTL outputs, RS-232 tolerant inputs 4.096V reference (1mV/count) 115K max speed

XE166 Family AP Application Note. Microcontrollers. X E D r i v e C a r d H a r d w a r e D e s c r i p t i o n Board REV.

FRDM-K20D50M User s Manual FRDM-K20D50M-UM Rev. 1.2

Wi125 Evaluation Kit User Manual

Pigeon Point BMR-H8S-EMMC Reference Design Board Management Reference Design for µtca Modules

OEM API Specification

The Atmel ATmega328P Microcontroller

TIP120. Motion Controller with Incremental Encoder Interface. Version 1.0. User Manual. Issue August 2014

Galil Motion Control. DMC - 18x6. Datasheet (US ONLY)

CANgineBerry Quickstart

Drift Chamber Firmware Download Description

Zefeer EVB-L. Hardware Manual

Digilab 2E Reference Manual

SMT104. Transputer Link Interface PCMCIA Card User Manual

Transcription:

5I24 ANYTHING I/O MANUAL Version 1.5

This page intentionally not blank

Table of Contents GENERAL.......................................................... 1 DESCRIPTION................................................. 1 HARDWARE CONFIGURATION........................................ 2 GENERAL.................................................... 2 CONNECTOR POWER.......................................... 2 5V I/O TOLERANCE............................................ 2 PRECONFIG PULL-UP ENABLE................................... 3 PCI BUS ISOLATION............................................ 3 FPGA FLASH SELECT.......................................... 3 CONNECTORS...................................................... 4 CONNECTOR LOCATIONS AND DEFAULT JUMPER POSITIONS........ 4 5I24 I/O CONNECTOR PIN-OUT................................... 5 JTAG CONNECTOR PIN-OUT..................................... 8 OPERATION........................................................ 9 FPGA........................................................ 9 FPGA PINOUT................................................. 9 PCI ACCESS.................................................. 9 CONFIGURATION............................................. 10 GENERAL................................................... 10 FALLBACK................................................... 10 DUAL EEPROMS.............................................. 10 EEPROM LAYOUT............................................. 11 BITFILE FORMAT............................................. 13 NMFLASH................................................... 13 MESAFLASH................................................. 13 FPGA CONFIGURATION........................................ 14 SPI INTERFACE DESCRIPTION.................................. 14 FREE EEPROM SPACE........................................ 15 FALLBACK INDICATION........................................ 15 FAILURE TO CONFIGURE...................................... 15 CLOCK SIGNALS.............................................. 15 LEDS....................................................... 16 PULLUP RESISTORS.......................................... 16 I/O LEVELS.................................................. 16 STARTUP I/O VOLTAGE........................................ 16 iii

Table of Contents SUPPLIED CONFIGURATIONS........................................ 17 HOSTMOT2.................................................. 17 SVST8_4IM2............................................ 17 SVST4_8............................................... 17 SVST8_8IM2............................................ 17 SVST1_4_7I47S......................................... 17 2X7I65................................................. 17 SV12IM_2X7I48.......................................... 17 SV6_7I49............................................... 17 PIN FILES................................................... 18 REFERENCE INFORMATION......................................... 19 SPECIFICATIONS............................................. 19 iv

GENERAL DESCRIPTION The MESA 5I24 is a low cost, general purpose, FPGA based programmable I/O card for the PCI bus. The 5I24 is a low profile PCI card (available with low profile and standard brackets) Dual FPGA configuration EEPROMs allow simple recovery from programming mistakes. Firmware modules are provided for hardware step generation, quadrature encoder counting, PWM generation, digital I/O, Smart Serial remote I/O, BISS, SSI, SPI, UART interfaces and more. All motion control firmware is open source and easily modified to support new functions or different mixes of functions. All I/O bits are 5V tolerant and can sink 24 ma. All I/O pins support 3.3V LVDS inputs. Pullup resistors are provided for all pins so that they may be connected directly to opto-isolators, contacts etc. The 5I24 has 72 I/O bits available on three 50 pin connectors, all connectors use I/O module rack compatible pinouts and are compatible with all Mesa 50 pin FPGA daughtercards. 5I24 1

HARDWARE CONFIGURATION GENERAL Hardware setup jumper positions assume that the 5I24 card is oriented in an upright position, that is, with the PCI connector towards the person doing the configuration. CONNECTOR POWER The power connection on the I/O connectors pin 49 can supply either 3.3V or 5V power. Supplied power should be limited to 400 ma per connector. When the following jumpers are in the left position, 5V power is supplied to pin 49 of the associated connector. When the jumper is in the right position, 3.3V power is supplied to to pin 49 of the associated connector. 5V I/O TOLERANCE W8 selects the voltage supplied to P4. (I/O connector for bits 0..23) W5 selects the voltage supplied to P3. (I/O connector for bits 24..47) W2 selects the voltage supplied to P2. (I/O connector for bits 48..71) The FPGA used on the 5I24 has a 4V absolute maximum input voltage specification. To allow interfacing with 5V inputs, the 5I24 has bus switches on all I/O pins. The bus switches work by turning off when the input voltage exceeds a preset threshold. The 5V I/O tolerance option is the default and should normally be left enabled. For high speed applications where only 3.3V maximum signals are present and overshoot clamping is desired, the 5V I/O tolerance option can be disabled. When 5V mode is selected, the bus switch is always fully on unless input voltages >3.5V are applied, at which point the bus switch disconnects the FPGA from the I/O pin. 5V mode is suggested for general use. When the bus switch mode jumper is in the up position, 5V mode is selected, when down, 3.3V bus switch mode is selected. W6 selects the voltage supplied to P4. (I/O connector for bits 0..23) W3 selects the voltage supplied to P3. (I/O connector for bits 24..47) W1 selects the voltage supplied to P2. (I/O connector for bits 48..71) 5I24 2

HARDWARE CONFIGURATION PRECONFIG PULLUP ENABLE The Xilinx FPGA on the 5I24 has the option of having weak pull-ups on all I/O pins at power-up or reset. The default is to enable the pull-ups To enable the built-in pull-ups, (the default condition) jumper W4 should be placed in the UP position. To disable the internal pull-ups, W4 should be in the DOWN position. PCI BUS ISOLATION The 5I24 uses bus switches to provide 5V tolerance on the PCI bus. These bus switches can be turned off to disconnect the FPGA from the PCI bus. This is valuable when debugging FPGA PCI firmware as it allows the system to boot with a non functional PCI interface. W9 controls the PCI bus isolate function. For normal operation W9 must be in the UP position. To disconnect the FPGA from the BUS, move W9 to the DOWN position. FPGA FLASH SELECT To make recovery from FPGA configuration errors easier, there are two FPGA configuration flash memories on the 5I24 card. Jumper W7 selects between the two flash memories. That is, if one flash memory is inadvertently corrupted, the other one can be used to boot the 5I24, allowing the corrupted flash memory to be re-written. It is suggested that W7 be left in the UP position (primary flash memory) for normal operation, and only changed to the DOWN position (secondary flash memory) if configuration fails. Once rebooted via a power cycle, jumper W7 should be promptly restored to the UP position to allow the primary flash memory to be re-written. W7 UP DOWN MEMORY PRIMARY (NORMAL OPERATION) SECONDARY (BACKUP) 5I24 3

CONNECTORS CONNECTOR LOCATIONS AND DEFAULT JUMPER POSITIONS 5I24 4

CONNECTORS I/O CONNECTORS P2, P3, and P4 are the 5I24s I/O connectors. These are 50 pin box headers that mate with standard 50 conductor female IDC connectors. Suggested mating connector is AMP PN 1-1658621-0. Note that the power pin (pin 49) maybe 3.3V or 5V depending on the connector power option. P4 CONNECTOR PINOUT PIN FUNC PIN FUNC PIN FUNC PIN FUNC 1 IO0 2 GND 3 IO1 4 GND 5 IO2 6 GND 7 IO3 8 GND 9 IO4 10 GND 11 IO5 12 GND 13 IO6 14 GND 15 IO7 16 GND 17 IO8 18 GND 19 IO9 20 GND 21 IO10 22 GND 23 IO11 24 GND 25 IO12 26 GND 27 IO13 28 GND 29 IO14 30 GND 31 IO15 32 GND 33 IO16 34 GND 35 IO17 36 GND 37 IO18 38 GND 39 IO19 40 GND 41 IO20 42 GND 43 IO21 44 GND 45 IO22 46 GND 47 IO23 48 GND 49 POWER 50 GND DIFFERENTIAL PAIRS The 5I24 supports LVDS inputs on all I/O pin pairs. 16 LVDS outputs are supported on GPIO pins 44 through 59. 5I24 5

CONNECTORS I/O CONNECTORS P3 CONNECTOR PINOUT PIN FUNC PIN FUNC PIN FUNC PIN FUNC 1 IO24 2 GND 3 IO25 4 GND 5 IO26 6 GND 7 IO27 8 GND 9 IO28 10 GND 11 IO29 12 GND 13 IO30 14 GND 15 IO31 16 GND 17 IO32 18 GND 19 IO33 20 GND 21 IO34 22 GND 23 IO35 24 GND 25 IO36 26 GND 27 IO37 28 GND 29 IO38 30 GND 31 IO39 32 GND 33 IO40 34 GND 35 IO41 36 GND 37 IO42 38 GND 39 IO43 40 GND 41 IO44* 42 GND 43 IO45* 44 GND 45 IO46* 46 GND 47 IO47* 48 GND 49 POWER 50 GND * These pins support LVDS output. 5I24 6

CONNECTORS I/O CONNECTORS P2 CONNECTOR PINOUT PIN FUNC PIN FUNC PIN FUNC PIN FUNC 1 IO48* 2 GND 3 IO49* 4 GND 5 IO50* 6 GND 7 IO51* 8 GND 9 IO52* 10 GND 11 IO53* 12 GND 13 IO54* 14 GND 15 IO55* 16 GND 17 IO56* 18 GND 19 IO57* 20 GND 21 IO58* 22 GND 23 IO59* 24 GND 25 IO60 26 GND 27 IO61 28 GND 29 IO62 30 GND 31 IO63 32 GND 33 IO64 34 GND 35 IO65 36 GND 37 IO66 38 GND 39 IO67 40 GND 41 IO68 42 GND 43 IO69 44 GND 45 IO70 46 GND 47 IO71 48 GND 49 POWER 50 GND * These pins support LVDS output. 5I24 7

CONNECTORS JTAG CONNECTOR PINOUT P1 is a JTAG programming connector. This is normally used only for debugging or if the EEPROM configuration has been corrupted. In case of corrupted EEPROM contents the EEPROM can be re-programmed using Xilinx s Impact tool. For reprogramming, the card can be powered in a standard PCI slot or if desired, 3.3V power can be applied via the JTAG connector. P1 JTAG CONNECTOR PINOUT PIN FUNCTION 1 TMS 2 TDI 3 TDO 4 TCK 5 GND 6 +3.3V 5I24 8

OPERATION FPGA The 5I24 use a Xilinx Spartan6 X16 or X25 FPGA in a 256 ball BGA package: XC6SLX16FTG256 or XC6SLX25FTG256 depending on 5I24 model. FPGA PINOUT The local bus and I/O interface FPGA pinouts are described in the 5i24.ucf file in the /configs/hostmot2/source directory of the 5I24.zip file. PCI ACCESS The 5I24 normally uses 5I24 specific HostMot2 firmware which currently has a simple target only PCI core with a single Base Address Register (BAR 0). Card specific PCI identifiers are as follows: VENDOR ID DEVICE ID SUBSYSTEM VENDOR ID SUBSYSTEM DEVICE ID 0X2718 0x5124 0x2718 0x5124 The single base address register (BAR0) maps a 64K Byte region of non-cacheble 32 bit wide memory.. 5I24 9

OPERATION CONFIGURATION GENERAL The 5I24 is configured at power up by a SPI FLASH memory. This flash memory is an 16M bit chip that has space for two configuration files. Since all PCI logic in the 5I24 is in the FPGA, a problem with configuration means that PCI access will not be possible. For this reason there are two backup methods to recover from FPGA boot failures. FALLBACK The first backup system is called Fallback. The 5I24 flash memory normally contains two configuration file images, A user image and a fallback image. If the primary user configuration is corrupted, the FPGA will load the fallback configuration so the flash memory image can be repaired remotely without having to resort to switching memories or JTAG programming. DUAL EEPROMS The second backup method relies on the fact that there are two flash memories on the 5I24 card, selectable via jumper W7. If a configuration fails in such a way that it loads correctly (has a valid CRC) but does not work, the fallback configuration will not be invoked. To recover from this problem, the secondary flash can be selected by moving W7 to the DOWN position and using it to boot the FPGA (by cycling the power), restoring host access and allowing the primary configuration to be repaired via the host PCI bus. The backup EEPROM is not write protected so if the primary EEPROM has been corrupted, you should always restore W7 to the UP position to avoid writing a bad configuration to both EEPROMS, necessitating a slow and awkward JTAG bootstrap.. 5I24 10

OPERATION CONFIGURATION EEPROM LAYOUT The EEPROM used on the 5I24 for configuration storage is the M25P16. The M25P16 is a 16 M bit (2 M byte) EEPROM with 32 64KByte sectors. Configuration files are stored on sector boundaries to allow individual configuration file erasing and updating. Standard EEPROM sector layout is as follows: 0x000000 BOOT BLOCK 0x010000 FALLBACK CONFIGURATION BLOCK 0 0x020000 FALLBACK CONFIGURATION BLOCK 1 0x030000 FALLBACK CONFIGURATION BLOCK 2 0x040000 FALLBACK CONFIGURATION BLOCK 3 0x050000 FALLBACK CONFIGURATION BLOCK 4 0x060000 FALLBACK CONFIGURATION BLOCK 5 0x070000 FALLBACK CONFIGURATION BLOCK 6 0x080000 FALLBACK CONFIGURATION BLOCK 7 / UNUSED 5I24-16 0x090000 FALLBACK CONFIGURATION BLOCK 8 / UNUSED 5I24-16 0x0A0000 FALLBACK CONFIGURATION BLOCK 9 / UNUSED 5I24-16 0x0B0000 FALLBACK CONFIGURATION BLOCK 10 / UNUSED 5I24-16 0x0C0000 FALLBACK CONFIGURATION BLOCK 11 / UNUSED 5I24-16 0x0D0000 FALLBACK CONFIGURATION BLOCK 12 / UNUSED 5I24-16 0x0E0000 0x0F0000 UNUSED/FREE UNUSED/FREE 5I24 11

OPERATION EEPROM LAYOUT 0x100000 USER CONFIGURATION BLOCK 0 0x110000 USER CONFIGURATION BLOCK 1 0x120000 USER CONFIGURATION BLOCK 2 0x130000 USER CONFIGURATION BLOCK 3 0x140000 USER CONFIGURATION BLOCK 4 0x150000 USER CONFIGURATION BLOCK 5 0x160000 USER CONFIGURATION BLOCK 6 0x170000 USER CONFIGURATION BLOCK 7 / UNUSED 5I24-16 0x180000 USER CONFIGURATION BLOCK 8 / UNUSED 5I24-16 0x190000 USER CONFIGURATION BLOCK 0 9 / UNUSED 5I24-16 0x1A0000 USER CONFIGURATION BLOCK 0 10 / UNUSED 5I24-16 0x1B0000 USER CONFIGURATION BLOCK 0 11 / UNUSED 5I24-16 0x1C0000 USER CONFIGURATION BLOCK 0 12 / UNUSED 5I24-16 0x1D0000 0x1E0000 0x1F0000 UNUSED/FREE UNUSED/FREE UNUSED/FREE 5I24 12

OPERATION BITFILE FORMAT The configuration utilities expects standard FPGA bitfiles without any multiboot features enabled. If multiboot FPGA files are loaded they will likely cause a configuration failure. In addition for fallback to work, the -g next_config_register_write:disable, -g reset_on_error:enable and -g CRC:enable bitgen options must be set. NMFLASH The DOS utility program NMFLASH is provided to write configuration files to the 5I24 EEPROM under DOS. NMFLASH depends on a simple SPI interface built into both the standard user FPGA bitfiles and the fallback bitfile. NMFLASH FPGAFILE.BIT Writes a standard bitfile FPGAFILE.BIT to the user area of the EEPROM NMFLASH FPGAFILE.BIT V Verifies the user EEPROM configuration against the bit file FPGAFILE.BIT NMFLASH FALLBACK.BIT FallBack Writes the fallback EEPROM configuration to the fallback area of the EEPROM. In addition if the bootblock is not present in block 0 of the EEPROM, it re-writes the bootblock. NMFLASH requires the following environment variables to be set before operation: INTERFACE=PCIMEM and PROTOCOL=DIRECT. MESAFLASH Linux and Windows utility programs mesaflash and mesaflash.exe are provided to write configuration files to the 5I24 EEPROM. These files depend on a simple SPI interface built into both the standard user FPGA bitfiles and the fallback bitfile. If mesaflash is run with no command line arguments it will print usage information. mesaflash --device 5I24 --write FPGAFILE.BIT Writes a standard bitfile FPGAFILE.BIT to the user area of the EEPROM. mesaflash --device 5I24 --verify FPGAFILE.BIT Verifies the user EEPROM configuration against the bit file FPGAFILE.BIT. mesaflash --device 5I24 --fallback --write FALLBACK.BIT Writes FALLBACK.BIT to the fallback area of the 5I24's EEPROM. 5I24 13

OPERATION FPGA CONFIGURATION Once the flash EEPROM has been written by either the nmflash or mesaflash utility, the 5I24 power must be cycled to load the new firmware into the FPGA. This must be a full power cycle, a reboot operation will not reload the FPGA. SPI INTERFACE DESCRIPTION This is the register level description of the simple SPI interface to the 5I24's configuration EEPROM. This hardware is built into all Mesa 5I24 configurations. This information is only needed if you are writing your own programming utility. DATA REGISTER at offset 0x74 from 5I24 base address D7 D6 D5 D4 D3 D2 D1 D0 R/W R/W R/W R/W R/W R/W R/W R/W CONTROL REGISTER at offset 0x70 from 5I24 base address X X X X X DAV BUSY CS X X X X X R/O R/O R/W The SPI interface is very minimal, just enough hardware to avoid slow bit banging of the SPI data when reading or writing the configuration EEPROM. Operation is as follows: To transfer SPI data, CS is asserted low and an outgoing command/data byte is written to the data register. This write to the data register causes the SPI interface to clear its DAV bit, shift out its outgoing data byte, and shift in its incoming data. This shifting is done at a fixed PCI Clock/3 rate or about 11 MHz. When the byte data transfer is done, The DAV bit is set in the control register. Host software can poll this bit to determine when the transfer is done. When the transfer is done the incoming data from the EEPROM can be read in the data register, and the next byte sent out. Note that CS operation is entirely controlled by the host, that is for example with a 5 byte command sequence, the host must assert CS low, transfer 5 bytes with 5 write/read commands to the data register with per byte DAV bit polling and finally assert CS high when done. 5I24 14

OPERATION FREE EEPROM SPACE Three 64K byte blocks of EEPROM space are free when both user and fallback configurations are installed. It is suggested that only the last two blocks, 0xE0000 and 0xF0000 in the user area, be used for FPGA application EEPROM storage. FALLBACK INDICATION Mesa s supplied fallback configurations blink the red INIT LED on the top right hand side of the card if the primary configuration fails and the fallback configuration loaded successfully. If this happens it means the user configuration is corrupted or not a proper configuration for the 5I24s FPGA. This can be fixed by running the configuration utility and re-writing the user configuration. FAILURE TO CONFIGURE The 5I24 should configure its FPGA within a fraction of a second of power application. If the FPGA card fails to configure, both red LEDs on the right hand side of the card will remain illuminated after power up. If this happens the 5I24s EEPROM must be re-programmed via the JTAG connector. CLOCK SIGNALS The 5I24 has two FPGA clock signals. One is the PCI clock and the other is a 50 MHz crystal oscillator on the 5I24 card. Both clocks a can be multiplied and divided by the FPGAs clock generator block to generate a wide range of internal clock signals. Note that the PCI bus clock is often not known to a high degree of accuracy so for accurate timing applications, the on card 50 MHz oscillator should be used. 5I24 15

OPERATION LEDS The 5I24 has 4 FPGA driven user LEDs, and 2 status LEDs (red and yellow). The user LEDs can be used for any purpose, and can be helpful as a simple debugging feature. A low output signal from the FPGA lights the LED. The status LEDs reflect the state of the FPGA s DONE, and /INIT pins. The /DONE LED lights until the FPGA is configured at power-up. The /INIT LED lights when the power on reset is asserted, when there has been a CRC error during configuration. When using Mesas configurations, the /INIT LED blinks when the fallback configuration has been loaded. PULLUP RESISTORS All I/O pins are provided with pull-up resistors to allow connection to open drain, open collector, or OPTO devices. These resistors have a value of 3.3K so have a maximum pull-up current of 1.5 ma (5V pull-up) or 1 ma (3.3V pull-up). Note that all pull-up resistor networks are socketed so can be removed if pull-up resistors on the I/O pins are not wanted. In addition the pull-up resistors can be reversed in their sockets if pull-downs are required. IO LEVELS The Xilinx FPGAs used on the 5I24 have programmable I/O levels for interfacing with different logic families. The 5I24 does not support use of the I/O standards that require input reference voltages. All standard Mesa configurations use LVTTL levels. Note that even though the 5I24 can tolerate 5V signal inputs, its outputs will not swing to 5V. The outputs are push pull CMOS that will drive to the output supply rail of 3.3V. This is sufficient for TTL compatibility but may cause problems with some types of loads. For example when driving an LED that has its anode connected to 5V, in such devices as OPTO isolators and I/O module rack SSRs, the 3.3V high level may not completely turn the LED off. To avoid this problem, either drive loads that are ground referred, Use 3.3V as the VCC for VCC referred loads, or use open drain mode. STARTUP I/O VOLTAGE After power-up or system reset and before the the FPGA is configured, the pull-up resistors in there default position will pull all I/O signals to a high level. If the FPGA is used for motion control or controlling devices that could present a hazard when enabled, external circuitry should be designed so that this initial state results in a safe condition. 5I24 16

SUPPLIED CONFIGURATIONS HOSTMOT2 All supplied configurations are part of the HostMot2 motion control firmware set. All HostMot2 firmware is open source and easily extendible to support new interfaces or different sets of interfaces embedded in one configuration. For detailed register level information on Hostmot2 firmware modules, see the regmap file in the hostmot2 source code directory. SVST8_4IM2 SVST4_8 SVST8_4IM2 is a 8 axis servo/ 4 axis stepmotor configuration with 8 PWM outputs, 8 encoder inputs with index mask, 4 hardware stepgenerators, a watchdog timer and GPIO. SVST4_8 is a 4 axis servo/ 8 axis stepmotor configuration with 4 PWM outputs, 4 encoder inputs, 8 hardware stepgenerators, a watchdog timer and GPIO. SVST8_8IM2 SVST8_8IM2 is a 8 axis servo/ 8 axis stepmotor configuration with 8 PWM outputs, 8 encoder inputs with index mask, 8 hardware stepgenerators, a watchdog timer and GPIO. SVST1_4_7I47S 2X7I65 SVST1_4_7I47S is a 4 axis stepmotor configuration with 1 PWM output for spindle, and 4 encoder inputs, a watchdog timer and GPIO. For the 7I47S card. 2X7I65 is a configuration for up to two 7I65 octal analog servo interface cards. It has 16 encoder inputs, 2 SPI ports, a watchdog timer and GPIO. SV12IM_2X7I48 SV6_7I49 SV12IM_7I48 is a 12 axis servo configuration fro two 7I48 daughter cards. It has 12 encoder inputs, 12 PWM outputs, a watchdog timer and GPIO. SV6_7I49 is a six axis servo configuration for use with the 7I49 resolver input daughter card. Its has a 6 channel resolver interface, 6 pwm channels, a watchdog timer and GPIO. 5I24 17

SUPPLIED CONFIGURATIONS PIN FILES Each of the configurations has an associated file with file name extension.pin that describes the FPGA functions included in the configuration and the I/O pinout. These are plain text files that can be printed or viewed with any text editor. 5I24 18

REFERENCE SPECIFICATIONS POWER MIN MAX NOTES: 3.3V POWER SUPPLY 3.1V 3.5 V PCI supplied 3.3V 5V POWER SUPPLY 4.5V 5.5V PCI supplied 5V 3.3V POWER CONSUMPTION: ---- 400 ma Depends on FPGA Configuration MAX 5V CURRENT TO I/O CONNS ---- 700 ma Each (PTC Limit) TEMPERATURE RANGE -C version 0 o C +70 o C TEMPERATURE RANGE -I version -40 o C +85 o C 5I24 19