Compact Board PCM - 6 892 Rev.B
Appendix B Programming the Watchdog Timer B - 5
//Set Watch-Dog Timer 1~ 256
WriteAData(0xF2, time_val);
// set counter counts in second (or minute)
// Register F4 Bit 6 = 0/1 (minutes/seconds)
// For w83977EF only
WriteAData(0xF4, 0x40);
ExitConfigMode();
}
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)
{