Content originally posted in LPCWare by BPC on Fri Feb 08 11:38:19 MST 2013
Are there any WatchDog examples for the LPC1347 which uses the IRC as the WatchDog clock? I tried to implement it, but the device resets immediately. This is what I tried.
- Enabled WDT config clock (SYSAHBCLKCTRL)
- Made sure the IRC was powered up (PDRUNCFG)
- Selected IRC as source (CLKSEL)
- Loaded timer value (TC)
- Enabled interrupt and armed to generate reset (MOD)
- Fed the watchdog with 0xAA then 0x55 (FEED)
Thanks.