Author Topic: Optional pull-up resistors for I2C driven by single GPIO  (Read 961 times)

0 Members and 1 Guest are viewing this topic.

Offline bootsectorTopic starter

  • Newbie
  • Posts: 1
  • Country: br
Optional pull-up resistors for I2C driven by single GPIO
« on: March 18, 2018, 11:40:50 am »
Hi there!

I'm planning to add an optional pair of pull-up resistors for I2C communication (PB10 and PB11) driven by a GPIO (PB7) from a micro-controller:



The idea is to keep PB7 in input-floating mode until I'm about to use PB10 and PB11 for I2C. In that case, PB7 will be put in output-high mode, activating the pull-ups.

My question is: would leaving PB7 in input-floating mode really make like the pull-ups weren't part of the circuit? PB10 and PB11 will be re-purposed for other type of communication that doesn't require pull-ups, so I don't want them interfering with the circuit in that case.

What do you guys think?

Cheers!

PS: PB7 is the only GPIO pin I have left, there's no other available.
« Last Edit: March 18, 2018, 03:40:47 pm by bootsector »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf