完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
我想要使用多通道的采样,下面是CC1310_LAUNCHXL - ADCBuf配置表
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], ]; //***********************************end******************************// 我是这样开启adc以及选择通道的,q是按照哪只引脚有电压就设多少,但却没有成功 adcBuf = ADCBuf_open(CC1310_LAUNCHXL_ADC0 , &adcBufParams); if(PIN_getinputValue(CC1310_LAUNCHXL_DIO23_ANALOG) == 1) [ q = 0; ] if(PIN_getInputValue(CC1310_LAUNCHXL_DIO24_ANALOG) == 1) [ q = 1; ] if(PIN_getInputValue(CC1310_LAUNCHXL_DIO25_ANALOG) == 1) [ q = 2; ] continuousConversion.adcChannel = q; 我该如何依照上表去选择通道 |
|
相关推荐
1个回答
|
|
Hi
/* * Copyright (c) 2016-2017, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of Texas Instruments Incorporated nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *//* * ======== adcsinglechannel.c ======== */#include |
|
|
|
只有小组成员才能发言,加入小组>>
TI的DSP0049在PHS载入值跨过CMPA事件会产生丢波现象
494 浏览 0 评论
928 浏览 1 评论
1197 浏览 0 评论
654 浏览 1 评论
521 浏览 1 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
405浏览 29评论
1365浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
489浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
401浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
259浏览 13评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-4-3 23:56 , Processed in 0.902831 second(s), Total 77, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191