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.

ADC conversion speed too fast



Hi

How can I limit my ADC sample speed to about 33kHz? My CPU speed is set to 60MHz. I dont know if im doing something wrong but the highest I can set the ACQPS value is 63. And according to my calculations it gives a sample rate of about 3MHz?

At the moment my ADC is initialized for simultaneous mode. Is it possible to count the amount of conversions (is it possible to count the amount of times the EOC bit is set)? Then if it is possibles i can count the samples and just use each x'th sample to decrease the sample rate.

Thanks in advance. 

  • Hi Wahldo,

    I think you are mixing different things... You can set your sampling speed to much slower rates than you stated, by setting for example a cputimer to the desired frequency and fire the ADCSOC every time you hit the timer period value. The ACQPS value determines only how long your sample and hold window is open, but this is not equal to the sampling rate!

    Best regards

    Andreas

  • Andreas

    Thanks a lot for the reply. I was mixing different things. I didn't understand the ADC setup but I think I do now.

    I'm going to set up a PWM signal at 33kHz and see if I can get it to trigger my SOC's. Which will solve my problem.  

    Thanks again.

    Wahldo