Sure, just turn off the WDT in the configs.
Then when you put it to sleep, it will stay that way until an interrupt is triggered.
You can use ...and you won't need to enter a period.Code:@ SLEEP
<br>
Sure, just turn off the WDT in the configs.
Then when you put it to sleep, it will stay that way until an interrupt is triggered.
You can use ...and you won't need to enter a period.Code:@ SLEEP
<br>
DT
Yes you can do something like that... but the assembler line @ sleep will send your PIC in sleep mode forever... or 'till an interrupt happen. PBP SLEEP will send your PIC in sleep mode for a x period of time and then wake up. It's really up to you. I prefer the @ SLEEP
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Yes, that should work.
This thread has some good info of the ins and outs
http://www.picbasic.co.uk/forum/show...ighlight=sleep
Read post #3
Dave
Always wear safety glasses while programming.
Bookmarks