BVM PMCDIO64 User Manual

Manual P/N 854-11100 BVM Limited,
Hobb Lane, Hedge End, Southampton, SO30 0GH, UK. TEL: +44 (0)1489 780144 FAX: +44 (0)1489 783589 E-MAIL: sales@bvmltd.co.uk WEB: http://www.bvmltd.co.uk
User's Manual
PMCDIO64
64-bit Digital I/O
PMC Module
Board Revision A
Manual Revision B 04 April 2001
This material contains information of proprietary interest to BVM Ltd. It has been supplied in confidence and the recipient, by accepting this material, agrees that the subject matter will not be copied or reproduced, in whole or in part, nor its contents revealed in any manner or to any person except to meet the purposes for which it was delivered.
This page is intentionally left blank.
i
DISCLAIMER The information in this docum ent has been checked and is believed to be entirely reliable, however no responsibility is assumed for inaccuracies. BVM Ltd. reserves the right to make changes and/or improvements in both the product and the product documentation without notice. BVM Ltd. does not as sume any liability arising out of the application or use of any product desc ribed herein; neither does it convey any licence under its patent rights or the rights of others.
USE OF PRODUCT This product has been designed to operate in a PMC compatible elect rical environment. Insertion and rem oval of the module or cable(s) from the c arrier board must not be done whilst in a powered condition. Do not lever out any devices from the produc t , which us es surface-mounted devices extensively, as these can be fractured by excessive force. This product uses devices sensitive to static electricity. Ensure adequate static electricity precautions are observed when handling the product and associated devices.
RF. INTERFERENCE This product complies with European Council Directive 89/336/EEC (EMC directive), and c onforms to EN55022 : 1994 Class B (Limits and methods of measurement of radio interference characteristics of information technology equipment) and EN50082-1 : 1997 (Electromagnetic compatibility - Generic immunity standard, Part 1: residential, commercial and light industry) when used in accordance with the BVM EMC Guidelines Manual part number 454-77000 (available on request from BVM Ltd.).
GENERAL NOTICES UNPACKING AND INSPECT I ON
This product contains components which are susceptible to static discharge, and should be handled with appropriate caution.
Upon receipt of this product, visually ins pect the board for missing, broken or dam aged c om ponents and f or physic al damage to the printed circuit board or connectors. This product was shipped in perfect physical condition. Any physical damage to the product is the responsibilit y of the shipping carrier and should be reported to the carrier's agent immediately.
RETURN OF GOODS Before returning a product for repair, verify as well as possible that the suspected unit is at fault. Then cal l BVM Ltd. for a Customer Return (CR) number. Carefully package the unit, in the origi nal shipping carton if thi s is available, and ship prepaid and insured, preferably by courier, with the CR number written on the outside of the package. Include a return address and the telephone number of a technical contact, and a detailed description of the observed fault. For out-of-warranty repairs, a purchase order for repair charges must accom pany the return. BVM Ltd. will not be responsible for damage due to improper packaging of returned item s. Out of warranty repairs can be arranged, and will be charged on a material and labour basis, subject to a minimum repair charge. Return transportation and insurance will be charged as part of the repair and is in addition to the minimum charge.
SOFTWARE LICENCE NOTICE Any software that is provided as Copyright BVM Ltd. is proprietary and confidential property of BVM Ltd., and each single copy is given on the agreed understanding that it is licensed for use on product combinations supplied by BVM Ltd. or their appointed distributors only. The software product may not be copied (except for backup purposes), given away, rented, loaned, reproduced, distributed or trans mitted in any way or form , in whole or in part, without written permiss i on of BVM Ltd. This applies to any merged, m odif ied or derivative version of the software including, but not limited to, versions produced by customising, translating, reverse engineering, de-compiling or disassembly. This licence may be automatically terminated without notice if any of its provisions are breached. Reasonable legal costs may be awarded to the prevailing party in connection with this licence agreement. Use of, or accepted delivery of these produc ts shall constitute your acceptance of the provisi ons of this licence agreement.
WARRANTY A) BVM Ltd. warrants that the articles furnished hereunder are free from defects in m ateri al and workm anshi p f or one year after the date of shipment. B) All warranties and conditions, express and implied, statutory and otherwise, as t o the quality of t he goods or their fitness for any purpose are hereby excluded and with the exception of liability for death or personal injury caused by negligence as defined in the Unfair Contract Terms Act 1977 the s eller shall not be liable f or any loss , injury or damage arising direct ly or indirec tl y f rom t he use, application or storage of such goods. C) Subclause (B) above shall not apply where the buyer deals as a consumer as this expression is def ined in the Unfair Contract Terms A ct 1977. D) The liability of BVM Ltd. hereunder shall be limited to repair or replacement at the m anufacturers discretion of any defective unit. Equipment or parts which have been subject to abuse, misuse, accident, alteration, neglect, unauthorised repair or installation are not covered by this warranty. BVM Ltd. shall have the right of determination as to the existence and cause of any def ect. E) The warranty period of the replacement or a repaired product or part shall terminate with the t ermination of the warranty period with respect to the original product or part for all replacement parts supplied or repairs made during the warranty period. F) Although BVM Ltd. offer a high level of technical support and advice, due to t he complex nature and wide application of product configurations it is the responsibility of the purchaser to be s atisfied at the time of purchase that the products are suitable for the final application. G) The term 'Software' used herein is defined as 'any program data or code in source or binary format recorded in or on any readable device or media'. H) BVM Ltd. will effect all reasonable effort to resolve accepted reproducible software errors reported withi n 12 months of purchase. Acceptanc e of an error shall solely be based on conformance to supporting specifications. Proper operation of earlier releases is not guaranteed.
NOTICES Copyright 2000 by BVM Ltd. All trademarks are acknowledged to their respective owners.
ii
This page is intentionally left blank.
iii
Table Of Contents
Contents Page
1. Introduction.......................................................................................................................................1
1.1 Scope.........................................................................................................................................1
1.2 PMCDIO64 Part Numbers..........................................................................................................1
1.3 PMC I/O Board Part Numbers....................................................................................................1
2. Overview...........................................................................................................................................2
2.1 Board Layout..............................................................................................................................2
2.2 Features.....................................................................................................................................3
2.3 Applications................................................................................................................................3
3. Operation..........................................................................................................................................4
3.1 Block Diagram............................................................................................................................4
3.2 PCI9030 PCI Interface ...............................................................................................................4
3.3 Main Logic..................................................................................................................................5
3.3.1 Input Register..........................................................................................................................5
3.3.2 Output Register.......................................................................................................................5
3.3.3 Change Flags Register...........................................................................................................5
3.3.4 Direction Register ...................................................................................................................5
3.3.5 Function Register....................................................................................................................5
3.3.6 Control & Status Register....................................................................................................... 5
3.3.7 Watchdog Trigger Register ....................................................................................................5
3.3.8 Watchdog Timer Register ......................................................................................................5
3.3.9 Watchdog Status Register...................................................................................................... 5
3.4 I/O Interface ...............................................................................................................................6
3.5 93CS56 EEPROM......................................................................................................................6
3.6 18V256 EEPROM ......................................................................................................................6
4. Installation.........................................................................................................................................7
5. Configuration ....................................................................................................................................8
5.1 Link Positions.............................................................................................................................8
5.2 Link Definitions...........................................................................................................................8
5.2.1 LK1 to LK8 I/O Pull-Up Enable...............................................................................................8
5.2.2 LK9 to LK12 P5 Common Select ...........................................................................................9
6. Connections....................................................................................................................................10
6.1 Front Panel Connector.............................................................................................................10
6.2 Rear I/O Connector..................................................................................................................11
6.3 PMC I/O Board.........................................................................................................................11
6.4 PCI Connections ......................................................................................................................12
7. Programming..................................................................................................................................13
7.1 PCI Configuration Details.........................................................................................................13
7.2 Address Map............................................................................................................................13
7.3 Register Descriptions...............................................................................................................13
7.3.1 Input Register........................................................................................................................13
7.3.2 Output Register.....................................................................................................................13
7.3.3 Change Flags Register.........................................................................................................13
7.3.4 Direction Register .................................................................................................................14
7.3.5 Function Register..................................................................................................................14
7.3.6 Status & Control Register.....................................................................................................14
iv
7.3.6.1 Watchdog Interrupt Enable (Bit 3: WINEN) ........................................................14
7.3.6.2 Global Output Enable (Bit 4: GOPEN)................................................................14
7.3.6.3 Internal Watchdog Enable (Bit 6: IWDEN)..........................................................14
7.3.6.4 Watchdog Status (Bit 7: WDGST) ......................................................................14
7.3.6.5 Input Lock (Bit 12: INLOCK) ...............................................................................14
7.3.6.6 Output Hold (Bit 13: OUTHLD) ...........................................................................14
7.3.6.7 Interrupt On Change-of-State Enable (Bit 14: IOCEN) .......................................14
7.3.6.8 Interrupt On Change-of-State Status (Bit 15: IOCST).........................................14
7.3.7 Watchdog Trigger Register ..................................................................................................15
7.3.8 Watchdog Timer Register ....................................................................................................15
7.3.9 Watchdog Status Register.................................................................................................... 15
7.4 Interrupts..................................................................................................................................15
7.5 Windows
8. Specification ...................................................................................................................................16
8.1 On-Board Functions.................................................................................................................16
8.1.1 PCI9030 PCI Interface..........................................................................................................16
8.1.2 SpartanXL FPGA..................................................................................................................16
8.1.3 Local Clocks..........................................................................................................................16
8.2 Board Configuration .................................................................................................................16
8.3 I/O Interface .............................................................................................................................16
8.4 PMC Interface ..........................................................................................................................16
8.5 Operating Environment ............................................................................................................16
®
Driver Disc..............................................................................................................15
Appendix A - Data Sheets & Manual References...............................................................................17
A.1 PCI9030 PCI Interface .............................................................................................................17
A.2 Spartan-XL FPGA ....................................................................................................................17
A.3 74ABT16245A Buffers .............................................................................................................17
A.4 PMC Specification....................................................................................................................17
List of Figures
Figure Page
Figure 1 Board Layout Topside...............................................................................................................2
Figure 2 Board Layout Underside ...........................................................................................................2
Figure 3 Block Diagram...........................................................................................................................4
Figure 4 Link Positions............................................................................................................................8
Figure 5 Connector Pin-outs for 9-pin D-type........................................................................................11
1
PMCDIO64
1. Introduction
1.1 Scope
This manual provides:-
A getting started guide. Configuration details. A user reference guide. Details of implementation specific considerations for major devices. General Hardware Description.
This user manual does not provide:-
Detailed data on the operation of the PCI interface or FPGA logic devices. Detailed data on the operation of the configuration EEPROMS. Details on the content of the PMC specification. Details on the Windows
Information is provided to allow the m odule to be integrated into a s ystem and conf igured by a system engineer. This User's Manual is intended f or use by system integrators, service personnel, software engineers and end users.
This User's Manual covers details of the PMCDIO64 only, which is one in a range of PMCDIO digital I/O and PMCCTR counter/timer I/O PMC modules from BVM.
®
device driver.
Unless otherwise stated, address information is in hexadecimal notation.

1.2 PMCDIO64 Part Numbers

Part Number Type Description 853-11111 PMCDIO64 64-bit TTL digital I/O & change-of-state
A Windows® driver disc is available containing the digital I/O drivers and BVM installation files.
Part Number Description 850-11150
Windows
®
Driver Disc

1.3 PMC I/O Board Part Numbers

An 8 Port PMC I/O Board is available for the PMCDIO64 converting from the I/O connections to standard 9-pin D-type connectors.
Part Number Description 853-19900 8 Port PMC I/O Board rear straight 853-19901 8 Port PMC I/O Board rear right-angle 853-19902 8 Port PMC I/O Board front straight 853-19903 8 Port PMC I/O Board front right-angle
Copyright 2000 BVM Ltd.
PMCDIO64
2. Overview
2.1 Board Layout
2
Figure 1 Board Layout Topside
Figure 2 Board Layout Underside
Copyright 2000 BVM Ltd.
3
2.2 Features
64-bits of TTL level compatible I/O.
I/O byte selectable as input or outputs.
Inputs latched on 33MHz PCI clock.
Interrupt on change-of-state.
Change-of-state double-sampled on 33Mhz PCI clock.
Watchdog period programmable 125ms to 2sec.
Watchdog interrupt.
Watchdog tri-states outputs.
Front panel and rear I/O connections.
Conforms to PMC standard IEEE P1386.1/Draft 2.3 9
Conforms to PCI Local Bus Specification Revision 2.2.
2.3 Applications
Interfacing industrial equipment.
General purpose industrial I/O.
32-bit or 64-bit data I/O.
Fail-safe control.
th
October 2000.
PMCDIO64
Copyright 2000 BVM Ltd.
PMCDIO64
3. Operation
3.1 Block Diagram
4
Config.
EEPROM
PLX PCI9030
PCI to Local Bus
Interface
PCI Bus
16 bit local bus
Config.
EEPROM
Xilinx SpartanXL
for
Logic Functions
Xtal
Watchdog
32.768kHz
5V
tolerant
3.3V
Buffer
External
Connection
Figure 3 Block Diagram

3.2 PCI9030 PCI Interface

The PMCDIO64 uses a PLX PCI9030 PCI interface to a 16-bit local bus on-board. The general features of the PCI9030 are listed below.
PCI Local Bus Specification V2.2-compliant 32-bit, 33 MHz Bus Target Interface Device enabling PCI Burst Transfers up to 132 MB/s.
PCI Bus Power Management Interface Specification V1.1 compliant.
PCI Local Bus Specification V2.2 Vital Product Data (VPD) configuration support.
PCI Target Programmable Burst Management.
PCI Target Read Ahead mode.
PCI Target Delayed Read mode.
PCI Target Delayed Write mode.
Programmable Interrupt Generator/Controller.
Two programmable FIFOS for zero wait state burst operation.
Flexible Local Bus provides 32-bit Multiplexed or Non-Multiplexed Protocol for 8, 16, or 32-bit
Peripheral and Memory devices.
Serial EEPROM interface.
Nine programmable General Purpose I/O (GPIOS).
Five programmable Local Address spaces.
Four programmable independent chip selects.
Programmable Local Bus wait states.
Programmable Local Read pre-fetch mechanism.
Local Bus can run asynchronously to the PCI Bus.
Two programmable Local-to-PCI interrupts.
Endian Byte Swapping.
Note that not all of these features are pertinent to the PMCDIO64 - see section "A.1 PCI9030 PCI Interface (on page 17)" for further details of the device.
Copyright 2000 BVM Ltd.
5
PMCDIO64
3.3 Main Logic
The PMCDIO64 uses a Xilinx SpartanX L FPGA connected to the 16-bit local bus to provide the on­board logic functions as described below.
3.3.1 Input Register
A 64-bit Input Register containing a latched version of the I/O pins on the logic device. The signal is latched by the 33MHz PCI clock.
3.3.2 Output Register
A 64-bit Output Register whose contents are output to valid output pins.

3.3.3 Change Flags Register

A 64-bit Change Flags Register where each bit indicates an input that has changed state since interrupt on change-of-state was enabled.
3.3.4 Direction Register
An 8-bit Direction Register where each bit corres ponds to a group of 8 I/O bits . If the c orr esponding bit is set to 1 output is enabled otherwise input is enabled.
3.3.5 Function Register
An 8-bit Function Register which contains the low byte of the PCI Subsystem Device ID - used to determine the type of board fitted from the PMCDIO and PMCCTR range.

3.3.6 Control & Status Register

A 16-bit Control & Status Register where the bits are used to control and monitor the status of the following functions.
Watchdog Interrupt Control.
Global Output Control.
Watchdog Enable Control.
Watchdog Status.
Lock Inputs Control.
Hold Outputs Control.
Change-of-State Interrupt Control.
Change-of-State Status.

3.3.7 Watchdog Trigger Register

A 8-bit register in which bit 0 must be written alter nately 0 and 1 within ±25% of the watchdog refresh period.

3.3.8 Watchdog Timer Register

An 8-bit register defining the watchdog refresh period: 125ms; 250ms; 500ms; 1sec or 2sec.

3.3.9 Watchdog Status Register

An 8-bit register which indicates if the watchdog has timed out.
Copyright 2000 BVM Ltd.
PMCDIO64
6
3.4 I/O Interface
The 64-bits of I/O are connected to the outside world via 74ABT16245A buf fer devices with 2 bytes per device with separate output enables. These buffer devices have a 32mA source capability or 64mA sink capability when connected to outside signals. The I/O signals may be biased with 10K pull-up resistors on a per byte basis.
There are 4 comm on connections which can be used as power sour ces or ground returns f or the I/O signals - see section "5.2.2 LK9 to LK12 P5 Common Select (on page 9)" for further details.

3.5 93CS56 EEPROM

The PMCDIO64 is fitted with a 93CS56 EEPROM which is supplied pre-programm ed by BVM. T he contents of this EEPROM are read by the PCI9030 on coming out of reset and are used to s et up the control registers after reset, configuring the PCI interface configuration, PCI Device/Vendor ID's & various other board specific par ameters. See section "7.1 PCI Configur ation Details (on page 13)" and "A.1 PCI9030 PCI Interface (on page 17)" for further details.

3.6 18V256 EEPROM

The PMCDIO64 is fitted with a 18V256 EEPROM, which is supplied pre- programmed by BVM. The contents of this EEPROM are read by the SpartanXL FPGA on power up and are used to initialise the logic functions in the FPGA.
Copyright 2000 BVM Ltd.
7
PMCDIO64
4. Installation
1. PMC modules should only be installed when the host carrier board is in a powered-off condition to
avoid damage to the PMC module and host carrier board.
2. After removing any blanking panels on the host carr ier front panel, the PMC module should be
offered up to the host carrier site and the front panel carefully positioned through the host carrier front panel opening, taking care not to damage the EMC gasket on the PMC module front panel.
3. The PMC module should be fixed to the host carr ier using f our M2.5 x 6m m pan- head scr ews into
the four fixing holes provided (two on the front panel and two on the spacers).
4. There is no voltage keying on the PMCDIO64, it will work in both +3.3V and +5V host carriers.
5. The PMCDIO64 can be used with a BVM supplied connecting lead to standard 9-pin D-type
connectors, or a user supplied alternative.
6. Links must be s et acco rdingly for I/O pull-up enable/disable and c om m on selec t - see s ection "5.2
Link (on page 8)".
®
7. The installation can be tested with the example software on the Windows
section "7.5 Windows
®
Driver Disc (on page 15)".
Driver Disc - see
Copyright 2000 BVM Ltd.
PMCDIO64
5. Configuration
5.1 Link Positions
8
Figure 4 Link Positions
5.2 Link Definitions
The following link definitions r efer to the link positions as the shown above, i.e. with the PMC Front Panel connector to the right. Pin 1 is denoted by a filled in pin position. Link positions marked with a ! below show the default configuration.

5.2.1 LK1 to LK8 I/O Pull-Up Enable

The digital I/O signals to the PMCDIO64 may be pulled-up to +5V via 10K resistor networks in groups of 8 if link selected. See the table below for link to I/O equivalence.
OPERATIONLINK
FITTED OMITTED
LK1 LK2 LK3 LK4 LK5 LK6 LK7 LK8
Pull-up IO0 - IO7 via 10K Pull-up IO8 - IO15 via 10K Pull-up IO16 - IO23 via 10K Pull-up IO24 - IO31 via 10K Pull-up IO32 - IO39 via 10K Pull-up IO40 - IO47 via 10K Pull-up IO48 - IO55 via 10K Pull-up IO56 - IO63 via 10K
IO0 - IO7 NOT pulled-up
!
IO8 - IO15 NOT pulled-up
!
IO16 - IO23 NOT pulled-up
!
IO24 - IO31 NOT pulled-up
!
IO32 - IO39 NOT pulled-up
!
IO40 - IO47 NOT pulled-up
!
IO48 - IO55 NOT pulled-up
!
IO56 - IO63 NOT pulled-up
!
Copyright 2000 BVM Ltd.
9

5.2.2 LK9 to LK12 P5 Common Select

The front panel I/O connector P5 has 68 connections which allow 4 pins to be used as comm ons for the other 64 I/O signal connections. The comm ons m ay be individually selected as +5V (fused), GND or not-connected.
PMCDIO64
OPERATIONLINK
FITTED 1 TO 2 FITTED 2 TO 3 OMITTED
LK9 COM0 +5V ! LK10 COM1 +5V ! LK11 COM2 +5V ! LK12 COM3 +5V
!
COM0 GND COM0 N/C COM1 GND COM1 N/C COM2 GND COM2 N/C COM3 GND COM3 N/C
Copyright 2000 BVM Ltd.
PMCDIO64
10

6. Connections

6.1 Front Panel Connector

The I/O signals are available through a 68-pin SCSI-III style connector fitted to the f ront of the board ­the pin-out is shown below. If a PMC I/O board is used the D-type connector pin-out equivalents are also shown below - see section "6.3 PMC I/O Board (on page 11)" for further details.
Pin No. Signal D-type D-type Signal Pin No.
1 IO0 P1-1 P5-1 IO32 35 2 IO1 P1-6 P5-6 IO33 36 3 IO2 P1-2 P5-2 IO34 37 4 IO3 P1-7 P5-7 IO35 38 5 IO4 P1-3 P5-3 IO36 39 6 IO5 P1-8 P5-8 IO37 40 7 IO6 P1-4 P5-4 IO38 41 8 IO7 P1-9 P5-9 IO39 42
9 IO8 P2-1 P6-1 IO40 43 10 IO9 P2-6 P6-6 IO41 44 11 IO10 P2-2 P6-2 IO42 45 12 IO11 P2-7 P6-7 IO43 46 13 IO12 P2-3 P6-3 IO44 47 14 IO13 P2-8 P6-8 IO45 48 15 IO14 P2-4 P6-4 IO46 49 16 IO15 P2-9 P6-9 IO47 50
17 COM0 P1-5 &
P2-5
18 COM1 P3-5 &
P4-5
19 IO16 P3-1 P7-1 IO48 53 20 IO17 P3-6 P7-6 IO49 54 21 IO18 P3-2 P7-2 IO50 55 22 IO19 P3-7 P7-7 IO51 56 23 IO20 P3-3 P7-3 IO52 57 24 IO21 P3-8 P7-8 IO53 58 25 IO22 P3-4 P7-4 IO54 59 26 IO23 P3-9 P7-9 IO55 60
27 IO24 P4-1 P8-1 IO56 61 28 IO25 P4-6 P8-6 IO57 62 29 IO26 P4-2 P8-2 IO58 63 30 IO27 P4-7 P8-7 IO59 64 31 IO28 P4-3 P8-3 IO60 65 32 IO29 P4-8 P8-8 IO61 66 33 IO30 P4-4 P8-4 IO62 67 34 IO31 P4-9 P8-9 IO63 68
P5-5 &
P6-5
P7-5 &
P8-5
COM2 51
COM3 52
Copyright 2000 BVM Ltd.
11
PMCDIO64

6.2 Rear I/O Connector

The I/O signals are also connected to the P4 connec tor - the pin-out is shown below. This pin-out is compatible with the BVM cIO200 used with cPC200 i.e. the same lead may be used with the front panel or rear panel I/O. With the rear panel there are no comm on pins supplied from the PMCDIO64. If the rear I/O is to be used it is important that a suitable common is provided.
Pin No. Signal Signal Pin No.
1 IO0 IO32 2 3 IO1 IO33 4 5 IO2 IO34 6 7 IO3 IO35 8
9 IO4 IO36 10 11 IO5 IO37 12 13 IO6 IO38 14 15 IO7 IO39 16 17 IO8 IO40 18 19 IO9 IO41 20 21 IO10 IO42 22 23 IO11 IO43 24 25 IO12 IO44 26 27 IO13 IO45 28 29 IO14 IO46 30 31 IO15 IO47 32 33 IO16 IO48 34 35 IO17 IO49 36 37 IO18 IO50 38 39 IO19 IO51 40 41 IO20 IO52 42 43 IO21 IO53 44 45 IO22 IO54 46 47 IO23 IO55 48 49 IO24 IO56 50 51 IO25 IO57 52 53 IO26 IO58 54 55 IO27 IO59 56 57 IO28 IO60 58 59 IO29 IO61 60 61 IO30 IO62 62 63 IO31 IO63 64

6.3 PMC I/O Board

If required, a SCSI-III style lead can be used to connect to the BVM 8 Port PMC I/O Board fr om either the Front Panel Connector or the Rear I/O Connector providing 8 off 9 pin D-type connectors - see section "1.3 PMC I/O Board Part Number s (on page 1)" - in which c ase the resulting 9 pin D-type pin­outs are shown below in Figure 5.
N = 0 to 7
1
IO1+(Nx8) IO3+(Nx8) IO5+(Nx8) IO7+(Nx8)
Figure 5 Connector Pin-outs for 9-pin D-type
6 7 8 9
IO0+(Nx8)
2
IO2+(Nx8)
3
IO4+(Nx8)
4
IO6+(Nx8)
5
COM
Copyright 2000 BVM Ltd.
PMCDIO64
12
6.4 PCI Connections
P1 and P2 provide the standard PCI signals on the PMC m odule, as defined in the PMC s pecification and reproduced for reference purposes below.
P1 32 Bit PCI P2 32 Bit PCI
Pin Signal
Name
1 TCK -12V 2 1 +12V TRST# 2 3 Ground INTA# 4 3 TMS TDO 4 5 INTB# INTC# 6 5 TDI Ground 6 7 BUSMODE1# +5V 8 7 Ground PCI-RSVD* 8
9 INTD# PCI-RSVD* 10 9 PCI-RSVD* PCI-RSVD* 10 11 Ground PCI-RSVD* 12 11 BUSMODE2# +3.3V 12 13 CLK Ground 14 13 RST# BUSMODE3# 14 15 Ground GNT# 16 15 3.3V BUSMODE4# 16 17 REQ# +5V 18 17 PME# Ground 18 19 V (I/O) AD[31] 20 19 AD[30] AD[29] 20 21 AD[28] AD[27] 22 21 Ground AD[26] 22 23 AD[25] Ground 24 23 AD[24] +3.3V 24 25 Ground C/BE[3]# 26 25 IDSEL AD[23] 26 27 AD[22] AD[21] 28 27 +3.3V AD[20] 28 29 AD[19] +5V 30 29 AD[18] Ground 30 31 V (I/O) AD[17] 32 31 AD[16] C/BE[2]# 32 33 FRAME# Ground 34 33 Ground PMC-RSVD 34 35 Ground IRDY# 36 35 TRDY# +3.3V 36 37 DEVSEL# +5V 38 37 Ground STOP# 38 39 Ground LOCK# 40 39 PERR# Ground 40 41 SDONE# SBO# 42 41 +3.3V SERR# 42 43 PAR Ground 44 43 C/BE[1]# Ground 44 45 V (I/O) AD[15] 46 45 AD[14] AD[13] 46 47 AD[12] AD[11] 48 47 Ground AD[10] 48 49 AD[09] +5V 50 49 AD[08] +3.3V 50 51 Ground C/BE[0]# 52 51 AD[07] PMC-RSVD 52 53 AD[06] AD[05] 54 53 +3.3V PMC-RSVD 54 55 AD[04] Ground 56 55 PMC-RSVD Ground 56 57 V (I/O) AD[03] 58 57 PMC-RSVD PMC-RSVD 58 59 AD[02] AD[01] 60 59 Ground PMC-RSVD 60 61 AD[00] +5V 62 61 ACK64# +3.3V 62 63 Ground REQ64# 64 63 Ground PMC-RSVD 64
Signal Name
Pin Pin Signal
Name
Signal Name
Pin
Copyright 2000 BVM Ltd.
13
PMCDIO64
7. Programming

7.1 PCI Configuration Details

A pre-programm ed EEPROM contains the BVM PCI Vendor ID, which is 15C0 (hexadec imal) and the PCI Device ID, which is 02FF (hexadecim al) and the BVM PCI Subsystem Vendor ID, which is 15C0 (hexadecimal) and the PCI Subsystem Device ID, which is 0265 (hexadecimal).
7.2 Address Map
The PMCDIO64 uses BAR2 for ac cess to the user accessible regis ters which are mapped into PCI memory space as shown below. BAR0 is used for access to the PCI9030 configuration r egis ter offsets which are also mapped into PCI memory space. Details of PCI9030 c onfiguration are not covered in this User's Manual - see section "A.1 PCI9030 PCI Interface (on page 17)" for fur ther details. BAR1, BAR3 and above are unused.

Address Description Access Size 007 - 000 Input Register R 64

00f - 008 Output Register R/W 64 017 - 010 Change Flags Register R 64 018 Direction Register R/W 8 019 Function Register R 8 01B - 01A Status & Control Register R/W 16 0FF - 01C Reserved (reads 0) R 100 Watchdog Trigger Register R/W 8 103 - 101 Unused (undefined) 104 Watchdog Timer Register R/W 8 107 - 105 Unused (undefined) 108 Watchdog Status Register R 8 1FF - 109 Unused (undefined)

7.3 Register Descriptions
7.3.1 Input Register
The 64-bit read only Input Register contains a latched version of the I/O pins on the logic device. T he signal is latched by the 33MHz PCI clock. When reading bac k the output signals, no acc ount is taken of values beyond the I/O buffers. To read a 64-bit register requires two 32-bit PCI read cycles, each of which generates two 16-bit read cycles on the local bus. As data consistency across the register cannot be guaranteed, an "input lock bit" is provided in the Status & Control Register - see section "7.3.6.5 Input Lock (Bit 12: INLOCK) (on page 14)" - when this bit is set the input buffer will not update.
7.3.2 Output Register
The 64-bit read/write Output Register contents are output to valid output pins. To write to a 64-bit register requires two 32-bit PCI writes, each requiring two 16-bit write cycles on the local bus. This means that it is imposs ible to ensure that all outputs ar e updated at the sam e tim e. Fo r this reas on an "output hold bit" is provided in the Status & Control Register - see section "7.3.6.6 O utput Hold (Bit 13: OUTHLD) (on page 14)" - when this bit is set the contents of the output buffer can be altered without affecting the outputs, when this bit is clear ed all outputs will change to their new value at the same time.

7.3.3 Change Flags Register

The 64-bit read only Change Flags Register contains bits which indicate whether that partic ular input caused a change-of-state to occur. The change-of-s tate function is enabled in the Status & Control Register - see section "7.3.6.7 Interrupt On Change- of-State Enable (Bit 14: IOCEN) (on page 14) ". The overall status of the change-of-state c an be determined in the Status & Control Register where the Change Flags can also be cleared - see sect ion "7.3.6.8 Interrupt On Change-of -State Status (Bit 15: IOCST) (on page 14)".
Copyright 2000 BVM Ltd.
PMCDIO64
7.3.4 Direction Register
The 8-bit read/write Direction Register where each bit corresponds to a group of 8 I/O bits. If the corresponding bit is set to 1 the bit is enabled as an output otherwise it is enabled as an input.
14
7 6 5 4 3 2 1 0
IO63-56 IO55-48 IO47-40 IO39-32 IO31-24 IO23-16 IO15-8 IO7-0
7.3.5 Function Register
The 8-bit read only Function Register contains the low byte of the PCI Subsystem Device ID - in this case 65 (hexadecimal) . This can be used to deter mine the type of board fitted from the PMCDIO and PMCCTR range.

7.3.6 Status & Control Register

The 16-bit read/write Status & Control Register is used to c ontr ol a number of the module functions as described below. Reserved bits (RSVD) read as zero and should be written as zero for future compatibility.
7 6 5 4 3 2 1 0
WDGST IWDEN RSVD GOPEN WINEN RSVD RSVD RSVD
15 14 13 12 11 10 9 8
IOCST IOCEN OUTHLD INLOCK RSVD RSVD RSVD RSVD
7.3.6.1 Watchdog Interrupt Enable (Bit 3: WINEN)
When set to 1 this bit enables the generation of a PCI Interr upt if an enabled internal watchdog times out - see section "7.3.6.3 Internal W atchdog Enable (Bit 6: IWDEN) (below)". If clear no PCI Interrupt will be generated.
7.3.6.2 Global Output Enable (Bit 4: GOPEN)
When set to 1 signals selected as outputs are enabled. If clear signals selected as outputs are disabled. Input signals are unaffected.
7.3.6.3 Internal Watchdog Enable (Bit 6: IWDEN)
When set to 1 the internal watchdog function is enabled and if the watchdog times-out then the outputs will be disabled. If clear the state of the watchdog is ignored.
7.3.6.4 Watchdog Status (Bit 7: WDGST)
When set to 1 this bit indicates an enabled internal watchdog has timed-out - see section "7.3.6.3 Internal Watchdog Enable (Bit 6: IWDEN) (above)". Once set this bit cannot be cleared.
7.3.6.5 Input Lock (Bit 12: INLOCK)
When set to 1 the Input Regis ter will be locked and will not be updated when the input signals change. If clear the Input Register will reflect the state of the input signals.
7.3.6.6 Output Hold (Bit 13: OUTHLD)
When set to 1 then s ignals selected as outputs will not be updated from the Output Register, but the Output Register can still be written. W hen clear then the signals selected as outputs will reflect the state of the Output Register
7.3.6.7 Interrupt On Change-of-State Enable (Bit 14: IOCEN)
When set to 1 a PCI inter rupt will be generated when signals selected as inputs change state. W hen clear no PCI interrupt will be generated on input change-of-state. Note that when change-of-state mode is enabled that the Input Register will be locked and will not be updated until the mode is disabled.
7.3.6.8 Interrupt On Change-of-State Status (Bit 15: IOCST)
This bit is set to 1 if any change flags are s et after Interrupt On Change-of-State has been enabled. Writing a 1 clears all change flags.
Copyright 2000 BVM Ltd.
15

7.3.7 Watchdog Trigger Register

The 8-bit read/write W atchdog Tr igger Register m ust be written to with bit 0 set to 0 and 1 alternately within ±25% of the watchdog refresh time when the watchdog function is enabled in the Status & Control Register - see section "7.3.6 Status & Control Register (on page 14)".

7.3.8 Watchdog Timer Register

The 8-bit read/write Watchdog Tim er Register is used to set the refresh period. T he watchdog timer runs from its own independent 32.768kHz oscillator and has a program mable refr esh period between 125ms and 2sec. On reset the watchdog is not running and has a refresh period of 125ms. The watchdog timer is started by the first write to the watchdog trigger register. Bits 2 - 0 set the refresh period, bits 7 - 3 are undefined on a read and should be written as zero for future compatibility.
Note that once the internal watchdog is running, this register is read only - writing to the regis ter will cause the watchdog to trigger.
PMCDIO64
Bits
Watchdog Refresh Period
2 - 0
0 125ms 1 250ms 2 500ms 3 1.0sec 4 2.0sec 5 2.0sec 6 2.0sec 7 2.0sec

7.3.9 Watchdog Status Register

The 8-bit read only Watc hdog Status Register is us ed to determine the s tatus of the watchdog. W hen bit 0 is read as 1 the watchdog function is enabled, when bit 1 is read as 1 the watchdog f unction has been started, bits 7 - 2 are undefined when read.
Note that writing to this register whilst the internal watchdog is running will cause the watchdog to trigger.
Bits
Watchdog Status
1 - 0
0 Not Started 1 Illegal State 2 Tripped 3 Running
7.4 Interrupts
PCI INTA# is generated when a change-of-state oc curs after being enabled or a watchdog time-out occurs after the watchdog is enabled. The interrupt will be removed when the change flags are cleared
- see section "7.3.6.8 Interrupt On Change-of -State Status (Bit 15: IOCST) (on page 14)" and when the watchdog interrupt is disabled - see section "7.3.6.1 Watchdog Interrupt Enable (Bit 3: WINEN) (on page 14)".
7.5 Windows® Driver Disc
BVM can supply a disc containing the driver files and example source code for W indows® 98, NT4.0 and 2000 along with BVM installation files. The BVM installation f iles will ensure that the cor rect driver configuration is selected upon installation.
Copyright 2000 BVM Ltd.
PMCDIO64
16

8. Specification

8.1 On-Board Functions

8.1.1 PCI9030 PCI Interface

PCI 2.2 compliant 32-bit, 33-MHz Bus Target Interface Device PCI Target Read Ahead mode disabled PCI Target Delayed Read mode disabled PCI Target Delayed Write mode disabled Programmable Interrupt Generator Local Bus provides 32-bit non-multiplexed 16-bit peripheral access Local Bus zero wait state Programmable Local-to-PCI interrupt
8.1.2 SpartanXL FPGA
Input Register Output Register Change Flags Register Direction Register Function Register Status & Control Register Watchdog Trigger Register Watchdog Timer Register Watchdog Status Register
8.1.3 Local Clocks
32.768KHz timer clock
8.2 Board Configuration
LINKS: Pull-Up enables, Common Selection EEPROM: PCI Configuration, FPGA Configuration
8.3 I/O Interface
64-bits of TTL compatible I/O I/O direction byte selectable Global output enable 74ABT16245A buffers 32mA source capability 64mA sink capability Re-settable fuse protected at 2.5A
8.4 PMC Interface
Bus Interface: PCI 2.2 compliant Bus Width: 32-bit Bus Speed: 33MHz Data Transfer: PCI 2.2 Bus Target Interrupts: PCI INT #A Memory Address: BIOS assigned
8.5 Operating Environment
Dimensions: 74.0mm x 149.0mm (single PMC size) Power: +3.3V 215mA typical
+5V 5mA typical, excluding external requirements
Environmental: 0 to 70 °C, 95%
humidity non-condensing (extended range to order)
Copyright 2000 BVM Ltd.
17
PMCDIO64

Appendix A - Data Sheets & Manual References A.1 PCI9030 PCI Interface

PLX PCI9030 PCI SMARTarget™ I/O Accelerator, Data Book Version 1.0 April 2000. (http://www.plxtech.com)
A.2 Spartan-XL FPGA
Spartan and SpartanXL Families Field Programmable Gate Arrays DS060 (V1.5) March 2, 2000. (http://www.xilinx.com)

A.3 74ABT16245A Buffers

SN54ABT16245A, SN74ABT16245A 16-bit Bus Transceivers with 3-State Outputs, SCBS300E, March 1994, Revised March 1999. (http://www.ti.com)
A.4 PMC Specification
IEEE Draft Standard Physical and Environmental Layers for PCI Mezzanine Cards: PMC P1386.1/Draft 2.3 9 (http://www.ieee.org)
th
October 2000.
Copyright 2000 BVM Ltd.
Loading...