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


回调函数:
边栏推荐
- The first topic of ape Anthropology
- flutter 对象和列表
- 2022 thinking of mathematical modeling C problem of American college students / analysis of 2022 American competition C problem
- AutoCAD - Document Management
- AutoCAD - command repetition, undo and redo
- Emlog博客主题模板源码简约好看响应式
- 54. Spiral matrix & 59 Spiral matrix II ●●
- China needle coke industry development research and investment value report (2022 Edition)
- Fluent objects and lists
- 中国金刚烷行业研究与投资预测报告(2022版)
猜你喜欢

Use assimp library to read MTL file data

Pdf to DWG in CAD
![[AI bulletin 20220211] the hard core up owner has built a lidar and detailed AI accelerator](/img/cc/06580ce7b553182968d273841a78b4.jpg)
[AI bulletin 20220211] the hard core up owner has built a lidar and detailed AI accelerator

AutoCAD - stretching

AutoCAD - isometric annotation

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

AutoCAD - Center zoom

Manually implement heap sorting -838 Heap sort

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

Reading and visualization of DICOM, MHD and raw files in medical imaging
随机推荐
中国溶聚丁苯橡胶(SSBR)行业研究与预测报告(2022版)
Decryption function calculates "task state and lifecycle management" of asynchronous task capability
Rip notes [rip three timers, the role of horizontal segmentation, rip automatic summary, and the role of network]
AutoCAD - window zoom
Special information | finance, accounting, audit - 22.1.23
Research and forecast report on China's solution polymerized styrene butadiene rubber (SSBR) industry (2022 Edition)
The difference between bundle, chunk and module
介绍汉明距离及计算示例
Special information | real estate and office buildings - 22.1.9
Number theoretic function and its summation to be updated
中国金刚烷行业研究与投资预测报告(2022版)
Introduce Hamming distance and calculation examples
Thinking of 2022 American College Students' mathematical modeling competition
How should programmers learn mathematics
[goweb development] Introduction to authentication modes based on cookies, sessions and JWT tokens
Establish cloth effect in 10 seconds
A survey of automatic speech recognition (ASR) research
How to choose a panoramic camera that suits you?
[groovy] closure (closure parameter binding | curry function | rcurry function | ncurry function | code example)
mysql審計日志歸檔