当前位置:网站首页>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唤醒中断:
多了下面这一步配置:
代码:


回调函数:
边栏推荐
- [crampon programming] lintcode decoding Encyclopedia - 1100 strange printer
- CSDN body auto generate directory
- [groovy] closure closure (customize closure parameters | customize a single closure parameter | customize multiple closure parameters | specify the default value of closure parameters)
- [PCL self study: feature9] global aligned spatial distribution (GASD) descriptor (continuously updated)
- Error statuslogger log4j2 could not find a logging implementation
- Decryption function calculates "task state and lifecycle management" of asynchronous task capability
- "Measuring curve length" of CAD dream drawing
- 中国溶聚丁苯橡胶(SSBR)行业研究与预测报告(2022版)
- 775 Div.1 B. integral array mathematics
- [groovy] closure (Introduction to closure class closure | this, owner, delegate member assignment and source code analysis)
猜你喜欢

2021 higher education social cup mathematical modeling national tournament ABCD questions - problem solving ideas - Mathematical Modeling

Matplotlib draws three-dimensional scatter and surface graphs

Thinking of 2022 American College Students' mathematical modeling competition

AutoCAD - scaling

2022-2028 global and Chinese virtual data storage Market Research Report

Is $20billion a little less? Cisco is interested in Splunk?

windows下Redis-cluster集群搭建

669. 修剪二叉搜索树 ●●
![Private collection project practice sharing [Yugong series] February 2022 U3D full stack class 006 unity toolbar](/img/bf/fb4e85143d1461a2026c88cda4a18d.jpg)
Private collection project practice sharing [Yugong series] February 2022 U3D full stack class 006 unity toolbar

On-off and on-off of quality system construction
随机推荐
PostgreSQL surpasses mysql, and the salary of "the best programming language in the world" is low
Private collection project practice sharing [Yugong series] February 2022 U3D full stack class 006 unity toolbar
SQL set operation
Autocad-- Real Time zoom
Special information | finance, accounting, audit - 22.1.23
Data security -- 14 -- Analysis of privacy protection governance
Function overloading
Wenet: E2E speech recognition tool for industrial implementation
China needle coke industry development research and investment value report (2022 Edition)
Sixth note
【acwing】836. Merge sets
中国艾草行业研究与投资前景预测报告(2022版)
【Leetcode】1352. Product of the last K numbers
[crampon game] MC tutorial - first day of survival
2021 higher education social cup mathematical modeling national tournament ABCD questions - problem solving ideas - Mathematical Modeling
AutoCAD - continuous annotation
MD5绕过
Decryption function calculates "task state and lifecycle management" of asynchronous task capability
Scope of package class package
CSDN body auto generate directory