System Installation
PEB-2771VG2A/PEB-2781VG2A User’s Manual
3-5
void Set_CFG2(unsigned char Addr2,unsigned char Value2)
{
unsigned char d2;
outportb(Superio2_Addr, Addr2);
delay(2);
outportb(Superio1, Value2);
#ifdef DEBUG
d2 = inportb(Superi1);
printf("\nWrite %x to CR%x, read back is:%x",Value2,Addr2,d2);
#endif /*DEBUG*/
delay(2);
}
unsigned char Get_CFG2(unsigned char Addr2)
{
unsigned char d2;
outportb(Superio2_Addr, Addr2);
delay(2);
d2 = inportb(Superi1);
#ifdef DEBUG
printf("\nGet data %x from CR%x",d2,Addr2);
#endif /*DEBUG*/
delay(2);
return(d2);
}
int main(void)
{
unsigned char d2;
printf("\n------------------------------------------------------------------------");
printf("\n- PEB-2771/2781 GPIO TEST Program R1.0 -");
printf("\n------------------------------------------------------------------------");
printf("\n Please short the following pins with 2.00mm-pitched jumper on J13");
printf("\n P.S: SIO: W83627UHG, Winbond");
printf("\n GP50(J13 PIN 1)----GP57(J13 PIN 2)");
printf("\n GP51(J13 PIN 3)----GP56(J13 PIN 4)");
printf("\n GP52(J13 PIN 5)----GP55(J13 PIN 6)");
printf("\n GP53(J13 PIN 7)----GP54(J13 PIN 8)");
printf("\n GND (J13 PIN10)****VCC (J13 PIN 9)");
printf("\n\n Starting...");
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from