Skip to main content
Dprom
Associate II
September 17, 2019
Question

STM32L073CBT6 deep sleep

  • September 17, 2019
  • 0 replies
  • 481 views

Hi,

I am using STM32L073CBT6. I want my MCU go to the deep sleep and wakeup by internal RTC and one of my GPIO pin. I already read the datasheet but a little bit messy.

Im using 16Mhz cpu clock, 8Mhz for LPUART ABP1 clock,

1.Right now, Im stuck on setup the RTC. I can read the RTC counting but cannot set the value. I have followed the example code from manual datasheet RM0367(page 1002). The INIF flag in RTC_ISR did not changed to high after i set INITS to High in RTC_ISR register. I already enable the write access before I set the INITS. Also after I set it High, the value of INIT is High in my LPUART terminal monitor.

Thank you in advance. I hope u can help me.

This topic has been closed for replies.