Skip to main content
Tommino
Associate III
August 2, 2022
Solved

How to choose from several ports on the same pins on stm32 mcu

  • August 2, 2022
  • 2 replies
  • 1887 views

Hello,

I am looking at the STM32G041j6m6 with the soic8 package and as you can see (screenshoot from the datasheet) it has several ports wired to the same pin. Which is the register that selects which port is actually wired to the output pin?

0693W00000QMktKQAT.png

This topic has been closed for replies.
Best answer by Tesla DeLorean

The pins are bonded to multiple pads on the die.

You get to chose if they are inputs, or outputs, or which ones are used.

You are also responsible for ensuring your use cases don't clash.

You can switch usage on the fly, if/when appropriate, say if you want a TIM input, vs I2C bus, etc.

2 replies

KnarfB
Super User
August 2, 2022

None. It's your responsibility to keep all but one ports sharing the same pin in high impedance state.

hth

KnarfB

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
August 2, 2022

The pins are bonded to multiple pads on the die.

You get to chose if they are inputs, or outputs, or which ones are used.

You are also responsible for ensuring your use cases don't clash.

You can switch usage on the fly, if/when appropriate, say if you want a TIM input, vs I2C bus, etc.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..