Hello,
I am searching for an example of an I2C Slave, in C, software implementation (i.e., not using the hardware) for an MSP430F5310. I found one example, SLAA330, that shows a software implementation of I2C for a slave, but it is in assembly. The reasoning is that I am talking on an SMBus with multiple slaves (e.g., MSP430s) and I need to detect arbitration lose which is not possible within the MSP430 hardware. I have read that some people use a combination of switching the MSP430 back and forth from slave to master, but this might be problematic making sure the clocks are aligned and following the proper protocol of the ack/nacks/start/stop bits.
So, I am hoping that someone knows of a I2C slave software implementation that my google-fu search was not able to find.
Thanks,
Mark