WDT Functions
InitWDT
Syntax
Description:
Parameter
Return Value
Usage
SetWDT
Syntax
Description
Parameter
Return Value
Usage
Nuvo-9501 Series
BOOL InitWDT(void);
Initialize the WDT function. You should always invoke
InitWDT() before set or start watchdog timer.
None
TRUE: Successfully initialized
FALSE: Failed to initialize
BOOL bRet = InitWDT()
BOOL SetWDT(WORD tick, BYTE unit);
Set timeout value and unit for watchdog timer. When InitWDT()
is invoked, a default timeout value of 255 seconds is assigned.
tick
WORD value (1 ~ 65535) to indicate timeout ticks.
unit
BYTE value (0 or 1) to indicate unit of timeout ticks.
0 : unit is minute
1: unit is second
If value of unit is correct (0 or 1), this function returns TRUE,
otherwise FALSE.
WORD tick=255;
BYTE unit=1; //unit is second.
BOOL bRet = SetWDT(tick, unit); //timeout value is 255
seconds
110
Need help?
Do you have a question about the Nuvo-9501 Series and is the answer not in the manual?
Questions and answers