GPIO CONFIGURATION IN TRISTATE mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-22 9:35 PM
shall we able to configure stm32g431mb gpio to high impedence state when configured as output pin. We need to access output pin in tristate mode
- Labels:
-
STM32G4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-23 12:46 AM
Look at the Reference Manual for your stm32.
This will tell you how bits in the appropriate GPIOx->MODER control whether a pin is output or input.
When you want to go from output to tri-state (digital input) you can reprogram those bits.
There probably is a HAL way to do this, but I don't find it adequately documented.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-23 1:04 AM
Of course. Set output type to mode "open drain" and write "high" to pin. Then it will be output in HiZ.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-23 2:04 AM
@Mahalakshmisudhakar wrote:We need to access output pin in tristate mode
What do you mean by that? What "access" ?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-23 2:05 PM
Hi All,
This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.
Regards,
Jake
ST Support
