Contec BUF-PCI(PC) User Manual

Bus expansion
Table of Contents

Advertisement

Quick Links

Contec BUF-PCI(PC) User Manual

Advertisement

Table of Contents
loading

Summary of Contents for Contec BUF-PCI(PC)

  • Page 1 Artisan Technology Group is your source for q new and certified-used/pre-owned equipme • FAST SHIPPING AND SERVICE CENTER REPAIRS WE BUY USED EQUIPM DELIVERY Experienced engineers and technicians on staff Sell your excess, un at our full-service, in-house repair center We also offer credit •...
  • Page 2 BUF-PCI(PC), BUF-PCI(98) Bus Expansion User’s Guide...
  • Page 3: Trademarks

    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.
  • Page 4: Product Configuration

    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.
  • Page 5: Table Of Contents

    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.
  • Page 6 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...
  • Page 7 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.
  • Page 8 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 ..............
  • Page 9: Introduction

    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.
  • Page 10: Features

    Introduction 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.
  • Page 11: Limited Three-Year Warranty

    Introduction 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...
  • Page 12: Restrictions

    Introduction 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.
  • Page 13: Handling Precautions

    - 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.
  • Page 14: About The Manual

    Introduction About the Manual This manual consists of the following chapters: Chapter 1 Introduction Chapter 2 Setup Explains product setup procedures and switch setting procedures for using this product. Chapter 3 Programming Explains programming procedures needed to use this product. Chapter 4 System Reference Explains the specifications of this product.
  • Page 15: Setup

    Setup 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...
  • Page 16: Setting Whether Or Not To Use Interrupt Resources

    Setup 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.
  • Page 17: Setting The Board Id

    Setup 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.
  • Page 18: Setting Up And Mounting The Bus-Pci(Pc) Or

    Setup 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.
  • Page 19: Mounting The Bus-Pci(Pc) Or Bus-Pci(98) Board

    Setup 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.
  • Page 20: Connecting The Pc To The I/O Expansion Unit

    Setup 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.
  • Page 21: Turning Power On

    Setup Turning Power On After you are finished with connecting, turn the power on following these steps. (1) Connect the receptacle on the I/O expansion unit. (2) Connect the receptacle on the PC. (3) Turn the I/O expansion unit on. At this time, be sure that the LED is lit on the BUS-PCI(PC) or BUS-PCI(98) board.
  • Page 22: Installing The Buf-Pci Driver Software

    Setup Installing the BUF-PCI Driver Software Install software, such as the BUF-PCI driver, and verify operations using the self-diagnostic program. This product supports the Windows XP, Windows 2000, Windows NT, Windows 98, Windows 95, and MS-DOS environment. Install the software according to the OS you are using.
  • Page 23 Setup (5) The [Completing the Found New Hardware Wizard] appears, then select [Finish]. This completes installation of the BUS-PCI(PCI) board. Method of Installing Two of More BUS-PCI(PCI) Boards: Following the procedure below to install two BUS-PCI(PCI) boards for use under Windows XP. (1) Check that the first BUS-PCI(PCI) board has been setup correctly.
  • Page 24 Setup - The resources used for each BUS-PCI(PCI) board do not depend on the location of the PCI bus slot or the board itself. If you remove two or more BUS-PCI(PCI) boards that have already been installed and then re-mount one of them on the computer, it is unknown which one of the sets of resources previously assigned to the two boards is assigned to the re-mounted board.
  • Page 25 (3) Select [Hardware] tab and select [Device Manager...] to open the Device Manager. (4) Click on the [Multifunction adapters] folder. (5) Click on the [CONTEC Co.,Ltd.-BUS-PCI(PCI)] folder to display its properties. (6) Select the [Resources] tab to check the resource settings and the conflicting device list.
  • Page 26: Installing For Windows 2000

    Setup Installing for Windows 2000 Install the software for Windows 2000 following these steps. (1) Install the BUS-PCI(PCI) board hardware. (2) Install the BUF-PCI driver software. (3) Restart the system. (4) Run the BUF-PCI self-diagnostic program. Installing the BUS-PCI(PCI) board hardware Before the BUS-PCI(PCI) board can be used under Windows 2000, the OS must recognize the I/O address and interrupt level(IRQ) to be used for BUS-PCI(PCI) board.
  • Page 27 Setup Method of Installing Two of More BUS-PCI(PCI) Boards: Following the procedure below to install two BUS-PCI(PCI) boards for use under Windows 2000. (1) Check that the first BUS-PCI(PCI) board has been setup correctly. as described in "Checking resources". Be sure to complete installation of the first board before attempting to install the second one.
  • Page 28 Setup Installing the BUF-PCI driver software Install the BUF-PCI driver software following these steps. (1) Start Windows 2000 with Administrator. (2) Exit all other running applications. (3) Insert BUF-PCI Driver Install Disk 1 into the disk drive. (4) Start Explorer. (5) Click the disk drive into which BUF-PCI Driver Install Disk 1 is inserted.
  • Page 29 (3) Select [Hardware] tab and select [Device Manager...] to open the Device Manager. (4) Click on the [Multifunction adapters] folder. (5) Click on the [CONTEC Co.,Ltd.-BUS-PCI(PCI)] folder to display its properties. (6) Select the [Resources] tab to check the resource settings and the conflicting device list.
  • Page 30: Installing For Windows Nt

    Setup Installing for Windows NT Install the software for Windows NT following these steps. (1) Verify PC settings. (2) Install the BUF-PCI driver software. (3) Restart the system. (4) Run the BUF-PCI self-diagnostic program. Verifying PC settings Be sure that [PnP OS] is either [disabled] or set to [not to use] in the PC's BIOS setup.
  • Page 31 Run the BUF-PCI self-diagnostic program following these steps. (1) From the Windows NT Start button, select Programs. (2) Select BUF-PCI self-test (VC) in CONTEC BUF-PCI. (3) The self-diagnostic program runs and displays self-testing results and resources assigned from the PC to the BUS-PCI(PCI).
  • Page 32: Installing For Windows Me

    Setup Installing for Windows Me Install the software for Windows Me following these steps. (1) Install the BUS-PCI(PCI) board hardware. (2) Install the BUF-PCI driver software. (3) Run the BUF-PCI self-diagnostic program. Installing the BUS-PCI(PCI) board hardware Before the BUS-PCI(PCI) board can be used under Windows Me, the OS must recognize the I/O addresses and interrupt level (IRQ) to be used for the BUS-PCI(PCI) board.
  • Page 33 (4) Turn the personal computer on again to start up Windows Me. (5) Windows Me will come up with the [New Hardware] detection dialog box. After making sure that "CONTEC CO., LTD.- BUS-PCI(PCI)" is displayed, insert the floppy disk into the drive, select "Automatic search for a better driver.
  • Page 34 Setup Notes! - The second BUS-PCI(PCI) board cannot be properly installed unless the resources (I/O addresses and interrupt level) for the board can be allocated. Before attempting to install the second board, first determine what PC resources are free. - The resources used for each BUS-PCI(PCI) board do not depend on the location of the PCI bus slot or the board itself.
  • Page 35 [System Properties] property sheet. Select the [Device Manager] tab. (2) Click on the [Multi-function adapters] folder. (3) Click on the [CONTEC Co., Ltd.-BUS-PCI(PCI)] folder to display its properties. (4) Select the [Resources] tab to check the device type, resource settings, and the conflicting device list.
  • Page 36: Installing For Windows 98

    [Location] field. Insert BUF-PCI Driver Install Disk 1 into the disk drive, then select [Next>]. (5) In the [Windows driver file search for the device] dialog box, check that "CONTEC Co., Ltd.-BUF-PCI(PCI)" and "BUF_PI0.INF" in the [Location of driver] has been listed, then select [Next>].
  • Page 37 [Next>]. (7) In the next dialog box, select "CONTEC Co., Ltd.- BUS-PCI(PCI)" from [Models], then select [Next>]. (8) In the [Windows driver file search for the device] dialog box, check that "CONTEC Co., Ltd.-BUF-PCI(PCI)"...
  • Page 38 Setup For installing the third board and any additional boards, follow the same steps as those for installing a second board. Before you can install a third board or additional boards, all BUS-PCI(PCI) boards that are already installed must be in PCI bus slots. Notes! - The second BUS-PCI(PCI) board cannot be properly installed unless the resources (I/O addresses and interrupt level) for the board...
  • Page 39 [System Properties] property sheet. Select the [Device Manager] tab. (2) Click on the [Multi-function adapters] folder. (3) Click on the [CONTEC Co., Ltd.-BUS-PCI(PCI)] folder to display its properties. (4) Select the [Resources] tab to check the device type, resource settings, and the conflicting device list.
  • Page 40: Installing For Windows 95

    Setup Installing for Windows 95 Install the software for Windows 95 following these steps. (1) Install the BUS-PCI(PCI) board hardware. (2) Install the BUF-PCI driver software. (3) Run the BUF-PCI self-diagnostic program. Installing the BUS-PCI(PCI) board hardware Before the BUS-PCI(PCI) board can be used under Windows 95, the OS must recognize the I/O addresses and interrupt level (IRQ) to be used for the BUS-PCI(PCI) board.
  • Page 41 (2) Windows 95 will come up with the [New Hardware] detection dialog box. In the [Device Driver Wizard] that appears next, check that "CONTEC Co., Ltd. - Multimedia Device" has been listed, then select [Next>]. (3) In the next dialog box, select [Specify Location...].
  • Page 42 (6) The [Select Hardware Type] dialog box will then appear. In [Select Hardware Type to Install], select [Other Devices]. (7) In the [Select Device] dialog box that appears, select [CONTEC] from [Manufacturers] and select [CONTEC Co., Ltd. -BUS-PCI(PCI)] from [Models].
  • Page 43 Setup Notes! - The second BUS-PCI(PCI) board cannot be properly installed unless the resources (I/O addresses and interrupt level) for the board can be allocated. Before attempting to install the second board, first determine what PC resources are free. - The resources used for each BUS-PCI(PCI) board do not depend on the location of the PCI bus slot or the board itself.
  • Page 44 Setup Method of Installing Two or More BUS-PCI(PCI) Boards (For Use under Windows 95 Version 4.00.950B or 4.00.950C) : Follow the procedure below to install two BUS-PCI(PCI) boards for use under Windows 95 version 4.00.950B or 4.00.950C. (1) Check that the first BUS-PCI(PCI) board has been set up correctly, as described in "Checking resources".
  • Page 45 Run the BUF-PCI self-diagnostic program following these steps. (1) From the Windows 95 Start button, select Programs. (2) Select BUF-PCI self-test (VC) in CONTEC BUF-PCI. (3) The self-diagnostic program runs and displays self-testing results and resources assigned from the PC to the BUS-PCI(PCI).
  • Page 46 [System Properties] property sheet. Select the [Device Manager] tab. (2) Click on the [Multi-function adapters] folder. (3) Click on the [CONTEC Co.,Ltd. -BUS-PCI(PCI)] folder to display its properties. (4) Select the [Resources] tab to check the device type, resource settings, and the conflicting device list.
  • Page 47: Installing For Ms-Dos

    Setup Installing for MS-DOS Install the software for Windows 98 following these steps. (1) Copy BUF-PCI sample programs. (2) Run the BUF-PCI self-diagnostic program. Copying BUF-PCI sample programs Copy BUF-PCI sample programs following these steps. (1) Start MS-DOS. (2) Insert BUF-PCI Drive Install Disk 1 into the disk drive. (3) Copy all files in the DOS directory to the hard disk using the COPY command, for example.
  • Page 48: Mounting Boards For Use In The I/O Expansion Unit

    Setup Mounting Boards for Use in the I/O Expansion Unit Install boards to be used in the I/O expansion unit following the steps listed below. When you start the PC after mounting is finished, each board can be accessed by way of this product. (1) Verify applicable restrictions and specifications.
  • Page 49: Setting I/O Port Addresses

    Setup Setting I/O Port Addresses Using the DIP switch of each board, set the I/O port addresses of a board to be mounted and used in the I/O expansion unit. The following setting restrictions apply. - Set the lower eight bits of the I/O address to values other than F8h- FFh.
  • Page 50: Mounting And Turning The Power On

    Setup Mounting and Turning the Power On After making sure that the PC and the I/O expansion unit are turned off, disconnect the I/O expansion unit power plug from the socket on the equipment. Next, mount each board in the I/O expansion unit. For information about mounting, follow instructions included in the manual that came with the I/O expansion unit you are using.
  • Page 51: Programming

    Programming 3. Programming In order for the boards mounted in the I/O expansion unit to operate, programming is necessary. With Windows XP, Windows 2000, Windows NT, Windows Me, Windows 98 and Windows 95, you can create a program using the functions provided by the BUF-PCI driver software provided with the product.
  • Page 52: Programming With Windows

    Programming Programming with Windows About the BUF-PCI Driver Software The purpose of the BUF-PCI driver software is to allow Windows XP, Windows 2000, Windows NT, Windows Me, Windows 98 and Windows 95 to control the boards mounted in the I/O expansion unit, which has been added with this product.
  • Page 53: Programming Input And Output To And From I/O Ports

    Programming Programming Input and Output to and from I/O Ports The board mounted in the I/O expansion unit can be accessed by replacing general I/O instructions with the I/O port input/output functions of the BUF-PCI driver software. When you specify enabling or disabling of the I/O wait and the refresh signal after initializing, I/O port input/output functions can be executed.
  • Page 54: Programming Interruption

    Programming Programming Interruption This product has its own interrupt signal processing capability, allowing the interrupt request signal within the I/O expansion unit to be used regardless of the interrupt request signal used by the PC. Processing interrupt request signals within the I/O expansion unit can be programmed in two ways;...
  • Page 55: Figure 3.3. Programming Procedure For Message Processing By

    Programming Figure 3.3. Programming Procedure for Message Processing by Event Monitoring the BUF-PCI interrupt request status This method is unique to this product. This method monitors the BUF-PCI interrupt request status using the Windows timer, for example, and implements necessary processes when the interrupt request status is set.
  • Page 56: Programming Self-Testing

    Programming Figure 3.5. Timer Process Programming Procedure Programming Self-testing Verify the state of the system using the self-diagnostic feature of this product. For information about programming procedures, see the self-diagnostic program in the sample program for either Windows or MS-DOS. Function Reference The detailed information about each function is explained next.
  • Page 57: Bufpciopen

    Programming BufPciOpen Function Implements the initialization process and acquires the device handle. Format HANDLE hDevice; BYTE bBoardId; hDevice = BufPciOpen(bBoardId); (Visual Basic) Dim hDevice As Long Dim bBoardId As Byte hDevice = BufPciOpen(bBoardId) Argument bBoardId Specify the ID of the BUS-PCI(PCI) board. Return value hDevice Returns the device handle if the function is...
  • Page 58 Programming Description of accessing I/O ports on the BUS-PCI(PCI) board When executing function BufPciOpen, the BUS-PCI(PCI) board of a specified board ID secures the I/O port address (BufPciIoAddress) and interrupt request level (BufPciIrqLevel) assigned from the PCI BIOS in particular buffers. BufPciIoAddress and BufPciIrqLevel are used for accessing the BUS-PCI(PCI) board with function BufPciXxxx.
  • Page 59: Bufpciclose

    Programming BufPciClose Function Implements the termination process and frees the device handle. Format HANDLE hDevice; DWORD dwRet; dwRet = BufPciClose(hDevice); (Visual Basic) Dim hDevice As Long Dim dwRet As Long dwRet = BufPciClose(hDevice) Argument hDevice Specify the device handle. Acquire this device handled with BufPciOpen. Return value dwRet Termination information...
  • Page 60: Bufpcisetbussignal

    Programming BufPciSetBusSignal Function Specifies enabling or disabling of the I/O wait and the refresh signal. Format HANDLE hDevice; BYTE bIoWait; BYTE bRefreshOn; DWORD dwRet; dwRet = BufPciSetBusSignal(hDevice, bIoWai, bRefreshOn); (Visual Basic) Dim hDevice As Long Dim bIoWait As Byte Dim bRefreshOn As Byte Dim dwRet As Long dwRet = BufPciSetBusSignal(hDevice, bIoWait, bRefreshOn) Argument...
  • Page 61 Programming Supplement The I/O wait defaults to "2wait" and the refresh signal to "no output." In the cycle for generating an I/O wait from the board mounted in the I/O expansion unit, the I/O wait is allowed for a maximum period of one microsecond.
  • Page 62: Bufpciinportb

    Programming BufPciInPortB Function Inputs data from a specified port. The data to be input is byte data. Format HANDLE hDevice; WORD wIoAddress; BYTE bInData; DWORD dwRet; dwRet = BufPciInPortB(hDevice, bIoWait, wIoAddress, &bInData); (Visual Basic) Dim hDevice As Long Dim wIoAddress As Integer Dim bInData As Byte Dim dwRet As Long dwRet = BufPciInPortB(hDevice, bIoWait, wIoAddress, bInData)
  • Page 63: Bufpciinportw

    Programming BufPciInPortW Function Inputs data from a specified port. The data to be input is word data. Format: HANDLE hDevice; WORD wIoAddress; WORD wInData; DWORD dwRet; dwRet = BufPciInPortW(hDevice, wIoAddress, &wInData); (Visual Basic) Dim hDevice As Long Dim wIoAddress As Integer Dim wInData As Integer Dim dwRet As Long dwRet = BufPciInPortW(hDevice, wIoAddress, wInData)
  • Page 64 Programming Description of accessing I/O ports on the BUS-PCI(PCI) board Use the BufPciIoAddress secured during execution of BufPciOpen. Actual operations are as follows. if ( !( wIoAddress % 2 ) ) { outp( BufPciIoAddress + 0xfd, ( wIoAddress >> 8 ) & 0xff ); wInData = inpw( BufPciIoAddress + ( wIoAddress &...
  • Page 65: Bufpcioutportb

    Programming BufPciOutPortB Function Outputs data to a specified port. The data to be output is byte data. Format HANDLE hDevice; WORD wIoAddress; BYTE bOutData; DWORD dwRet; dwRet = BufPciOutPortB(hDevice, bIoWait, wIoAddress, bOutData); (Visual Basic) Dim hDevice As Long Dim wIoAddress As Integer Dim bOutData As Byte Dim dwRet As Long dwRet = BufPciOutPortB(hDevice, bIoWait, wIoAddress, bOutData)
  • Page 66: Bufpcioutportw

    Programming BufPciOutPortW Function Outputs data to a specified port. The data to be output is word data. Format HANDLE hDevice; WORD wIoAddress; WORD wOutData; DWORD dwRet; dwRet = BufPciOutPortW(hDevice, wIoAddress, wOutData); (Visual Basic) Dim hDevice As Long Dim wIoAddress As Integer Dim wOutData As Integer Dim dwRet As Long dwRet = BufPciOutPortW(hDevice, wIoAddress, wOutData)
  • Page 67 Programming Description of accessing I/O ports on the BUS-PCI(PCI) board Use the BufPciIoAddress secured during execution of BufPciOpen. Actual operations are as follows. if ( !( wIoAddress % 2 ) ) { outp( BufPciIoAddress + 0xfd, ( wIoAddress >> 8 ) & 0xff ); outpw( BufPciIoAddress + ( wIoAddress &...
  • Page 68: Bufpcisetirqevent

    Programming BufPciSetIrqEvent Function Specifies a message by an interrupt request event. Specifies a message by an interrupt request event and starts generating the event. Format HANDLE hDevice; HANDLE hWnd; DWORD dwMessage; DWORD dwRet; BYTE bBufIrqNo; dwRet = BufPciSetIrqEvent(hDevice, hWnd, dwMessage, bBufIrqNo); (Visual Basic) Dim hDevice As Long Dim hWnd As Long...
  • Page 69 Programming Supplement This function does not work unless the DIP switch on the board of the BUS-PCI(PCI) board is enabled (INT USE set to ON, default setting). After implementing the termination process, each function of the BUF-PCI driver software cannot be run until reinitialized. BUF-PCI(PC), BUF-PCI(98)
  • Page 70: Bufpcistopevent

    Programming BufPciStopEvent Function Stops an interrupt request event. Format HANDLE hDevice; BYTE bBufIrqNo; DWORD dwRet; dwRet = BufPciStopEvent(hDevice, bBufIrqNo); (Visual Basic) Dim hDevice As Long Dim bBufIrqNo As Byte; Dim dwRet As Long dwRet = BufPciStopEvent(hDevice, bBufIrqNo) Argument hDevice Specify the device handle. Acquire this device handle with BufPciOpen.
  • Page 71 Programming Description of accessing I/O ports on the BUS-PCI(PCI) board Set the interrupt request mask register of the BUF-PCI(PCI) board. Use the BufPciIoAddress secured during execution of BufPciOpen. Actual operations are as follows: wIrqMask = inpw( BufPciIoAddress + 0xf8 ); outpw( BufPciIoAddress + 0xf8, ( wIrqMask | (0x01 <<...
  • Page 72: Bufpcirestartevent

    Programming BufPciRestartEvent Function Restarts an interrupt request event. Format HANDLE hDevice; BYTE bBufIrqNo; DWORD dwRet; dwRet = BufPciRestartEvent(hDevice, bBufIrqNo); (Visual Basic) Dim hDevice As Long Dim bBufIrqNo As Byte Dim dwRet As Long dwRet = BufPciRestartEvent(hDevice, bBufIrqNo) Argument hDevice Specify the device handle. Acquire this device handle with BufPciOpen.
  • Page 73: Bufpcigetirqstatus

    Programming BufPciGetIrqStatus Function Inputs the interrupt request status of the BUF-PCI(PCI) board. Format HANDLE hDevice; WORD wIrqStatus; WORD wIrqReset; DWORD dwRet; dwRet = BufPciGetIrqStatus(hDevice, &wIrqStatus, wIrqReset); (Visual Basic) Dim hDevice As Long Dim wIrqStatus As Integer Dim wIrqReset As Integer Dim dwRet As Long dwRet = BufPciGetIrqStatus(hDevice, wIrqStatus, wIrqReset) Argument...
  • Page 74 Programming Description of accessing I/O ports on the BUS-PCI(PCI) board Input the interrupt request status of the BUF-PCI(PCI) board. If the interrupt request status register is set, reset that register. Use the BufPciIoAddress secured during execution of BufPciOpen. Actual operations are as follows: wIrqStatus = inpw( BufPciIoAddress + 0xfa );...
  • Page 75: Bufpcisetprogramwait

    Programming BufPciSetProgramWait Function Inserts a specified waiting period in the program. Format HANDLE hDevice; DWORD dwWaitTime; DWORD dwRet; dwRet = BufPciSetProgramWait(hDevice, dwWaitTime); (Visual Basic) Dim hDevice As Long Dim dwWaitTime As Long Dim dwRet As Long dwRet = BufPciSetProgramWait(hDevice, dwWaitTime) Argument hDevice Specify the device handle.
  • Page 76: Bufpciselftest

    Programming BufPciSelfTest Function Acquires information for self-testing. Format BYTE bBoardId; WORD wIoAddress; BYTE bIrqNo; WORD wStatus; DWORD dwRet; dwRet = BufPciSelfTest(bBoardId, &wIoAddress, &bIrqNo, &wStatus); (Visual Basic) Dim bBoardId As Byte Dim wIoAddress As Integer Dim bIrqNo As Byte Dim wStatus As Integer Dim dwRet As Long dwRet = BufPciSelfTest(bBoardId, wIoAddress, bIrqNo, wStatus) Argument...
  • Page 77 Programming Supplement If the resource is not acquired for wIoAddress and bIrqNo, return FFFFH and FFH respectively. For information about wStatus, see the section on I/O port addresses. After implementing the termination process, each function of the BUF-PCI driver software cannot be run until reinitialized. Description of accessing I/O ports on the BUS-PCI(PCI) board See the sample self-diagnostic program for MS-DOS.
  • Page 78: List Of Return Values

    Programming List of Return Values If the return value is 0, the function has been executed normally. A return value of other 0 indicates that there was an error and the function process is aborted. You can acquire detailed information about the error by verifying the function's return value or by executing function GetLastError.
  • Page 79 Programming Error code Message 2C000001H BUFPCI_ERROR_OPEN Two scenarios can be considered; either the BUFPCI.VXD or BUFPCI.SYS file is not installed in the system or the driver is not started in Windows XP, Windows 2000, Windows NT. Be sure that BUFPCI.VXD exists in the \Windows\System folder for Windows 98, Windows 95 or that BUFPCI.SYS exists in the \Windows\System32\Drivers folder for Windows XP, Windows 2000, Windows NT.
  • Page 80 Programming 2C000006H BUFPCI_ERROR_THREAD Indicates that function BufPciSetIrqEvent failed to create the thread. 2C000007H BUFPCI_ERROR_POWER Indicates that the I/O expansion unit is not turned on. 2C000008H BUFPCI_ERROR_BUSTYPE Indicates that the bus type setting of the BUS-PCI(PCI) board does not match the type on the I/O expansion unit. There are two scenarios to be considered;...
  • Page 81: Sample Program For Windows

    Programming Sample Program for Windows Sample programs are available for the following languages: Visual Basic 5.0 Visual C 5.0 The following sample programs are provided for each language: - InOut Input/output (BufPciInPortB, BufPciInPortW, BufPciOutPortB, BufPciOutPortW) - Event Interrupt request process (using messages by events) (BufPciSetIrqEvent) - Polling Interrupt request process...
  • Page 82: Programming In An Os Other Than Windows

    Programming Programming in an OS other than Windows I/O Port Input/Output Procedure Of 256 I/O port addresses assigned from the PC to BUS-PCI(PCI) boards, 248 ports are used for general-purpose accessing and the remaining 8 ports are used to control signals on the I/O expansion unit. With the control port of the BUS-PCI(PCI) board, you can specify the value of the eight highest bits of an address used for accessing the I/O expansion unit and enable or disable the I/O wait and the refresh signal.
  • Page 83: Interrupt Procedure

    Programming Interrupt Procedure One interrupt request level is assigned from the PC to the BUS-PCI(PCI) board. For this reason, the BUF-PCI(PCI) board detects multiple interrupt request signals generated on the I/O expansion unit one by one. If there is even just one interrupt request, the interrupt request signal is output to the PCI bus to request the PC for interrupt.
  • Page 84 Programming (6) Next, process the interrupt as necessary, implement the termination process on the interrupt controller of the PC, and exit the interrupt handler. (7) After all interrupt processes are finished, mask all interrupt request mask registers in the main routine and undo the PC settings as they were.
  • Page 85: Details Of I/O Port Addresses

    Programming Details of I/O Port Addresses List of Output Ports General-purpose output port 00h (+00h) General-purpose output port 01h (+01h) +247 General-purpose output port F7h (+F7h) +248 IRQ7 IRQ6(INT2) IRQ5(INT1) IRQ4 IRQ3(INT0) (+F8h) Mask Mask Mask Mask Mask +249 IRQ15 IRQ14 (INT6) IRQ12(INT5)
  • Page 86: List Of Input Ports

    Programming List of Input Ports General-purpose input port 00h (+00h) General-purpose input port 01h (+01h) +247 General-purpose input port F7h (+F7h) +248 IRQ7 IRQ6(INT2) IRQ5(INT1) IRQ4 IRQ3(INT0) (+F8h) Mask Mask Mask Mask Mask +249 IRQ15 IRQ14 (INT6) IRQ12(INT5) IRQ11 IRQ10(INT4) IRQ9(INT3) (+F9h) Mask Mask...
  • Page 87: Detailed Description

    Programming Detailed Description Access these ports using either byte access or word access on even ports. Neither word access on odd bytes nor double-word access is allowed. Each port is detailed below. General-purpose access ports (+00h through +F7h) [input and output] General-purpose output port 00h (+00h) General-purpose output port 01h...
  • Page 88 Programming Interrupt request status register (+FAh through +FBh) [input] +250 IRQ7 IRQ6(INT2) IRQ5(INT1) IRQ4 IRQ3(INT0) (+FAh) Status Status Status Status Status +251 IRQ15 IRQ14 (INT6) IRQ12(INT5) IRQ11 IRQ10(INT4) IRQ9(INT3) (+FBh) Status Status Status Status Status Status Status Senses an interrupt request from a board in the I/O expansion unit. When an interrupt request generates from a board in the I/O expansion unit, the bit that caused the generation is set to 1.
  • Page 89 Programming Bus signal set register (+FCh) [output] +252 Refresh Self-test I/O Wait 2 I/O Wait 1 I/O Wait 0 (+FCh) Enable IOCS16EN I/O wait 2 - I/O wait 0 Set the I/O wait. Normally, use it set at 2wait [010]. A maximum I/O wait of one microsecond is permitted in the cycle in which an I/O wait is generated from a board mounted in the I/O expansion unit.
  • Page 90 Programming Bus signal status register (+FCh) [input] +252 Target Target Refresh Self-test I/O Wait 2 I/O Wait 1 I/O Wait 0 (+FCh) Power Type Type Enable IOCS16EN Input current settings. I/O Wait 2 - I/O Wait 0 : Current setting Self-test IOCS16EN Current setting Refresh Enable...
  • Page 91: Sample Programs For Ms-Dos

    Programming Sample Programs for MS-DOS The following sample programs in Microsoft C language are available. - DOSIO Input and output processes - DOSINT Interrupt process (IBM PC-AT compatibles (DOS/V machines) or NEC PC98-NX series) - DOSINT98 Interrupt process (NEC PC-9800 series) - DOSPOL Interrupt request process (interrupt request status monitoring method)
  • Page 92 Programming BUF-PCI(PC), BUF-PCI(98)
  • Page 93: System Reference

    System Reference 4. System Reference Hardware Specifications System Specifications Table 4.1. BUF-PCI(PC) System Specifications Item Specification Accessible I/O address I/O addresses except for lower 8 bits F8h-FFh I/O wait setting 0wait to 7wait Accessible memory space None (memory access not allowed) Available DMA channel None (DMA transfer not allowed) Available interrupt level...
  • Page 94: Cable Specifications

    System Reference Table 4.4. BUS-PCI(PC) Board Specifications Item Specification Current consumption 5VDC 300 mA (supplied from I/O expansion unit) Temperature : 0 to 50°C Operating conditions Humidity : 10 to 90%RH (No condensation) Interface connector PCR-E96LMD equivalence External dimensions 134.2 x 107.0 x 18.5mm Table 4.5.
  • Page 95: List Of Buf-Pci(Pc) I/O Expansion Slot Signals

    System Reference List of BUF-PCI(PC) I/O Expansion Slot Signals Table 4.7. List of BUF-PCI(PC) I/O Expansion Slot Signals Pin No. Signal Name I/O Note Pin No. Signal Name I/O Note IOCHCK* Unconnected FA-PAC GND SD07 RESETDRV SD06 FA-PAC +5V SD05 IRQ9 SD04 FA-PAC -5V...
  • Page 96: List Of Buf-Pci(98) I/O Expansion Slot Signals

    System Reference List of BUF-PCI(98) I/O Expansion Slot Signals Table 4.8. List of BUF-PCI(98) I/O Expansion Slot Signals Signal Name Note Signal Name Note Pin No. Pin No. FA-PAC GND FA-PAC GND Unconnected Unconnected Unconnected Unconnected AB001 DB001 AB011 DB011 AB021 DB021 AB031...
  • Page 97: Software (Buf-Pci Driver) Specifications

    System Reference Notes! - Signals in shaded cells are not available for use. - All signals are independent of PC signals. - Power +5V, +12V, and -12V are dependent on power specifications of the I/O expansion unit in use. Software (BUF-PCI Driver) Specifications Table 4.9.
  • Page 98 System Reference BUF-PCI(PC), BUF-PCI(98)
  • Page 99: Troubleshooting

    Troubleshooting 5. Troubleshooting If you have trouble with setting up the product or when it does not operate normally, check items listed below. The Product cannot be Set Up Properly The PC and/or the I/O Expansion Unit does not Start Up (1) Is the power cable connected correctly? (2) Is the cable connected to the connector correctly? (3) Is the BUS-PCI(PCI) board mounted correctly?
  • Page 100: Board Mounted In The I/O Expansion Unit Cannot Be Accessed

    Troubleshooting Board Mounted in the I/O Expansion Unit cannot be Accessed No Input or Output can be Performed on I/O Ports (1) Is the board mounted correctly in the I/O expansion unit? (2) Are the I/O port addresses set for the board you mounted in the I/O expansion unit correct? (3) Is any I/O port address of the board you mounted in the I/O expansion unit unique?
  • Page 101: No Interruption Can Be Performed

    Troubleshooting No Interruption can be Performed (1) Is the board mounted correctly in the I/O expansion unit? (2) Is the interrupt request level set for the board you mounted in the I/O expansion unit correct? (3) Is any interrupt request of the board you mounted in the I/O expansion unit unique? (4) Is the board you mounted in the I/O expansion unit subject to any of the restrictions that apply to this product?
  • Page 102 Troubleshooting BUF-PCI(PC), BUF-PCI(98)
  • Page 103: Index

    Index 6. Index Board ID, 9 Feature, 2 BufPciClose, 51 Function List, 44 BufPciGetIrqStatus, 65 Functions, 2 BufPciInPortB, 51 BufPciInPortW, 55 Handling Precautions, 5 BufPciOpen, 49 BufPciOutPortB, 57 BufPciOutPortW, 58 I/O Expansion Slot Signals, 87, 88 BufPciRestartEvent, 64 I/O Port Addresses, 41 BufPciSelfTest, 68 Installing for MS-DOS, 39 BufPciSetBusSignal, 52...
  • Page 104 Index Obtain Service, 3 Product Configuration, ii Restrictions, 4 Return Values, 70 Sample Program, 73, 83 Software Specifications, 89 System Specifications, 85 Troubleshooting, 91 Warranty, 3 BUF-PCI(PC), BUF-PCI(98)
  • Page 105 A-41-901 LZF6231 021010 [980713]...
  • Page 106 3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan : +81 (6) 6477-5219 Fax : +81 (6) 6477-1692 E-mail : intsales@osaka.contec.co.jp U.S.A. : CONTEC MICROELECTRONICS U.S.A. INC. 744 South Hillview Drive, Milpitas, CA 95035 U.S.A. : +1 (408) 719-8200 Fax : +1 (408) 719-6750 E-mail : tech_support@contecusa.com EUROPE : CONTEC MICROELECTRONICS EUROPE B.V.
  • Page 107 Artisan Technology Group is your source for q new and certified-used/pre-owned equipme • FAST SHIPPING AND SERVICE CENTER REPAIRS WE BUY USED EQUIPM DELIVERY Experienced engineers and technicians on staff Sell your excess, un at our full-service, in-house repair center We also offer credit •...

This manual is also suitable for:

Buf-pci(98)

Table of Contents