VIO-100(200)-PC100-
J1900 | User’s Manual
107
#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-J1900 Series
Page 1: ...USER S MANUAL VIO 100 PC100 J1900 Series VIO 200 PC100 J1900 Series Industrial Panel PCs...
Page 14: ...Chapter 1 Product Introductions...
Page 45: ...Chapter 2 Switches and Connectors...
Page 61: ...Chapter 3 Front Panel Controls...
Page 66: ...Chapter 4 System Setup...
Page 82: ...Chapter 5 BIOS Setup...
Page 103: ...Appendix WDT GPIO Mounting Guide...
Page 110: ...All Rights Reserved VIO 100 200 PC100 J1900 User s Manual...