Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

MSP430FR2311: Implementing I2C Stuck Bus clear on the slave side

$
0
0

Part Number:MSP430FR2311

I'm using an MSP430 as an I2C slave.  It seems that it would be easier to clear a stuck bus on the slave end rather than doing the bus clear from the master end and going through all the pin reading, reconfigure the i2c pins to gpio, clocking out until the bus clears, etc.  On the slave side it seems you could just monitor the state machine and make sure whenever there is an i2c start interrupt you start counting using a timer. You also give the transaction a unique ID and then use a counter that checks that unique id.  If the counter gets to some specified timeout (lets say 1 second) and the unique ID hasn't change then, reset the peripheral and state machine which should clear the stuck bus.

Thoughts?


Viewing all articles
Browse latest Browse all 262198

Latest Images

Trending Articles



Latest Images