当前位置:网站首页>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 :
边栏推荐
- Basic knowledge points of dictionary
- AutoCAD - command repetition, undo and redo
- cocos_ Lua listview loads too much data
- Research and forecast report on China's solution polymerized styrene butadiene rubber (SSBR) industry (2022 Edition)
- Out and ref functions of unity
- Judge the position of the monster in the role under unity3d
- Panel panel of UI
- Autocad-- Real Time zoom
- 【acwing】240. food chain
- Common database statements in unity
猜你喜欢
随机推荐
2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas
3dsmax common commands
UE4/UE5 虚幻引擎,材质篇,纹理,Compression and Memory压缩和内存
Unity shot tracking object
Personal required code
stm32Cubemx(8):RTC和RTC唤醒中断
Difference between singleton and factory pattern
2021 electrician Cup - high speed rail traction power supply system operation data analysis and equivalent modeling ideas + code
Data is stored in the form of table
Vs2015 secret key
SQLServer 存储过程传递数组参数
mysql審計日志歸檔
Three dimensional dice realize 3D cool rotation effect (with complete source code) (with animation code)
Lua determines whether the current time is the time of the day
中国聚氨酯硬泡市场调研与投资预测报告(2022版)
XSS injection
This article is good
AutoCAD - Document Management
Unity writes timetables (without UI)
[groovy] closure (Introduction to closure class closure | this, owner, delegate member assignment and source code analysis)









