Opendrain GPIO on STM32Fxx Microcontrollers #175
Replies: 3 comments 3 replies
-
Currently no - but should be fairly easy to implement as a driver specific #define compile time option by changing However, a careful check of the datasheet for the MCU needs to be done first as the F411 has at least one pin that is not listed as FT (FT = five volt tolerant). I have not checked other variants. |
Beta Was this translation helpful? Give feedback.
-
Hi,
in the map.h files and also add something like
in the driver.h files and replace
with
at the appropriate lines of the driver.c files. That way it would be backwards compatible and leave everybody the freedom to use Push Pulll or Open Drain for the GPIO Out pins. What do you think? |
Beta Was this translation helpful? Give feedback.
-
Okay, I think your solution seems easier to implement. I will give it a try. |
Beta Was this translation helpful? Give feedback.
-
Hello,
is there a way to set the GPIO outputs of the STM32F1/STM32F4 to OPEN DRAIN in grblHAL like mentioned in
https://www.st.com/resource/en/application_note/dm00315319-stm32-gpio-configuration-for-hardware-settings-and-lowpower-consumption-stmicroelectronics.pdf
section 3.2.2?
Background: I have an old breakoutboard with arduino NANO which has optos that are connected to +5V and are pulled low by arduino. I think I could leave the breakoutboard using 5V if it is possible to use open drain configuration of STM32Fxx GPIO pins.
Maybe somebody can give me a hint.
Regards
Jan
Beta Was this translation helpful? Give feedback.
All reactions