Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.
We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.
Thank you for your understanding.
Guys sorry for my poor format for the same issue previously....
Hey Linq,
A good news infact for your valuable support , today I was able to comunicate with I2C , almost 90% is done . Can you help me out for these issues listed below ..
the state where i get data ,i.e
case 0x50 ( Data Recieved with ACK) : Master_Buff[Read_Index] = I2DAT ; Read_Index++; if(Read_Index != MAX_READ) { I21CONSET = 0x04 (ACK bit) } else { Read_Index = 0; I21CONSET = 0x10 (stop) }
When I track Master_Buff 's value and use it within the Interrupt using UARTBYte out under CASE 0x50 , i get the correct data .
When I track Master_Buff''s value outside the IRQ and use it in my main , i am not getting the data .
To be noted that Master_Buff is a global variable , Then where should be the problem ???
Thanks for your support !
Looking forward, Samjith
Hey Linq ,
Surprisingly , when I checked under case 0x50 I came to know even after exceeding my Read Index my ACK bit was set,When I cleared that bit once for all , I couldn't beleive myself that I got the desired result .
Sir about Salihu Aliyu , Could i Know whose that person ???
Thanks for all your Inputs and support Linq ,
Regards, Samjith.
but his name is John, not Linq...
Hi Samjith Wasim,
You still need to:
1. Please re-read the manual, re-write your code.
2. Please trace your code step by step.
I believe that, there are some other bugs in your code.
Hey John ,
Since the application which I am working on is a real-time appn . I modified the code as told by you and checked for all the test cases , its working fine ...
Thanks for your Support !!!
Regards, Samjith