background image

Programming the PIO-96.PCI 

Sealevel’s SeaI/O software is provided to assist in the development of reliable 

applications for the Sealevel 

Systems family of digital I/O adapters. Included on the SeaI/O CD are driver functions for use in accessing 
the I/O as well as helpful samples and utilities. 

Programming for Windows 

The SeaI/O API (Application Programmer Interface) provides a variety of useful high-level function calls 
implemented  in  a  Windows  dynamic  link  library  (DLL).  The  API  is  defined  in  the  help  file 

(Start/Programs/SeaIO/SeaIO  Help)  under  “Application  Programmers  Interface.”

    This  help  file  also 

includes  detailed  information  dealing  with  installation  /  removal  of  the  software  and  information  about 
latency, logic states, and device configuration. 

For  C  language  programmers  we  recommend  using  the  API  to  access  the  PIO-96.PCI.  If  you  are 
programming in Visual Basic, using the ActiveX control included with SeaI/O is advised.  

Samples and Utilities 

A variety of sample programs and utilities (both executable and source code) are included with SeaI/O. 
Further  documentation  on  these  samples  can  be  found  by  selecti

ng  “Start/Programs/SeaIO/Sample 

Application  Description

.”

  Information  about  where  the  files  are  physically  stored  on  your  disk  is  also 

included in this same file.  

Programming for Linux 

SeaI/O for Linux consists of two major parts: a kernel module

 

and a library. The kernel module is a simple 

IO pass-through device, allowing the library to handle the more sophisticated functions provided to SeaI/O 

users. It is provided in a ‘tarball’ format and can easily be compiled and included in the kernel build. 

 

Direct Hardware Control 

In systems where the users program has direct access to the hardware (DOS) the tables that follow give 
the mapping and functions that the PIO-96.PCI provides.  

Reading the Inputs 

The inputs are active true. If an input is driven high (2V to 5.25 V) it will read as a logical one, if driven low 
(0V to 0.8V) it will read as a logical zero. If an input is not driven it will read as a one due to the 10K ohm 
pull up resistors on each port. 

Reading the Outputs 

The value that is currently being used to drive the outputs will be returned. 

 

 

Summary of Contents for REL-32.PCI

Page 1: ...PIO 96 PCI User Manual 8009...

Page 2: ...CAL INSTALLATION 10 DIGITAL I O INTERFACE 11 PROGRAMMING THE PIO 96 PCI 12 ELECTRICAL CHARACTERISTICS 16 SPECIFICATIONS 17 EXAMPLE CIRCUITS 18 APPENDIX A TROUBLESHOOTING 19 APPENDIX B HOW TO GET ASSIS...

Page 3: ...PIO 96 PCI is designed to be used with a variety of Operating Systems including Windows Linux and DOS The SeaI O API Application Programmer Interface available with the software provides a variety of...

Page 4: ...el of importance used to stress a condition where damage could result to the product or the user could suffer serious injury Important The middle level of importance used to highlight information that...

Page 5: ...50 to IDC 50 Pin 40 Ribbon Cable Part Number CA167 Interfaces the PIO 96 PCI s 50 pin header connector to your I O Simulation debug module Part Number TA01 Module allows monitoring status of output p...

Page 6: ...Provides 4 channels of discrete I O interface to monitor AC inputs up to 140V 10mA DC Input Part Number IB5Q Provides 4 channels of discrete I O interface to monitor DC inputs from 3 3V to 32V AC Outp...

Page 7: ...eens that follow 4 A screen may appear with the declaration The publisher cannot be determined due to the problems below Authenticode signature not found Please select the Yes button and proceed with...

Page 8: ...e for as many SeaIO cards as you wish to install Linux Installation You MUST have root privileges to install the software and drivers The syntax is case sensitive Users can obtain a README file includ...

Page 9: ...your editor 12 With the system off and unplugged install your SeaIO PCI card 13 Plug system back in and boot Linux Login as root 14 Load the SeaIO driver by typing seaioload 15 The driver has enabled...

Page 10: ...ly insert the PCI adapter into the slot Make sure that the adapter is seated properly 5 After the adapter has been installed the cables should be routed thru the opening in the bracket This bracket al...

Page 11: ...onfigured via software command as input or output 50 pin Header Connector You will need to install the bracket assembly and cables to the PIO 96 PCI prior to installing it in the PC The PIO 96 PCI s b...

Page 12: ...and utilities both executable and source code are included with SeaI O Further documentation on these samples can be found by selecting Start Programs SeaIO Sample Application Description Information...

Page 13: ...rt 1 4 RD 0 0 0 0 IRQST4 IRQST3 IRQST2 IRQST1 Base 8 Port A2 RD WR PA2D7 PA2D6 PA2D5 PA2D4 PA2D3 PA2D2 PA2D1 PA2D0 Base 9 Port B2 RD WR PB2D7 PB2D6 PB2D5 PB2D4 PB2D3 PB2D2 PB2D1 PB2D0 Base A Port C2 R...

Page 14: ...1 X X 0 1 X 1 1 8B Out In In 1 X X 1 0 X 0 0 90 In Out Out 1 X X 1 0 X 0 1 91 In Out In 1 X X 1 0 X 1 0 92 In In Out 1 X X 1 0 X 1 1 93 In In In 1 X X 1 1 X 0 0 98 In Out In 1 X X 1 1 X 0 1 99 In Out...

Page 15: ...clears any interrupt pending IRQST1 D0 Interrupt status 1 interrupt pending 0 none IRQST2 D1 Interrupt status 1 interrupt pending 0 none IRQST3 D2 Interrupt status 1 interrupt pending 0 none IRQST4 D...

Page 16: ...tics The PIO 96 PCI uses 74LS245 octal bi directional transceivers to provide TTL input output capabilities Each bit is pulled to 5V through a 10K ohm pull up resistor to insure each bit is at a known...

Page 17: ...ns Inputs Logic High Min 2VDC Logic Low Max 0 8VDC Outputs Logic High Min 2VDC 15 mA Logic Low Max 0 5VDC 24 mA Temperature Range Operating 0 C 70 C Storage 50 C 105 C Power Consumption Supply line 5V...

Page 18: ...Example Circuits...

Page 19: ...is typically selected via an on board header block Refer to the section on Card Setup for help in choosing an I O address and IRQ 7 Make sure the Sealevel Systems adapter is securely installed in a m...

Page 20: ...ite Please refer to this to answer many common questions This section can be found at http www sealevel com faq asp 4 Sealevel Systems maintains a web page on the Internet Our home page address is htt...

Page 21: ...Appendix C Silk Screen 8009 PCB 4 20 6 80...

Page 22: ...nce at the users expense EMC Directive Statement Products bearing the CE Label fulfill the requirements of the EMC directive 89 336 EEC and of the low voltage directive 73 23 EEC issued by the Europea...

Page 23: ...e obtained by delivering the Product to Sealevel and providing proof of purchase Customer agrees to ensure the Product or assume the risk of loss or damage in transit to prepay shipping charges to Sea...

Reviews: