Advertisement

Quick Links

PCI-DIO48(S) Series
Product Manual
MANUAL NUMBER : 00650-529-1B

Advertisement

Table of Contents
loading

Summary of Contents for ICS Advent PCI-DIO48 Series

  • Page 1 PCI-DIO48(S) Series Product Manual MANUAL NUMBER : 00650-529-1B...
  • Page 2 Support Library. Thank you. The information in this document is provided for reference only. ICS Advent does not assume any liability arising from the application or use of the information or products described herein. This document may contain or reference information and products protected by copyrights or patents and does not convey any license under the patent rights of ICS Advent, nor the rights of others.
  • Page 3 The limited warranty is void if the product has been subjected to alteration, neglect, misuse, or abuse; if any repairs have been attempted by anyone other than ICS Advent or its authorized agent; or if the failure is caused by accident, acts of God, or other causes beyond the control of ICS Advent or the manufacturer.
  • Page 4 Limitation of Liability In no event shall ICS Advent be liable for any defect in hardware, software, loss, or inadequacy of data of any kind, or for any direct, indirect, incidental, or consequential damages in connection with or arising out of the performance or use of any product furnished hereunder.
  • Page 5 Use caution when servicing any electrical component. We have tried to identify the areas which may pose a Caution or Warning condition in this manual; however, ICS Advent does not claim to have covered all situations which might require the use of a Caution or Warning.
  • Page 6: Table Of Contents

    Table of Contents Chapter 1: Introduction ..................... 1-1 Chapter 2: Installation ....................2-1 Chapter 3: Option Selection ..................3-1 Chapter 4: Address Selection ................... 4-1 Chapter 5: Software ....................5-1 Chapter 6: Programming ..................6-1 Chapter 7: Connector Pin Assignments ..............7-1 Appendix A: Programmable Peripheral Interface Data Sheets ......
  • Page 7 This page intentionally left blank Page - viii...
  • Page 8: Chapter 1: Introduction

    Chapter 1: Introduction Features • 48 Bits of Digital Input/Output. • Interrupt Generation on Input Change of State. (Model "48S") • Change-of-state Interrupt Software Enabled in Six 8-Input Ports.(Model "48S") • All 48 I/O Lines Buffered on the Board. • I/O Buffers Can Be Enabled/Disabled under Program Control.
  • Page 9 PCI-DIO48(S)(S) Manual The PCI-DIO48(S)S card was designed for industrial applications and can be installed in 7", or longer, PCI slots of IBM or compatible computers. Each I/O line is buffered and capable of sourcing 15 mA or sinking 24mA (64 mA on request). The card contains two Programmable Peripheral Interface chips type 8255-5 (PPI) to provide computer interface to 48 I/O lines.
  • Page 10 Specification Digital Inputs (TTL Compatible) • Logic High: 2.0 to 5.0 VDC. • Logic Low: -0.5 to +0.8 VDC. • Input Load (Hi): 20 uA. • Input Load (Lo): -200 uA. Digital Outputs • Logic High: 2.5 VDC min., source 15 mA. •...
  • Page 11: Figure 1-1: Pci-Dio48(S) And Pci-Dio48(S)S Block Diagram

    PCI-DIO48(S)(S) Manual Figure 1-1: PCI-DIO48(S) and PCI-DIO48(S)S Block Diagram Page 1-4 Manual 00650-529-1...
  • Page 12: Chapter 2: Installation

    Chapter 2: Installation The software provided with this card is contained on either one CD or multiple diskettes and must be installed onto your hard disk prior to use. To do this, perform the following steps as appropriate for your software format and operating system. Substitute the appropriate drive letter for your CD-ROM or disk drive where you see d: or a: respectively in the examples below.
  • Page 13 PCI-DIO48(S)(S) Manual To copy the files on the master diskette to your hard disk, perform the following steps. Place the master diskette into a floppy drive. Change the active drive to the drive that has the diskette installed. For example, if the diskette is in drive A, type a:K.
  • Page 14 SAMPLES Samples for using ACCES32.DLL are provided in this directory. Using this DLL not only makes the hardware programming easier (MUCH easier), but also one source file can be used for both Windows 95/98 and WindowsNT. One executable can run under both operating systems and still have full access to the hardware registers.
  • Page 15 PCI-DIO48(S)(S) Manual Findbase.exe DOS utility to determine an available base address for ISA bus , non-Plug-n-Play cards. Run this program once, before the hardware is installed in the computer, to determine an available address to give the card. Once the address has been determined, run the setup program provided with the hardware to see instructions on setting the address switch and various option selections.
  • Page 16 System should set the PNP CMOS option to BIOS or Motherboard. Save the option and continue booting the system. If you are using Windows95, your operating system should detect the new hardware and prompt you for the installation disk. The simplest option is to insert the diskette provided into the A drive and allow the operating system to look for the files that it wants.
  • Page 17: Chapter 3: Option Selection

    Chapter 3: Option Selection Refer to the setup programs on the CD provided with the card. Also, refer to Figure 1-1, PCI-DIO48(S) Block Diagram and Figure 3-1, PCI-DIO48(S) Option Selection Map when reading this section of the manual. External Interrupts are accepted on the I/O connector pin 9 (bit C3) for each group. The Interrupt signal is positive true.
  • Page 18 PCI-DIO48(S)(S) Manual Figure 3-1: PCI-DIO48(S) and PCI-DIO48(S)S Option Selection Map Page 3-2 Manual 00650-529-1...
  • Page 19: Chapter 4: Address Selection

    To determine the base address that has been assigned, run the PCIFind.EXE utility program. This utility will display a list of all of the ICS Advent cards detected on the PCI bus, the addresses assigned to each function on each of the cards, and the respective IRQs allotted.
  • Page 20: Chapter 5: Software

    Chapter 5: Software Several programs are provided to support these Digital I/O cards and, also, to help you develop your application's software. Most of these programs are described on page 1-1 of this manual. The following paragraphs describe the IRQCOS driver, Win32COS driver (applicable for PCI-DIO48(S)S only), setup program, and the VisualBASIC utility program IRQCOS Driver Description...
  • Page 21 PCI-DIO48(S)(S) Manual To import the functions manually in C, the necessary lines would be: extern "C" __declspec(dllimport) unsigned char InitCOSDriver(unsigned long BaseAddress, unsigned char IRQ, short BusType, unsigned char BusNumber); extern "C" __declspec(dllimport) unsigned char GetCOSData(void *Buf); InitCOSDriver This function performs the initialization required to respond to change-of-state IRQs. It must be called before GetCOSData can be called, although calling GetCOSData first will only cause it to return a value of FALSE.
  • Page 22 SETUP.EXE This program is supplied in the root or base directory as a tool for you to use in configuring jumpers on the card. It is menu-driven and provides pictures of the card on the computer monitor. You make simple keystrokes to select functions. The picture on the monitor then changes to show how the jumper should be placed to effect your choices.
  • Page 23 PCI-DIO48(S)(S) Manual OutPort Function: Writes all 16 bits of value to the hardware port at address. This function returns the value output. Declaration: function OutPort(byval address integer, byval value as integer) as integer Peek Function: Reads a byte from main memory (DRAM). Declaration: function Peek(byval segment as integer, byval offset as integer) as integer...
  • Page 24: Chapter 6: Programming

    Chapter 6: Programming These cards are I/O-mapped devices that are easily configured from any language and any language can easily perform digital I/O through the card's ports. This is especially true if the form of the data is byte or word wide. All references to the I/O ports would be in absolute port addressing.
  • Page 25: Table 6-2: Control Register Bit Assignment

    PCI-DIO48(S)(S) Manual Each PPI contains a Control Register. This write-only, 8-bit register is used to set the mode and direction of the groups. At Power-Up or Reset, all I/O lines are set as inputs. Each PPI should be configured during initialization by writing to the Control Registers even if the groups are only going to be used as inputs.
  • Page 26 The card is initialized in the receive mode by the computer reset command. When bit D7 of the Control Register is set high, direction of the three groups of the associated PPI chip as well as the mode can be set. For example, a write to Base Address +3 with data bit D7 high programs port direction at Group 0 ports A, B, and C.
  • Page 27 PCI-DIO48(S)(S) Manual Programming Example (BASIC) The following example in BASIC is provided as a guide to assist you in developing your working software. In this example, the card base address is 2D0 hex and the I/O lines of group 0 are to be setup as follows: Port A = Input...
  • Page 28 To read the inputs at Port A and the upper nybble of Port C: 30 X=INP(BASEADDR) 'Read Port A 40 Y=INP(BASEADDR+2)/16 'Read Port C Hi To set outputs high (1) at Port B and the lower nybble of Port C: 50 OUT BASEADDR+1,&HFF 'Turn on all Port B bits 60 OUT BASEADDR+2,&HF...
  • Page 29: Table 6-3: Change-Of-State-Interrupt-Enable Register

    PCI-DIO48(S)(S) Manual Change-of-State Interrupts At Power-up or Reset, a latch disables all IRQ sources on the card. In order to properly disable/enable interrupts, you must program the Change-Of-State Interrupt Enable Register first. To program this Change-of-State-Interrupt-Enable Register, write to it at Base Address+B. Data bits D0 through D5 control ports A, B, and C of the 8255 PPIs as shown in Table 4.
  • Page 30: Chapter 7: Connector Pin Assignments

    Chapter 7: Connector Pin Assignments Two 50-pin headers are provided on these cards: one for each 24-bit I/O group. The mating connector is an AMP type 1-746285-0 or equivalent. Connector pin assignments are listed below. Notice that every second line is grounded to minimize crosstalk between signals. Assignment Assignment Port C Hi...
  • Page 31: Appendix A: Programmable Peripheral Interface Data Sheets

    Appendix A: Programmable Peripheral Interface Data Sheets The data sheets in this Appendix are provided to help your understanding of the 8255-5 PPI which is made by a number of companies. These sheets are reprinted with permission of Mitsubishi Electric Corp. ©1987. The information, diagrams, and all other data included are believed to be correct and reliable.
  • Page 32 The technical documentation required to demonstrate this product meets the requirements of the EMC Directive and the Low Voltage Directive has been compiled by ICS Advent and is available for inspection by the relevant enforcement authorities. The CE mark was first applied in 2000.

This manual is also suitable for:

Pci-dio48s seriesPci-dio48ss series

Table of Contents