简体   繁体   中英

I2C alternative GPIO pins STM32F103C8T6

I'm using the Bluepill STM32F103C8T6.

Is it possible to configure the GPIO in such a way that the I2C can be enabled on other pins than:

  • PB6,7,8,9 for I2C1
  • PB10,11 for I2C2

No it is not possible to do hardware I2C on other ports than the ones you named on the STM32F103C8T6. The hardware is only routed to those GPIO ports.

You can write a software I2C driver which can be used on any open-collector or open-drain GPIO pin. Best thing to do for that is to look at the Arduino software I2C implementation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM