cancel
Showing results for 
Search instead for 
Did you mean: 

ADC measurement error on STM32G030KxTx

Bernardo1947
Associate II

I am developing a project to take some measurements with ADC channels, however the values are wrong. When I connect any ADC channel direct to GND, it gives me a value about 60~80 (The ADCs are 12-bit precision) and this error propagates for any reading.

How should I solve this problem? Could be any PCB layout noise or is it a problem with ADC reference?

1 ACCEPTED SOLUTION

Accepted Solutions

Did you perform ADC calibration as per instructions in Reference Manual?

JW

View solution in original post

2 REPLIES 2

Did you perform ADC calibration as per instructions in Reference Manual?

JW

@Community member​ I've set the ADCAL bit and it solved as detailed in the RM, thank you a lot!