![background image](http://html1.mh-extra.com/html/advantech/mic-770-v2/mic-770-v2_user-manual_2857355109.webp)
95
MIC-770 V2 User Manual
Ap
pe
nd
ix B
Pro
gra
m
m
ing
th
e G
PIO
B.1.2
GPIO Example Program
------------------------------------------------------------
Enter the extended function mode, interruptible double-write
------------------------------------------------------------
MOV DX, 2EH
MOV AL, 87H
OUT DX, AL
OUT DX, AL
------------------------------------------------------------
Configure logical device 7(GP10~GP17), configuration register CRE4,CRE5,CRE6
------------------------------------------------------------
MOV DX, 2EH
MOV AL, 07H ; Point to Logical Device Number Reg.
OUT DX, AL
MOV DX, 2FH
MOV AL, 07H ; Select logical device 7
OUT DX, AL
------------------------------------------------------------
Configure GPIO1 I/O Register
------------------------------------------------------------
MOV DX, 2EH
MOV AL, ECH
OUT DX, AL
MOV DX, 2FH
MOV AL, ??H ; 0: The respective GPIO1 PIN is programmed as an output port
;1: The respective GPIO1 PIN is programmed as an input port.
OUT DX, AL
------------------------------------------------------------
Configure GPIO1 Inversion Register
------------------------------------------------------------
MOV DX, 2EH
MOV AL, EEH
OUT DX, AL
MOV DX, 2FH
MOV AL, 00H ; Set GPIO is normal not inverter
OUT DX, AL
------------------------------------------------------------
Configure GPIO1 Data Register
------------------------------------------------------------
MOV DX, 2EH
MOV AL, EDH
OUT DX, AL
MOV DX, 2FH
MOV AL, ??H ; Put the output value into AL
OUT DX, AL
------------------------------------------------------------
Exit extended function mode |
------------------------------------------------------------
MOV DX, 2EH
MOV AL, AAH
OUT DX, AL
Summary of Contents for MIC-770 V2
Page 10: ...MIC 770 V2 User Manual x ...
Page 15: ...Chapter 1 1 General Introduction This chapter gives background information on MIC 770 V2 ...
Page 22: ...MIC 770 V2 User Manual 8 ...
Page 38: ...MIC 770 V2 User Manual 24 2 4 7 MIC 770 V2 MB I O Connector ...
Page 39: ...Chapter 3 3 BIOS Operation ...
Page 64: ...MIC 770 V2 User Manual 50 ...
Page 87: ...Chapter 4 4 Software Installation This chapter introduces driver installation ...
Page 89: ...Chapter 5 5 Integrated Graphic Device Setup ...
Page 91: ...Chapter 6 6 Intel ME ...
Page 93: ...Chapter 7 7 LAN Configuration ...
Page 95: ...Chapter 8 8 SATA RAID Setup ...
Page 97: ...Chapter 9 9 HD Audio ...
Page 99: ...Appendix A A Programming the Watchdog Timer ...
Page 107: ...Appendix B B Programming the GPIO ...