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 Sampling Frequency



Hi,

I have a query about setting up ADC sampling frequency. Using the 1ms timer interrupt, I am able to get 1KHz sampling frequency of ADC using timer trigger. My question is that is it possible to get 1KHz sampling frequency using the processor trigger and without using the 1ms timer interrupt?

Regards,

M

  • Hello Mohsin,

    You can use the CPU SysTick timer if you want to save a GP Timer. Other than that you will have to run a SysCtlDelay loop but then it may not be 1ms always since interrupts in the system may cause it to halt the loop count changing it to more than 1ms

    Regards

    Amit

  • Mohsin Mahmud said:
    without using the 1ms timer interrupt?

    But why is this of any importance - ARM MCUs are "loaded" w/Timers - and 1mS may well fit w/in 1/2 of one Timer depending upon your System Clock?  Days of 8051/Z8 timer scarcity are long gone - enjoy/use your riches!

    Amit advises well against use of anything other than a "real Timer" - should you seek consistent 1KHz sampling.

  • Hi there,

    Kindly could you please send me the code for getting 1KHz sampling frequency of ADC using 1ms w/Timers. Thanks

  • Hello Moz,

    Refer to the your ongoing thread. It may be useful to keep only one thread.

    http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/367441.aspx

    Regards

    Amit