完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我有APIC32 MX795F512L设备,我想设置它的GPIO引脚(可能全部)在高阻抗模式(理想的无限电阻和零电容)。基本上,我希望PIC32 GPIO连接对船上其他芯片(如FPGA,……)的影响最小。在MPLAB X IDE中正确的语法和代码是什么?当做
以上来自于百度翻译 以下为原文 Hi, I have a PIC32MX795F512L device that I would like set its GPIO pins (potentially all of them) in high impedance mode (ideally infinite resistance and zero capacitance). Basically I would like the PIC32 GPIO connection to have the least possible impact on the other chips (like an FPGA, ...) on board. What's the right syntax and code to do that in MPLAB X IDE? Regards |
|
相关推荐
5个回答
|
|
默认情况下,I/O引脚配置为输入。这意味着它们应该连接到别的东西,否则它们会漂浮和汲取电流。如果未连接的引脚应该被连接到高电平,端口被设置为输出,并且对于最小电流具有高输出。每个端口都具有TIS、端口和LAT寄存器,如果GPIO将被用作输出,TIIS应该设置为零,并且如果端口为输入TIS SH,则输出值写入LAT寄存器。应该设置为1,并从端口寄存器读取值。这是一个非常简短的解释。你应该阅读数据表以获取更多信息。
以上来自于百度翻译 以下为原文 The I/O pins are configured as inputs by default. This means that they should be connected to something otherwise they will float and draw current. If unconnected pins should be tied high and the port set to output and a high output for minimum current. Each port has TRIS, PORT, and LAT registers, if the GPIO is to be used as an output TRIS should be set to zero, and the output value written to the LAT register, if the port is and input TRIS should be set to 1 and the value read from the PORT register. This is a very brief explanation. You should read the data sheet for more info. |
|
|
|
谢谢你的回复。如果将I/O配置为输入,并应用一个幅度为3.3 V的信号,那么您是否期望它对信号有任何影响(例如减小幅度,…)?基本上,输入配置I/O的寄生效应是什么?
以上来自于百度翻译 以下为原文 Thanks for your response. If you configure an I/O as an input and apply a signal with an amplitude of 3.3 V to it, are you expecting it to have any impact to the signal (like reducing the amplitude, ...)? Basically what's the effect of an input-configured I/O in terms of parasitics? |
|
|
|
你没有提到PIC32的电源是什么,如果输入信号比PIC的电源高出0.3V,ESD保护二极管会对信号产生巨大的影响,这是管脚的固有阻抗。该引脚通过写入相关的安塞尔寄存器,进入“模拟输入模式”。如果不能,则必须确保PIN是有效的数字高信号或低信号,而不是浮动信号。
以上来自于百度翻译 以下为原文 You did not mention what power supply the PIC32 is running from. If the input signal goes more than 0.3V higher than the PIC's power supply, the ESD protection diodes will conduct and have a dramatic effect on the signal. It is whatever the native impedance of the pin is. Ideally, you should also put the pin into "analog input mode" by writing to the related ANSELx register. If you can't, then you MUST ensure the pin is a valid digital high or low signal, not floating. |
|
|
|
谢谢。PIC32电源是3.3伏。我将平方信号从0到3.3 V。GPIO被配置为输入。我希望信号受到GPIO寄生效应的影响吗?
以上来自于百度翻译 以下为原文 Thanks. The PIC32 power supply is 3.3 V. I am applying square signal from 0 to 3.3 V. The GPIO is configured as input. Do I expect the signal to be affected by the GPIO parasitics? |
|
|
|
你告诉我们,那里会有很小的电容,和任何数字输入引脚一样。任何用来驱动数字输入的信号都不应该被它影响。
以上来自于百度翻译 以下为原文 You tell us. There will be tiny amounts of capacitance there, the same as any digital input pin. Any signal designed to drive digital inputs shouldn't be affected by it. |
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
778浏览 1评论
666浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
595浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
677浏览 0评论
576浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 09:52 , Processed in 1.319311 second(s), Total 84, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号