2011-04-27 06:46 AM
Synchronizing two i2c devices on separate i2c busses STM32
2011-05-17 05:33 AM
If you can spare the pins, one option is to use two pins for SDA where one is always an input and the other is always an (open-collector) output and wire them together. Then you don't need to switch the GPIO functions around. Since you are reading and writing the whole port it's easy to use the relevant bits.
2011-05-17 05:33 AM
That is a great suggestion. I am not sure if I will have enough pins thought. I was thinking that there would be an easy way to toggle the IO pins between input and output but maybe not.