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