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