
Manual PCIe-DIO-48S PCI Express Digital I/O Card
13
Base Address +1 (read/write) Group 0, Port B DIO;
+5 (read/write) Group 1, 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 Group 0, Port B DIO; Base +5 Group 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 A3 / Base
A7 controls Port B's input/output direction.
Base Address +2 (read/write) Group 0, Port C DIO;
+6 (read/write) Group 1, Port C DIO
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0
Table 5-4:
Base +2 Group 0, Port C DIO; Base +6 Group 1, Port C DIO
Reading from this address will return the digital data on Port C. Writing to this address will output the
digital data on Port C. Readback is supported while in output mode. Port C can also be broken into
two nybbles, Port C Low (bits 0-3), and Port C High (bits 4-7). Each nybble can be independently set
as input or output. Base A3 / Base A7 controls Port C's input/output direction.
Base Address +3 (read/write) Group 0 Control;
+7 (read/write) Group 1 Control
Each DIO group contains a control register. This 8-bit register is used to set the direction of the ports.
At power-up or reset, all DIO lines are set as inputs. Each group should be configured during
initialization by writing to the control register even if the ports are going to be used as inputs. Bit 7
must be set to ‘1’ when configuring the direction of the ports. This register can be readback with bits
2, 5, 6, and 7 always reading zero.
Ports can be written to while configured as inputs. When a port is changed from input
to output, the last written value will be applied. If a port has never been written to, the
value on the port's pins while in input mode will be applied to the port when configured
as an output. This prevents the ports pins from glitching when set as outputs.
Bit
Assignment
Code
D0
Port C Lo (C0-C3) 1=Input, 0=Output
D1
Port B
1=Input, 0=Output
D2
Reserved
Set to ‘0’
D3
Port C Hi (C4-C7)
1=Input, 0=Output
D4
Port A
1=Input, 0=Output
D5,D6
Reserved
Set to “00”
D7
Direction Set Flag
1=Active
Table 5-5:
Base +3 and Base +7, Group 0 and 1 Control Register