完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用的是PIC18F26K40,当使用连续转换时,我想知道当只有一个比特用于启动转换、检查它是否完成和停止转换时,多个AD信道可以被服务,并且这似乎同时适用于所有信道。例如,连续转换模式-AdCONT=1;选择一个通道-ADPCH=0x02;ADC模块打开- ADON=1;转换开始- ADGO=1;它完成了-而(ADGO);得到结果(ADRESH和LT;8)+ ADRESLED似乎所有这些都必须在您移动到下一个频道。但如果是这样的话,那么连续转换和单转换有什么区别呢?
以上来自于百度翻译 以下为原文 I am using a PIC18F26K40 When using continuous conversion, I am wondering how multiple AD channels can be serviced when there is only one bit used for starting a conversion, checking if it is complete and stopping conversion, and that seems to apply to all channels at once. For example, Continuous conversion mode - ADCONT = 1; Select a channel - ADPCH = 0x02; the ADC module is turned on - ADON = 1; The conversion is started - ADGO = 1; Is it finished - while(ADGO); get the result - (ADRESH << 8) + ADRESL It seems that all this must be done before you move on to the next channel. But if that is the case, then what is the difference between continuous conversion and single conversion. |
|
相关推荐
5个回答
|
|
连续转换显然是为了尽可能快地转换一个通道。
以上来自于百度翻译 以下为原文 Continuous conversion is obviously just for converting one channel as fast as possible. |
|
|
|
我懂了。所以,对于像电位器一样慢的东西,不需要连续的转换。我对平均值的32个样本有一些细微的变化,所以我在寻找比单一的转换更稳定的东西,并且认为连续可能会有所不同。我认为有一个完整的样本值,第一个值是零,这会降低平均值,并且足以破坏应用程序。
以上来自于百度翻译 以下为原文 I see. So, for something as slow as a potentiometer, continuous conversion is not needed. I am getting some slight variations over the 32 samples I am averaging, so I was looking for something more stable than a single conversion, and thought maybe continuous would make a difference. I think there is a whole sample value, the first one, coming in a zero, which is bringing the average down, and its enough to ruin the application. |
|
|
|
所以现在你有两个关于本质上同一个问题的话题。http://www. McCyc.com…/M1038。8. ASPX 1010557,解释你实际上想做的事情往往更好,而不是模糊你认为答案可能是什么的问题。
以上来自于百度翻译 以下为原文 Ah, so now you have two topics about essentially the same question. http://www.microchip.com/.../m1038548.aspx#1038572 It's often better to explain what you're actually trying to do, rather than obscure questions about what you think the answer might be... |
|
|
|
我使用突发平均。当GO变高时,采取多个样本并将其添加到累加器中。去保持高,直到一切都完成了。最简单的多通道COMP模式。
以上来自于百度翻译 以下为原文 I use burst averaging. When GO goes high, a number of samples are taken and added to the accumulator. GO stays high until all are done. The easiest comp mode for multiple channels. |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
5223 浏览 9 评论
2024 浏览 8 评论
1949 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3198 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2252 浏览 5 评论
769浏览 1评论
655浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
583浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
667浏览 0评论
569浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-16 19:08 , Processed in 1.275407 second(s), Total 84, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号