完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用PIC16F87为我的项目,这是第一次,而我使用PIC与内部振荡器(@ 8MHz)作为主要的时钟源。所以问题是,当监视器计时器设置在配置位上时,它会导致控制器在一段时间内重置(当看门狗定时器溢出时),当它不应该被重置时,是否还有其他方式禁用禁用看门狗定时器。请帮助我这方面。我想知道这个复位背后的原因是什么,看门狗定时器(WDT)本身并不清楚,并通过重置控制器中断预期的操作。谢谢打扰和阅读我的问题,希望你能有个解决办法。
以上来自于百度翻译 以下为原文 I'm using PIC16F887 for my project and this is the first time while I'm using PIC with internal oscillator (@ 8Mhz) as the main clock source. So the problem is when the watchdog timer set on in the configuration bits, it will cause the controller reset after some time (when the watchdog timer overflows) during the operation when it is not supposed to be reset. Is there any other way without getting disable watchdog timer. Please help me in this regard. I wanna know what is the cause behind this reset, the watchdog timer (WDT) is not clear itself and interrupt the intended operation by resetting the controller. Thanks for bothering and reading my problem, hope you'll have a solution. Regards. |
|
相关推荐
5个回答
|
|
你每隔一段时间“踢”WDT吗?(如果定期执行CLRWDT指令),如果不是,它正在做它应该做的事情。
以上来自于百度翻译 以下为原文 Are you "kicking" the WDT at regular intervals? (By executing the CLRWDT instruction regularly) If not, it is doing what it is supposed to do. |
|
|
|
为什么你认为内部振荡器与你的问题有关?目前还不清楚你了解WDT是如何工作的。WDT重置PIC的唯一原因是如果在定时器过期之前还没有完成CLRWDT。你在软件里用WDT做什么?
以上来自于百度翻译 以下为原文 Why do you think the internal oscillator is related to your problem? It's not clear that you understand how the WDT works. The only reason the WDT resets the PIC is if you haven't done a CLRWDT before the timer expires. What are you doing with the WDT in your software? |
|
|
|
感谢您的“QHB”和“JPICES”的响应。嗯,我不是PIC单片机的专家,这是我第一次体验内部振荡器,这也是我为什么提到它的原因。我知道在WDT溢出之前,通过使用CLRWDT指令,我可以避免其余的。但是,在我以前的项目中,我没有明确地使用“CLRWDT指令”来清除看门狗定时器,而不是使用“CrrWDT指令”来清除WDT本身,这是我无法理解的。
以上来自于百度翻译 以下为原文 Thank you "qhb" and "jtemples" for the response. Well, I'm not an expert in PIC microcontrollers and this is my first experience with internal oscillator as well only that is why I've mentioned it. I know by using CLRWDT instruction before WDT could overflow I can avoid the rest. But the thing is in my previous projects I didn't explicitly use "CLRWDT instruction" to clear the watchdog timer rather WDT clear itself without using "CLRWDT instruction" and that is I'm unable to understand. |
|
|
|
如果你没有执行CLRWDT指令,那么,(1)你正在使用一些其他代码(延迟例程等)来为你做CLRWDT,或者(2)WDT实际上无法启用。
以上来自于百度翻译 以下为原文 Rubbish. If you were not executing CLRWDT instructions, then either: [1] You are using some other code (delay routines etc.) that is doing the CLRWDT for you, or [2] The WDT was not in fact enabled. |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
5006 浏览 9 评论
1923 浏览 8 评论
1853 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3067 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2143 浏览 5 评论
578浏览 1评论
432浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
477浏览 0评论
367浏览 0评论
IPECMD命令烧录AVR128DA48芯片,报找不到芯片错误
853浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-17 13:16 , Processed in 1.334399 second(s), Total 87, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191