Skip to main content
Associate
Oct 27, 2025 9:48 PM UTC
Solved

STM32C071GBU6 ADC Question

STM32C071GBU6 PA2 (pin 8 on the UFQFPN28 device) is configured as ADC_IN2.  What voltage can be expected when the pin is unloaded?

This topic has been closed for replies.
Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
Oct 28, 2025 1:22 PM UTC

If by ‘the pin is reading’ you mean the ADC attempting to measure a voltage on this floating pin, then the result is unpredictable. Floating input pins, whether digital or analogue, always exhibit this behaviour. The designer of the system is responsible for ensuring that such a condition does not occur or is handled appropriately.

Regards
/Peter

In order 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.

6 replies

Peter BENSCH
ST Technical Moderator
Oct 27, 2025 10:23 PM UTC

Welcome @ToddGilbert32, to the community!

Well - if the pin is initialised as ADC_IN2 and nothing is connected to it, the pin floats and no defined voltage is to be expected there.

Does it answer your question ?

Regards
/Peter

In order 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.
Associate
Oct 28, 2025 1:08 PM UTC

Thanks Peter.  I should have provided this information - the pin is reading 28mV.  Is this to be expected?

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
Oct 28, 2025 1:22 PM UTC

If by ‘the pin is reading’ you mean the ADC attempting to measure a voltage on this floating pin, then the result is unpredictable. Floating input pins, whether digital or analogue, always exhibit this behaviour. The designer of the system is responsible for ensuring that such a condition does not occur or is handled appropriately.

Regards
/Peter

In order 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.
Associate
Oct 28, 2025 2:24 PM UTC

Thanks Peter! :)

Associate
Oct 28, 2025 2:26 PM UTC

Thanks gbm! :)