Skip to main content
Visitor II
March 26, 2012
Question

Using GPIO pins for additional I2C ports

  • March 26, 2012
  • 1 reply
  • 678 views
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

    Visitor II
    April 8, 2012
    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.