PCI-82x Series Cards
Multifunction Boards
User Manual, Ver. 1.5, Jan. 2017, PMH-024-15, Page: 45
6.3.3
Read the Card ID (SW1) and the DI/O Jumper (JP4) Settings
(Read)wBase+0x0C
Read the Card ID (SW1) and the DI/O Jumper (JP4) Settings
Bit
F
E
D
C
B
A
9
8
7
6
5
4
3
2
1
0
Data
x
x
x
x
x
S0
S1
S2
x
x
x
x
ID3
ID2
ID1
ID0
This register is used to read the Card ID (SW1) and the DIO Jumper (JP4) settings on the PCI-822/826
Series card.
The following is an example of how to read the 4-bit Card ID:
wCardID = inportb(w0x0C)&0xF;
/* Read the Card ID
wJumper=(inportb(w0xC)>>8)&0x7;
/* Reads the DI/O Jumper (JP4) settings
DI/O Jumper (JP4) Settings
DIO Port Configuration
wJumper
S0
S1
S2
JP4
DIO-S0
PA
PB
0x0
0
x
x
Soft
x
x
0x4
1
0
0
Jump
DI
DI
0x5
1
0
1
Jump
DI
DO
0x6
1
1
0
Jump
DO
DI
0x7
1
1
1
Jump
DO
DO