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.
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
2024-10-10 01:24 AM