3-2 PCI-32REL and PCI-32REL-B User’s Guide
Software
The PCI-32REL and PCI-32REL-B
ship with ICS Advent’s Sea I/O suite of
Windows drivers. Sea I/O provides the user with a consistent and
straightforward API, allowing the developer to concentrate on the details of
the application as opposed to low level driver development. Popular
development environments, including Visual C++, Visual Basic, and Delphi,
are supported for application development. Sea I/O includes a utility for
configuring the driver parameters under Windows, further simplifying
installation.
For DOS, QNX, Linux and other operating systems, please refer to the
software included with your card.
Programming Examples
Below are several simple examples using 80x86 Assembly code for energizing
and checking the state of the Reed Relays on the
PCI-32REL and PCI-32REL-
B. All examples assume a base address of 300 Hex.
Programming example to set Relay #27 on, write a ‘1’ in bit position D2, to
port address Base+3, or 303 Hex.
MOV DX, 303H
;Set DX to Port D
MOV AL, 00001000B ;Set bit 3 to a ‘1’
OUT DX, AL
Another method that takes into account the read-back capability of the output
ports :
MOV DX,303H
;Set DX To Port D
IN AL,DX
;Get old port setting
NOT AL
:Invert bits- see note below
OR AL,00001000B
;OR in bit 3
OUT DX,AL
;Set Bit 3
Note:
Reading back the ports results in the binary complement of the
output.
Summary of Contents for PCI-32REL
Page 1: ...PCI 32REL and PCI 32REL B Manual PN 931 0021 00 A March 2001...
Page 6: ...vi PCI 32REL and PCI 32REL B User s Guide This page intentionally left blank...
Page 8: ...viii PCI 32REL and PCI 32REL B User s Guide This page intentionally left blank...
Page 14: ...xiv PCI 32REL and PCI 32REL B User s Guide This page intentionally left blank...
Page 16: ......
Page 28: ......
Page 30: ......
Page 31: ...Layout Drawing B 5 Appendix B Layout Drawing 6 60 4 20 3 875...
Page 32: ......