看门狗定时器是干嘛的
时间: 2023-08-22 12:11:39 浏览: 83
回答: 看门狗定时器是用来监测程序的正常运行并解决程序引起的故障的。它可以防止程序跑飞,当看门狗没有被定时清零时,会引起复位,从而重新启动程序。看门狗定时器的基本工作流程是,在启动看门狗后,必须在规定的时间内向特定寄存器中写入数值,以防止看门狗定时器溢出。如果程序在规定时间内没有向特定寄存器中写入数值,看门狗定时器会溢出并引起看门狗复位,从而重新启动程序,减少程序跑死的危害。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* [什么是看门狗?如何操作?喂狗?工作流程?定时器,计数器,看门狗的关系。](https://blog.csdn.net/weixin_43723143/article/details/117202514)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [菜鸟晋级篇!一篇文章读懂看门狗定时器!](https://blog.csdn.net/lyh290188/article/details/104349332)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [看门狗定时器](https://blog.csdn.net/weixin_42048417/article/details/80698230)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文