
PCI-1202/1602/180x Series Card
Multi-Function Boards
User Manual/ Ver. 4.8/ Mar. 2015/ PMH-0014-48/ Page: 82
The sample code of DI/DO is given as follows:
P180x_Di (…) and P180x_Do (…) is designed for PCI-1800/1802 series
P1202_Di (…) and P1202_Do(…) is designed for PEX-1202/PCI-1202 series
P1602_Di (…) and P1602_Do (…) is designed for PCI-1600 series
WORD
P180X_Di
(WORD *wDi)
{
*wDi=inport(wAddrDio)&0xffff;
return(NoError);
}
WORD
P180X_Do
(WORD wDo)
{
outport(wAddrDio,wDo);
return(NoError);
}
6.6.2 Card ID Register
(Read): w0x4h
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
0
0
ID3
ID2
ID1
ID0
It can be used to read the card ID set from SW1 switch. Refer to
The sample code of reading the is given as follows:
P180x_ID (…) is designed for PCI-1800/1802
LU/HU
P1202_ID (…) is designed for PEX-1202
L/H
/PCI-1202
LU/HU
P1602_ID (…) is designed for PCI-1600
U/FU
WORD
P180X_ID
(WORD *wDi)
{
*wID=inport(w 0x04)&0x000f;
return(NoError);
}