Re: hc12,can i return from interrupt and jump elsewhere?
- From: Tim Wescott <tim@xxxxxxxxxxxxxxxx>
- Date: Sat, 29 Sep 2007 11:50:09 -0500
On Sat, 29 Sep 2007 14:55:09 +0200, blisca wrote:
Hello from Milan ,Italy,That's an odd thing to do, and while you could probably do it one way or
i'm programming a 9s12 uC in C language,with occasional assembly inserts;
the question is:
a function myfunc() is runnin,and an external events calls an interrupt
service routine,is it possible,once the interrupt did its job,to avoid to
continue with my func()
from the point where it was interruptd,and going back to main() instead?It
is not important if i have to run another couple of line in
myfunc().Important is that i can go out from it soon;
Can anyone suggest me the most elegant way?
Once more forgive my English.
another it would be difficult to get all the bugs worked out.
Why exactly are you trying to do this strange thing? Perhaps there's a
better way to achieve your higher-level goal than the method you're
investigating -- let us know, and we may be able to suggest it.
--
Tim Wescott
Control systems and communications consulting
http://www.wescottdesign.com
Need to learn how to apply control theory in your embedded system?
"Applied Control Theory for Embedded Systems" by Tim Wescott
Elsevier/Newnes, http://www.wescottdesign.com/actfes/actfes.html
.
- Follow-Ups:
- References:
- hc12,can i return from interrupt and jump elsewhere?
- From: blisca
- hc12,can i return from interrupt and jump elsewhere?
- Prev by Date: Re: hc12,can i return from interrupt and jump elsewhere?
- Next by Date: Re: Synchronized SPI communication
- Previous by thread: Re: hc12,can i return from interrupt and jump elsewhere?
- Next by thread: R: hc12,can i return from interrupt and jump elsewhere?
- Index(es):
Relevant Pages
|