hi
I'm using keil uv2 ide
I've written isr for int0 for an application it is getting executed well but it isn't returning back to main function .
if anyone know the solution please help me..... thanks in advance
"Enough stack space?"
The return address from the ISR is stored on the stack. If you have not reserved enough space for the stack - so that it gets overwritten by something else - then the return address will be corrupted..
"Do you acknowledge the interrupt so your ISR doesn't run continuously?"
If the condition which caused the interrupt in the first place has not been cleared by the end of the ISR, then the interrupt will re-occur immediately the ISR exits...
thanks for your reply
i overcome that problem it's because of insufficient stack space...
thanks one again