完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在考虑使用看门狗复位作为一种安全地在故障情况下关闭输出的方法。在查阅参考手册125.3的第12节IO端口时说,与设备或电源重置不同的是,看门狗复位使所有I/O寄存器保持不变。我认为这意味着我的整个概念是不可能的?
以上来自于百度翻译 以下为原文 I was considering using a watchdog reset as one method of safely turning off an output in case of failure. While looking at section 12 I-O Ports of the reference manual 12.5.3 says that unlike device or power-on reset, a watchdog reset leaves all I/O registers unchanged. I assume this means my entire concept is not possible? |
|
相关推荐
5个回答
|
|
为什么不能关闭看门狗复位中的输出?无论是:(1)总是在启动代码中打开在任何重置上运行的输出,或者(2)检测到它是WDT重置,然后做一些特殊的事情。如何检测WDT重置在第9章中都有记录。
以上来自于百度翻译 以下为原文 Why can't you turn off the output in the watchdog reset? Either: [1] Always turn the output off in your startup code that runs upon any reset, or [2] Detect that it is a WDT reset, and do something special then. How to detect WDT resets is all documented in Chapter 9. |
|
|
|
你是说设备复位后?如果出现故障,设备又不能启动,会怎么样?
以上来自于百度翻译 以下为原文 You mean after the device resets? What if there is some failure and the device doesn't boot again? |
|
|
|
什么样的失败?(电源故障,外部晶体断裂?)如果坏了足以阻止PIC在WDT到期时做任何事情,那么你根本不能依赖WDT触发。WDT通常被用来检测软件故障,而不是硬件故障。
以上来自于百度翻译 以下为原文 What sort of failure? (Power fail, external crystal broken?) If it's bad enough to stop the PIC doing anything upon the WDT expiring, then you can't rely on the WDT triggering at all. The WDT is normally used to detect a software failure, not a hardware failure. |
|
|
|
例如损坏的引导ROM?我知道WDT是用来重启由于软件故障,但如果它没有重新启动到一个已知的状态,它似乎不太有用。
以上来自于百度翻译 以下为原文 Corrupted boot rom for example? I do understand WDT is used to reboot due to a software failure, but if it doesn't reboot to a known state it does not seem as useful. |
|
|
|
启动ROM?我所说的代码应该是它运行的第一件事。如果你说的是PIC代码所在的闪存,那么这个故障就是硬件故障。WDT定时器不是设计来处理的,只是为了检测你的软件被困在一个无休止的循环中。
以上来自于百度翻译 以下为原文 Boot ROM? The code I'm talking about should be the first thing it runs. If you're talking about the FLASH memory that the PIC's code resides in, that failing would be a hardware failure. The WDT timer is not designed to handle that, just to detect your software getting stuck in an endless loop. |
|
|
|
只有小组成员才能发言,加入小组>>
4848 浏览 9 评论
1846 浏览 8 评论
1765 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
2974 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2076 浏览 5 评论
472浏览 1评论
320浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
376浏览 0评论
270浏览 0评论
LAN9252使用SQI通信,进行数字复位后读BYTE_TEST异常
1824浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-5-17 04:53 , Processed in 1.107792 second(s), Total 84, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号