2016-12-09 04:01 AM
Hi!
I want to put my STM32F4 in StandBy mode for more then 36 hours.
At the moment I use the RTC wakeup interrupt but the maximum time is 0x1FFFF seconds (36 hours).
Is this possible to set a greater value?
regards Marc
Solved! Go to Solution.
2016-12-09 10:47 AM
Dear Marc,
The wakeup unit clock is configured through the WUCKSEL[2:0] bits of RTC_CR register.
Three different configurations are possible: â—� Configuration 1: WUCKSEL[2:0] = 0xxb for short wakeup periodsâ—� Configuration 2: WUCKSEL[2:0] = 10xb for medium wakeup periods
â—� Configuration 3: WUCKSEL[2:0] = 11xb for long wakeup periods
The maximum interrupt time provided by configuration 2 is 131072 seconds (a little bit more than 36h), so you should use configuration3. This configuration enables the MCU to wake up from the standby mode with a maximum delay of 4194304 s (more than 48 days).
All those information are already available on the application note AN3371.
Wish this could help you.If this answers your request, please press 'correct'
:)
.Best regards,
Lawliet.
.
2016-12-09 10:47 AM
Dear Marc,
The wakeup unit clock is configured through the WUCKSEL[2:0] bits of RTC_CR register.
Three different configurations are possible: â—� Configuration 1: WUCKSEL[2:0] = 0xxb for short wakeup periodsâ—� Configuration 2: WUCKSEL[2:0] = 10xb for medium wakeup periods
â—� Configuration 3: WUCKSEL[2:0] = 11xb for long wakeup periods
The maximum interrupt time provided by configuration 2 is 131072 seconds (a little bit more than 36h), so you should use configuration3. This configuration enables the MCU to wake up from the standby mode with a maximum delay of 4194304 s (more than 48 days).
All those information are already available on the application note AN3371.
Wish this could help you.If this answers your request, please press 'correct'
:)
.Best regards,
Lawliet.
.