ADC exact sampling rate (near maximal possible rate) - using timer or not?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Ano on Tue Sep 02 17:14:37 MST 2014
Quick question:
I would like to use the 10bit ADC of the LPC11C24 to sample at an exact rate (which will be adjustable by the user).
The maximal sample rate is 400kHz. I think this is just the case in burst mode?!

I want to sample one value and write it into an array, then sample the next. So no big code between the sample events.
I just thought to initialize the ADC with an adjustable rate and sample -> save -> sample -> save and so on.
But I think, this would not lead to the exact sample rate, would it?
Is it better to implement a timer for the samples? But, could I achieve a sampling rate near 400kHz with this method?

Thanks guys!

(I know that there are tons of threads about the ADC, but I couldn't find a solution (some thread titles really are choosen badly)