完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,我使用PIC18F4620 40PIN DIP封装,大约30的I/O引脚没有使用。我不知道我应该把它们留在硬件中,还是应该把它们绑定到VDD或VSS?在软件中也推荐使用未使用的I/O引脚。TrIS=1还是0?BTW目前未使用的引脚在硬件中浮动,并且在软件中没有包含tiS分配。董事会表现出怪异的行为。当有人靠近板时会重新设置。只是足够接近而不接触它。董事会的上述怪异行为可能是由于未使用的I/O引脚在板上的方式,还是由于其他原因?主时钟是外部XTAR振荡器20MHz,每个陶瓷盖2个22PF。只要没有人在电路板1英尺的范围内,电路板运行良好。任何帮助都值得赞赏。
以上来自于百度翻译 以下为原文 Hi everyone I am using PIC18F4620 40Pin DIP package and about 30 of its I/O pins are unused. I wonder should i leave them floating in the hardware or should i tie them to Vdd or Vss? Also in the software what is recommended for unused I/O pins.. TRIS=1 or 0? BTW at present the unused pins are floating in the hardware and no TRIS assignment is included in the code in the software. The board is showing weird behavior.. gets reset when someone comes in close proximity to the board.. just close enough without touching it. Is it possible that the above weird behavior of the board is due to the way the unused I/O pins are on the board or it can also be due to some other reason? The primary clock is external XTAL Oscillator 20MHz with 2 ceramic caps 22pF each. The board runs fine so long as no one is within a range of 1 ft from the board. Any help is appreciated. |
|
相关推荐
3个回答
|
|
Tres他们输出和轻拍他们到0。从来没有让针浮动。
以上来自于百度翻译 以下为原文 TRIS them to outputs and LAT them to 0's. Never ever let the pins float. |
|
|
|
对于ADC模拟引脚,配置它们用于ADC输入多路复用器,并设置TIS位用于输入。对于数字I/O引脚,只将它们配置为输出,并将它们设置为零输出。从所发布的信息中,不可能说为什么它会在行为中出现。你观察到了。你需要描述更多关于你已经加载到你的PIC18F4620的固件之前,任何人都可以帮助。
以上来自于百度翻译 以下为原文 For pins that are ADC analog pins configure them for use with the ADC input multiplexer and set the TRIS bits for inputs. For pins that are digital I/O only configure them as outputs and set them for a zero output. From the information you have posted it is impossible to say why it behaves in the way you have observed. You would need to describe a lot more about the firmware you have loaded in to your PIC18F4620 before anyone could help. |
|
|
|
如果我把整个MPLAB项目上传到这里会有帮助吗?
以上来自于百度翻译 以下为原文 Would it help if i upload the whole MPLAB project here? |
|
|
|
只有小组成员才能发言,加入小组>>
5142 浏览 9 评论
1990 浏览 8 评论
1918 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3159 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2215 浏览 5 评论
713浏览 1评论
601浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
484浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
613浏览 0评论
511浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-10 19:13 , Processed in 1.020900 second(s), Total 49, Slave 44 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号