4. Each Component Function
42
BX-2x0-DCxxxx,
BX-2x0D-DCxxxx
User’s
manual
MOV
DX,2A0H
IN
AL,DX
;Command success if AL = 90H
CHK_DI3:
MOV
DX,2A4H
IN
AL,DX
TEST
AL,1
;Check status of input
JZ
CHK_DI3
MOV
DX,2A0H
IN
AL,DX
;AL is DI data(3bit LSB)
;-------------------------------------------
;Digital Output
;-------------------------------------------
CHK_DO1:
MOV
DX,2A4H
IN
AL,DX
TEST
AL,2
;Check status of output
JNZ
CHK_DO1
MOV
DX,2A0H
MOV
AL,91H
;Write DIO Command
OUT
DX,AL
CHK_DO2:
MOV
DX,2A4H
IN
AL,DX
TEST
AL,2
;Check status of output
JNZ
CHK_DO2
MOV
DX,2A0H
MOV
AL,07H
;DO Output Data (Example: 07H)
OUT
DX,AL
CHK_DO3:
MOV
DX,2A4H
IN
AL,DX
TEST
AL,1
;Check status of input
JZ
CHK_DO3
MOV
DX,2A0H
IN
AL,DX
;Command success if AL = 91H
;-------------------------------------------
;Close
;-------------------------------------------
CHK_CLOSE1:
MOV
DX,2A4H
IN
AL,DX
TEST
AL,2
;Check status of output
JNZ
CHK_CLOSE1
MOV
DX,2A0H
MOV
AL,AAH
;Close Command
OUT
DX,AL
Summary of Contents for bx200 SERIES
Page 1: ...IPC Series BOX PC for BX200 Series User s Manual CONTEC CO LTD ...
Page 7: ...vi BX 2x0 DCxxxx BX 2x0D DCxxxx User s manual ...
Page 19: ...2 System Reference 12 BX 2x0 DCxxxx BX 2x0D DCxxxx User s manual ...
Page 27: ...3 Hardware Setup 20 BX 2x0 DCxxxx BX 2x0D DCxxxx User s manual ...
Page 51: ...4 Each Component Function 44 BX 2x0 DCxxxx BX 2x0D DCxxxx User s manual ...
Page 91: ...5 BIOS Setup 84 BX 2x0 DCxxxx BX 2x0D DCxxxx User s manual ...
Page 113: ...6 Appendix 106 BX 2x0 DCxxxx BX 2x0D DCxxxx User s manual ...