2024-08-09 07:01 AM
Now I want to use ADC3 to collect the voltage of single-ended signals. I used IN1 channel to collect the reference voltage source of 1.5V and the internal channel to collect the internal reference voltage source of the chip respectively. The test results are as follows。The code value returned and the corresponding voltage size are shown in the figure below。
It can be found that the error of code is relatively large, because the bits of ADC can not reach 16 bits or what other reasons? Please advise
Solved! Go to Solution.
2024-08-09 10:45 AM
Small and branching ground traces are not ideal. The VDDA pin should have a larger capacitor near it to prevent voltage drops. The datasheet says 1 uF in addition to the 0.1 uF. That will certainly help, as would using a ferrite bead before the VDDA/VREF+ supply.
Lots of other tips in that application note.
You will never get the full 16 bits of precision with no noise, but you can get 12-14 or so, depending on settings.
2024-08-09 07:42 AM
Increase the sampling time to max for the best accuracy, and average many readings for even better accuracy for DC signals.
Is this a custom board? If so post the schematic.
General tips for improving ADC accuracy around found within here:
cd00211314-how-to-get-the-best-adc-accuracy-in-stm32-microcontrollers-stmicroelectronics.pdf
2024-08-09 08:02 AM
我需要至少0.1s返回一个平均值数据,我尝试在0.1s多让DAC转换几次取平均值,但是我对此抱有悲观态度,因为上面的误差如此之大感觉很难用取均值方法改善,后续阅读完PDF我再与您交流
2024-08-09 08:06 AM
2024-08-09 10:45 AM
Small and branching ground traces are not ideal. The VDDA pin should have a larger capacitor near it to prevent voltage drops. The datasheet says 1 uF in addition to the 0.1 uF. That will certainly help, as would using a ferrite bead before the VDDA/VREF+ supply.
Lots of other tips in that application note.
You will never get the full 16 bits of precision with no noise, but you can get 12-14 or so, depending on settings.
2024-08-15 01:41 AM
The number of bits shown in the data manual is 12.2 bits, with an error of 20LSB. I used a reference voltage source of 3V, and the error between the ADC value obtained and the actual value is about 10mv. Is this scientific? How big should the theoretical mountain error be and how should it be calculated?
2024-08-15 05:06 AM
How accurate is your reference voltage source? How accurate is your VREF+ voltage? The absolute error will mostly depend on these two values.
No voltage source is perfectly accurate. An error of 10 mV over 3.3V is 0.3%, which seems reasonable. It's certainly well within the specs of the AMS chip.
2024-08-15 06:49 AM
2024-08-15 08:46 AM
Sure, but VREF+/VDDA/VDD is not as accurate as your voltage source.