Hello,
I have tested CC1310F128RHB ADC internal fixed reference with 1.44V and 4.3V with following:
-without TI-RTOS
-input signal 1VDC
-change the power supply from 3.3V to 2.0V
-CCS version: 7.4.0.00015
-SDK: simplelink_cc13x0_sdk_1_60_00_21
My Init Function is
void drvA2D_init (struct drv_adc_cfg *adcCfg) { ADCBufCC26XX_Reference_Source reference; ADCBufCC26XX_ParamsExtension customParams; ADCBuf_Params adcBufParams; ADCBuf_init(); /* Set up an ADCBuf peripheral in ADCBuf_RECURRENCE_MODE_CONTINUOUS */ ADCBuf_Params_init(&adcBufParams); if(adcCfg->reference == drvADCRefFixed1V44) { reference = ADCBufCC26XX_FIXED_REFERENCE; customParams.inputScalingEnabled = false; } else if(adcCfg->reference == drvADCRefFixed4V3) { reference = ADCBufCC26XX_FIXED_REFERENCE; customParams.inputScalingEnabled = true; } else if(adcCfg->reference == drvADCRefVDD) { reference = ADCBufCC26XX_VDDS_REFERENCE; customParams.inputScalingEnabled = false; } customParams.refSource = reference; customParams.samplingMode = ADCBufCC26XX_SAMPING_MODE_SYNCHRONOUS; customParams.samplingDuration = ADCBufCC26XX_SAMPLING_DURATION_2P7_US; adcBufParams.custom = &customParams; adcBufParams.callbackFxn = (ADCBuf_Callback)adcBufCallback; adcBufParams.recurrenceMode = (ADCBuf_Recurrence_Mode)adcCfg->mode; adcBufParams.returnMode = (ADCBuf_Return_Mode)adcCfg->returnMode; adcBufParams.samplingFrequency = adcCfg->samplingFrequency; drvADCBuf = ADCBuf_open(adcCfg->adc, &adcBufParams); if (!drvADCBuf) { /* AdcBuf did not open correctly. */ while(1); } }
In CC1310 datasheet I sow that Typical Characteristics for ADC to VDDS are (1005 to 1006) ADC code for (1.8V to 3.8V)VDDS
But my results are following:
-with using ADCBuf_adjustRawValues() and ADCBuf_convertAdjustedToMicroVolts() functions
-witout ADCBuf_convertAdjustedToMicroVolts() function:
-without ADCBuf_adjustRawValues() and ADCBuf_convertAdjustedToMicroVolts() functions:
I attach you and the exel file with my testCC1310_ADC_TEST.xlsx