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 rate on TM4C123GH6PM



Hi, I recently bought tiva c series launch pad. I am facing a problem of setting 1 ms ADC sampling rate on tiva. I am able to get 1ms timer interrupt as well as using ADC processor based interrupt. Kindly anybody could support me in using ADC with timer based interrupt such that I can get the sampling rate of 1ms. Kindly anybody provide me some sample code. Regards, Moz
  • Hi,

    This task must be programmed in two steps:

    a) TimerControlTrigger(ulBase, ulTimer, true); // use the appropriate settings for ulBase, ulTimer parameters

    b) ADCSequenceConfigure( …, ulTrigger,…); // ulTrigger reflects trigger source, which in your case should be ADC_TRIGGER_TIMER

    Please review all these before using by reading the documentation of peripheral driver library to be found in /doc folder of your Tiva installation. Also these functions are documented in the driverlib source files.

    Petrei