//caution:skip this step will be a mistake!! if (watch_dog_output_GP==12)

{

//Set Register 2A (PIN 57) Bit 7 = 0/1 (KBLOCK/GP12) //set to GP12 for WD Rst WriteAData(0x2A,ReadAData(0x2A)0x80);

}

else if(watch_dog_output_GP==13)

{

//Set Register 2B (PIN 58) Bit 0 = 0/1 (KBLOCK/GP13) //set to GP13 for WD Rst WriteAData(0x2B,ReadAData(0x2B)0x01);

}

else if(watch_dog_output_GP==16)

{

//Set Register 2C (PIN 119) Bit 5-4 = 01 (GP16) //set to GP16 for WD Rst WriteAData(0x2C,ReadAData(0x2C)0x10);

}

//Exit W83977 Configure mode ExitConfigMode();

}

void main(int argc, char* argv[])

{

int time_value=0; char *ptr;

printf(“WinBond 83977 WatchDog Timer Setup Utility Version 1.0 \n”);

printf(“Copyright (c) 2000 AAEON Technology Inc.\n”); printf(“This version only for W83977 that using GP%d to

Reset System.\n”,watch_dog_output_GP);

102SBC-658 User's Manual

Page 111
Image 111
IBM SBC-658 manual