完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我用的是PIC24FJ256GB106单片机。簧片传感器连接到Re0引脚,并使用一个10K拉,簧片传感器开关接地这个引脚时,它被激活。当我在测试的最后一天,一切都在运转。当我今天测试它时,簧片传感器开关没有检测到。然后我检查了IO引脚状态。IO引脚R0显示,内部短路接地。我改变了微控制器并再次测试,电路工作正常。晚上我再次测试,它不工作,同样的失败再次发生。Re0是短接地。原因何在?请帮帮我。
以上来自于百度翻译 以下为原文 I'm using PIC24FJ256GB106 microcontroller. A reed sensor is connected to RE0 pin and used a 10K pull up, reed sensor switch ground to this pin when it is activated. When i was testing last day everything was working. When i test it today the reed sensor switching is not detecting. Then i checked IO pin status. The IO pin RE0 is showing that, it is internally short with ground. I changed the microcontroller and tested again, the circuit is working properly. In the evening i tested again, it is not working, the same failure happened again. RE0 is short to ground. What could be the reason? Please help me. |
|
相关推荐
10个回答
|
|
传感器与PIC在同一板上,还是在长电缆的末端?如果有电缆,你有任何组件来过滤尖峰吗?
以上来自于百度翻译 以下为原文 Is the sensor on the same board as the PIC, or at the end of a long cable? If there's is a cable, do you have any components to filter spikes? |
|
|
|
谢谢你的回复。传感器不在同一板上,它在3米电缆的末端。我在电路中使用了0.1MF电容器和10K上拉电阻。我使用的电路是附加的。对于同一个应用程序,我以前使用过相同的电路,没有任何问题。它仍然在工作。我需要修改电路吗?还是其他问题?.
以上来自于百度翻译 以下为原文 Thank you for the reply. The sensor is not on the same board it is at the end of a ~3 meter cable. I have used a 0.1Mf capacitor with 10K pull up resistor in the circuit. The circuit that i'm using is attached. I used the same circuit before for the same application without any issues. And it is still working. Do i need to modify the circuit?, or any other issues?. |
|
|
|
您所需的链接需要Access SHTTPS//DRVEVE.GoGoLe.COM/FIL/D/1RP-DZAD8OJA6FE-U-WLCB4SvJavaGPK4/VIEW?USP =共享
以上来自于百度翻译 以下为原文 The link you posted needs permission to access https://drive.google.com/file/d/1rP-dzad8OJa6fe-u-WlCB4sQUJAVGpK4/view?usp=sharing |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
嗨,我建议一个电阻,1000欧姆之间的PIC输入引脚,和结(传感器,上拉和电容)。PIC微控制器在内部引脚和GND和功率水平之间的保护二极管,但这些可能只处理小电流。电阻器可以减少由EMI/ESD事件引起的电流到半导体所能容忍的程度。传感器电缆是否与其他类型的电缆一起布线?例如沿着电力电缆到带有恒温器的加热元件,或者电缆到空调设备,或者其他什么?如果干扰严重,则可能采取更多的保护措施。迈西尔
以上来自于百度翻译 以下为原文 Hi, I suggest a resistor, 1000 Ohm between PIC input pin, and junction (Sensor, Pull-up and Capacitor). PIC microcontroller have protection diodes internally between in pin and GND and Power levels, but these may handle only small current. Resistor may reduce current caused by EMI/ESD events to something the semiconductor can tolerate. Is sensor cable routed together with other cables of any kind? E.g. along power cable to heating element with thermostat, or cables to air condition equipment, or anything else? If interference is severe, more protection may be appropriate. Mysil |
|
|
|
与串联电阻一致。在断电时,ESD二极管将在电源下降时放电0.1uF盖。如果这太快,二极管会过热,通常会短路。引脚通常是非常高的阻抗,所以你可以摆脱一个高电阻。我以前用过100K来防止意外的24V连接。祝你好运!
以上来自于百度翻译 以下为原文 Agree with the series resistor. On power off, the esd diodes will discharge the 0.1uf cap as the supply falls. If this is too fast, the diodes will overheat and normally fail to a short. The pins are normally very high impedance so you could get away with a high resistance. I’ve used 100k before to protect against accidental 24V connection. Good luck! |
|
|
|
看不到图像,但在“显示图像”之后,我可以做到这一点:
以上来自于百度翻译 以下为原文 Can't see images, but after "show image" I can do this: |
|
|
|
非常感谢你,Mysil,Isaac Sewell,PStechPaul。我再次改变了我失败的微控制器在星期五和完成测试(工作)。星期六和星期日我在电路上工作两天。我星期一回来测试了电路。一切都好。我找不到问题是什么,我不知道什么时候会再次发生。我已经使用同一电路2年没有任何问题。
以上来自于百度翻译 以下为原文 Thank you so much qub, Mysil,Isaac Sewell, PStechPaul. I again changed my failed microcontroller on Friday and finished testing(working). I powered on circuit for two days Saturday and Sunday. I came back on Monday and tested the circuit. Everything is OK. I could not find what was the problem and i don't know when will it happen again. I have been using the same circuit for 2 years without any issues. |
|
|
|
只有小组成员才能发言,加入小组>>
5170 浏览 9 评论
2001 浏览 8 评论
1931 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3176 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2228 浏览 5 评论
737浏览 1评论
622浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
509浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
635浏览 0评论
531浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 18:06 , Processed in 1.312694 second(s), Total 96, Slave 79 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号