Truncated match.
PICList
Thread
'Sleep Instruction'
1996\07\17@023532
by
Bill Bau
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_OUTjasarahTakeThisOuT
ix.netcom.com
1996\07\17@041655
by
fastfwd
|
Bill Bau <.....PICLISTKILLspam
@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 - fastfwd
KILLspamix.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...