Battery pack data read - SMbus(I2C) problem

Discussion in 'Embedded Systems and Microcontrollers' started by ravikishore247, Aug 7, 2012.

  1. ravikishore247

    Thread Starter New Member

    Aug 7, 2012
    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.
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    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.