Using: SmartRF06 Eval board with CC2650EM board, Using Sensor Controller Studio 1.0.0.34897 (QFN48 7x7 RGZ) TI-RTOS Selected.
In regards to the Sensor Controller Studio. It is not clear from the documentation what level ADC_REF_VDDA_REL is. I connected a 1 volt bench power supply to to an ADC input and the ADC is measuring 1.305V.
The following code is being used in the Sensor Controller Studio to read the values:
fwDelayUs(10000, FW_DELAY_RANGE_10_MS);
S16 adcValue;
adcEnableSync(ADC_REF_VDDA_REL, ADC_SAMPLE_TIME_10P6_US, ADC_TRIGGER_MANUAL);
adcGenManualTrigger();
adcReadFifo(adcValue);
state.adcValue = adcValue;
adcDisable();
output.measval = adcValue;
fwGenAlertInterrupt();
fwScheduleTask(1);
I confirmed that it is reading the correct ADC channel by connecting it to ground and measuring 0.002v.
There is no visibility in the Sensor Controller Studio documentation regarding changing ADC setup registers. Is there a way to manually calibrate or configure the ADC within the SCS to yield accurate measurements,