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.

The SysCtlADCSpeedSet function does not work on TM4C devices

The manner of changing the ADC speed has changed on TM4C devices from LM3S devices.  This change is not yet comprehended in TivaWare. As a result, the SysCtlADCSpeedSet function may not work correctly.  To ensure proper operation, remove any references to the SysCtlADCSpeedSet function and use the following instead.

Enable the ADC module and then use:

HWREG(ADC0_BASE + ADC_O_PC) = (<SPEED>);

Where <SPEED> is one of the following:

  • ADC_PC_SR_125K
  • ADC_PC_SR_250K
  • ADC_PC_SR_500K
  • ADC_PC_SR_1M

Regards,

Sue

  • Hi Sue,

         If this is a sticky post, it does not seem to be sticky post anymore.

         

    Sue Cozart said:
    SysCtlADCClockSet

         Also, is this correct? I think it should be SysCtlADCSpeedSet()

    - kel

  • Hi Kel,

    You are correct - It should be SysCtlADCSpeedSet.  I have edited the post to correct it.  Also, in TivaWare 2.1, you can use4 the new ADCClockConfigSet to manage this functionality.

    Regards,

    Sue