Is low impedance for the ADC input good or bad?
I have noticed several recommendations on internet, that recommend providing a low high frequency impedance driving the ADC input for the MCU. For instance, you could add an RC-filter with the capacitance directly between the input pin and analog ground.
This is one of the recommendations:
Well, I am not sure of such a recommendation anymore…
Perhaps I should just state that I am a novice regarding the use of STM32 processors, but I am old regarding general electronics design and electrical noise.
I have just tried this circuit with a Nucleo STM32G474RE board with 100 nF decoupling capacitor and a series resistor that I vary on the input pin:

The preconditions are that I make an AD-conversion every second and with a 170 MHz sysclock and a 42.5 MHz ADC clock. The sample time is set to 12.5 clock cycles or 294 ns. No oversampling.
With the R-resistor set to 0 ohm, I get a peak-peak variation in the result value over one minute of about 33 LSB. When I change the resistor to 6.8 kOhm, the variation drops to about 12 LSB. It is about a 9 dB improvement.
I have also tried values of 3.3 kOhm and 12 kOhm, but then the noise tends to increase. So there seems to be a sweet spot here of this resistor value.
Some applications rightfully note that you should be aware of sufficient time for the internal SAR capacitors of the ADC to charge, and discharge from previous ADC conversion. I want to limit the previous charge to less than a ½ LSB of the 12 bits, and it is within 1/8192 in value, and you need 9 RC time constants for that. Therefore, you need a RC time constant below 294 ns/9 = 33 ns. According to datasheet the internal SAR capacitance is 5 pF. So, the calculated resistance becomes 6.5 kOhm – or close to the selected value of 6.8 kOhm.
I think that you can have some common GND wires inside the chip or some inductive coupling with high frequency spikes, that can change the charged value just before the sampling switches switches off. With a low driving impedance such a spike has larger influence on the remaining voltage on the SAR capacitance. The series resistor causes the SAR capacitance to act as a filter by itself and reduce this effect.
The test circuit I use is open with about 10 cm wires, so this is no proof. But if you are interested in lower noise at moderate conversion speeds, I think you should consider trying a series resistor there.
