System Installation
WADE-8041 User’s Manual
3-8
How to access W83627HG CR?
In WADE-8041, the EFER = 002Eh, and EFDR = 002Fh.
EFER and EFDR are 2 IO ports needed to access W83627HG-AW 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 W83627HG-AW 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 Example1
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);
}