Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: does watchdog work ?

2004-09-15 by cd_racer2

Initialization:

   /* Setting watchdog work mode */
   WDMOD |= WDMOD_WDEN;
   WDMOD |= WDMOD_WDRESET;
     /* Dropping watchdog timeout flag */
   WDMOD &= ~WDMOD_WDTOF;
     /* Setting watchdog timeout */
   WDTC = WatchdogTimeout;

   WDFEED = 0xAA;
   WDFEED = 0x55;

-----------------------------------------------
Reset each cycle:

   WDTC &= ~WDMOD_WDTOF;
     /* Feeding 0xAA, 0x55 to restart watchdog */
   WDFEED = WDFEED_WDFEED(0xAA);
   WDFEED = WDFEED_WDFEED(0x55);

   This code is from our Watchdog driver. We've successfully test it.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.