A SERVICE OF

logo

iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 108
7.11 Watchdog timer
The watchdog timer of iVIEW-100 is fixed at 0.8 second. User can call watchdog
function in user program. The user program tell the MiniOS7 to refresh the
watchdog timer, and then the user program can stop & return to the prompt of
MiniOS7.
If the iVIEW-100 does not refresh watchdog timer in 0.8 second, the watchdog
will RESET the iVIEW-100.
The MiniOS7 of iVIEW-100 will automatically refresh the watchdog after first
power on. The user program can call the software driver to tell MiniOS7 to
refresh the watchdog timer in 0.8 seconds. If the user program does not refresh
the watchdog timer in 0.8 seconds, the watchdog timer will RESET the iVIEW-
100.
The Watchdog Timer is default fixed on 0.8 seconds. The user can use
EnableWDT” to enable it or use “DisableWDT” to disable it. After watchdog is
enabled, the program should call “RefreshWDT” before the timer count up to 0.8
seconds. Otherwise, it will reset iVIEW-100. The code can be as follows:
EnableWDT();
/* enable Watchdog timer */
while(!quit){
RefleshWDT();
/* refresh Watchdog timer */
User_function();
/* here is for user’s program code*/
}
DisableWDT();
/* disable Watchdog timer */