[1769] Testing Watchdog

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[1769] Testing Watchdog

186 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bruno on Wed May 29 13:09:50 MST 2013
Hello everyone.

I've doubt about how I can make a test using watchdog.

For example, I get the watchdog in reset mode. What Can I make for testing?
What I do for generation any error to enter in watchdog?

Can I remove the crystal?
Can I see watchdog in the debugger?

/*-------------WATCHDOG--------------*/

/*Clear Flag Time Out*/
if (WDT_ReadTimeOutFlag())
{
/* Clear WDT TimeOut*/
WDT_ClrTimeOutFlag();
}

WDT_Init (WDT_CLKSRC_IRC, WDT_MODE_RESET);    /*Init Watchdog */
WDT_Start(WDT_TIMEOUT);
0 Kudos
Reply
0 Replies