TI中文支持网
TI专业的中文技术问题搜集分享网站

CC1310 adc

ADC 软件触发采样为何  是30US一周期(用示波器看的),显然和说明书对不上200K。 官方软件例程里有个默认值设置的  是  2P7_US。 

Felix ZF:

你用什么代码进行测试的。

CC1310的ADC采样有sampling和conversion两个阶段,你说的2P7_US是设置的sampling的时间。

在中的注释部分有如下说明,

/*! * @brief Amount of time the ADC spends sampling the analogue input. * * The analogue to digital conversion process consists of two phases in the CC26XX ADC, * the sampling and conversion phases. During the sampling phase, the ADC samples the * analogue input signal. The duration of the sampling phase is configurable. * Larger input loads require longer sample times for the most accurate * results. */

如果你是用adcbufcontinuous示例代码进行测试的,其中的adcBufParams.samplingFrequency是用来设置采样频率的。

guolong sun:

回复 Felix ZF:

我是用adcsinglechannel 这个例程测试的,按照你说得2.7us是采样时间的话,转换时间应该200khz才对,这样总时间就是7.5us,和30us相差很远,

adcbufcontinuous这个例程 用到的资源多一些,我看了好像还用到定时器,我们追求的是低功耗!

Felix ZF:

回复 guolong sun:

你如果不是使用连续采样模式,采样间隔时间就是由你的程序代码决定的。

guolong sun:

回复 Felix ZF:

while(1){

PIN_setOutputValue(hPin,IOID_5,0); res = ADC_convert(adc, &adcValue0); PIN_setOutputValue(hPin,IOID_5,1); res = ADC_convert(adc, &adcValue0); }

示波器观测   ADC_convert(adc, &adcValue0);需要30us,

Felix ZF:

回复 guolong sun:

你可以使用adcbufcontinuous示例测试看看。

赞(0)
未经允许不得转载:TI中文支持网 » CC1310 adc
分享到: 更多 (0)