piclist 2008\07\28\193956a >
Thread: Interrupt Questions
www.piclist.com/techref/microchip/ints.htm?key=interrupt
face
flavicon
face BY : Apptech email (remove spam text)



>> also can i exit a interrupt routine with a "goto" instead
>> of a "retfie"?

> Yes, but there will be a return address left on the stack,
> and each time
> that ISR is called. Eventually there'll be a crash. PICs
> with POP can
> deal with orphaned addresses on the stack if necessary,
> but you're
> better to exit with RETFIE to keep the stack tidy

Translation:

NO!
You can't do this unless you are an expert and understand
exactly what you are doing and what happens when you do it.
Until then, just don't do it. The consequences will almost
always be fatal (to the program's function if not to you).



           Russell

<07d901c8f10b$1ff45660$e701a8c0@y2k> 7bit

See also: www.piclist.com/techref/microchip/ints.htm?key=interrupt
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) Interrupt Questions

month overview.

new search...