- 112 -
4.
Sample Code in C language
Control of GP00 and GP01
#define AddrPort 0x2E
#define DataPort 0x2F
<Enter the Extended Function Mode>
WriteByte(AddrPort, 0x87)
WriteByte(AddrPort, 0x87) //Must write twice to entering Extended mode
< Select Logic Device >
WriteByte(AddrPort, 0x07)
WriteByte(DataPort, 0x06) // Select logic device 06h
< Multi Function Selection >
WriteByte(AddrPort, 0x2A)
WriteByte(DataPort, ReadByte(DataPort) | 0x01))
//Set (bit 0/1) = (1) to select Function is GPIO.
<Output Mode Selection>//Set GP00/01 to output Mode
WriteByte(AddrPort, 0xF0) // Select configuration register F0h
WriteByte(DataPort, (ReadByte(DataPort) | 0x03))
//Set (bit 0/1) = (1) to select GP 00/01 as Output mode.
<Output Value>
WriteByte(AddrPort, 0xF1) // Select configuration register F1h
WriteByte(DataPort, Value) //Set bit n = (0/1) to output as Low or High.
<Leave the Extended Function Mode>
WriteByte(AddrPort, 0xAA)
Summary of Contents for POP-650-i
Page 4: ......
Page 8: ......
Page 13: ...5 Dimensions Front View Left View Rear View Right View...
Page 58: ...50 Serial Port 3 to Serial Port 6 Configurations Port 3 Port 4...
Page 60: ...52 3 2 9 Network Stack This section configures settings relevant to the network stack...
Page 65: ...57 3 3 Chipset This field is used to configure the functions of relevant chipset...
Page 70: ...62 3 3 2 System Agent SA Configuration...
Page 73: ...65 Memory Configuration This field displays the memory configuration...
Page 79: ...71...
Page 83: ...75 b Setup is now installing the driver c Setup completed Click Exit to close the program...
Page 90: ...82 c Click Finish to finish the installation...
Page 130: ...122 7 5 5 Jumper Location and Settings...
Page 131: ...123 7 5 6 Jumper Settings...
Page 132: ...124...
Page 133: ...125 20161225...