[1769] Testing Watchdog

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[1769] Testing Watchdog

351件の閲覧回数
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 件の賞賛
返信
0 返答(返信)