当前位置:网站首页>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唤醒中断:
多了下面这一步配置:
代码:
回调函数:
边栏推荐
- Forecast report on research and investment prospects of Chinese wormwood industry (2022 Edition)
- Special information | finance, accounting, audit - 22.1.23
- CSDN body auto generate directory
- LeetCode之单词搜索(回溯法求解)
- flutter 对象和列表
- Manually implement heap sorting -838 Heap sort
- Stage experience
- 3dsmax common commands
- 49 pictures and 26 questions explain in detail what is WiFi?
- AutoCAD - Document Management
猜你喜欢
Thinking of 2022 American College Students' mathematical modeling competition
Rip notes [rip message security authentication, increase of rip interface measurement]
669. Prune binary search tree ●●
计组笔记(1)——校验码、原补码乘除计算、浮点数计算
Setting up redis cluster cluster under Windows
Wenet: E2E speech recognition tool for industrial implementation
2022 thinking of Mathematical Modeling B problem of American college students / analysis of 2022 American competition B problem
Establish cloth effect in 10 seconds
SQL set operation
JVM 原理和流程简介
随机推荐
Flutter 小技巧之 ListView 和 PageView 的各种花式嵌套
History of web page requests
Séparation et combinaison de la construction du système qualité
数论函数及其求和 待更新
Is $20billion a little less? Cisco is interested in Splunk?
2021 electrician cup idea + code - photovoltaic building integration plate index development trend analysis and prediction: prediction planning issues
Detailed introduction of OSPF header message
MD5 bypass
The difference between bundle, chunk and module
Flink集群配置
2021-10-29
[crampon programming] lintcode decoding Encyclopedia - 872 termination process
Variable category (automatic, static, register, external)
介绍汉明距离及计算示例
Special information | finance, accounting, audit - 22.1.23
Inline built-in function
AutoCAD - command repetition, undo and redo
2022-2028 global and Chinese virtual data storage Market Research Report
775 Div.1 B. integral array mathematics
Detailed explanation of the ranking of the best universities