How to choose from several ports on the same pins on stm32 mcu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-02 7:53 AM
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?
Solved! Go to Solution.
- Labels:
-
STM32G0 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-02 8:24 AM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-02 8:08 AM
None. It's your responsibility to keep all but one ports sharing the same pin in high impedance state.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-02 8:24 AM
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.
Up vote any posts that you find helpful, it shows what's working..
