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: Changing ADC resolution with using of driverlib

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

Hi there;

I have an ADC sensor which has 10-bit resolution and as you know ADC support of CC3220sf is 12-bit resolution.

Is thre any problem about using of 10-bit sensor on my ADC channells directly. Is there any problem by the side of accuracy?

Otherwise is there any possibility about changing resolution of my ADC channells to 10-bit resolution.

According on following codes there is a params parameter in ADC_open function. What is the 'custom' member of this parameter as named as params. Can I set this kind of operation with using of this custom member of params parameter in there?

adc = ADC_open(CONFIG_ADC_0, &params);
params.custom ???

Regards

  • Hello,

    First, no, you can not change the CC3220's ADC module to use 10-bit resolution. The custom field is used by the driver itself.

    Second, I am not understanding your application. If you have a 10-bit ADC sensor, shouldn't that output a digital peripheral already? You can then just connect that to either the SPI or I2C interface of the CC3220.

    Or are you saying that your sensor has an analog output that requires an 10-bit ADC? If so, you can still use the 12-bit ADC on the CC3220 like normal, then just set the lower 2 bits of the result to 0.