System Installation
WADE-8013/WADE-8014 User’s Manual
3-8
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 two groups of 8 input / output ports that can be
individually configured to perform a simple basic I/O function.
GPIO Pin Assignment
The WADE-8013 provides two groups of 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 J13 & J14 shown as follows. Please note:
Do not short the Pin 9 and Pin 10 of the J13 & J14!