I2C bus problems.
2004-06-17 by ktrout153
I am trying to setup a basic i2c bus master using a lpc2105. I need to be able to read/write to several different devices as a master. Using the example code "LPC2106__Examples.zip" the chip will not give up the bus lines after sending data. This would be fine for an IO expander, but not for multiple devices. I have figured out that this is because the code does not send a stop bit, so the slave is always being addressed. I sent a stop bit following the clear interrupt (SI) command but this only cut my message down to a couple bits (the time it took to get to that instruction). So what should the program flow be? It doesn't seem logical to me at all! Thanks. Chris Lathan