Skip to main content
Associate
October 27, 2025
Solved

STM32C071GBU6 ADC Question

  • October 27, 2025
  • 3 replies
  • 188 views

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

Best answer by Peter BENSCH

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

3 replies

Peter BENSCH
Technical Moderator
October 27, 2025

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

Associate
October 28, 2025

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

Peter BENSCH
Peter BENSCHBest answer
Technical Moderator
October 28, 2025

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

Associate
October 28, 2025

Thanks Peter! :)

Associate
October 28, 2025

Thanks gbm! :)