VIO-100(200)/PC100 | User’s Manual
106
#5 : Set GPO 6 status to high
Ps. GPO 6 must be accessed by gpio configuration (IO address is protected)
AddrPort =0x4e;
DataPort=0x4f;
SIO_UNLOCK_VALUE=0x87;
SIO_LOCK_VALUE=0xaa;
SIO_LDN_GPIO =0x06;
GPO_REG=0xd1;
GPO_6 =0x01; //bit0 is 1
// enable config mode, switch GPIO configuration
WriteByte(AddrPort, SIO_UNLOCK_VALUE);
usleep(4000); //delay
WriteByte(AddrPort, SIO_UNLOCK_VALUE);
WriteByte(AddrPort, 0x07);
WriteByte(DataPort, SIO_LDN_GPIO);
// Set GPO 6 Pin to high
WriteByte(AddrPort, GPO_REG);
data=ReadByte(DataPort);
data=data| GPO_6;
WriteByte(DataPort, data); // data bit0 set GPO 6 status to high
// close config mode
WriteByte(AddrPort, SIO_LOCK_VALUE);
Appendix – WDT & GPIO
Содержание 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 ...