A SERVICE OF

logo

iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 109
The function IsResetByWatchDogTimer is used to check whether the iVIEW-
100 has been reset by WatchDog Timer. This function must be inserted on the
beginning of program. The code can be as follows.
main()
{
if(IsResetByWatchDogTimer()){
/*check if iVIEW reset by watchdog*/
/* here do something to check the system */
}
quit=0;
EnableWDT();
/* enable Watchdog timer */
while(!quit){
RefleshWDT()
/* refresh Watchdog timer */
;
User_function();
/* here is for user’s program code*/
}
DisableWDT()
/* disable Watchdog timer */
;
}