Hi I am using an analog input pin on an STM8 microcontroller, I want to measure a potentiometer that I expect to change voltage slowly (<1 V/s) I also expect there to be some noise at a higher frequency from a nearby motor.
I was planning on using a large (1 µF) bypass capacitor and some series resistance (1 Ω) to filter out the noise and allow measuring the voltage. But having read the documentation for the MCU I'm now not sure this is ok.
Specifically the analog input section on page 11 here: https://www.st.com/resource/en/application_note/an2752-getting-started-with-stm8s-and-stm8af-microcontrollers--stmicroelectronics.pdf
They give this schematic including the external components I was planning on placing:
But they also give this equation without much context, which imples that I can't add the values of resistor/ capacitor I was planning to add:
I can't see electrically why adding a bigger external capacitor would stop Csamp charging in time (because it would just charge from the external capacitor), but that seems to be the implication here? RM0016 doesn't seem to have any more information on the topic.

