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


回调函数:
边栏推荐
- 2022 thinking of mathematical modeling a problem of American college students / analysis of 2022 American competition a problem
- Flink集群配置
- 数论函数及其求和 待更新
- [groovy] closure closure (customize closure parameters | customize a single closure parameter | customize multiple closure parameters | specify the default value of closure parameters)
- 775 Div.1 B. integral array mathematics
- AutoCAD -- dimension break
- Data security -- 14 -- Analysis of privacy protection governance
- 669. 修剪二叉搜索树 ●●
- How to choose a panoramic camera that suits you?
- Autocad-- Real Time zoom
猜你喜欢

2021 higher education social cup mathematical modeling national tournament ABCD questions - problem solving ideas - Mathematical Modeling
![[groovy] closure (Introduction to closure class closure | this, owner, delegate member assignment and source code analysis)](/img/aa/3c8b7b27e322417777d1315b9a5a8f.jpg)
[groovy] closure (Introduction to closure class closure | this, owner, delegate member assignment and source code analysis)
![[groovy] closure (closure call | closure default parameter it | code example)](/img/61/754cee9a940fd4ecd446b38c2f413d.jpg)
[groovy] closure (closure call | closure default parameter it | code example)

2021-10-29

CSDN body auto generate directory

Thinking of 2022 American College Students' mathematical modeling competition

Autocad-- Real Time zoom

Create a pyGame window with a blue background

2022 thinking of mathematical modeling a problem of American college students / analysis of 2022 American competition a problem

Autocad-- dynamic zoom
随机推荐
【acwing】528. cheese
flutter 对象和列表
【acwing】240. food chain
2020-10-27
3dsmax common commands
SQLServer 存储过程传递数组参数
windows下Redis-cluster集群搭建
English topic assignment (27)
Debug insights
Research and forecast report on China's solution polymerized styrene butadiene rubber (SSBR) industry (2022 Edition)
AutoCAD - Center zoom
次小生成树
JVM 原理和流程简介
Wan broadband access technology V EPON Technology
669. Prune binary search tree ●●
54. Spiral matrix & 59 Spiral matrix II ●●
[groovy] closure (closure as function parameter | code example)
[goweb development] Introduction to authentication modes based on cookies, sessions and JWT tokens
[Business Research Report] top ten trends of science and technology and it in 2022 - with download link
Setting up redis cluster cluster under Windows