Skip to main content
Bernardo1947
Associate II
May 11, 2023
Solved

ADC measurement error on STM32G030KxTx

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?

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
May 11, 2023

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

JW

2 replies

waclawek.jan
waclawek.janBest answer
Super User
May 11, 2023

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

JW

Bernardo1947
Associate II
May 11, 2023

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