当前位置:网站首页>芯片低功耗睡眠模式下与看门狗的使用
芯片低功耗睡眠模式下与看门狗的使用
2022-07-19 16:46:00 【西瓜籽@】
芯片睡眠模式下与看门狗的使用
方法1:在低功耗模式下进行RTC定时唤醒CPU进行喂狗操作之后在进入低功耗睡眠模式,因为在睡眠模式下是无法进行正常喂狗的,所以需要进行RTC定时唤醒进行喂狗操作,保证看门狗是正常工作的。这样唤醒频率高对功耗影响大。
方法2:在进入睡眠之前利用软件复位关闭看门狗然后在进入睡眠模式。
首先程序运行判断复位寄存器的标志位是由于那些复位状态导致,判断出复位原因。我在项目中判断三种状态:断电/上电复位标志,看门狗复位标志,软件复位标志。程序上电是禁用看门狗,但是为了方便也软件复位一次在关闭看门狗在进入sleep模式,直到外部唤醒之后在开启看门狗正常工作,工作之后在软件复位一次关闭看门狗在进入睡眠模式。看门狗溢出导致的复位就正常重启,禁用看门狗正常初始化后软件复位一次进入sleep模式。软件复位标志是判断是否进入睡眠模式,只有软件导致的复位才会进入低功耗睡眠模式。
边栏推荐
- XSS(跨站脚本攻击)漏洞理解
- R语言“Error in nls 循环次数超过了50”解决方案
- MATLAB快速将影像的二维坐标转换为经纬度坐标
- Installation hors ligne du cobbler
- Tiree Tree
- MySQL migration gold warehouse database primary key, index loss solution
- Arcpy batch conversion data projection (taking Albers as an example)
- Matlab填充影像中的无效值
- 百度贴吧爬虫获取网页
- php7.4升级php8.0后重启系统网站访问异常问题
猜你喜欢
Arcpy batch conversion data projection (taking Albers as an example)
【terminal】x86 Native Tools Command Prompt for VS 2017
DevOps 实践多年,最痛的居然是?
MySQL migration gold warehouse database primary key, index loss solution
安装Pycharm的13个步骤,还不会嘛?(超级详细教程)
文件操作-
精挑细选的100道软测高频面试题,面试前你肯定用得上
话实践,行实干,成实事:“巡礼”数字化的中国大地
Software testing and application final review
VRRP技术(详解)
随机推荐
Software testing and application final review
Matlab计算质心
Matlab填充影像中的无效值
On the software testing industry -- the correct growth posture of testers
MSWEP数据nc格式转tif格式
TRMM降水数据下载步骤
matlab获取原数组在排序后数组中的位置
Is there a requirement for the number of rows in ODPs SQL in dataworks? Will an error be reported if it is too long
JVM 上數據處理語言的競爭:Kotlin, Scala 和 SPL
[software testing] test outline method - Test Case Writing
LeetCode 剑指offer刷题笔记
教你使用CANN将照片一键转换成卡通风格
Large screen: the display adaptation and font of the page on different scale screens change with the screen change (the font changes adaptively with the screen resolution)
为什么测试员和测试工程师的薪酬差距那么大?三分钟你全明白了
接口调试还能这么玩?
Thinkphp6百万级xlsx表格导入数据库的实现方案
Remember to crawl the search engine thumbnail once and save it locally
Browser compatibility problems and common solutions
Under the epidemic, where is the way out for software testing?
性能提升30倍丨基于 DolphinDB 的 mytt 指标库实现