2025-10-27 2:48 PM
STM32C071GBU6 PA2 (pin 8 on the UFQFPN28 device) is configured as ADC_IN2. What voltage can be expected when the pin is unloaded?
Solved! Go to Solution.
2025-10-28 6:22 AM
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
2025-10-27 3:23 PM
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
2025-10-28 6:08 AM
Thanks Peter. I should have provided this information - the pin is reading 28mV. Is this to be expected?
2025-10-28 6:22 AM
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
2025-10-28 6:22 AM
Any voltage between 0 V and Vdd might be expected.
2025-10-28 7:24 AM
Thanks Peter! :)
2025-10-28 7:26 AM
Thanks gbm! :)