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.
Hello,
I am using the MSP4302274 on a custom pcb as the I2C bus master, with three other slave devices. I am having some strange issues with the I2C bus.
Everything works fine when I upload the code and let it run freely, all the slaves are able to be found on the bus and send data to the MSP. However, the strangeness occurs when I apply power through an external battery, only once in a while everything works. Usually what happens is the UCBBUSY bit is set and the msp gets trapped. The only remedy I've found to fix this is to actually touch the reset line with my scope probe (or sometimes the SDA or SCL lines work too).
When the UCBBUSY is busy both SDA and SCL are high. I am using 4.7k pull up resistors. I've tried removing all the slaves and communicating with them one at a time, and still the same issues happens. This type of behavior is only happening when I configure the I2C bus, if I am simply blinking LEDs then there is no issue at all.
Why could be making the bus busy while a reset immediately fixes it?
Thanks!
Hi,
It may be helpful if you can post oscilloscope shots of the SDA and SCL lines with maybe one slave connected. The bus activity might give us an indication as to what is going wrong.
Regards
Nishant Bhaskar
**Attention** This is a public forum