cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronizing two i2c devices on separate i2c busses STM32

Martiska.Greg
Associate III
Posted on April 27, 2011 at 15:46

Synchronizing two i2c devices on separate i2c busses STM32

11 REPLIES 11
John F.
Senior
Posted on May 17, 2011 at 14:33

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.

Martiska.Greg
Associate III
Posted on May 17, 2011 at 14:33

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.