1461/20/2012164
P a g e 146
IMBA-G412IS A ATX Mo th e rb o a rd
E.1
In tro d u c tio n
The digital I/O is used for machine control and automation.
E.2
DIO Co n n e c to r P in o u ts
Located in the Connectors section of this document.
E.3
As s e m b ly La n g u a g e Exa m p le
;**************************************************
; 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
dx, 0A21h
; 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
; sets dx to 0A22h
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
dx, 0A21h
; GPIO output I/O base address
out
dx, al
; bit0 ~ bit3 as Output value
; bit4 ~ bit7 are Reserved
Содержание IMBA-G412ISA-R20
Страница 14: ......
Страница 15: ...2012 1 202012 1 20 IMBA G412ISA ATX Motherboard Page 1 Chapter 1 1 Introduction...
Страница 24: ...101 20 2012164 Page 10 IMBA G412ISA ATX Motherboard Chapter 2 2 Packing Lis t...
Страница 29: ...2012 1 202012 1 20 IMBA G412ISA ATX Motherboard Page 15 Chapter 3 3 Connectors...
Страница 55: ...2012 1 202012 1 20 IMBA G412ISA ATX Motherboard Page 41 Chapter 4 4 Ins tallation...
Страница 80: ...661 20 2012164 Page 66 IMBA G412ISA ATX Motherboard Chapter 5 5 BIOS...
Страница 120: ...1061 20 2012164 Page 106 IMBA G412ISA ATX Motherboard Appendix A A BIOS Options...
Страница 124: ...1101 20 2012164 Page 110 IMBA G412ISA ATX Motherboard Appendix B B Terminology...
Страница 128: ...1141 20 2012164 Page 114 IMBA G412ISA ATX Motherboard Appendix C C One Key Recovery...
Страница 156: ...1421 20 2012164 Page 142 IMBA G412ISA ATX Motherboard Appendix D D Watchdog Timer...
Страница 159: ...2012 1 202012 1 20 IMBA G412ISA ATX Motherboard Page 145 Appendix E E Digital I O Interface...
Страница 161: ...2012 1 202012 1 20 IMBA G412ISA ATX Motherboard Page 147 Appendix F F Hazardous Materials Dis clos ure...