PEX/PIO/PISO-DA Series Card
Analog Output Boards
User Manual/ Ver. 3.1/ Oct. 2013/ PMH-0010-31/ Page: 66
6.3.9 Digital Input Register
(Read): wBase+0xe0
Low byte of the D/I port
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
DI7
DI6
DI5
DI4
DI3
DI2
DI1
DI0
(Read): wBase+0xe4
High byte of the D/I port
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
DI15
DI14
DI13
DI12
DI11
DI10
DI9
DI8
For example:
wDiLoByte = inportb(wBase+0xe0);
/* Read the D/I state (DI7~DI0) */
wDiHiByte = inportb(wBase+0xe4);
/* Read the D/I state (DI15~DI8) */
wDiValue = (wDiHiByte<<8)|wDiLoByte;
Refer to the DEMO2.C file for more information.
6.3.10 Digital Output Register
(Write): wBase+0xf8
Low byte of the D/O port
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
DO7
DO6
DO5
DO4
DO3
DO2
DO1
DO0
(Write): wBase+0xfc
High byte of the D/O port
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
DO15
DO14
DO13
DO12
DO11
DO10
DO9
DO8
For example:
o
utportb(wBase+0xf8,wDoValue);
/*Controls the DO state (DO7~DO0) */
outportb(wBase+0xfc,wDoValue>>8);
/*Controls the DO state (DO15~DO8) */
Refer to the DEMO1/2.C file for more information.
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru