BIOS Setup Information
WADE-8011/WADE-8012 User’s Manual
3-8
outportb(SIO_Port,
0x87);
outportb(SIO_Port,
0x01);
outportb(SIO_Port,
0x55);
outportb(SIO_Port,
0x55);
}
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_IT872x_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 8 input / output ports that can be individually configured
to perform a simple basic I/O function.
GPIO Pin Assignment
The WADE-8011/WADE-8012 provides 8 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 JP14 shown as follows. Please note:
Do not short the Pin
17 and Pin 18 of the JP14!