VIO-100(200)/PC100 | User’s Manual
105
GPI 4 ~ GPI 7
GPO 4 ~ GPO 7
____________________________________________________________________________________
Sample Code:
GPI_REG = 0xA06;
GPO_REG = 0xA06;
GPO_4 = 0x10; //bit4 is 1
#3 : Get GPI 4 status
// Get GPI 4 Pin Status
data=ReadByte(GPI_REG); // data bit0 is GPI 4 status
#4 : Set GPO 4 status to high
// Set GPO 4 Pin to High
data=ReadByte(GPO_REG);
data |= GPO_4;
WriteByte(GPO_REG, data); //data bit4 set GPO 4 status to high
Appendix – WDT & GPIO
GPI 4
GPI 5
GPI 6
GPI 7
IO Address
0xA06
0xA06
0xA06
0xA06
Bit
0
1
2
3
Sample code
#3
GPO 4
GPO 5
GPO 6
GPO 7
IO Address
0xA06
0xA07
#5
0xA04
Bit
4
7
0
7
Sample code
#4
#5
Содержание VIO-100/PC100 Series
Страница 1: ...USER S MANUAL VIO 100 PC100 Series VIO 200 PC100 Series Industrial Panel PCs ...
Страница 13: ...Chapter 1 Product Introductions ...
Страница 44: ...Chapter 2 Switches and Connectors ...
Страница 60: ...Chapter 3 Front Panel Controls ...
Страница 65: ...Chapter 4 System Setup ...
Страница 80: ...VIO 100 200 PC100 User s Manual 3 Lock the below 6 screws M4X5L to finish assembly 80 Chapter 4 System Setup ...
Страница 81: ...Chapter 5 BIOS Setup ...
Страница 102: ...Appendix WDT GPIO This appendix provides the sample codes of WDT Watch Dog Timer and GPIO General Purpose Input Output ...
Страница 107: ...Copyright Premio Inc All Rights Reserved www premioinc com ...