硬汉嵌入式论坛

 找回密码
 立即注册
查看: 1028|回复: 4
收起左侧

[技术讨论] RTC时间断电清零

[复制链接]

10

主题

16

回帖

46

积分

新手上路

积分
46
发表于 2024-8-8 11:45:21 | 显示全部楼层 |阅读模式
单片机采用的是stm32l431rc  使用的是hsi,rtc用的LSE,调试模式模拟rtc时间设置进去了但是一断电或者一复位rtc时间全部变为0了,备份寄存器的标志位也写了,请问这是什么问题
回复

使用道具 举报

219

主题

1109

回帖

1776

积分

至尊会员

More we do, more we can do.

积分
1776
发表于 2024-8-8 13:19:37 | 显示全部楼层
As long as the supply voltage remains in the operating range, the RTC never stops, regardless of the device status (Run mode, low-power mode or under reset).
回复

使用道具 举报

10

主题

16

回帖

46

积分

新手上路

积分
46
 楼主| 发表于 2024-8-8 13:46:56 | 显示全部楼层
emwin 发表于 2024-8-8 13:19
As long as the supply voltage remains in the operating range, the RTC never stops, regardless of the ...

有电压啊,供电引脚3.3v
回复

使用道具 举报

3

主题

295

回帖

304

积分

高级会员

积分
304
发表于 2024-8-8 15:52:43 | 显示全部楼层
检查一下上电初始化程序,是不是上电没读备份寄存器时间直接从头初始化了
回复

使用道具 举报

3

主题

295

回帖

304

积分

高级会员

积分
304
发表于 2024-8-8 16:04:14 | 显示全部楼层
断电一段时间再上电后备寄存器值有没有丢,丢了的话估计是硬件问题
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-8-12 06:33 , Processed in 0.049536 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表