This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Is there any example for I2C communication with MS5803 series?

Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE

Hi, I'm looking for an example code for I2C communication with MS5803 pressure sensor series.

The sensor model I choosed is MS5803-01BA, and my processor is TMS320f28335.

But I can't find any example :(

Is there any example I can refer?

Please help this beginner!

  • Hi Soon,

    There is no particular example for your interface but you can refer the "i2c_eeprom" example code. You'll need to modify the driver according to your sensor requirements.
    C:\ti\controlSUITE\device_support\f2833x\v140\DSP2833x_examples_ccsv5\i2c_eeprom

    Regards,
    Gautam
  • Dear Gautam Iyer,

    Thank you for your reply and I downloaded TI ControlSUITE!

    But this example is to difficult for me :(

    The statement blow is an output message format from the Example_288xI2C_eeprom.c.

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    struct I2CMSG I2cMsgOut1={I2C_MSGSTAT_SEND_WITHSTOP,

      I2C_SLAVE_ADDR,

      I2C_NUMBYTES,

      I2C_EEPROM_HIGH_ADDR,

      I2C_EEPROM_LOW_ADDR,

      0x12,

      0x34

      ...

      0x12};

    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    First of all, I confuse what the I2C_EEPROM_LOW_ADDR(or I2C_EEPROM_HIGH_ADDR). And also there is a I2C_SLAVE_ADDR...

    I don't know the difference between these two addresses.

    From the manual of the sensor that I wanna use, only read and write address are specified.

    How can I match it with this information?  I think the read or write address should be a I2C_SLAVE_ADDR, but I don't know about I2C_EEPROM_LOW_ADDR(or I2C_EEPROM_HIGH_ADDR).

    And If I want to send a reset command(0x1E), where is the location of the reset command?

    Is the MsgBuffer is the variable for input commands?

    If you reply, it will be very helpful for me:)

    Thanks for reading!

     

  • check here for I2c pdf www.ti.com/.../technicaldocuments
    Some eeprom (large ones) have high and low address. Search the forum for "i2c" and you'll find some code.
    Gastón