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.

ADC Conversion Value - CC2530

Other Parts Discussed in Thread: Z-STACK, CC2530

Hi,

I am working with CC2530ZDK and Z-Stack 2.5.1a.

I am trying to read a voltage value using the function HalAdcRead (with 14bits of resolution)  and after convert it to Volts, but I am having some problems.

If I am not wrong, for different devices I have different rates of coversion. The test I did was like: I put VCC on the ADC port and I saw what I had as output of HalAdcRead(). I tested 3 different devices, the VCC was different for each one (2,6V; 2,9V and 2,8V). I expected to have different values from HalAdcRead, but all they gave me 8191=(2^13 -1). So how can I calculate the voltage value on the entrance of ADC? I would like to have something live this: (Value in Volts) = (Adc Value)*Rate. 

Thanks, 

Victor Farias.