发 帖  
原厂入驻New
发烧友10周年庆典,全网超值优惠来袭!千元现金券,下单抽奖赶紧参与》》
[问答] PIC16F1825的数字输入是否需要下拉电阻?
132 LED 微控制器
分享
嗨,伙计们,我正在建造我的第一个微控制器环境(不使用任何开发板但是自己做所有的布线)。当测试第一个数字I/O开关一个LED时,我很惊讶,用信号设置LED被激活,但是从信号中移除没有影响(LED桶)吨)。只有在施加10K下拉电阻到输入引脚之后,结果才是意料之中的。关于……LED亮了,熄灭了…LED关闭了。在所有的数字输入端口上使用拉低是否真的是一个普遍的要求?或者这是一个错误的布线,蜕变,……的影响?谢谢米歇尔

以上来自于百度翻译


      以下为原文

    Hi Folks,

I am building my first microcontroller environemt (not using any development board but doing all the wiring myself).

When testing the first digital I/O switching a LED I was quite surprised that with the Signal set the LED was activated but the removal from the Signal had no Impact (LED kept on). Only after applying a 10k pull down resistor to the Input pin the result was as expected. singnal on ... LED is on, singal off ... LED is off.

Is it really a General requirement to use pull downs on all digital Input ports? Or is this an effect by faulty wiring, moldering,...?

thanks
Michael
0
2019-6-4 08:37:49   评论 分享淘帖 邀请回答

相关问题

2个回答
Yoiu绝不能让输入引脚“浮动”。如果你用开关把它拉高(或低),那么你必须有一个电阻器以相反的方式拉它。许多引脚都内置了拉线栓,你可以控制(寻找“弱上拉”),在这种情况下,你应该用你的开关来连接引脚。d.

以上来自于百度翻译


      以下为原文

    Yoiu must never let an input pin "float".
If you are pulling it high (or low) with a switch, then you MUST have a resistor pulling it the opposite way.
Many pins have built in pulllups that you can control (look for "weak pull up"), in which case you should use your switch to connect the pin to ground.
 
2019-6-4 08:52:16 评论

举报

嗨,Kart,你在MPLABX中使用MCC插件吗?重要规则:不要让输入引脚浮动。未使用的引脚必须被初始化为输出,或者连接到Vdd或Vss(最好是通过电阻器而不是直接绑定toVss/Vdd,以避免通过设置为输出而意外烧毁引脚。

以上来自于百度翻译


      以下为原文

    Hi Kart,
Are you using MCC plugin in MPLABX ?
Important rule : No input pin should be left floating.
Unused pins must either be initialised as output or connected to Vdd or Vss (preferably through a resistor rather than direct tying toVss/Vdd to avoid to burn accidentally the pin by setting is as output.
Regards
 
2019-6-4 09:15:17 评论

举报

只有小组成员才能发言,加入小组>>

47个成员聚集在这个小组

加入小组

创建小组步骤

关闭

站长推荐 上一条 /10 下一条

快速回复 返回顶部 返回列表