Hi,
I wrote some code wich works fine - but someone asked be why it didn't constantly reset due to the WDT. I didn't know, and was a bit worried. Maybe my code shouldn't be working after all, in which case why was it...I searched the forum and found:
"WDT is handled automatically for you by PBP in background - you don't have to do anything. If you look at the Assembler listing of any of your compiled programs, you will see a liberal sprinkling of CLRWDT instructions throughout. PBP puts them there to keep resetting the WDT so you don't have to."
Posted by Melanie a while back.
What then is the advantage of using the WDT at all - would it not save code space to disable it in config bits, or is it sometimes useful?
Cheers,
Ben
Bookmarks