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.

MSP430G2553: I2C SoftwareLibrary not communicating properly

Part Number: MSP430G2553

Hello,

AS mentioned i have an MSP430G2553 and my goal is to have it communicate on two separate I2C networks. For testing I am using a HX711.

So far i can get the hardware I2C to communicate properly with the HX711 on pins P1.6 and P1.7, but when i switch to software I2C and assign it to pins P2.6 and P2.7 I just get 255 back. 

For the hardware network I am using Wire.h and for the software network I am using I2C_SoftwareLibrary.h.

Here are screen shots of the scope reading, I suspect the timing of the initial request is the issue bit do not know how to adjust.

Good communication above.

Bad comms.

Any suggestions would be appreciated!

  • The "good" screenshot does not show the complete transaction.
    The "bad" screenshot shows that the slave does not ACK. In that case, the master must not continue the transaction; apparently, your code lacks error handling.

**Attention** This is a public forum