System Installation
PEB-2771VG2A/PEB-2781VG2A User’s Manual
3-4
//* Step4. Config WDT using second to be unit:
outportb(0x2E, 0xf5);
outportb(0x2E + 1, 0x00);
//* Step5. Set WDT time-out time:
outportb(0x2E, 0xf6);
outportb(0x2E + 1, time_out);
//* Step6. Exit configuration registers mode:
outportb(0x2E, 0xaa);
3.6 GPIO
/* W83627UHG GPIO DEMO PROGRAM
File Name : 2780GPIO.C
Write by : Eason Huang
*/
#include <stdio.h>
#include <conio.h>
#include <dos.h>
#define Superio2_Addr 0x2E
/* #define DEBUG
1 */
void enter_Superio2_CFG(void)
{
outportb(Superio2_Addr, 0x87);
outportb(Superio2_Addr, 0x87);
}
void exit_Superio2_CFG(void)
{
outportb(Superio2_Addr, 0xAA);
}
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from