??? 03/10/10 16:19 Read: times |
#173977 - RST Watchdog Responding to: ???'s previous message |
Andy Neil,
In order to feed the watchdog, I call a function in my main loop (while(1) in the main function) which contains instructions bellow : void ResetWatchDog(void) { PCON=PCON|0x10; /* WATCH-DOG */ T3=0x00; /* every 512 ms*/ } Kai Klaas, My board is drowned in a special resin. So, as my sofware is gegulary evolving, it's usefull for me to have the ability to manualy activate or desactivate the watchdog. But I take in consideration your warning and I'll test a board with /WE hardwired. Thanks a lot. |