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 ADC zstack

Other Parts Discussed in Thread: CC2538, Z-STACK

hi,

I am working in ADC in zstack on cc2538 controller

with the below code written 

  adc_digital_value=HalAdcRead (  HAL_ADC_CHN_AIN5,HAL_ADC_RESOLUTION_8);

I am always getting a value of 0-127 (instead of 0-255).

I am only getting 7 bit resolution with 8 bit resolution set.

Can anyone help me in this I tried to debug a lot but not getting the problem.

AMIT