PDA

View Full Version : Sleep Command



thye
- 26th October 2007, 11:12
Hi..i'm new here as well as a beginner in PICBasic Pro....

I'm using PIC 16F84A and i tried use Sleep command for 1 minute (Sleep 60)..

But after 1 minute it still sleep....any command for wake it up?

Thanks a lot.....

paul borgmeier
- 26th October 2007, 12:38
Do you have the WDT turned on when you load the program into the PIC?
(Sleep 60 uses the Watch Dog Timer)

thye
- 26th October 2007, 13:26
Hi,

I thought the WDT included in Sleep command.....

How to add the WDT command? Can give me some examples..?

Thanks a lot....

thye
- 27th October 2007, 07:11
Hi,

How I can wake it up anytime without WDT? Any extra command for this?

Thanks a lot...

paul borgmeier
- 27th October 2007, 08:19
>>How to add the WDT command?

The WDT isn't really a command but a bit you select when you program the PIC. Just like you have to select HS or XS, you get to pick whether to enable or disable the WDT. These are usually selected using menus. Once you get the hang of these, you can add them to your program in this manner http://www.picbasic.co.uk/forum/showthread.php?t=543

good luck

thye
- 27th October 2007, 15:28
Thanks Paul...

I didnt notice the WDT got inside the IC Prog...

How about without WDT to wake it up by giving 1 pulse to any port pins..? Can it works?