当前位置:网站首页>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 :
边栏推荐
- MySQL audit log archiving
- Panel panel of UI
- Is $20billion a little less? Cisco is interested in Splunk?
- AutoCAD - Center zoom
- On-off and on-off of quality system construction
- 2020-10-27
- Out and ref functions of unity
- 2020-10-27
- 中国AS树脂市场调研与投资预测报告(2022版)
- 3dsmax scanning function point connection drawing connection line
猜你喜欢
Introduction to JVM principle and process
2022 U.S. college students' mathematical modeling e problem ideas / 2022 U.S. game e problem analysis
Number theoretic function and its summation to be updated
Emlog博客主题模板源码简约好看响应式
LeetCode之單詞搜索(回溯法求解)
AutoCAD - feature matching
Unity check whether the two objects have obstacles by ray
【acwing】528. cheese
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
随机推荐
Out and ref functions of unity
Unity ugui source code graphic
Data is stored in the form of table
中国针状焦行业发展研究与投资价值报告(2022版)
Unity intelligent NPC production -- pre judgment walking (method 1)
Unity enables mobile phone vibration
Establish cloth effect in 10 seconds
stm32Cubemx(8):RTC和RTC唤醒中断
Cocos progress bar progresstimer
2022/7/1 learning summary
中国AS树脂市场调研与投资预测报告(2022版)
#775 Div.1 B. Integral Array 数学
Personal required code
Number theoretic function and its summation to be updated
On-off and on-off of quality system construction
Unity synergy
AutoCAD -- dimension break
Autocad-- dynamic zoom
Unity card flipping effect
2021 huashubei mathematical modeling idea + reference + paper