Part Number: CC1310
Other Parts Discussed in Thread: LMT70,
CC1310 + LMT70!
My code:
const ADCCC26XX_HWAttrs adcCC26xxHWAttrs[CC1310DK_7XD_ADCCOUNT] = {
{
.adcDIO = Board_ALS_OUT,
.adcCompBInput = ADC_COMPB_IN_AUXIO7,
.refSource = ADCCC26XX_FIXED_REFERENCE,
.samplingDuration = AUXADC_SAMPLE_TIME_85P3_US,
.inputScalingEnabled = false, /* 1.4785V */ !!!!!
.triggerSource = ADCCC26XX_TRIGGER_MANUAL
},
for (i = 0; i < 256 ; i++)
{
res = ADC_convert(adc, &adcValue[i]);
if (res != ADC_STATUS_SUCCESS)
{
if (i)
{
i --;
}
UartPrintInfo("ADC channel 1 convert fail...");
}
adcTotal += adcValue[i];
}
xxx = ADC_convertRawToMicroVolts(adc, adcTotal / 256);
But the value of XXX and LMT70 temperature corresponding to the voltage value is a deviation(about 0.4C), you can give me some suggestions?