当前位置:网站首页>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 :
边栏推荐
- Looking at Chinese science and technology from the Winter Olympics: what is the mystery of the high-speed camera that the whole people thank?
- 3dsmax scanning function point connection drawing connection line
- Unity writes timetables (without UI)
- 2022/7/1學習總結
- MySQL audit log archiving
- Recherche de mots pour leetcode (solution rétrospective)
- cocos2dx_ Lua particle system
- 2022/7/2做题总结
- AutoCAD - Document Management
- 【acwing】837. Number of connected block points
猜你喜欢
Séparation et combinaison de la construction du système qualité
AutoCAD - continuous annotation
An article takes you to thoroughly understand descriptors
C4D simple cloth (version above R21)
"Measuring curve length" of CAD dream drawing
用 Jmeter 工具做个小型压力测试
[groovy] closure (closure call is associated with call method | call () method is defined in interface | call () method is defined in class | code example)
3dsmax scanning function point connection drawing connection line
AutoCAD - command repetition, undo and redo
AutoCAD - Document Management
随机推荐
Data is stored in the form of table
用 Jmeter 工具做个小型压力测试
MySQL audit log Archive
【acwing】240. food chain
775 Div.1 B. integral array mathematics
AutoCAD - continuous annotation
Basic knowledge points of dictionary
Unity connects to the database
Listview is added and deleted at the index
2021 higher education social cup mathematical modeling national tournament ABCD questions - problem solving ideas - Mathematical Modeling
Unity3d learning notes
2021 huashubei mathematical modeling idea + reference + paper
UE4/UE5 虚幻引擎,材质篇(三),不同距离的材质优化
2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas
Cocos create Jiugongge pictures
SQLServer 存储过程传递数组参数
2021 electrician cup idea + code - photovoltaic building integration plate index development trend analysis and prediction: prediction planning issues
Pdf to DWG in CAD
Introduction to JVM principle and process
China polyurethane rigid foam Market Research and investment forecast report (2022 Edition)