I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---
68
4.9 Using the Watchdog Timer
The watchdog timer of the I-7188XA(D) is fixed at 0.8 seconds for
MiniOS7 2.0. When the I-7188XA(D) is first powered on, the watchdog
timer will be always enabled. If the watchdog timer is not refreshed
within 0.8 seconds, it will reboot the I-7188XA(D).
The MiniOS7 of the I-7188XA(D) will automatically refresh the watchdog
after being powered on. User programs can call the software driver to
stop the MinOS7 from refreshing the watchdog timer, but the program
must then refresh the watchdog timer manually. If the program does not
refresh the watchdog timer every 0.8 seconds, it will cause the
I-7188XA(D) to reboot.
The program must then ask the MiniOS7 to reset the watchdog timer,
then stop and return to the MiniOS7 command prompt.
Use the
EnableWDT()
function to enable the watchdog timer or use the
DisableWDT()
function to disable it. After the watchdog is enabled, the
program should call the
RefreshWDT()
function before the timer count
reaches 0.8 seconds, otherwise the watchdog will reboot the
I-7188XA(D) module. The sample code is as follows:
The
IsResetByWatchDogTimer()
function is used to check whether the
I-7188XA(D) module has been rebooted by the watchdog timer. This
function must be inserted at the beginning of program. The sample code
is as follows:
EnableWDT();
while(!quit)
{
RefreshWDT();
User_function();
}
DisableWDT();
Summary of Contents for I-7188XA
Page 62: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 62 5 6 COM1 RS 232 1 2 232...
Page 90: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 90 1 2...
Page 140: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 140...
Page 146: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 146 Step 8 Make the project...
Page 153: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 153 Step 8 Rebuild the project...
Page 158: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 158...
Page 162: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 162...
Page 164: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 164...