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
"I am trying to enhance I2C module of the same"
There is no such thing!
uVision is applicable to all the chips supported by all Keil toolsets:
http://www.keil.com/dd/ http://www.keil.com/product/
So there is no such things as "the" I2C module!
You must have code for a specific processor - or, at least, a specific range of processors.
The question is meaningless without knowing what processor(s) you are talking about.
Also, if it is (based on) a piece of published code, then give a link to that code.
Any reason why you not only forgot to mention processor, but also forgot to set the architecture in the forum thread? You really think I2C interrupt handling is a generic concept identically applicable to any processor architecture?
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?
View all questions in Keil forum