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

Not getting interupt

Hi all,
I am using KEIL UVISION for my application. I am trying to enhance I2C module of the same. I have initialized it in Master transmitter mode. When I first time transmit START command by setting STA in I2C register at that time my program execution jumps to ISR for I2C. But after clearing SI flag it does not go back to ISR for I2C when SI flag is set again...

Can anybody suggest where I may be wrong?
Thanks
Harisingh Rajput

Parents
  • LPC2148.

    I have checked for whether interrupt is disabled or not. through JTAG. It is showing that interrupt remains enabled but somehow code execution does not go to that ISR. Do I need to re enable interrups again. If it is working at first but not after an interrupt occurs it has to be in the interrupt service routine. Something isn't being set correctly. WHAT?

Reply
  • LPC2148.

    I have checked for whether interrupt is disabled or not. through JTAG. It is showing that interrupt remains enabled but somehow code execution does not go to that ISR. Do I need to re enable interrups again. If it is working at first but not after an interrupt occurs it has to be in the interrupt service routine. Something isn't being set correctly. WHAT?

Children
No data