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.

msp430fr5994: msp430fr5994 i2c master transmit and receive

Part Number: MSP430FR5994

I need to use i2c master receive and transmit function to reach my sensor's register but I cannot handle this. How can I do it? 

Thank you.

  • Hello,

    There are a few resources you can use to ramp up on learning how to implement successful I2C communication. First of which, being the MSP430FR5994 User's Guide, gives you background knowledge and shows you registers used for initializing and using the I2C peripheral. Another good resource is an App Report that focuses on solutions to common serial communication issues on the MSP430 (SLAA734).

    The best way to find where to start is to use the TI Resource explorer to find a few I2C examples for the MSP430FR5994 which show some of the most common ways to implement and use I2C on the MSP430. One thing to keep in mind is that these examples just provide a starting point for generating code and do not provide a turn-key solution because each I2C implementation is a little different (i.e. the slave address, which you will be able to find in the datasheet of the sensor you are using). Hopefully this helps you get started on coding up your solution!

    Best regards,

    Matt Calvo

  • As suggested, please try first to understand the code snippet for sending and for receiving separately :)
    Then, upon mastering the previous, you can try to merge them.
    Good luck.
  • Hello,

    If support for this thread is complete, could you please select "Resolved" so that we can close it out accordingly. Thank you for your help!

    Best regards,

    Matt Calvo
  • Hi,

    I am going to go ahead and close this thread out and log it for tracking purposes. Should you have any other questions please feel free to make another E2E post so it can be addressed as soon as possible.

    Best regards,

    Matt

**Attention** This is a public forum