piclist 2000\03\23\134003a >
Thread: Software reset?!
face BY : Mark Willis email (remove spam text)

Johnny Lindholm wrote:
> Hi all!
> Is there a way to implement a "soft reset"? Like a jump to the
> startadress but something that clears the stack as well, is this
> possible?
> Or perhaps it's unnecessary? If the stack is FIFO type it might not be a
> problem? Are there any other things (registers)  to consider?
> Regards,
> Johnny Lindholm
> [Note: In Sweden it's perfectly okay to be given the name of "Johnny" so
> that is my real name, not a nick for "John"...  ;o)  ]

You can pull ~MClr to Ground - perhaps with a (diode, logic, RC low-pass
filter) 'gate' in front to force you to do something unusual to pull
~MClr low.  (unusual combination of pin states, or a normal state but
for a way long duty cycle.)  Or connect a PIC's pin directly, if you
have a spare PIC Pin (Ha!  That'll be the day! <G>)

I'm not current on stack clearing - Vaguely remember "you cannot get
there from here", but am not SURE of it - Do know a little hardware will
get you there by forcing ~MClr low, definitely.


<38DA6494.2ADA7406@foxinternet.net> 7bit

See also: www.piclist.com/techref/index.htm?key=software+reset
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Software reset?!

month overview.

new search...