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.

TM4C123GH6PM: How to set ADC sampling rate

Part Number: TM4C123GH6PM


Dear team:

Where can I find the prototype of the library function in the above figure?

My customer wants to set the ADC sampling rate to 1MHz. Is there any relevant example code?

Best regards,

Green

  • Hello Green,

    The source code for driverlib APIs can be found under [Install Path]\TivaWare_C_Series-2.2.0.295\driverlib. In this case within adc.c.

    Regarding 1MHz, we don't actually have code for that... because it's the default setting for the device! So without configuring the sample rate you will be at 1MHz automatically. Slight smile

    Best Regards,

    Ralph Jacobi