Other Parts Discussed in Thread: TMS320F28035
Hi,
I have been using a demo kit with a TMS320F28035 for weeks now building my new application. I am now interfacing a sensor to the microcontroler using I2C protocol. But I get some trouble using it.
I have been able to communicate to the sensor under interrupt in the standard mode but got a transmission interrupt without any reason. Then, I decided to try in FIFO mode because it is handy for me (get 3 bytes by the sensor for each measurement). I can't run my application correctly without getting transmission interrupts.
According to the I2C data sheet (p35), the interrupt flag of the I2CFFTX register (bit 7) must be cleared by writing a 1 to bit6 of this register after getting out of the reset state. It is exactly what I do and I did try couple of possiblities like enabling interrupt later in my program etc....
I checked the I2CFFTX register and it keeps the interrupt flag ON even if I clear it by writing a 1 to bit 6.
What does it mean? If anybody already had trouble with the I2C peripheral or have any good idea, it will be helpful
Thanks
Chris