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.

CC1310: How do I turn scaling off so I can set the Vref to 1.48V?

Part Number: CC1310


Tool/software:

We need to use the full resolution of the ADC when the VDD is at 2V, so we need to shut off the scaling that sets the Vref to 4.3V and prevents us from reaching full scale of the ADC resolution when we are limited to 2V of analog input voltage due to the VDD being at 2V.

We have over voltage protection to limit the analog input to below whatever Vref we set so that will not be a problem.

We are using the following commands to measure the voltage on ADC7:

adc=ADC_open(CC1310_LAUNCHXL_ADC7, &params);//DIO_30 is ADC 7.
ADC_convert(adc, &adc_measurement);//Each conversion takes about 1 uAH.
measure=ADC_convertRawToMicroVolts(adc, adc_measurement);//RTOS module that corrects for gain and offset errors.
ADC_close(adc);

We are using the TI complier version v20.2.4.LTS. Please provide me with a command or setting that will lower the Vref to 1.48V.

I believe all I need is access to "refSource" in the following structure but can't figure out how to access it.

typedef struct ADCCC26XX_HWAttrs {
  uint8_t adcDIO; /*!< DIO that the ADC is routed to */
  uint8_t adcCompBInput; /*!< Internal signal routed to comparator B */
  bool returnAdjustedVal; /*!< Should the raw output be trimmed before returning it */
  bool inputScalingEnabled; /*!< Is input scaling enabled */
  ADCCC26XX_Reference_Source refSource; /*!< Reference source for the ADC to use */
  ADCCC26XX_Sampling_Duration samplingDuration; /*!< Time the ADC spends sampling. This is load dependent */
  ADCCC26XX_Trigger_Source triggerSource; /*!< Source that the ADC triggers off of. Currently only supports AUXADC_TRIGGER_MANUAL */
} ADCCC26XX_HWAttrs;