完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想用PIC16F 18877在同一个项目上使用MCC的MtAccess库和ADC外设。开发环境是MPLAB X IDE V.4.01,MCCV 3.45.1,XC8 V1.45.5。但是,当MouToup被添加到项目中时,ADC变成灰色,不能被选择。相反,在添加了A。DC,可以添加McToul,但是在这种情况下MtAct不起作用。如果没有ADC,我就可以制作MouTout函数。在同一个项目中,如何使用MtAccess和ADC?
以上来自于百度翻译 以下为原文 I would like to use MCC's mTouch library and ADC peripheral on the same project with PIC 16F 18877. The development environment is MPLAB X IDE v.4.01, MCCV 3.45.1, XC8 v1.45. However, when mTouch is added to the project, the ADC becomes gray and can not be selected. On the contrary, after adding the ADC, it was possible to add mTouch, but in this case mTouch did not work. I was able to make mTouch function if there is no ADC. How can I use mTouch and ADC in the same project? |
|
相关推荐
4个回答
|
|
我还没有这样做,但是是的——“基本上”,如果某些ADC通道没有被MtAccess占用,那么这是可行的。我确信这超出了MCC的能力(可能也超出了您的能力):您可能需要周期性地改变配置——在MtAdt设置和安装要求之间切换。D获取“通用”的ADC值。这可能需要MtAccess代码中的更改,因为MouTUI将不是ADC的专用用户。这需要深入理解MtAcL是如何工作的,以及激活时的假设。总的来说:可能是棘手的,但不是不可忽视的。OTHH:也许你最好添加一个专门用于MouTouter的微控制器,通过UART、SPI和类似的方式传送结果。
以上来自于百度翻译 以下为原文 I didn't do it yet, but yes - "basically" this should be doable if some ADC channel is not occupied by mTouch. And I'm quite sure this is beyond MCC's capabilities (maybe also beyond yours):
|
|
|
|
谢谢你的回复。当然,用MouTube制作的UI比机械开关更复杂,并且有负载,所以最好用专用模块来控制。
以上来自于百度翻译 以下为原文 Thanks for the reply. Certainly the UI made with mTouch is more complicated than the mechanical switch and has load, so it may be better to think about controlling with a dedicated module. |
|
|
|
请参考另一个线程。http://www. MICROCHOC.CO/…/M1049
以上来自于百度翻译 以下为原文 Please refer to the other thread. http://www.microchip.com/.../m1049371.aspx#1051305 |
|
|
|
嗨,我在MLA电阻触摸代码中做了类似的PIC24和PIC32。它应该是完全可能的,但不是完全微不足道的。驱动电阻触摸,可以是一个状态机控制4个I/O引脚,测量2个ADC通道。我可以通过扩展状态机来对几个ADC通道进行采样,除了用于触摸屏的两个AdC通道之外。为了达到这个目的,我可以保持用于触摸屏测量的ADC设置不变、TAD、定时、参考和格式设置。NGS,没有变化,只是采样额外的通道。迈西尔
以上来自于百度翻译 以下为原文 Hi, I did something like that in MLA resistive touch code for PIC24 and PIC32. It should be fully possible, but not entirely trivial. Driving resistive touch, may be a state machine controlling 4 I/O pins, and measuring 2 ADC channels. You may look in the code generated for ADC in touch sampling, if there are any hooks that may be used. I did the changes by extending the state machine to sample several ADC channels, in addition to the two used for the Touch panel. For the purpose I needed, I could keep ADC settings used for Touchscreen measurements unchanged, TAD, timing, reference and format settings, with no changes, just sampling additional channels. Mysil |
|
|
|
只有小组成员才能发言,加入小组>>
4848 浏览 9 评论
1846 浏览 8 评论
1763 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
2974 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2076 浏览 5 评论
472浏览 1评论
314浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
376浏览 0评论
270浏览 0评论
LAN9252使用SQI通信,进行数字复位后读BYTE_TEST异常
1823浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-5-16 00:00 , Processed in 1.079321 second(s), Total 84, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号