2023-07-12 05:40 AM
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.
Solved! Go to Solution.
2023-07-22 02:47 AM
Dear @SMali.4 ,
it seems you have a ground noise to minimize and ensure offset calibration is done at startup of the ADC. Here is our Generic Application Note on how to get best from Our ADCs https://www.st.com/resource/en/application_note/an2834-how-to-get-the-best-adc-accuracy-in-stm32-microcontrollers-stmicroelectronics.pdf#page23
Ciao
STOne-32
2023-07-22 02:47 AM
Dear @SMali.4 ,
it seems you have a ground noise to minimize and ensure offset calibration is done at startup of the ADC. Here is our Generic Application Note on how to get best from Our ADCs https://www.st.com/resource/en/application_note/an2834-how-to-get-the-best-adc-accuracy-in-stm32-microcontrollers-stmicroelectronics.pdf#page23
Ciao
STOne-32