![background image](http://html1.mh-extra.com/html/icp-das-usa/pio-d96/pio-d96_user-manual_4476333046.webp)
PIO-D96 Series Card
96-channel DIO Board
User Manual, Ver. 2.3, Jun. 2018, PMH-008-23 Page: 45
6.3.8
Card ID Register
(Read): wBase+0xfc
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
ID3
ID2
ID1
ID0
0
0
0
For example:
wCardID = inportb(wBase+0xfc);
/* read Card ID */
Note: The Card ID function is only supported by the PIO-D96U/D96SU and PEX-D96S (Ver. 1.0 or above)
6.3.9
Read/Write 8-bit Data Register
(Read/Write): wBase+0xc0/0xc40xc8/0xd0/0xd4/0xd8
0xe0/0xe4/0xe8/0xf0/0xf4/0xf8
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
D7
D6
D5
D4
D3
D2
D1
D0
There are 12 8-bit I/O ports in the PIO-D96 series card. Every I/O port can be configured as DI or DO
port. User can send/receive digital data to/from this register for digital input or output.
Note that all
ports are used as D/I port when the PC is first turned on.
For example:
outportb(wBase+0xc0,Val);
/* write to Port0 */
Val=inportb(wBase+0xc0);
/* read from Port0 */
Note: Make sure the I/O port configuration (DI or DO) before read/write the data register, refer to
Section 6.3.7
“I/O Selection Control Register”
for more details.