hi,
i have a pic12f629 and i wanna run its watchdog timer. i also need to go to the sleep mode to save power but dont want that the WDT reset and wake the MCU up. i read the pic12f629 datasheet but couldnt underestand how too disable WDT when in sleep. can anybody please help me?
by the way, in the datasheet, it says that the sleep instruction clear the wdt but it keeps running after that!
thank you in advance
The WatchDog can only be Enabled or Disabled at programming time by means of the Config Statements.
When used with the Sleep instruction it only wakes the pic, it does not Reset it.
You can then test any port etc and if not active put it back to sleep, all done in a couple of instructions so little power used.
Using the prescaler - if available, you can increase the watchdogs time.