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.

Problem with using multiple ADC channels

Other Parts Discussed in Thread: CC2541

Hi 

I want to use two ADC channels in cc2541 and keep reading data from those two ADC channels.

But those two results got switched sometimes.

For example,

valueOne = HalAdcRead(HAL_ADC_CHANNEL_3, HAL_ADC_RESOLUTION_8);
valueTwo = HalAdcRead(HAL_ADC_CHANNEL_5, HAL_ADC_RESOLUTION_14);

Sometimes, "valueOne" become channel 5 data. "valueTwo" become channel 3 data. 

Is it because the ADC result have not cleared before next conversion??

Thanks,

Hin