完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我一辈子都弄不清楚发生了什么,我有一个按钮重置我的控制器。我有一个机智开关,开关3.3V(已验证)到10k下拉并联连接到RF0的0.1uF盖,如前所述,当按下重置控制器时。起初我以为我可能有一个意外的中断,所以在只配置了振荡器之后,我把代码更改为只在while循环中停留一段时间,从而消除了任何错误的代码问题。按下按钮仍然导致复位。我检查短路,在开关打开和关闭时测量RF0,并验证Vcap的电压没有下降。有3.3V的驱动,一些反弹明显但没有疯狂,Vcap是稳定的。我还验证了相同的复位误差在3个单独的,尽管假定是电相同的PCBs。重置也发生在调试和编程模式。RCON只返回一个POR和BOR,我在常规运行模式下也把RCON放到LCD上,它显示相同的结果。现在,这里是我迷路的地方。我拆掉了外部10K下拉和0.1uF盖,启用了内部下拉电阻器,一切正常。按钮工作,我看到它改变,没有复位等。是的,它工作,但有什么事情将要咬我更进一步的道路?我愿意接受任何想法或建议。谢谢你,肖恩。
以上来自于百度翻译 以下为原文 I cannot for the life of me figure out what is going on, I have a push button resetting my controller. I have a tact switch switching 3.3V (verified) into a 10k pull down in parallel with a 0.1uF cap connected to RF0, which as stated, when pressed resets the controller. At first I thought I might have an unintended interrupt, so I changed the code to just sit in a while loop after configuring the oscillator only, removing any errant code issues. Pushing the button still caused a reset. I checked for shorts, measured RF0 with the switch open and closed, and verified the voltage at Vcap wasn't dropping on me. There is 3.3V on actuation, some bounce obviously but nothing crazy, and Vcap is steady. I also verified the same reset error on 3 separate, albeit supposedly electrically identical, PCBs. The reset also occurs in both debug and programmed mode. RCON only returns a POR and BOR, I threw RCON on to the LCD in regular running mode as well and it shows identical results. Now, here is where I get lost. I removed the external 10K pull down and 0.1uF cap, enabled the internal pull down resistor and everything works like it is supposed to. The button works, I see it change, nothing resets etc. Yeah it works, but is there something happening that is going to bite me further down the road? I am open to any thoughts or suggestions. Thanks in advance. Shaun |
|
相关推荐
2个回答
|
|
将3V3切换到.1uF可以轻松地产生非常短的电源下降(负峰值)。最终对于您的范围来说太短了,但对于CPU来说太短了。尝试10k的下拉而不用盖子。
以上来自于百度翻译 以下为原文 Switching 3V3 to the .1 uF could easily create a very short drop (negative spike) of the supply. Eventually too short for your scope but not for the CPU. Try the 10 k pulldown without the cap in parallel. |
|
|
|
这也是我能想到的唯一一件事,尽管要达到这个范围,放电和充电必须超过100MHz。我会感到惊讶,因为有相当多的能力落后于.1UF上限。今天晚些时候我会尝试测试这个理论。
以上来自于百度翻译 以下为原文 That is the only thing I have been able to think of as well, although discharge and charge would have to be over 100MHz for the scope to miss it. I will be surprised, as there is quite a bit of capacity behind the .1uF cap. I will try and test this theory later today. |
|
|
|
只有小组成员才能发言,加入小组>>
5178 浏览 9 评论
2003 浏览 8 评论
1931 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3177 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2228 浏览 5 评论
738浏览 1评论
622浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
509浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
636浏览 0评论
533浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 22:24 , Processed in 1.312931 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号