cancel
Showing results for 
Search instead for 
Did you mean: 

Using GPIO pins for additional I2C ports

jeff69xr7
Associate II
Posted on March 26, 2012 at 22:26

Has anyone come up with a way to use GPIO ports as I2C? My current app uses an external I2C mux to make three I2C channels. I would like to replace this HW with independent I2C output from the STM8. So I would have three I2C master addresses on the MCU.

Thanks

Jeff

1 REPLY 1
drebbe
Associate II
Posted on April 08, 2012 at 18:58

I'd use any pin in the datasheet that have O1 as the speed and you should be set, I haven't looked at the ST Library code source but you might be able to copy that to get a good start.