BIOS Setup Information
26
GMB-C2165-LLVA User
‟
s Manual
void Set_LDN(unsigned char LDN) {
outportb(SIO_Port, 0x07);
outportb(S1, LDN);
printf("LDN=%x\n", LDN);
}
void Set_Register(unsigned char offset, unsigned char value) {
outportb(SIO_Port, offset);
outportb(S1, value);
printf("Write offset:%x = %x\n", offset, value);
}
int main(void) {
printf("test string\n");
Enter_IT8783_SIO();
Set_LDN(GPIO_LDN);
Set_Register(0x72, 0xC0);
Set_Register(0x73, 0x05);
printf("System will reset in 5 seconds\n");
return 0;
}
3.6
GPIO
The motherboard provides 4 input/output ports that can be individually configured
to perform a simple basic I/O function.
GPIO Pin Assignment
The GMB-C2165-LLVA provides 4 input/output ports that can be individually
configured to perform a simple basic I/O function. Users can configure each
individual port to become an input or output port by programming register bit of
I/O Selection. To invert port value, the setting of Inversion Register has to be made.
Port values can be set to read or write through Data Register.
The GPIO port is located on J17 shown as follows. Please note: Do not short the Pin 9
and Pin 10 of the J17!
The control for the GPIO signals is handled through a separate 1-byte I/O
space.