嗨,RealChemist,
你提到你所选择的声纳可以在模拟电压电平对应的检测范围或一个脉冲的宽度对应于检测范围的形式输出。
我想你是在试验前一种方法。对吗?
在寻找到的项目,这里有几点需要注意:
1)ADC的转换模式是“连续”,在这种情况下,作为一个单通道ADC。
2)如何测量ADC计数?你可以使用字符液晶显示,使您可以看到测试ADC计数的变化,当电压变化。
三)既然你是ADC的16位分辨率,使用adc_delsig_1_getresult32() API得到的ADC值和变量可以是无符号整数(uint32)而不是整数的ADC的单端模式。
以上来自于百度翻译
以下为原文
Hi
RealChemist,
You have made a mention that the sonars you have chosen can give output in the form of analog voltage level that corresponds to the detected range or a pulse whose width corresponds to detected range.
I presume that you are testing out the former method. Is that right?
After looking into the project, here are the following points that needs attention:
1) The Conversion Mode of ADC has to be "Continuous" in this case as a single channel ADC is used.
2) How are you measuring the ADC counts? You can use the character LCD while testing so that you can see visually the change in ADC counts when voltage is changed.
3) SInce you are ADC with 16-bit resolution, use ADC_DelSig_1_GetResult32() API to get the ADC value and the variable can be unsigned integer (uint32) rather than integer as the ADC is in single ended mode.
嗨,RealChemist,
你提到你所选择的声纳可以在模拟电压电平对应的检测范围或一个脉冲的宽度对应于检测范围的形式输出。
我想你是在试验前一种方法。对吗?
在寻找到的项目,这里有几点需要注意:
1)ADC的转换模式是“连续”,在这种情况下,作为一个单通道ADC。
2)如何测量ADC计数?你可以使用字符液晶显示,使您可以看到测试ADC计数的变化,当电压变化。
三)既然你是ADC的16位分辨率,使用adc_delsig_1_getresult32() API得到的ADC值和变量可以是无符号整数(uint32)而不是整数的ADC的单端模式。
以上来自于百度翻译
以下为原文
Hi
RealChemist,
You have made a mention that the sonars you have chosen can give output in the form of analog voltage level that corresponds to the detected range or a pulse whose width corresponds to detected range.
I presume that you are testing out the former method. Is that right?
After looking into the project, here are the following points that needs attention:
1) The Conversion Mode of ADC has to be "Continuous" in this case as a single channel ADC is used.
2) How are you measuring the ADC counts? You can use the character LCD while testing so that you can see visually the change in ADC counts when voltage is changed.
3) SInce you are ADC with 16-bit resolution, use ADC_DelSig_1_GetResult32() API to get the ADC value and the variable can be unsigned integer (uint32) rather than integer as the ADC is in single ended mode.
举报