Contec BUF-PCI(PC) User manual

Artisan Technology Group is your source for quality
new and certied-used/pre-owned equipment
• FAST SHIPPING AND
DELIVERY
• TENS OF THOUSANDS OF
IN-STOCK ITEMS
• EQUIPMENT DEMOS
• HUNDREDS OF
MANUFACTURERS
SUPPORTED
• LEASING/MONTHLY
RENTALS
• ITAR CERTIFIED
SECURE ASSET SOLUTIONS
SERVICE CENTER REPAIRS
Experienced engineers and technicians on staff
at our full-service, in-house repair center
WE BUY USED EQUIPMENT
Sell your excess, underutilized, and idle used equipment
We also offer credit for buy-backs and trade-ins
www.artisantg.com/WeBuyEquipment
REMOTE INSPECTION
Remotely inspect equipment before purchasing with
our interactive website at www.instraview.com
LOOKING FOR MORE INFORMATION?
Visit us on the web at www.artisantg.com for more
information on price quotations, drivers, technical
specications, manuals, and documentation
Contact us: (888) 88-SOURCE | sales@artisantg.com | www.artisantg.com
SM
View
Instra

BUF-PCI(PC), BUF-PCI(98)
Bus Expansion
User’s Guide

BUF-PCI(PC), BUF-PCI(98) i
Copyright
Copyright 1998 CONTEC CO., LTD. ALL RIGHTS RESERVED
No part of this document may be copied or reproduced in any form by
any means without prior written consent of CONTEC CO., LTD.
CONTEC CO., LTD. makes no commitment to update or keep current
the information contained in this document. The information in this
document is subject to change without notice.
All relevant issues have been considered in the preparation of this
document. Should you notice an omission or any questionable item in
this document, please feel free to notify CONTEC CO., LTD.
Regardless of the foregoing statement, CONTEC assumes no
responsibility for any errors that may appear in this document nor for
results obtained by the user as a result of using this product.
Trademarks
MS, Microsoft, MS-DOS and Windows are trademarks of Microsoft
Corporation. Other brand and product names are trademarks of their
respective holder.

BUF-PCI(PC), BUF-PCI(98)ii
Product Configuration
-BUS-PCI(PCI) Board ... 1
-BUS-PCI(PC) Board or BUS-PCI(98) Board ... 1
-Connecting Cable …1
-BUF-PCI Driver Install Disk (3.5 inch / 1.44MB) ... 2
-User's Guide (this booklet) ... 1
Unpacking:
This board is specially packed in an anti-static bag to prevent damage in
shipping.
Check the contents to make sure that you have everything listed above.
If you do not have all the items, contact your distributor or CONTEC
group office where you purchased.
Note! Do not remove the board from its protective packaging until the
computer case is open and ready for installation. Electrical static can
cause damage to electrical components.

BUF-PCI(PC), BUF-PCI(98) iii
Table of Contents
Copyright............................................................................i
Trademarks ........................................................................i
Product Configuration...................................................... ii
1. Introduction .............................................................1
About the BUF-PCI(PC) or BUF-PCI(98)....................1
Features.........................................................................2
Functions.......................................................................2
Limited Three-Year Warranty......................................3
How to Obtain Service..................................................3
Liability.........................................................................3
Restrictions....................................................................4
Handling Precautions...................................................5
About the Manual.........................................................6
2. Setup .......................................................................7
Setup Procedure................................................................7
Setting Up and Mounting the BUS-PCI(PCI) Board.......8
Setting Whether or not to Use Interrupt Resources ...8
Setting the Board ID.....................................................9
Mounting the BUS-PCI(PCI) Board.............................9
Setting Up and Mounting the BUS-PCI(PC) or
BUS-PCI(98) Board............................................10
Setting Up I/O Expansion Unit Power Control .........10
Mounting the BUS-PCI(PC) or BUS-PCI(98) Board.11
Connecting the PC to the I/O Expansion Unit...............12
Turning Power On...........................................................13
Installing the BUF-PCI Driver Software.......................14
Installing for Windows XP..........................................14
Installing for Windows 2000.......................................18
Installing for Windows NT .........................................22
Installing for Windows Me .........................................24
Installing for Windows 98...........................................28
Installing for Windows 95...........................................32
Installing for MS-DOS................................................39

BUF-PCI(PC), BUF-PCI(98)iv
Mounting Boards for Use in the I/O Expansion Unit....40
Verifying Restrictions and Specifications..................40
Setting I/O Port Addresses .........................................41
Setting Interrupt Request Levels...............................41
Mounting and Turning the Power On........................42
3. Programming.......................................................... 43
Programming with Windows..........................................44
About the BUF-PCI Driver Software.........................44
Function List...............................................................44
Programming Input and Output to and
from I/O Ports.....................................................45
Programming Interruption.........................................46
Programming Self-testing ..........................................48
Function Reference.....................................................48
BufPciOpen......................................................................49
BufPciClose......................................................................51
BufPciSetBusSignal........................................................52
BufPciInPortB.................................................................54
BufPciInPortW................................................................55
BufPciOutPortB ..............................................................57
BufPciOutPortW..............................................................58
BufPciSetIrqEvent..........................................................60
BufPciStopEvent.............................................................62
BufPciRestartEvent........................................................64
BufPciGetIrqStatus.........................................................65
BufPciSetProgramWait...................................................67
BufPciSelfTest .................................................................68
List of Return Values..................................................70
Sample Program for Windows....................................73
Programming in an OS other than Windows.................74
I/O Port Input/Output Procedure...............................74
Interrupt Procedure....................................................75
Details of I/O Port Addresses..........................................77
List of Output Ports....................................................77
List of Input Ports.......................................................78
Detailed Description...................................................79

BUF-PCI(PC), BUF-PCI(98) v
Sample Programs for MS-DOS...................................83
4. System Reference.................................................... 85
Hardware Specifications.................................................85
System Specifications.................................................85
Specifications of Each Board......................................85
Cable Specifications....................................................86
List of BUF-PCI(PC) I/O Expansion Slot Signals......87
List of BUF-PCI(98) I/O Expansion Slot Signals ......88
Software (BUF-PCI Driver) Specifications....................89
5. Troubleshooting ...................................................... 91
The Product cannot be Set Up Properly.........................91
The PC and/or the I/O Expansion Unit does not
Start Up ..............................................................91
The BUF-PCI Driver cannot be Installed..................91
Self-testing does not Result in OK.............................91
Board Mounted in the I/O Expansion Unit cannot be
Accessed..............................................................92
No Input or Output can be Performed on I/O Ports..92
No Interruption can be Performed.............................93
6. Index ..................................................................... 95

BUF-PCI(PC), BUF-PCI(98)vi
List of Figures
Figure 2.1. DIP Switch SW1....................................................... 8
Figure 2.2. Mounting Diagrams................................................ 10
Figure 2.3. Connection Diagram............................................... 12
Figure 3.1. Programming I/O Port Input and Output Processes .45
Figure 3.2. Main Routine Programming Procedure................... 46
Figure 3.3. Programming Procedure for Message Processing by
Event...................................................................... 47
Figure 3.4. Main Routine Programming Procedure................... 47
Figure 3.5. Timer Process Programming Procedure.................. 48
List of Table
Table 2.1. Specifying Whether or not to Use Interrupt Resources... 8
Table 2.2. Setting Board IDs.......................................................... 9
Table 3.1. List of Functions.......................................................... 44
Table 4.1. BUF-PCI(PC) System Specifications........................... 85
Table 4.2. BUF-PCI(98) System Specifications............................ 85
Table 4.3. BUS-PCI(PCI) Board Specifications ........................... 85
Table 4.4. BUS-PCI(PC) Board Specifications............................. 86
Table 4.5. BUS-PC(98) Board Specifications............................... 86
Table 4.6. Cable Specifications.................................................... 86
Table 4.7. List of BUF-PCI(PC) I/O Expansion Slot Signals........ 87
Table 4.8. List of BUF-PCI(98) I/O Expansion Slot Signals......... 88
Table 4.9. Software Specifications............................................... 89

Introduction
BUF-PCI(PC), BUF-PCI(98) 1
1. Introduction
About the BUF-PCI(PC) or BUF-PCI(98)
Thank you for purchasing the BUF-PCI(PC) or BUF-PCI(98).
The product is a bus conversion adapter that allows you to add ISA or C
bus-equivalent expansion slots by connecting the PCI bus expansion
slot in the PC with the CONTEC I/O expansion unit.
Please read this document thoroughly before starting building a system,
including creating application programs and connecting with external
devices.
This product consists of the following
-BUS-PCI(PCI) board (to be mounted in the PCI bus expansion slot in
the PC)
-BUS-PCI(PC) board or BUS-PCI(98) board (to be mounted in
CONTEC's I/O expansion unit)
-Cable for connecting the above two products
In order to use the adapter, you need an I/O expansion unit FA-PAC
series, which is sold separately, in addition to the above.

Introduction
BUF-PCI(PC), BUF-PCI(98)2
Features
-The BUS-PCI(PCI) board is a PCI bus-compliant interface board
which can be used with the IBM PC-AT compatibles, NEC
PC98-NX series, and PC-9800 series in which a PCI bus expansion
slot is available.
-Allows you to add I/O-accessible ISA or C bus-equivalent expansion
slots.
-Verifies an interrupt request from the interface board mounted in the
I/O expansion unit to accomplish the interrupt process.
-Driver software for control of the interface board mounted in the I/O
expansion unit is available for Windows XP, Windows 2000,
Windows NT, Windows Me, Windows 98 and Windows 95.
-The I/O access wait and the refresh signal for the I/O expansion unit
can be enabled or disabled.
-Comes with a self-diagnostic feature.
Functions
General-purpose I/O accessing
Allows you to access an added expansion slot for I/O. The I/O wait can
be specified with software.
Interruption
An interrupt can be generated with an interrupt request signal from the
added expansion slot. The status of the interrupt request signal can also
be verified.
Control of the refresh signal
Enabling or disabling of the refresh signal for the added expansion slot
can be specified with software.
Self-testing
Allows self-testing using a dedicated register mounted on the board.

Introduction
BUF-PCI(PC), BUF-PCI(98) 3
Limited Three-Year Warranty
CONTEC Interface boards are warranted by CONTEC CO., LTD. to be
free from defects in material and workmanship for up to three years
from the date of purchase by the original purchaser.
Repair will be free of charge only when this device is returned freight
prepaid with a copy of the original invoice and a Return Merchandise
Authorization to the distributor or the CONTEC group office, from
which it was purchased.
This warranty is not applicable for scratches or normal wear, but only
for the electronic circuitry and original boards. The warranty is not
applicable if the device has been tampered with or damaged through
abuse, mistreatment, neglect, or unreasonable use, or if the original
invoice is not included, in which case repairs will be considered beyond
the warranty policy.
How to Obtain Service
For replacement or repair, return the device freight prepaid, with a copy
of the original invoice. Please obtain a Return Merchandise
Authorization Number (RMA) from the CONTEC group office where
you purchased before returning any product.
*No product will be accepted by CONTEC group without the
RMA number.
Liability
The obligation of the warrantor is solely to repair or replace the product. In
no event will the warrantor be liable for any incidental or consequential
damages due to such defect or consequences that arise from inexperienced
usage, misuse, or malfunction of this device.

Introduction
BUF-PCI(PC), BUF-PCI(98)4
Restrictions
The expansion slot this product adds to the I/O expansion unit is not
fully compatible with the expansion slot in the PC. For this reason, a
board that can be mounted and used in the expansion unit is subject to
some restrictions.
A board that operates only with I/O accessing (I/O instructions) can be
mounted and used in the expansion unit. A board that requires
specialized operations might not function properly even if it operates
with I/O accessing. Before using therefore, be sure to verify the
specifications of the board you will be mounting in the I/O expansion
unit.
The following boards cannot be used.
-A board that uses specific I/O port addresses (a board that does not
allow its I/O port addresses to be reset, such as a PnP board)
-A board that uses memory accessing (a memory expansion board or a
board that uses an extended ROM area)
-A board that uses DMA
-A board that outputs control signals to the PC, such as an external
CPU board
-A board that is used to add another I/O expansion unit
-A board specifically mentioned that it cannot be used in the manual
of a PC which uses an I/O expansion unit
-A board that requires an I/O wait of more than one microsecond
-A board that uses I/O port address lower 8 bits F8h-FFh

Introduction
BUF-PCI(PC), BUF-PCI(98) 5
Handling Precautions
Be aware of the following precautions when handling this board:
-To prevent the board from being damaged, avoid shock and vibration
and do not bend the board.
-Do not modify the board. CONTEC is not responsible for modified
boards.
-Do not touch gold-plated terminals (edge connectors) on the board.
Touching the terminals causes poor contact. If you accidentally
touch a terminal, wipe it off with industrial alcohol.
-The board has switches which you need to set. Be sure to verify these
switches before mounting the board in the slot.
-Set the switches and jumpers on the board as designated. Setting
them otherwise will cause failures.
-Connect only designated signals to the connectors on the board.
Connecting otherwise will cause failures.
-Mount the board only in the designated expansion slot.
-Do not insert or remove the board with the PC or the I/O expansion
unit turned on. Inserting or removing the board with either power
turned on will cause failures. Be sure to turn the PC or the I/O
expansion unit off.
-The total current consumption of the board to be mounted in the
expansion slot of the PC or I/O expansion unit must not exceed the
power capacity allowed for the PC or the I/O expansion unit.
Exceeding the limit will cause failures.

Introduction
BUF-PCI(PC), BUF-PCI(98)6
About the Manual
This manual consists of the following chapters:
Chapter 1 Introduction
Chapter 2Setup
Explains product setup procedures and switch setting
procedures for using this product.
Chapter 3 Programming
Explains programming procedures needed to use this
product.
Chapter 4System Reference
Explains the specifications of this product.
Chapter 5Troubleshooting
Refer to this chapter when you have trouble with setting
up the product or when it does not function normally.
Chapter 6 Index

Setup
BUF-PCI(PC), BUF-PCI(98) 7
2. Setup
This chapter explains how to set up the environment that allows this
product to be used.
Setup Procedure
Set up the product following these steps.
(1) Setting up and mounting the BUS-PCI(PCI) board
(2) Setting up and mounting the BUS-PCI(PC) or BUS-PCI(98) board
(3) Connecting the PC to the I/O expansion unit
(4) Turning power on
(5) Installing the BUF-PCI driver
(6) Mounting a board to be used in the I/O expansion unit

Setup
BUF-PCI(PC), BUF-PCI(98)8
Setting Up and Mounting
the BUS-PCI(PCI) Board
DIP switch SW1 allows you to set whether or not to use interrupt
resources and the board ID. Figure 2.1 shows its factory settings.
Figure 2.1. DIP Switch SW1
Setting Whether or not to Use Interrupt Resources
Specify whether or not to use interrupt resources with DIP switch
SW1-1.
When using the interrupt function of the board mounted in the I/O
expansion unit, set SW1-1 to ON. This allows an interrupt request to be
sent to the PC through the PCI bus using one interrupt resource
assigned to the BUS-PCI(PCI) board.
If SW1-1 is set to OFF, no interrupt resource is assigned from the PC to
the BUS-PCI(PCI) board.
Table 2.1. Specifying Whether or not to Use Interrupt Resources
SW1-1 Interrupt function
OFF Disabled
ON Enabled

Setup
BUF-PCI(PC), BUF-PCI(98) 9
Setting the Board ID
A board ID is the number by which a BUS-PCI(PCI) board is identified.
When several of these boards are used with one PC, board IDs allow
each BUS-PCI(PCI) board to be distinguished.
Specify a different value for each board ID.
To specify a board ID, use SW1-5, 6, 7, and 8. Board IDs can be set in
a range of 0-15 for a maximum of 16 boards.
When using just one board, use its factory setting (board ID=0).
Table 2.2. Setting Board IDs
SW1-5 SW1-6 SW1-7 SW1-8 BOARD ID SW1-5 SW1-6 SW1-7 SW1-8 BOARD ID
OFF OFF OFF OFF 0ON OFF OFF OFF 8
OFF OFF OFF ON 1ON OFF OFF ON 9
OFF OFF ON OFF 2ON OFF ON OFF 10
OFF OFF ON ON 3ON OFF ON ON 11
OFF ON OFF OFF 4ON ON OFF OFF 12
OFF ON OFF ON 5ON ON OFF ON 13
OFF ON ON OFF 6ON ON ON OFF 14
OFF ON ON ON 7ON ON ON ON 15
Notes! - For the BUF-PCI(PC), set SW1-2 to ON.
- For the BUF-PCI(98), set SW1-2 to OFF.
- Set SW1-3 and SW1-4 to OFF.
Mounting the BUS-PCI(PCI) Board
After making sure that the PC is turned off, disconnect the PC power
plug from the socket on the equipment.
Next, mount the BUS-PCI(PCI) board in the PCI expansion slot in the
PC. For information about mounting the board, see mounting
instructions in the PC manual.
Note! Before mounting the BUS-PCI(PCI) board, be sure to disconnect the
PC power plug from the socket on the equipment.

Setup
BUF-PCI(PC), BUF-PCI(98)10
Setting Up and Mounting
the BUS-PCI(PC) or BUS-PCI(98) Board
Setting Up I/O Expansion Unit Power Control
CN2 is the connector to be connected to a power supply source in
compliance with ATX specifications.
When using with an I/O expansion unit having an ATX power supply
source, connecting each terminal to 5VSB, PS-ON, and GND of the
ATX power supply source allows you to interlock the I/O expansion
unit power with the turning ON/OFF of the PC.
CN3 on the BUS-PCI(PC) board is the connector that connects to the
power LED on the I/O expansion unit.
Figure 2.2. Mounting Diagrams

Setup
BUF-PCI(PC), BUF-PCI(98) 11
Mounting the BUS-PCI(PC) or BUS-PCI(98) Board
After making sure that I/O expansion unit is turned off, disconnect its
power plug from the socket on the equipment.
Next, mount the BUS-PCI(PC) or BUS-PC(98) board in the I/O
expansion unit. For information about mounting either board, follow
instructions in the manual that came with the expansion unit.
Note! Before mounting the BUS-PCI(PC) or BUS-PC(98) board, be sure to
disconnect the I/O expansion unit power plug from the socket on the
equipment.

Setup
BUF-PCI(PC), BUF-PCI(98)12
Connecting the PC to the I/O Expansion Unit
After mounting the board, connect the BUS-PCI(PCI) to the
BUS-PCI(PC) or BUS-PCI(98) using the cable that came with the
product. A connector of the identical model is attached to either end of
the cable. Connect the cable firmly to each connector.
Figure 2.3. Connection Diagram
Note! When connecting, do not apply excessive force to prevent failures.
This manual suits for next models
1
Table of contents
Other Contec Adapter manuals