cancel
Showing results for 
Search instead for 
Did you mean: 

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

Tommino
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2
KnarfB
Principal III

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

hth

KnarfB

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 Venmo
Up vote any posts that you find helpful, it shows what's working..