![background image](http://html1.mh-extra.com/html/premio/vio-100-pc100-series/vio-100-pc100-series_user-manual_1596728106.webp)
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
Summary of Contents for VIO-100/PC100 Series
Page 1: ...USER S MANUAL VIO 100 PC100 Series VIO 200 PC100 Series Industrial Panel PCs ...
Page 13: ...Chapter 1 Product Introductions ...
Page 44: ...Chapter 2 Switches and Connectors ...
Page 60: ...Chapter 3 Front Panel Controls ...
Page 65: ...Chapter 4 System Setup ...
Page 81: ...Chapter 5 BIOS Setup ...
Page 107: ...Copyright Premio Inc All Rights Reserved www premioinc com ...