![C&T PC311E Скачать руководство пользователя страница 72](http://html1.mh-extra.com/html/candt/pc311e/pc311e_user-manual_3074614072.webp)
PC300 / PC311E(P) l User’s Manual
72
GPIO Sample Code
GPI 0 ~ GPI 3
GPO 0 ~ GPO 3
GPI_REG
equ 0A03h
GPO_REG
equ 0A02h
GPO_0
equ 00010000b
____________________________________________________________________________________
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
Содержание PC311E
Страница 1: ...PC300 Series PC Module...
Страница 8: ...Chapter 1 Product Introductions...
Страница 16: ...PC300 PC311E P l User s Manual 16 1 4 Mechanical Dimensions 1 4 1 PC300 Unit mm Chapter 1 Product Introductions...
Страница 17: ...PC300 PC311E P l User s Manual 17 1 4 2 PC311E PC311P Unit mm Chapter 1 Product Introductions...
Страница 18: ...Chapter 2 Switches and Connectors...
Страница 28: ...PC300 PC311E P l User s Manual 28 Chapter 2 Switches and Connectors...
Страница 32: ...Chapter 3 System Setup...
Страница 47: ...Chapter 4 BIOS Setup...
Страница 50: ...PC300 PC311E P l User s Manual 50 50 4 3 Advanced Setup 4 3 1 CPU Configuration Chapter 4 BIOS Setup...
Страница 62: ...PC300 PC311E P l User s Manual 62 4 4 Chipset Chapter 4 BIOS Setup 4 4 1 System Agent SA Configuration...
Страница 64: ...PC300 PC311E P l User s Manual 64 Chapter 4 BIOS Setup 4 4 2 PCH IO Configuration PCI Express Configuration...
Страница 73: ...Copyright 2016 C T Solution Inc All Rights Reserved www candtsolution com...