System Installation
ROBO-8779VG2AR User’s Manual
3-11
How to access W83627THG CR?
In ROBO-8779VG2AR, the EFER = 002Eh, and EFDR = 002Fh.
EFER and EFDR are 2 IO ports needed to access W83627THG CR.
EFER is the Index Port, EFDR is the Data Port.
CR index number needs to be written into EFER first,
Then the data will be read/written from/to EFDR.
To R/W W83627THG CR, it is needed to Enter/Enable Configuration Mode first.
When completing the programming, it is suggested to Exit/Disable Configuration
Mode.
Enter Configuration Mode: Write 87h to IO port EFER twice.
Exit Configuration Mode: Write AAh to IO port EFER.
3.6.3 Example
void enter_Superio2_CFG(void)
{
outportb(0x2E, 0x87);
outportb(0x2E, 0x87);
}
void exit_Superio2_CFG(void)
{
outportb(0x2E, 0xAA);
}
void Set_CFG2(unsigned char Addr2,unsigned char Value2)
{
unsigned char d2;
outportb(0x2E, Addr2);
delay(2);
outportb(0x2E +1, Value2);
delay(2);
}