Skip to main content
jeff69xr7
Visitor II
Mar 26, 2012 8:26 PM UTC
Question

Using GPIO pins for additional I2C ports

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

    This topic has been closed for replies.

    1 reply

    drebbe
    Associate II
    Apr 8, 2012 4:58 PM UTC
    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.