当前位置:网站首页>Stm32cubemx (8): RTC and RTC wake-up interrupt
Stm32cubemx (8): RTC and RTC wake-up interrupt
2022-07-05 04:58:00 【Shrimp paste】
Real time clock (RTC):
it It's an independent BCD Timer / Counter .RTC Provide A calendar clock 、 Two programmable The alarm clock is broken , And one A periodic programmable wake-up flag with interrupt function .RTC Also included for managing low power mode Automatic wake-up unit .
Two 32 Bit registers contain binary decimal format (BCD) Seconds of 、 minute 、 Hours (12 or 24 hourly )、 star
Period 、 date 、 Month and year . Besides , Sub second values in binary format are also available .
The system can automatically compensate the days of the month to 28、29( Leap year )、30 and 31 God . And you can have daylight saving time
compensate .
Other 32 The bit register also contains programmable alarm sub seconds 、 second 、 minute 、 Hours 、 What day and date of the week .
block diagram :
According to the picture above : Work out RTC clock frequency :32.768kHZ/128/256=1HZ
interrupt :
choice LSE As RTC Clock source :
Code :
RTC Wake up interrupt :
There is more configuration in the following step :
Code :
Callback function :
边栏推荐
- [groovy] closure (closure as function parameter | code example)
- LeetCode之單詞搜索(回溯法求解)
- cocos_ Lua listview loads too much data
- django连接数据库报错,这是什么原因
- Research and investment forecast report of adamantane industry in China (2022 Edition)
- Common database statements in unity
- AutoCAD - set layer
- #775 Div.1 B. Integral Array 数学
- Autocad-- Real Time zoom
- Research and forecast report on China's solution polymerized styrene butadiene rubber (SSBR) industry (2022 Edition)
猜你喜欢
Download and use of font icons
[groovy] closure (closure parameter list rule | default parameter list | do not receive parameters | receive custom parameters)
AutoCAD - scaling
AutoCAD - set layer
Detailed introduction of OSPF header message
Panel panel of UI
AutoCAD - graphic input and output
AutoCAD - stretching
数论函数及其求和 待更新
Number theoretic function and its summation to be updated
随机推荐
This article is good
3dsmax common commands
中国金刚烷行业研究与投资预测报告(2022版)
2022 thinking of mathematical modeling C problem of American college students / analysis of 2022 American competition C problem
UE4/UE5 虚幻引擎,材质篇(三),不同距离的材质优化
中国溶聚丁苯橡胶(SSBR)行业研究与预测报告(2022版)
Unity intelligent NPC production -- pre judgment walking (method 1)
【acwing】240. food chain
2021 higher education social cup mathematical modeling national tournament ABCD questions - problem solving ideas - Mathematical Modeling
cocos2dx_ Lua particle system
Autocad-- Real Time zoom
Judge the position of the monster in the role under unity3d
LeetCode之单词搜索(回溯法求解)
【Leetcode】1352. 最后 K 个数的乘积
中国AS树脂市场调研与投资预测报告(2022版)
China needle coke industry development research and investment value report (2022 Edition)
2022 American College Students' mathematical modeling ABCDEF problem thinking /2022 American match ABCDEF problem analysis
MySQL audit log Archive
Listview is added and deleted at the index
Lua determines whether the current time is the time of the day