AnsweredAssumed Answered

Controlling the ADC Sampling Rate

Question asked by roofie01 on Dec 23, 2014
Latest reply on Oct 6, 2015 by Clive One
I've posted on this before, thought I'd nailed it correct, but did not, as there are inconsistent results. I am using the Discovery STM32F4 development board, along with IAR compiler/workbench.

Can someone please point me to a previous post (if there is one) or alternately, sample code, or alternately, pseudo-code that would explain the correct procedure to set up the ADC for an exact sampling rate? Since this is critical in any DSP operations, there must be a way to control that? I realize a timer interrupt is one way - but how about allowing the ADC to "self-interrupt", and then set a HW interrupt? If that can be done, can someone provide a link or sample code?

Would be a nice "ST" Christmas present all wrapped up under the Discovery STM32F4 development board  8--)

Thanks, and best wishes to everyone for a wonderful Christmas break.

Gary

Outcomes