RCO-6000 l User’s Manual
114
GPIO Sample Code
GPI 0 ~ GPI 7
GPO 0 ~ GPO 7
SIO_INDEX_Port
equ 02Eh
SIO_DATA_Port
equ 02Fh
SIO_UnLock_Value
equ 087h
SIO_Lock_Value
equ 0AAh
SIO_LDN_GPIO
equ 07h
GPI_REG
equ 0EDh
GPO_REG
equ 0F1h
GPO_0
equ 00000001b
GPI_REG
equ 0A03h
GPO_REG
equ 0A02h
GPO_0
equ 00010000b
____________________________________________________________________________________
Sample Code:
#1 : Get GPI 0 status
; Enable config mode
mov
dx, SIO_INDEX_Port
mov
al, SIO_UnLock_Value
out
dx, al
jmp
short $+2
;Io_delay
jmp
short $+2
;Io_delay
out
dx, al
; Switch GPIO Configuration for SIO LDN 0x07
mov
dx, SIO_INDEX_Port
mov
al, 07h
out
dx, al
mov
dx, SIO_DATA_Port
mov
al, SIO_LDN_GPIO
out
dx, al
Appendix – WDT & GPIO
GPI 0
GPI 1
GPI 2
GPI 3
GPI 4
GPI 5
GPI 6
GPI 7
IO Address
SIO GPIO Register
0EDh
0EDh
0EDh
0EDh
0EDh
0EDh
0EDh
0EDh
Bit
0
1
2
3
4
5
6
7
Sample code
#1
GPO 0
GPO 1
GPO 2 GPO 3
GPO 4
GPO 5
GPO 6 GPO 7
IO Address
SIO GPIO Register
0F1h
0F1h
0F1h
0F1h
0F1h
0F1h
0F1h
0F1h
Bit
0
1
2
3
4
5
6
7
Sample code
#2
Summary of Contents for RCO-6000
Page 1: ...RCO 6000 Series Superior Fanless Embedded System...
Page 11: ...Chapter 1 Product Introductions...
Page 47: ...Chapter 2 Switches and Connectors...
Page 49: ...RCO 6000 l User s Manual 49 2 1 2 Bottom View Chapter 2 Switches and Connectors...
Page 67: ...Chapter 3 System Setup...
Page 92: ...Chapter 4 BIOS Setup...
Page 116: ...Copyright C T Solution Inc All Rights Reserved www candtsolution com...