Acrosser Technology AR-V6002FL User Manual page 59

Hide thumbs Also See for AR-V6002FL:
Table of Contents

Advertisement

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 W83627HF Config
outportb(IO_PORT_BASE,0x87);
outportb(IO_PORT_BASE,0x87);
// Set Multi-function Pins to GPIO
outportb(IO_PORT_BASE,0x2C);
outportb(IO_PORT_BASE+1,(inportb(IO_PORT_BASE+1) & 0x1F));
// Select GPIO Port device
outportb(IO_PORT_BASE,0x07);
outportb(IO_PORT_BASE+1,0x09);
// Set GPIO Port Active GPIO3
outportb(IO_PORT_BASE,0x30);
outportb(IO_PORT_BASE+1,0x02);
// Set W83627HF GPIO30~33 to Output, GPIO34~GPIO37 to Input
outportb(IO_PORT_BASE,0xF0);
outportb(IO_PORT_BASE+1,0xF0);
// inversion data to correct, because the protect circuit
outportb(IO_PORT_BASE,0xF2);
outportb(IO_PORT_BASE+1,0xF0);
// Set W83627HF GPIO30~33 to 0x05
outportb(IO_PORT_BASE,0xF1);
outportb(IO_PORT_BASE+1,0x05);
59
Revision: 1.0

Advertisement

Table of Contents
loading

Table of Contents