Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:26 25 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MM interrupt

Author Message
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1873
Posted: 07:58am 31 Mar 2012
Copy link to clipboard 
Print this post

Before I embark on a fruitless exercise can anyone tell me if I can use an interrupt within an interrupt, ie in the first interrupt before the 'ireturn' can I start another interrupt. I seem to think the 'ireturns' would get confused.

Paul
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
AndrewB
Newbie

Joined: 04/12/2011
Location: Australia
Posts: 15
Posted: 08:23am 31 Mar 2012
Copy link to clipboard 
Print this post

I think that'll depend on the implementation of the interpreter.

I'd give it a try, just make sure you put a long pause in the first interrupt routine so its still executing when you make the second interrupt. You don't have to build your entire system, just lash up a test system.

Have fun!
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1873
Posted: 08:43am 31 Mar 2012
Copy link to clipboard 
Print this post

Yes, I've since though that maybe it will work like a nested loop as long as I clear the interrupts in the correct order with an 'ireturn'.
It's just that I have to add another switch to my hardware on another pin with the associated resistors and though I maybe able to save some time.

Paul
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 09:20am 31 Mar 2012
Copy link to clipboard 
Print this post

Sorry, you cannot nest interrupts.

Quote from the manual: "During processing of an interrupt all other interrupts are disabled until the interrupt routine returns with an IRETURN."

Geoff
Geoff Graham - http://geoffg.net
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024