This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

INT0 problem in p89v51rd2fa

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

Parents
  • "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...

Reply
  • "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...

Children