I believe the tiva rom for the TM4C123 has an issue with function ADCSequenceStepConfigure. When the ain is greater the 15 the bits are not shifted properly. I believe the following function will fix bits not set correctly.
void
ADCSequenceStepConfigureFix(uint32_t ui32Base, uint32_t ui32SequenceNum,
uint32_t ui32Step, uint32_t ui32Config)
{
//
// Get the offset of the sequence to be configured.
//
ui32Base += ADC_SEQ + (ADC_SEQ_STEP * ui32SequenceNum);
//
// Compute the shift for the bits that control this step.
//
ui32Step *= 4;
//
// Set the upper bits of the analog mux value for this step.
//
HWREG(ui32Base + ADC_SSEMUX) = ((HWREG(ui32Base + ADC_SSEMUX) &
~(0x0000000f << ui32Step)) |
(((ui32Config & 0x10) >> 4) << ui32Step));
//
// Set the control value for this step.
//
HWREG(ui32Base + ADC_SSCTL) = ((HWREG(ui32Base + ADC_SSCTL) &
~(0x0000000f << ui32Step)) |
(((ui32Config & 0xe0) >> 4) << ui32Step));
}