background image

Page 5-1

Manual 00650-529-1

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

IRQCOS.VXD is a Virtual Device Driver, or VxD, for Windows 95/98. IRQCOS.SYS is a
Device Driver for Windows NT 4.0. Functionally, they are identical, and for the purposes of this
manual the term IRQCOS Driver will be used to refer to the appropriate file for your operating
system. Together with Win32COS.DLL, the IRQCOS Driver allows a program to easily respond
to hardware change-of-state interrupt requests, or IRQs, and read data off the card following an
IRQ.

Installation

To install IRQCOS.VXD in Windows 95/98, copy it to the directory C:\Windows\System. If your
hard drive has a letter other than C, substitute the appropriate letter. It is not necessary to reboot
your system prior to using IRQCOS.VXD.

To install IRQCOS.SYS in Windows NT, copy it to the directory C:\WINNT\System32\Drivers. If
your hard drive has a letter other than C, substitute the appropriate letter. It is not necessary to
reboot your system prior to using IRQCOS.SYS.

Win32COS.DLL

Description

Win32COS.DLL is a Dynamic Link Library, or DLL, for Windows 95/98 and NT. It provides a
simple interface to the IRQCOS Driver, allowing a program to easily respond to hardware
change-of-state interrupts and read data off the card after an IRQ occurs. Two functions are
exported by Win32COS.DLL: InitCOSDriver, and GetCOSData. To use these functions in a
program, they must first be imported into that program. The simplest way to import these functions
in Pascal is to include the Win32COS unit in your Uses clause, or, in C, to include Win32COS.H.
Additionally, in C, the library file CBCOS.LIB (for C++ Builder) or VCCOS.LIB (for Visual
C++) must be linked to the program. This is accomplished by adding it to the project or editing the
makefile. If you are not using the Win32COS header file and wish to import the functions
manually, the necessary lines  in Pascal would be:

function InitCOSDriver(BaseAddress: DWORD; IRQ: BYTE; BusType: SmallInt;
BusNumber:BYTE): ByteBool; cdecl; external 'Win32COS.dll';
function GetCOSData(Buf: Pointer): ByteBool; cdecl; external 'Win32COS.dll';

Содержание PCI-DIO48 Series

Страница 1: ...PCI DIO48 S Series Product Manual MANUAL NUMBER 00650 529 1B...

Страница 2: ...ual in our online 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 informat...

Страница 3: ...ts which are not in an as new and re saleable condition are not eligible for credit return and will be returned to the customer Limited Warranty Effective April 1 1998 all products carry a 2 year limi...

Страница 4: ...made by various manufacturers in performing warranty repairs and building replacement products If ICS Advent repairs or replaces a product its warranty term is not extended ICSAdvent will normally ret...

Страница 5: ...Cautions and Warnings are accented with triangular symbols The exclamation symbol is used in all cautions and warnings to help alert you to the important instructions The lightning flash symbol is us...

Страница 6: ...1 1 List of Figures Figure 1 1 PCI DIO48 S and PCI DIO48 S S Block Diagram 1 4 Figure 3 1 PPCI DIO48 S and PCI DIO48 S S Option Selection Map 3 2 List of Tables Table 6 1 Address Assignment Table 6 1...

Страница 7: ...Page viii This page intentionally left blank...

Страница 8: ...e programmed to accept inputs or to provide outputs on two groups of three 8 bit ports Further in each group one of the ports can be further divided into two four bit nibbles The feature that distingu...

Страница 9: ...aced on the card the tristate buffers may be enabled disabled under program control See the Option Selection section to follow I O wiring connections are via 50 pin headers on the board Two flat I O c...

Страница 10: ...d Lo 200 uA Digital Outputs Logic High 2 5 VDC min source 15 mA Logic Low 0 5 VDC max sink 24 mA 64 mA optional Power Output 5 VDC from computer bus ext 1A fast blow fuse recommended Power Required 5...

Страница 11: ...PCI DIO48 S S Manual Page 1 4 Manual 00650 529 1 Figure 1 1 PCI DIO48 S and PCI DIO48 S S Block Diagram...

Страница 12: ...mpts to install the software for this card WIN95 98 NT 1 Place the CD into your CD ROM drive 2 The CD should automatically run the install program after 30 seconds If the install program does not run...

Страница 13: ...AME that contains C samples Win32 language Subdirectories containing samples for Win95 98 and NT WinRisc exe A Windows dumb terminal type communication program designed for RS422 485 operation Used pr...

Страница 14: ...ograms in DOS PCIFind exe A utility for DOS and Windows to determine what base addresses and IRQs are allocated to installed PCI cards This program runs two versions depending on the operating system...

Страница 15: ...rements Finally our SETUP EXE program will lead you through the process of setting the options on the PCI DIO48 S S The setup program does not set the options These must be set manually by jumpers on...

Страница 16: ...IFind EXE may or may not work under your specific installation of Windows95 If you are not using Windows95 or if your installation of Windows95 does not detect the new hardware you installed run PCIFi...

Страница 17: ...BEN Buffer Enable position the I O buffers are always enabled When the jumper is in the TST Tristate position enabled disabled state is controlled by a control register See the programming section of...

Страница 18: ...PCI DIO48 S S Manual Page 3 2 Manual 00650 529 1 Figure 3 1 PCI DIO48 S and PCI DIO48 S S Option Selection Map...

Страница 19: ...n on each of the cards and the respective IRQs allotted Alternatively some operating systems Windows95 98 2000 can be queried to determine which resources were assigned In these operating systems you...

Страница 20: ...VXD To install IRQCOS SYS in Windows NT copy it to the directory C WINNT System32 Drivers If your hard drive has a letter other than C substitute the appropriate letter It is not necessary to reboot...

Страница 21: ...tCOSData This function suspends the thread that it was called from and waits for an IRQ to occur on the IRQ level that was passed to InitCOSDriver GetCOSData will return immediately however if an IRQ...

Страница 22: ...he form of a DLL a GBL and a VisualBASIC sample Together these files allow you to access the port and main memory space in a fashion similar to BASIC QuickBASIC Pascal C C Assembly and most other stan...

Страница 23: ...values sent less intuitive All integers in BASIC are signed numbers wherein data are stored in two s complement form All bit patterns must be converted to and from this two s complement form if meani...

Страница 24: ...consecutively with Address bits A3 through A0 as follows Address Port Assignment Operation Base Address PA Group 0 Read Write Base Address 1 PB Group 0 Read Write Base Address 2 PC Group 0 Read Write...

Страница 25: ...Select 00 Mode 0 01 Mode 1 1x Mode 2 D7 Mode Set Flag 1 Active Table 6 2 Control Register Bit Assignment Note Mode 1 cannot be used by these cards without modification Thus bits D2 D5 and D6 should al...

Страница 26: ...byte of hex 80 has been sent as previously described and the data to be output are correct and it is now desired to open the three groups then it is necessary to send a control byte of hex 00 to base...

Страница 27: ...first step is to configure the control register Configure bits of the control register as D7 D6 D5 D4 D3 D2 D1 D0 1 0 0 1 1 0 0 0 __Port C Lo output ______ Port B output ___________ Mode 0 ___________...

Страница 28: ...hes will be in a zero state For example if all the outputs were 1 s they will now be 0 s and the output buffers will be disabled This problem can be resolved as follows Two computer I O bus addresses...

Страница 29: ...o 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 Any access of Base B will enable the non COS IRQ associated with port C bit 3 Bit Port Contr...

Страница 30: ...ort C Hi PC7 1 Ground 2 Port C Hi PC6 3 4 Port C Hi PC5 5 6 Port C Hi PC4 7 8 Port C Lo PC3 9 Ground 10 Port C Lo PC2 11 12 Port C Lo PC1 13 14 Port C Lo PC0 15 16 Port B PB7 17 Ground 18 Port B PB6 1...

Страница 31: ...reprinted with permission of Mitsubishi Electric Corp 1987 The information diagrams and all other data included are believed to be correct and reliable However no responsibility is assumed by Mitsubi...

Страница 32: ...N61000 4 3 1995RadiatedRFFieldImmunity EN61000 4 4 1995EFTImmunityforACandI OLines EN 60950 1992 Safety of InformationTechnology Equipment Thetechnicaldocumentationrequiredtodemonstratethisproductmeet...

Отзывы: