Searching \ for 'Sleep Instruction' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=sleep+instruction
Search entire site for: 'Sleep Instruction'.

Truncated match.
PICList Thread
'Sleep Instruction'
1996\07\17@023532 by Bill Bau

flavicon
face
Hi all,
I am writing some code with a 16C55 in which I would like to stop the
program if a particular condition exists.  Can I use the "SLEEP"
instruction from a "CALL" to do this?  I simply want the chip to stop
program execution at the sleep instruction until power is removed or
MCLR is activated.  (The watchdog timer will not be enabled).  Any info
will be appreciated.

Bill Bau
spam_OUTjasarahTakeThisOuTspamix.netcom.com

1996\07\17@041655 by fastfwd

face
flavicon
face
Bill Bau <.....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU> wrote:

> I am writing some code with a 16C55 in which I would like to stop
> the program if a particular condition exists.  Can I use the "SLEEP"
> instruction from a "CALL" to do this?  I simply want the chip to
> stop program execution at the sleep instruction until power is
> removed or MCLR is activated.  (The watchdog timer will not be
> enabled).

Bill:

You can get to the SLEEP instruction with a CALL, a GOTO, or just put
it inline in your main program; it doesn't matter.

I'm not sure whether you know this already, but it's something you
need to keep in mind: If the PIC is asleep, MCLR will restart the
program; it will NOT just continue executing from right after the SLEEP
instruction.

By the way... If power consumption isn't an issue, you can of course
achieve the same behavior by doing this:

   HERE:   GOTO    HERE

-Andy

Andrew Warren - fastfwdspamKILLspamix.netcom.com
Fast Forward Engineering, Vista, California
http://www.geocities.com/SiliconValley/2499

More... (looser matching)
- Last day of these posts
- In 1996 , 1997 only
- Today
- New search...