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