A-3
WDT & GPIO
MS-98E2
GPIO Sample Code
GPI 0 ~ GPI 3
GPI 0
GPI 1
GPI 2
GPI 3
IO Address
F040h
F040h
F040h
F040h
Slave Address
9Ch
9Ch
9Ch
9Ch
SIO GPIO Register
42h
42h
42h
22h
Bit
0
1
2
3
Sample code
#1
#1
#1
#1
GPO 0 ~ GPO 3
GPO 0
GPO 1
GPO 2
GPO 3
IO Address
F040h
F040h
F040h
F040h
Slave Address
9Ch
9Ch
9Ch
9Ch
SIO GPIO Register
22h
22h
22h
22h
Bit
4
5
6
7
Sample code
#2
#2
#2
#2
SMBUS_BASE_ADDRESS
equ
F040h
;IO Address
SLAVEADDRESS
equ
9Ch
;Slave Address
GPI0_REG
equ
42h
GPO0_REG
equ
22h
GPO0_Value
equ
00010000b
______________________________________________________________________________
Sample Code:
#1 : Get GPI 0 status
mov
dx, GPI0_REG
in
al, dx
;al bit0 = GPI 0 status
#2 : Set GPO 0 status to high
mov
dx, GPO0_REG
in
al, dx
and
al, not GPO0_Value
or
al, GPO0_value
;al bit4 = GPO 0 staus
out
dx, al
Summary of Contents for 919-98E2-001
Page 1: ...i MS 98E2 v1 x Industrial Computer Board ...
Page 34: ...2 22 Hardware Setup ...
Page 47: ...3 13 MS 98E2 Security SKU1 C236 SKU2 H110 ...
Page 53: ...3 19 MS 98E2 Chipset SKU1 C236 SKU2 H110 ...
Page 60: ...A 4 WDT GPIO ...