Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22368

I2C gets stuck

$
0
0
Part Number: MSP430FR2155
Other Parts Discussed in Thread: MSP430FR5949

Tool/software:

The implementation of an I2C communication between 2 MC often works and then gets stuck. The bit rate is about 260000 bit/s. Each I2C pin of each microcontroller is provided with a 4.7K pull up resistor.

The MSP430FR5949 (master) sends data to an MSP430FR2155 (slave), followed by a restart and a read command. The master then wants to read 6 bytes. The slave places the first byte on the bus. The master reads it, gives an ACK and wants to read the next byte. Now comes the problem. The slave holds the SDA line low after a few bits. When this happens varies. Sometimes everything works fine. After resetting the slave, it works again a few times until the error occurs. The UCSCLLOW bit in the UCB0 of the slave is ‘0’ in the event of an error.

In some cases, the SCL line is held low instead of the SDA line in the jammed state.

Can anyone tell me whether this is a hardware problem? Can it be handled by software? How can the problem be ruled out from the outset?

Many thanks for your support.


Viewing all articles
Browse latest Browse all 22368

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>