Battery pack data read - SMbus(I2C) problem

Thread Starter

ravikishore247

Joined Aug 7, 2012
1
Hi,
I am using PIC24F16KA102 to read smart battery pack data. I configured the ports for SMbus communication with a clock line frequency. The clock line is always at 50hz and the same case with data line 50hz. and one more observation is the bus collision bit is always set. Could you please help me in this regard.
Thanks in advance.
 

ErnieM

Joined Apr 24, 2011
8,377
Once a bus collision occurs the flag must be reset by the code.

Time to go back to the manual and see how you are talking to the serial port module. You probably have a mistake there. If you have a debugger you can set a watch on that register, single step the code and see where and what sets that flag.
 
Top