完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个PIC18F625i调试系统,它使用MPLABX和一个PICtiT3程序。只要拾取器保持在系统中,它就工作良好,但是如果我删除它,系统就会挂起(很明显,我指的是在为独立操作编程芯片之后的阶段)。只需把拾音器塞住并重新设置系统,它就可以工作了。我有三种不同设计的相同芯片,它只在其中一种设计上运行。我不知道它是否与此有关,但设计之间的唯一主要区别是(PIC电路)。问题板有许多未使用的PIC引脚,它们没有被终止(我将未使用的引脚设置为输出,并将它们强制为低)。有一点似乎有某种效果——我使用UART端口和基于中断的代码。如果我使用串行端口留下代码,那么它似乎立即挂起(很难确切地告诉我,因为我不能使用PIDIT调试)。如果我删除代码,那么它工作几秒钟,然后挂起。T0也使用中断。然而,与中断相同的代码被用于其他没有任何问题的板中,当它被移除时(在所有板上相同)都没有使用任何建议。
以上来自于百度翻译 以下为原文 I have a system with a PIC18F6527 I debug and program it using MplabX and a PicKit3. As long as the PicKit remains plugged in the system it works fine, but if I remove it the system hangs (obviously I am referring to the stage after programming the chip for standalone operation). Just plugging back the PicKit and resetting the system - it works fine. I have the same chip on three different designs and it behaves so only on one of the designs. I do not know if it has anything to do with this, but the only major difference between the designs (in terms of the PIC circuitry) is that the problematic board has many unused PIC pins which are not terminated (I set the unused pins as outputs and force them to low). One thing which seems to have some kind of effect - I use both UART ports with interrupt based code. If I leave the code using the serial ports then it seems to hang immediately (hard to tell exactly where since I cannot use the PicKit to debug). If I eliminate the code then it works for several seconds and then hangs. T0 also uses interrupts. However the same code with the interrupts is used in the other boards that do not have any problem Pickit pins are left unused when it is removed (same on all boards) Any suggestions? |
|
相关推荐
4个回答
|
|
你没有提到你用MCLR PIN做了什么。它启用了吗?是漂浮的吗?
以上来自于百度翻译 以下为原文 You didn't mention what you have done with the MCLR pin. Is it enabled? Is it floating? |
|
|
|
MCLR pin被拉起(10K)。它是启用的,我有一个跳线接地,可以短路复位(同样-在所有3个设计相同的设置)。
以上来自于百度翻译 以下为原文 MCLR pin is pulled up (10K). It is enabled and I have a jumper to ground that can be shorted for reset (again - same setup on all 3 designs). |
|
|
|
也许在PGD和PGC上尝试10K纸浆。这与PK3所做的类似。
以上来自于百度翻译 以下为原文 Maybe try 10k pulldowns on PGD and PGC. That's similar to what the PK3 does. |
|
|
|
但它们也被设定为低驱动输出吗?当你不在程序/调试模式时,它们在中断引脚上发生变化。如果它们是浮动的,则可能会受到虚假中断。
以上来自于百度翻译 以下为原文 But are they also set as outputs driven low? When you're not in program/debug mode, they are change on interrupt pins. You could be getting spurious interrupts if they're floating. |
|
|
|
只有小组成员才能发言,加入小组>>
5184 浏览 9 评论
2005 浏览 8 评论
1932 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3179 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2230 浏览 5 评论
739浏览 1评论
626浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
511浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
637浏览 0评论
535浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-28 16:15 , Processed in 1.193367 second(s), Total 55, Slave 48 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号