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: AustraliaPosts: 1873 |
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: AustraliaPosts: 15 |
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: AustraliaPosts: 1873 |
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: AustraliaPosts: 3194 |
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 |