完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个包含PIC18F47 K40的电路,加上GPS模块、SD卡和LeBus。电路按预期工作,它闪动LED几次,指示电路开始允许GPS模块时间启动。读取来自GPS模块的数据(USAT)将选择的数据写入SD车。D(SPI),我决定我需要一个短暂的开关编程中断,所以我可以停止电路干净,而不是只是关掉电源。我不想要一张腐败的卡片。用MCC把开关切换到RA4,但是,每当我按下开关,电路就会重置,从一开始就开始!经过仔细检查电路和灵魂搜索,我交换了PIC18F47 K40并用一个新的芯片替换。现在一切都在意料之中,芯片中的新交换没有复位。我建立了一个更简单的测试电路,只有LeDBUS,开关,LED和违规PIC18F47 K40。该电路工作如预期,但流氓PIC18F47 K40仍然重置自己。所以,我又换了另一个新的PIC18F47 K40,电路再次运行,没有恼人的重置。因此,在结论中,我有一个流氓PIC18F47 K40,每当我按下RA4上的开关时,它就自动重置——它不应该像这样;两个PIC18F47 K440在同一个C中工作得很好。所以我在某种程度上破坏了PIC18F47 K40破解,即使UART和SPI如预期那样工作,还是有一些配置需要更改?亚历克斯
以上来自于百度翻译 以下为原文 I have a circuit containing a PIC18F47K40 plus a GPS module, a SD Card and a Ledbus. The circuit works as expected which is
However, whenever I pressed the switch the circuit reset itself and starts from the beginning! After much inspecting of the circuit and soul searching I swapped out the PIC18F47K40 and replaced with a new chip. Now everything works as expected and the new swapped in chip doesn't reset. I built a much simpler test circuit with just the ledbus, the switch, a LED and the offending PIC18F47K40. The circuit works as expected, but the rogue PIC18F47K40 still resets itself. So again I swapped in another new PIC18F47K40 and the circuit again behaves itself without the annoying resets. So in conclusion -
So have I in some way broken the rogue PIC18F47K40 broken, even though USART and SPI work as expected, or is there some config setting that needs changing? Alex |
|
相关推荐
5个回答
|
|
|
|
|
|
这听起来像是ESD ZAP可能引起的事情。你是否使用好的ESD安全实践,当你处理零件和PCB时,总是使用接地的腕带、脚踝带、ESD罩衫?静电放电垫在长凳上?我现在在佛罗里达州工作,那里的湿度,甚至在室内,几乎总是高到足以消除大部分静态电压,但是当我在NJ工作时,这种情况每年冬天都会发生,当空气变得和吐司一样干燥。
以上来自于百度翻译 以下为原文 This sounds like the kind of thing an ESD zap could cause. Are you using good ESD-safe practices, always using a grounded wrist strap, ankle strap, ESD smock when you're handling the parts and PCB? Grounded ESD mat on the bench? I work in Florida now where the humidity, even indoors, is almost always high enough to dissipate most static voltages, but back when I worked in NJ this kind of thing happened every winter when the air got as dry as toast. |
|
|
|
|
|
|
|
我总是尝试采纳上帝的ESD安全实践。在这种情况下,我最初的想法是,我在某种程度上打破了设备。
以上来自于百度翻译 以下为原文 I always try and adopt god ESD-safe practices. In this case my initial thoughts were that I'd in someway broken the device. |
|
|
|
虽然我从下半部分建立了测试电路,但我并没有从头开始重建程序。有了这个程序,我刚刚破解了我原来的程序。出于某种原因,我决定再给它一次,从头开始建立一个新的程序。嘿,这个程序是在所有设备上设计的!我不知道为什么这个问题已经解决了,或者最初的问题是什么。在这个电路的开发过程中,我升级了MPLABX、XC8编译器和MCC,所以可能有可能这是罪魁祸首。我怀疑MCC,因为我是新手。谢谢大家的帮助和时间。亚历克斯。
以上来自于百度翻译 以下为原文 Though I'd built the test circuit from the bottom up I didn't rebuild the program from scratch. With the program I just hacked my original program. For some reason I decided to give it another go and built a new program from scratch. Hey presto the program works as designed on all devices! I've got no idea why this has fixed the problem or indeed what the initial problem was. During development of this circuit I upgraded MPLABX, the XC8 compiler and MCC, so there might be some possibility that this was the culprit. My suspicions are with MCC as I'm complete novice with it. Thanks for everybodies help and time. Alex |
|
|
|
只有小组成员才能发言,加入小组>>
5237 浏览 9 评论
2026 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3201 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
771浏览 1评论
659浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
589浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
671浏览 0评论
571浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-21 00:48 , Processed in 1.237385 second(s), Total 86, Slave 69 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号