Appendix A Watchdog Timer 101
void init_w83977tf_aw_watchdog()
{
short int value;
//Enter W83977 Configure Mode
EnterConfigMode();
//Select Device 7
SelectDevice(7);
//Set Device Active
WriteAData(0x30, 0x01);
//caution:skip this step will be a mistake!!
if (watch_dog_output_GP==12)
{
//Set Register E2 to define GP12
WriteAData(0xE2, 0x0A);
}
else if(watch_dog_output_GP==13)
{
//Set Register E3 to define GP13
WriteAData(0xE3, 0x0A);
}
else if(watch_dog_output_GP==16)
{
//Set Register E6 to define GP16
WriteAData(0xE6, 0x0A);
}
//Select Device 8
SelectDevice(8);
//Set Register F3
//keyboard and mouse interrupt reset Enable
//When Watch-Dog Time-out occurs,Enable POWER LED
output
WriteAData(0xF3, 0x0E);