
System Installation
ROBO-8120VG2R User’s Manual
3-11
How to access W83627DHG CR?
In ROBO-8120VG2R, the EFER = 002Eh, and EFDR = 002Fh.
EFER and EFDR are 2 IO ports needed to access W83627HG 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 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
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
void WDT_Enable(int time,int mode);
void WDT_Disable();
void GPIO_Set_Mode1(int bit,int mode);
void GPIO_Set_Mode2(int bit,int mode);
void GPIO_Write1(int bit,int data);
void GPIO_Write2(int bit,int data);
int GPIO_Read1(int bit);
int GPIO_Read2(int bit);
void main(){
outp (0x2e,0x87);//Input SIO entry key
outp
(0x2e,0x87);
//WDT sample code
WDT_Enable(20,0);
//WDT_Disable();
//GPIO sampe code
GPIO_Set_Mode2(0,0);//set GPIO 30 for output
GPIO_Set_Mode2(1,1);//set GPIO 31 for input
GPIO_Set_Mode1(2,1);//Set GPIO 22 for input
GPIO_Write2(0,1);//Set GPIO 30 for high
outp (0x2e,0xAA);//Input SIO Exit key
Summary of Contents for ROBO-8120VG2R
Page 13: ...System Overview ROBO 8120VG2R User s Manual 1 8 ROBO 8120VG2R System Block Diagram...
Page 48: ...BIOS Setup Information ROBO 8120VG2R User s Manual 4 12 Floppy Disk Controller Configuration...
Page 53: ...BIOS Setup Information ROBO 8120VG2R User s Manual 4 17 North Bridge Chipset Configuration...