2024-03-18 06:42 PM
Hello,
I'm using the STM32F405RGT6 to continuously read 4 ADC channels with 12-bit resolution. The problem is that the results the ADC is giving seemed non-linear, as you can see in the Excel file attached, where I tested it by injecting voltage from a signal generator directly into the ADC pins.
The ADC configuration I'm using is as below:
The voltage reference in the MCU is as below:
Any thoughts on how can I fix this problem?
Thank you.
2024-03-18 07:28 PM
Do you have some known good hardware to try it out on? It would be good to rule out the signal generator as an error source.
I'm not sure how to interpret the data exactly. What does the asterisk mean? Seems like there a jump every 200mV, but every other increment has no jump. Sort of.
Are grounds connected between the board and signal generator? Does a voltmeter on the signal verify that the voltage is what you think it is?
Schematic looks fine.
I'd investigate the following possibilities:
2024-03-25 02:18 PM
Hi @TDK
Thank you for your reply.
The asterisk means that the value is not stable and I had to put the mean value.
Both grounds are well connected between the board and the signal generator, and I've also verified the voltage from the generator, it's fine.
I've tested the possibilities you gave me and here are the results:
I've also tested using three different STM32F405 chips, and the results are the same.