WSB-G41A CPU Card
Page 130
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 WSB-G41A
Page 13: ...WSB G41A CPU Card Page 1 Chapter 1 1 Introduction...
Page 20: ...WSB G41A CPU Card Page 8 Chapter 2 2 Packing List...
Page 25: ...WSB G41A CPU Card Page 13 Chapter 3 3 Connectors...
Page 47: ...WSB G41A CPU Card Page 35 Chapter 4 4 Installation...
Page 65: ...WSB G41A CPU Card Page 53 Chapter 5 5 BIOS...
Page 106: ...WSB G41A CPU Card Page 94...
Page 107: ...WSB G41A CPU Card Page 95 Appendix A A BIOS Options...
Page 111: ...WSB G41A CPU Card Page 99 Appendix B B Terminology...
Page 115: ...WSB G41A CPU Card Page 103 Appendix C C One Key Recovery...
Page 121: ...WSB G41A CPU Card Page 109 Figure C 3 Partition Creation Commands...
Page 138: ...WSB G41A CPU Card Page 126 Appendix D D Watchdog Timer...
Page 141: ...WSB G41A CPU Card Page 129 Appendix E E Digital I O Interface...
Page 143: ...WSB G41A CPU Card Page 131 Appendix F F Hazardous Materials Disclosure...