adc轉換後的值不正常
做ADC测试时,我引脚什么都不接,实际观测到那脚位输入是18.79mv,还可以接受,然后在序列阜视窗看转换后值是17500微伏;
但问题来了,当我引脚接地时,实际观测到那脚位输入也是18.79mv,接着在序列阜视窗看转换后值是1056微伏。
请问同样是接0伏,为什么会有这样转换的差异?
请问是哪颗芯片啊?软件调用的是什么接口?
我用cc1310的晶片,我是用TI里面的adcBufContinuousSampling例程做修改的,脚位部分只有更动:
adcBuf = ADCBuf_open(CC1310_LAUNCHXL_ADC0 , &adcBufParams);
...
continuousConversion.adcChannel = 2; //让IOID_25做ADC引脚
您好 可以尝试使用driverlib里面的ADC_convertRawToMicroVolts函数试一下
文档参考
file:///C:/ti/simplelink_cc13x0_sdk_1_50_00_08/docs/tidrivers/doxygen/html/_a_d_c_8h.html
谢谢,另外我也想请问说假如我要使用所有的ADC引脚,由A0-A7,并使用ADCBUF的文档来连续侦测,
我启用ADC
adcBuf = ADCBuf_open(CC1310_LAUNCHXL_ADC0 , &adcBufParams);
而引脚的选择是由通道决定的吗
const ADCBufCC26XX_AdcChannelLutEntry ADCBufCC26XX_adcChannelLut[CC1310_LAUNCHXL_ADCBUF0CHANNELCOUNT] = {
{CC1310_LAUNCHXL_DIO23_ANALOG, ADC_COMPB_IN_AUXIO7},
{CC1310_LAUNCHXL_DIO24_ANALOG, ADC_COMPB_IN_AUXIO6},
{CC1310_LAUNCHXL_DIO25_ANALOG, ADC_COMPB_IN_AUXIO5},
{CC1310_LAUNCHXL_DIO26_ANALOG, ADC_COMPB_IN_AUXIO4},
{CC1310_LAUNCHXL_DIO27_ANALOG, ADC_COMPB_IN_AUXIO3},
{CC1310_LAUNCHXL_DIO28_ANALOG, ADC_COMPB_IN_AUXIO2},
{CC1310_LAUNCHXL_DIO29_ANALOG, ADC_COMPB_IN_AUXIO1},
{CC1310_LAUNCHXL_DIO30_ANALOG, ADC_COMPB_IN_AUXIO0},
{PIN_UNASSIGNED, ADC_COMPB_IN_VDDS},
{PIN_UNASSIGNED, ADC_COMPB_IN_DCOUPL},
{PIN_UNASSIGNED, ADC_COMPB_IN_VSS},
};
请问我的理解是否有错?