Reading non zero value on HAL_ADC_GetValue when input is connected to ground STM32G030F6P6.
Hello,
I am working on STM32G030F6P6 microcontroller. PA0 pin is configured as analog input, 12 bit resolution. I am reading non zero values when PA0 pin is connected to ground. I tried on 3 different microcontrollers but each microcontroller ADC values are different from each other (eg. 145, 165).
Power supply to microcontroller is connected through 3.3V linear voltage regulator, also 100nf capacitor is added close to the microcontroller power pins.
What should I do? Please help with the same.
thanks,
siddharth.
