Manual PCIe-DIO-24HS PCI Express Digital I/O Card
12
Chapter 5: Programming
This card is an I/O-mapped device that is easily configured from any language. The base
address is assigned by the computer system during installation. The card's read/write
functions are as follows.
Address
Function
Operation
Base A0
Port A
Read/Write
Base A1
Port B
Read/Write
Base A2
Port C
Read Write
Base A3
Control Register
Read/Write
Base A4
t9
Not used
N/A
Base AA
DIO Buffer Enable
Read/Write
Base AB
DIO COS IRQ Enable
(S Models Only)
Read/Write
Base AC
Not used
N/A
Base AD
Global IRQ Disable
Write
Base AE
Port C bit-3 IRQ Enable
Read/Write
Base AF
IRQ Clear
Write
Table 5-1:
Register Address Map
Base Address +0 (read/write) Port A DIO
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
PA7 PA6 PA5 PA4 PA3 PA2 PA1 PA0
Table 5-2:
Base +0 Port A DIO
Reading from this address will return the digital data on Port A. Writing to this address will
output the digital data on Port A. Readback is supported while in output mode. Base Address
+3
controls Port A’s input/output direction.
Base Address +1 (read/write) Port B DIO
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0
Table 5-3:
Base +1 Port B DIO
Reading from this address will return the digital data on Port B. Writing to this address will
output the digital data on Port B. Readback is supported while in output mode. Base Address
+3 controls Port B's input/output direction.