![C&T Solution BCO-1000-J1900 Series User Manual Download Page 77](http://html1.mh-extra.com/html/candt-solution/bco-1000-j1900-series/bco-1000-j1900-series_user-manual_3082671077.webp)
BCO-1000-J1900
l
User’s Manual
77
GPIO Sample Code
⚫
GPI 0 ~ GPI 3
⚫
GPO 0 ~ GPO 3
GPI_REG
equ 0A03h
GPO_REG
equ 0A02h
GPO_0
equ 00000001b
____________________________________________________________________________________
Sample Code:
#1 : Get GPI 0 status
; Get GPI 0 Pin Status Register
In
al, GPI_REG
;al bit4 = GPI 0 status
#2 : Set GPO 0 status to high
; Set GPO 0 Pin to High
mov
dx, GPO_REG
in
al, dx
or
al, GPO_0
out
dx, al
;al bit0 = GPO 0 status
Appendix
–
WDT & GPIO
GPI 0
GPI 1
GPI 2
GPI 3
IO Address
0xA03h
0xA03h
0xA03h
0xA03h
Bit
4
5
6
7
Sample code
#1
GPO 0
GPO 1
GPO 2
GPO 3
IO Address
0xA02h
0xA02h
0xA02h
0xA02h
Bit
0
1
2
3
Sample code
#2
Summary of Contents for BCO-1000-J1900 Series
Page 1: ...USER S MANUAL BCO 1000 J1900 Series Basic Fanless Embedded System...
Page 9: ...Chapter 1 Product Introductions...
Page 23: ...BCO 1000 J1900 l User s Manual 23 1 4 4 BCO 1030 Unit mm Chapter 1 Product Introductions...
Page 24: ...Chapter 2 Switches and Connectors...
Page 34: ...BCO 1000 J1900 l User s Manual 34 Chapter 2 Switches and Connectors...
Page 37: ...Chapter 3 System Setup...
Page 48: ...Chapter 4 BIOS Setup...
Page 78: ......