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.

CC2538 14-bit ADC Reading Issue

Other Parts Discussed in Thread: CC2538

Hi Ti,

I'm having issue with the built=in ADC of CC2538.

When I put ~3.3V in PA0(AIN0) and try this code HalAdcRead(0,HAL_ADC_RESOLUTION_14) to read the ADC register value, I get 8191 instead of 16,833. Also when I reduced the resolution to HAL_ADC_RESOLUTION_12, I get 2047 when it should be 4095.

Any idea why is this? I've set the reference to HalAdcSetReference(HAL_ADC_REF_AVDD)