Re: hc12,can i return from interrupt and jump elsewhere?



On Sat, 29 Sep 2007 14:55:09 +0200, blisca wrote:

Hello from Milan ,Italy,
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.

That's an odd thing to do, and while you could probably do it one way or
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
.



Relevant Pages

  • Re: Bullshit by the numbers
    ... I guess some rednecks are stooping to driving Toyotas today. ... Need to learn how to apply control theory in your embedded system? ... "Applied Control Theory for Embedded Systems" by Tim Wescott ...
    (rec.crafts.metalworking)
  • Re: Looking for places to get certified in?
    ... Need to learn how to apply control theory in your embedded system? ... "Applied Control Theory for Embedded Systems" by Tim Wescott ... By sweatshops do you mean local small companies that still do ...
    (comp.arch.embedded)
  • Re: Calculation Operator ">" not ">=" !!
    ... Need to learn how to apply control theory in your embedded system? ... "Applied Control Theory for Embedded Systems" by Tim Wescott ... It's MS Excel 2003 add-in Solver module. ...
    (sci.math.num-analysis)
  • Re: Please help!!
    ... Ask your instructor -- I'm sure he/she has one. ... Need to learn how to apply control theory in your embedded system? ... "Applied Control Theory for Embedded Systems" by Tim Wescott ...
    (sci.electronics.basics)
  • Re: Understanding high speed digitizer parameters
    ... I've been trying to understand spec sheets for high speed digitizers ... Need to learn how to apply control theory in your embedded system? ... "Applied Control Theory for Embedded Systems" by Tim Wescott ...
    (comp.dsp)