I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---
130
int quit=0,k;
InitLib();
if(IsResetByWatchDogTimer()) /*test whether the system has been
reset by the WDT*/
Print("reset by WatchDog timer\n\r");
EnableWDT(); /*after callng EnableWDT, Refresh WDT must be called
within 0.8s*/
while(!quit){
if(Kbhit()) {
k=Getch();
if(k=='q') {
Print("quit the program\r\n");
quit=1; /*quit the program*/
}
else {
Print("more than 0.8s has elapsed reset the system\r\n");
Delay(1000); /*There has been a delay for more than 0.8s. Reset
the system*/
}
}
RefreshWDT(); /*Refresh WDT must be called within 0.8s*/
Print("call Refresh WDT\n\r");
}
DisableWDT(); /*Disable the WDT. The system will refresh the WDT*/
Print("Call DisableWDT\n\r");
}
DisableWDT()
Function: Disables the WatchDog timer.
Syntax:
void DisableWDT(void);
Header:
#include ”7188xa.h”
Description: See the description for EnableSDT().
Example: Please refer to “EnableWDT()” function for more detailed
information.
RefreshWDT()
Function: Refreshes the WatchDog timer.
Syntax:
void RefreshWDT(void);
Header:
#include ”7188xa.h”
Description: See the description for EnableSDT().
Example: Please refer to “EnableWDT()” function for more detailed
Содержание I-7188XA
Страница 62: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 62 5 6 COM1 RS 232 1 2 232...
Страница 90: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 90 1 2...
Страница 140: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 140...
Страница 146: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 146 Step 8 Make the project...
Страница 153: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 153 Step 8 Rebuild the project...
Страница 158: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 158...
Страница 161: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 161 Below snap shots are steps for install TC 3 0...
Страница 162: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 162...
Страница 164: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 164...