【MCU实战经验】基于STM32F103C8T6的hart总线调试器设计
求教STM32F103进入STOP模式后用外部中断唤醒的问题
基于STM32F103RCT6的无源蜂鸣器音乐播放(生日快乐歌)
STM32F103c8t6有没有DAC 功能?
STM32F103x中文数据手册
新手求教,为何在我电脑上找不到STM32F1Xx.h文件
金龙107例程汇总(STM32F107)
万利STM32F107VC 原理图
STM32F103 ADC多通道检测必须要DMA吗?
【官方例程】STM32F107以太网官方例程
评分
查看全部评分
HAL_RTCEx_DeactivateWakeUpTimer(&RTCHandle);
/* ## Setting the Wake up time ############################################*/
/* RTC Wakeup Interrupt Generation:
Wakeup Time Base = (RTC_WAKEUPCLOCK_RTCCLK_DIV /(LSE or LSI))
Wakeup Time = Wakeup Time Base * WakeUpCounter
= (RTC_WAKEUPCLOCK_RTCCLK_DIV /(LSE or LSI)) * WakeUpCounter
==> WakeUpCounter = Wakeup Time / Wakeup Time Base
To configure the wake up timer to 20s the WakeUpCounter is set to 0xB4D8 for LSI:
RTC_WAKEUPCLOCK_RTCCLK_DIV = RTCCLK_Div16 = 16
Wakeup Time Base = 16 /(~37.000KHz) = ~0,432 ms
Wakeup Time = ~20s = 0,432ms * WakeUpCounter
==> WakeUpCounter = ~20s/0,432ms = 46296 = 0xB4D8 */
HAL_RTCEx_SetWakeUpTimer_IT(&RTCHandle, 0xB4D8, RTC_WAKEUPCLOCK_RTCCLK_DIV16);
/* Configure the system Power */
SystemPower_Config();
/* Enter Stop Mode */
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);
这个是L0的休眠方式 你可以对比一下
评分
查看全部评分
评分
查看全部评分