![IEI Technology PCISA-PV-D4251 User Manual Download Page 141](http://html1.mh-extra.com/html/iei-technology/pcisa-pv-d4251/pcisa-pv-d4251_user-manual_3948070141.webp)
PCISA-PV-D4251/N4551/D5251 CPU Card
Page 128
E.1 Introduction
The digital I/O is used for machine control and automation.
E.2 DIO Connector Pinouts
Located in the Connectors section of this document.
E.3 Assembly Language Example
;**************************************************
; DIO Port:
0A21h[3:0] (4 Out)
;
0A22h[3:0] (4 In)
;**************************************************
;==================================================
; Get current input and output values into AL register
; AL: bit0~bit3 as output value
;
bit4~bit7 as Input value
;==================================================
mov
; GPIO output I/O base address
in
al, dx
; Get output status
jmp
$+2
;
Wait
jmp
$+2
;
Wait
and
al,
0Fh
mov
bl, al
; Move al to bl temporarily
inc
dx
in
al, dx
; Get input status
jmp
$+2
;
Wait
jmp
$+2
;
Wait
and
al,
0Fh
rol
al, 4
; Shift input values over
or
al, bl
; Merge all results into AL
; AL: bit0~bit3 as output value
; bit4~bit7 as input value
;==================================================
; Output value (x) to GPIO
; AL: bit0~bit3 as output value
;==================================================
mov
al, 0xh
; x is the output value (0 ~ Fh)
mov
; GPIO output I/O base address
out
dx, al
; bit0 ~ bit3 as Output value
; bit4 ~ bit7 are Reserved
Summary of Contents for PCISA-PV-D4251
Page 14: ...PCISA PV D4251 N4551 D5251 CPU Card Page 1 Chapter 1 1 Introduction...
Page 18: ...PCISA PV D4251 N4551 D5251 CPU Card Page 5 Figure 1 3 Connectors Solder Side...
Page 23: ...PCISA PV D4251 N4551 D5251 CPU Card Page 10 Chapter 2 2 Packing List...
Page 27: ...PCISA PV D4251 N4551 D5251 CPU Card Page 14 Chapter 3 3 Connectors...
Page 53: ...PCISA PV D4251 N4551 D5251 CPU Card Page 40 Chapter 4 4 Installation...
Page 72: ...PCISA PV D4251 N4551 D5251 CPU Card Page 59 Chapter 5 5 BIOS...
Page 102: ...PCISA PV D4251 N4551 D5251 CPU Card Page 89 Appendix A A BIOS Options...
Page 105: ...PCISA PV D4251 N4551 D5251 CPU Card Page 92 Appendix B B Terminology...
Page 109: ...PCISA PV D4251 N4551 D5251 CPU Card Page 96 Appendix C C One Key Recovery...
Page 137: ...PCISA PV D4251 N4551 D5251 CPU Card Page 124 Appendix D D Watchdog Timer...
Page 140: ...PCISA PV D4251 N4551 D5251 CPU Card Page 127 Appendix E E Digital I O Interface...
Page 142: ...PCISA PV D4251 N4551 D5251 CPU Card Page 129 Appendix F F Hazardous Materials Disclosure...