完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
在使用MCC3.0之后,我既不能定义RB2函数,也不能定义为PIC18F47 K40的RB4函数。MCC警告我,我需要手动做它;它为RB4和EXTXIt/It2和PIN模块/GPIO设置RBAD2的ADACT和PIN模块/GPIO。如何使用RB2和RB4作为GP。输入输出?谢谢
以上来自于百度翻译 以下为原文 After using the MCC3.0 I couldn't define neither RB2 function neither RB4 function to PIC18F47K40. The MCC warning me I'd need to do that manually; it had set as ADACT and Pin Module / GPIO for RB4 and EXT_INT / INT2 and Pin Module / GPIO for RB2. How can I do in order to use both, RB2 and RB4, as GPIO inputs? Thanks |
|
相关推荐
3个回答
|
|
您应该能够选择这些引脚作为GPIO引脚只需点击GPIO框在PIN管理器:网格窗口。一旦你选择了I/O选项,你就可以选择左边的PANK模块来选择不同的端口选项,如WPU、模拟功能等。一旦你的选择正确,点击生成代码。
以上来自于百度翻译 以下为原文 You should be able to select those pins as GPIO pins just by clicking on the GPIO boxes in the Pin Manager : Grid window. Once you've selected the I/O option, you can go to the Pin Module on the left hand pane to select different Port options like WPU , Analog function, etc. Once your selection is correct, hit Generate Code. |
|
|
|
嗨!谢谢你的回答。格林:我已经做到了。对其他人来说,这很好。只有对RB2和RB4,MCC显示我不是一个锁,而是在对角线上有两个正方形的符号。当我点击它时,MCC显示了一个手动改变它的消息(?)在PIN模块中,MCC显示了两个外设连接到每一个引脚。我“解决”了将ExtX/It2连接到RB7(原来的RB2)- PGDand ADACT到RB6(原来RB4)-PGC。但是我对此并不满意。注意:在中断模块中,我已经禁用了It2(我不使用它)。如何解决这个问题?最好的问候
以上来自于百度翻译 以下为原文 Hi Equinoxin. Thanks for your answer.grin: I've done that. To the others pins, it works well. Only to RB2 and RB4 the MCC showed me not a lock, but a symbol with two squares in the diagonal. When I click in it, MCC showed a message to change it manually (?). In the Pin Module, MCC showed two peripherals connected to each one pin. I "solved" that linking EXT_INT/INT2 to RB7 (originally RB2) - PGD and ADACT to RB6 (originally RB4) - PGC . But I'm not satisfied with this. Note: in the interrupt module I've disabled INT2 (I won't use it). How to solve that? Best regards |
|
|
|
我可以转过身来设置RXPPPSS:AdACTPPS=0x00;It2PPS= 0x1f;不幸的是,在MCC中,我有6条警告和2条提示(请参阅链接http://DRAM.M.C.COM/…C28/VC:McC)。USP=共享)。即使是这样,我也生成了代码,我将继续尝试解决它们,我会不断尝试生成代码到PIC,以便做一个实际的测试。
以上来自于百度翻译 以下为原文 I could turned around setting the RXxPPSs like that: ADACTPPS = 0x00; INT2PPS = 0x1F; Unfortunately after that, in the MCC, I have 6 warnings and 2 hints (please see MCC screen at link https://drive.google.com/...c28/view?usp=sharing). Even with this I generated the code and I'll keep on trying solve them and I'll keep trying generate the code to PIC in order to do a practical test. Any help will be wellcomed! |
|
|
|
只有小组成员才能发言,加入小组>>
5244 浏览 9 评论
2035 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3209 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2260 浏览 5 评论
779浏览 1评论
672浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
598浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
682浏览 0评论
579浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 11:41 , Processed in 1.173347 second(s), Total 82, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号