2024-05-22 09: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
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.
2024-05-23 01:04 AM
Of course. Set output type to mode "open drain" and write "high" to pin. Then it will be output in HiZ.
2024-05-23 02:04 AM
@Mahalakshmisudhakar wrote:We need to access output pin in tristate mode
What do you mean by that? What "access" ?
2024-05-23 02: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