1408/17/2011158
Page 140
IMBA-G410 ATX Motherboard
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
dx,
78
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
78
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,
78
0A21h
; GPIO output I/O base address
out
dx, al
; bit0 ~ bit3 as Output value
; bit4 ~ bit7 are Reserved
Содержание IMBA-G410
Страница 14: ......
Страница 15: ...2011 8 172011 8 17 IMBA G410 ATX Motherboard Page 1 Chapter 1 1 Introduction...
Страница 23: ...2011 8 172011 8 17 IMBA G410 ATX Motherboard Page 9 Chapter 2 2 Packing List...
Страница 28: ...148 17 2011158 Page 14 IMBA G410 ATX Motherboard Chapter 3 3 Connectors...
Страница 54: ...408 17 2011158 Page 40 IMBA G410 ATX Motherboard Chapter 4 4 Installation...
Страница 79: ...2011 8 172011 8 17 IMBA G410 ATX Motherboard Page 65 Chapter 5 5 BIOS...
Страница 115: ...2011 8 172011 8 17 IMBA G410 ATX Motherboard Page 101 Appendix A A BIOS Options...
Страница 118: ...1048 17 2011158 Page 104 IMBA G410 ATX Motherboard Appendix B B Terminology...
Страница 122: ...1088 17 2011158 Page 108 IMBA G410 ATX Motherboard Appendix C C One Key Recovery...
Страница 150: ...1368 17 2011158 Page 136 IMBA G410 ATX Motherboard Appendix D D Watchdog Timer...
Страница 153: ...2011 8 172011 8 17 IMBA G410 ATX Motherboard Page 139 Appendix E E Digital I O Interface...
Страница 155: ...2011 8 172011 8 17 IMBA G410 ATX Motherboard Page 141 Appendix F F Hazardous Materials Disclosure...