当前位置:网站首页>stm32Cubemx(8):RTC和RTC唤醒中断
stm32Cubemx(8):RTC和RTC唤醒中断
2022-07-05 04:52:00 【虾兵虾酱】
实时时钟(RTC):
它 是一个独立的 BCD 定时器/计数器。RTC 提供一个日历时钟、两个可编程 闹钟中断,以及一个具有中断功能的周期性可编程唤醒标志。RTC 还包含用于管理低功耗模 式的自动唤醒单元。
两个 32 位寄存器包含二进码十进数格式 (BCD) 的秒、分钟、小时(12 或 24 小时制)、星
期几、日期、月份和年份。此外,还可提供二进制格式的亚秒值。
系统可以自动将月份的天数补偿为 28、29(闰年)、30 和 31 天。并且还可以进行夏令时
补偿。
其它 32 位寄存器还包含可编程的闹钟亚秒、秒、分钟、小时、星期几和日期。
框图:
根据上图:算出RTC时钟频率:32.768kHZ/128/256=1HZ
中断:
选择LSE作为RTC时钟源:
代码:
RTC唤醒中断:
多了下面这一步配置:
代码:
回调函数:
边栏推荐
- AutoCAD - full screen display
- CUDA Programming atomic operation atomicadd reports error err:msb3721, return code 1
- Emlog博客主题模板源码简约好看响应式
- PostgreSQL 超越 MySQL,“世界上最好的编程语言”薪水偏低
- Pdf to DWG in CAD
- Forecast report on research and investment prospects of Chinese wormwood industry (2022 Edition)
- [groovy] closure (Introduction to closure class closure | this, owner, delegate member assignment and source code analysis)
- 【acwing】836. Merge sets
- mysql審計日志歸檔
- Construction d'un Cluster redis sous Windows
猜你喜欢
【acwing】528. cheese
2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas
Create a pyGame window with a blue background
2022-2028 global and Chinese virtual data storage Market Research Report
[groovy] closure (Introduction to closure class closure | this, owner, delegate member assignment and source code analysis)
54. 螺旋矩阵 & 59. 螺旋矩阵 II ●●
JVM 原理和流程简介
Flutter 小技巧之 ListView 和 PageView 的各种花式嵌套
[crampon game] MC tutorial - first day of survival
Rip notes [rip three timers, the role of horizontal segmentation, rip automatic summary, and the role of network]
随机推荐
2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas
【Leetcode】1352. Product of the last K numbers
中国金刚烷行业研究与投资预测报告(2022版)
Private collection project practice sharing [Yugong series] February 2022 U3D full stack class 006 unity toolbar
windows下Redis-cluster集群搭建
2022-2028 global and Chinese virtual data storage Market Research Report
[crampon programming] lintcode decoding Encyclopedia - 872 termination process
Wenet: E2E speech recognition tool for industrial implementation
3dsmax snaps to frozen objects
2020-10-27
2022-2028 global and Chinese video coding and transcoding Market Research Report
中国AS树脂市场调研与投资预测报告(2022版)
【Leetcode】1352. 最后 K 个数的乘积
中国艾草行业研究与投资前景预测报告(2022版)
The 22nd Spring Festival Gala, an immersive stage for the yuan universe to shine into reality
CUDA Programming atomic operation atomicadd reports error err:msb3721, return code 1
Looking at Chinese science and technology from the Winter Olympics: what is the mystery of the high-speed camera that the whole people thank?
AutoCAD - full screen display
[groovy] closure (closure call | closure default parameter it | code example)
2022 American College Students' mathematical modeling ABCDEF problem thinking /2022 American match ABCDEF problem analysis