STM32F303k8 GPIO issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-10 12:28 AM
Currently I'm programming a smaller data collector which also opens some power FETs.
My problem is, that the voltages I want to monitor are sent into a voltage divider so the Nucleo can sense it without any damege to it. For the voltage measurement I'm using ADC2 which connects to PA4,PA5 and PA6. While in theory this would work I noticed, that when I want to Initialize GPIOB on which I use PB5 and PB6 as outputs. The resistance of PA drops significantly, which results in the voltage dividers ratio changing.
My question would be: How can I keep PA6 in a high impedance floating state, while also using PB6 as an output?
Changing to another output is not an option, since the extention board uses these outputs.
- Labels:
-
GPIO-EXTI
-
STM32F3 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-10 12:51 AM
Hello @Levente_Bokor and welcome to the community,
You need also to share the schematics to make your description clear.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-10 01:24 AM
On the schematic the power FETs are outside the board, the PB5 and PB6 are connecting to gate drivers.
My problem is at PA6 and the voltage divider it connects to.