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)