cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F303k8 GPIO issue

Levente_Bokor
Visitor

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.

2 REPLIES 2
SofLit
ST Employee

Hello @Levente_Bokor and welcome to the community,

You need also to share the schematics to make your description clear.

Thank you

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Levente_Bokor
Visitor

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.