This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Constant, Period Sampling on a single ADC Channel

I would like to have a certain sampling frequency, say 50kHz, and run an interpolation filter in the meantime. Is there an easy way to do this, particularly one without interrupts?

 

Thanks!

 

- Chris

  • You should be able to trigger the ADC from a PWM timer at such a frequency, but you will likely need an interrupt to get the results. You may be able to setup the ADC to run such an interrupt slower (25k or12.5k), but that may be more complicated than running @ 50kHz. It all depends on what the rest of your CPU is doing.