Gpio Sample Code - MSI MS-98F5 Manual

Industrial computer board
Hide thumbs Also See for MS-98F5:
Table of Contents

Advertisement

WDT & GPIO

GPIO Sample Code

GPI 0 ~ GPI 3
IO Address
SIO GPIO Register
Bit
Sample code
GPO 0 ~ GPO 3
IO Address
SIO GPIO Register
Bit
Sample code
SMI_port
5606_Addrs
GPI_REG1
GPI_REG
GPO_REG
GPO_0
Sample Code:
#1 : Get GPI 0 status
; Set GPI data and use SW SMI.
mov
dx, SMI_port
mov
eax, 03000000h
mov
ebx, 03E000000h
mov
ecx,0
mov
esi,0
out
dx, 9Eh
jmp
short $+2
jmp
short $+2
A-4
GPI 0
GPI 1
GPI 2
00h
00h
00h
5
6
7
#1
GPO 0
GPO 1
GPO 2
01h
01h
01h
0
1
2
#2
equ
0B2h
equ
03Eh
equ
010h
equ
000h
equ
01h
equ
01h //Bit0
;3E is 5605 addr. 00 is GPI_Bit Reg. bx is 0000h
;dx is smi port, smi number is 9Eh
;Io_delay
;Io_delay
GPI 3
10h
0
GPO 3
01h
3

Advertisement

Table of Contents
loading

Table of Contents