watchdog timer on pic12f629

Status
Not open for further replies.

shahram642005

Newbie level 6
Joined
Nov 19, 2013
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
73
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
 

Hi,

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.

See these tutorial for examples
page 15
https://embedded-lab.com/blog/?p=3237
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…