
PCI-P16R16 Series User Manual (Ver.2.8, Apr. 2011, PMH-013-28)
35
UCHAR P8R8_DI(WORD BaseAddr)
{
DigitalIn=inportb(BaseAddr);
}
4.2.2 D/O Readback Register
The format of the D/O readback register is given as follows:
Ba0x0C
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
The sample code of reading the given as follows:
// D/O Readback function of PEX-P8POR8i and PEX-P16POR16i
DigitalIn=inportb(B0x0C);
4.2.3 Card ID Register
The format of the Card ID register is given as follows:
Ba0x3C
X X X X
Bit3 Bit2 Bit1 Bit0
It can be used to read the card ID set from SW1 switch
The sample code of reading the given as follows:
// Card ID function of PEX-P8POR8i and PEX-P16POR16i
*wID=inportb(B 0x3C)&0x000f;
N
Note:
for more information regarding BaseAddr.
!
2. The Card ID and D/O Readback function is only supported by the PEX-
P8POR8i and PEX-P16POR16i (Ver1.0 or above)