当前位置:网站首页>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 - Zoom previous
- [AI bulletin 20220211] the hard core up owner has built a lidar and detailed AI accelerator
- 【Leetcode】1352. 最后 K 个数的乘积
- 2022 American College Students' mathematical modeling ABCDEF problem thinking /2022 American match ABCDEF problem analysis
- XSS injection
- 2022 thinking of mathematical modeling C problem of American college students / analysis of 2022 American competition C problem
- English topic assignment (27)
- How to choose a panoramic camera that suits you?
- AutoCAD - window zoom
- windows下Redis-cluster集群搭建
猜你喜欢

"Measuring curve length" of CAD dream drawing

Setting up redis cluster cluster under Windows
![[goweb development] Introduction to authentication modes based on cookies, sessions and JWT tokens](/img/20/5c5550e6dabc76702f0e7ce3bef068.jpg)
[goweb development] Introduction to authentication modes based on cookies, sessions and JWT tokens

【acwing】837. Number of connected block points

669. 修剪二叉搜索树 ●●

2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas

PostgreSQL 超越 MySQL,“世界上最好的编程语言”薪水偏低
![[PCL self study: feature9] global aligned spatial distribution (GASD) descriptor (continuously updated)](/img/2b/933586b6feff1d48c5bee11cd734ba.jpg)
[PCL self study: feature9] global aligned spatial distribution (GASD) descriptor (continuously updated)

CSDN body auto generate directory

On-off and on-off of quality system construction
随机推荐
MD5绕过
AutoCAD - Document Management
AutoCAD - scaling
Minor spanning tree
AutoCAD - workspace settings
Sqlserver stored procedures pass array parameters
flutter 对象和列表
Research and investment forecast report of adamantane industry in China (2022 Edition)
MySQL audit log archiving
AutoCAD - full screen display
2022-2028 global and Chinese virtual data storage Market Research Report
Redis 排查大 key 的4种方法,优化必备
次小生成树
AutoCAD - lengthening
2021 electrician cup (the 12th "China Society of electrical engineering Cup" National Undergraduate electrician mathematical modeling) detailed ideas + codes + references
猿人学第一题
JVM 原理和流程简介
AutoCAD - graphic input and output
Pdf to DWG in CAD
[Business Research Report] top ten trends of science and technology and it in 2022 - with download link