Acrosser AR-B6050 User Manual
Page 31
AR-B6050 User Ma
nual
31
=======<>");
gotoxy(1, 4);
cprintf("<>===================================================================
=======<>");
gotoxy(1, 5); cprintf("|| Model Name :
||");
gotoxy(1, 6); cprintf("|| SIO IO Base :
||");
gotoxy(1, 7);
cprintf("<>===================================================================
=======<>");
// Show Got Parameter Informat
textcolor(LIGHTGRAY);
gotoxy(18,5); cprintf("%s",Model_Name);
gotoxy(18,6); cprintf("%X",IO_PORT_BASE);
// Enter W83627EHF Config
outportb(IO_PORT_BASE,0x87);
outportb(IO_PORT_BASE,0x87);
// Set Multi-function Pins to GPIO
outportb(IO_PORT_BASE,0x29);
outportb(IO_PORT_BASE+1,(inportb(IO_PORT_BASE+1) | 0x01));
// Select GPIO Port device
outportb(IO_PORT_BASE,0x07);
outportb(IO_PORT_BASE+1,0x07);
// Set GPIO Port Active
outportb(IO_PORT_BASE,0x30);
outportb(IO_PORT_BASE+1,0x01);
// Set GPIO I/O Register to 00h
outportb(IO_PORT_BASE,0xF3);
outportb(IO_PORT_BASE+1,0x00);
// Set W83627EHF GPIO10~13 to Output, GPIO14~GPIO17 to Input