完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个自定义板与APIC18F46K40。我使用一个PICtiT3和MPLABX V3.4.5编程/调试。我有一个Time0生成低优先级的热中断。我不能通过代码,因为任何步骤动作都会跳到Time0 ISR。走出ISR跳转回到ISR。(是的,我清除了IF位)如果我禁用Time0中断,那么我可以正常运行。这个问题只发生在18F46K40上。我可以把相同的代码放在PIC18LF46K22上,一切正常工作。PIC18F46K40硅存在问题,还是在MPLABX中还没有完全支持?
以上来自于百度翻译 以下为原文 I have a custom board with a PIC18F46K40. I am programming/debugging using a pickit3 and mplabx v3.4.5. I have timer0 generating a low priority heatbeat interrupt. I can't step through the code because any step action immediately jumps to the timer0 ISR. Stepping out of the ISR jumps right back into the ISR. (Yes, I cleared the IF bit) If I disable the timer0 interrupt I can then step normally. This problem only occurs on PIC18F46K40. I can put the same code on a PIC18LF46K22 and everything works normally. Is there a problem with the PIC18F46K40 silicon or is this part not yet fully supported in mplabx? |
|
相关推荐
5个回答
|
|
必须有一个调试器的设置,指示芯片暂停外围设备时停止。
以上来自于百度翻译 以下为原文 There must be a debugger setting which instructs the chip to freeze peripherals when halted. |
|
|
|
是的,我想到了。我有冻结外围设备开关设置。我想知道这个开关是否被正确地解释为PIC18F46K40。我想知道是否有人使用这个控制器并有同样的问题。
以上来自于百度翻译 以下为原文 Yea, I thought of that. I have the freeze peripherals switch set. I am wondering if this switch is not being interpreted correctly for the PIC18F46K40. I want to know if anybody else is using this controller and having the same issue. |
|
|
|
使用Time0和Time1中断的PIC18F24K40同样的问题
以上来自于百度翻译 以下为原文 Same problem with pic18f24k40 using timer0 and timer1 interrupts |
|
|
|
请看这里/http://www..hip.com/for./m976198.aspx你能试一下代码并告诉我你是否有同样的问题。
以上来自于百度翻译 以下为原文 May you take a look here/ http://www.microchip.com/forums/m976198.aspx Can you try the code and tell me if you have the same problem. Thanks |
|
|
|
如果是定时器的话,可以通过软件模拟器。模拟,模拟出来的效果一样。就是代码问题,在那设置断点 观察相关寄存器。
|
|
|
|
只有小组成员才能发言,加入小组>>
5323 浏览 9 评论
2076 浏览 8 评论
1982 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3254 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2293 浏览 5 评论
835浏览 1评论
730浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
674浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
728浏览 0评论
622浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-3 10:12 , Processed in 1.112929 second(s), Total 83, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号