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.

CC3220SF-LAUNCHXL: ADC module of CC3220SF

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF

Hi,

I am trying to use the 4 ADC channels that on the CC3220SF Board. I ran the adcsinglechannel sample code. I am able to read changes in voltages but the value is not correct. 

This is the code segment in my project regarding this issue.

 ADC_init();

ADC_Params_init(&params);
adc = ADC_open(Board_ADC1, &params);
/* Blocking mode conversion */
res = ADC_convert(adc, &adcValue0);

if (res == ADC_STATUS_SUCCESS)
{
adcValue0MicroVolt = ADC_convertRawToMicroVolts(adc, adcValue0);
}


ADC_close(adc);

When the input is 2.2Vs, ADC_convertRawToMicroVolts is outputting 1064694 (1.06V)

For 3.3V I am getting 1389978 and for 5V I am getting 1467000. (For the 3.3V and the 5V inputs, I use the board voltages).

Is there a step I am missing in the configuration or a calibration step I am missing?

Thank you

  • Hi,

    Input range for CC3220 ADC is 0 - 1.4V. The ADC inputs can be damaged if an input voltage higher than 1.8V is applied to these pin. If you already connected 5V to CC3220 ADC pin directly, you have good chance that ADC is already damaged.

    Update: I looked to CC3220 LP schematic in more detail, and I think that 5V at ANALOG_IN input not damage ADC in chip, but I am not 100% sure.


    Jan