interrupting an interrupt

Bloody-orc

Senior Member
Hi there
i have a robot soft that has an interrupt sub in it. but will the interrupt work when the programm is running in the interrups subroutine also? so that i could make a wait for buttonpress and then see if the button is pressed again for example (it is not what i'm doing though. i'm using it to detect serin commands from another picaxe)
 

Technical

Technical Support
Staff member
No, the interrupt will not beome active again until you 'return' out of the interrupt (presuming you reset the interrupt using setint).

This is normal pratise for microcontrollers, otherwise you would get a re-occuring loop that would crash the (limited) stack.

Edited by - Technical on 06/03/2006 14:57:46
 
Top