Compact Board PCM- 6893
Appendix A Programming the Watchdog Timer A-6
//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( inBond 83977 WatchDog Timer Setup Utility .w
Version 1.0 \n? ;
printf( opyright (c) 2000 AAEON Technology Inc.\n? ; .C
printf( his version only for W83977 that using GP%d to .T
Reset System.\n? watch_dog_output_GP);
if (argc == 1)
{
printf( n Syntax: WATCHDOG [time] \n? ; .\