User manual

PCI-1762 User Manual 26
C.1 Overview
The PCI-1762 is delivered with an easy-to-use 32-bit DLL driver for user program-
ming under the Windows XP/Vista/7 operating system. We advise users to program
the PCI-1762sing the 32-bit DLL driver provided by Advantech to avoid the complex-
ity of low-level programming by register. The most important consideration in pro-
gramming the PCI-1762 the register level is to understand the function of the card's
registers. The information in the following sections is provided only for users who
would like to do their own low-level programming.
C.2 I/O Port Address Map
The PCI-1762 requires 32 consecutive addresses in the PC’s I/O space. The address
of each register is specified as an offset from the card’s base address. For example,
BASE+0 is the card’s base address and BASE+7 is the base address plus seven
bytes.
Table C-1 shows the function of each register of the PCI-1762 or driver and its
address relative to the card’s base address.
Table C.1: Register Functions
Base
Addr,
+ Deci-
mal
1514131211109876543210
0
R Relay Output Status
RS
15
RS
146
RS
13
RS
12
RS
11
RS
10
RS
9
RS
8
RS
7
RS
6
RS
5
RS
4
RS
3
RS
2
RS
1
RS
0
W Relay Output
RO
15
RO
14
RO
13
RO
12
RO
11
RO
10
RO
9
RO
8
RO
7
RO
6
RO
5
RO
4
RO
3
RO
2
RO
1
RO
0
2
R Isolated Digital Input
IDI
15
IDI
14
IDI
13
IDI
12
IDI
11
IDI
10
IDI
9
IDI
8
IDI
7
IDI
6
IDI
5
IDI
4
IDI
3
IDI
2
IDI
1
IDI0
WN/A
4
R Board ID Register
ID3 ID2 ID1 ID0
WN/A
6
R Interrupt Status Register
ID8
RF
ID8
EN
ID8
F
ID0
RF
ID0
EN
ID0
F
W Interrupt Control Register
ID8
RF
ID8
EN
ID8
CL
R
ID0
RF
ID0
EN
ID0
CL
R