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.

Compiler/MSP430G2553: I2c Problem using Energia

Part Number: MSP430G2553
Other Parts Discussed in Thread: ENERGIA,

Tool/software: TI C/C++ Compiler

Hello,

I have a question regarding using Arduino ode on Energia.

I am trying to use the sample code from Single tact which is in Arduino in MSP430 using Energia.

I am using P1_7 as SDA abd P1_6 as SCL. I am not able to use I2C communication?

Is there any modification required for using it in Energia?

  • Hi Sagar,

    Do you have the appropriate pull-up resistors on the I2C lines? Also, P1.6 is connected to LED2 on the MSP430G2553 LaunchPad via a jumper. You'll need to remove this jumper for I2C communication to work properly.

    Best regards,
    Caleb Overbay
  • I have 4.7kohm resistors. Is it too high?
    and I do have Jumpers removed at P1.6.

    The code was Arduino but I added Wire.setModule(0); to work in MSP430.
    Do you think if I am missing out on anything?

    Thanks
  • Sagar,

    I'm not an Arduino expert so I can't be sure that the code you wrote for the Arduino will port well to the MSP430G2553 using Energia. The pull-up resistor values you've chosen should be ok.

    I would recommend checking out this similar E2E post and see if it helps you:
    e2e.ti.com/.../529036

    Best regards,
    Caleb Overbay
  • Hi Sagar,

    Were you able to solve the issue you were experiencing. If so, can you please update this post with the solution for others who may experience a similar issue.

    Best regards,
    Caleb Overbay

**Attention** This is a public forum