Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sketch using the Rtc mix mode with value in milliseconds #103

Merged
merged 2 commits into from
Dec 20, 2023

Conversation

FRASTM
Copy link
Contributor

@FRASTM FRASTM commented Sep 25, 2023

This sketch shows how to configure the RTC alarm in MIX mode and go to sleep

Requires stm32duino/STM32RTC#102

@FRASTM FRASTM force-pushed the rtc_mix_ms branch 2 times, most recently from 667743b to 5333716 Compare September 26, 2023 16:09
@FRASTM
Copy link
Contributor Author

FRASTM commented Sep 29, 2023

Running the AlarmTimedWakeup on the nucleo_wl55jc in RTC BIN or MIX mode: give a deepSleep period of 600ms
one message displayed each 1.2s

14:32:24.179 ->  Start !
14:32:24.179 -> Alarm Match: 0 times.
14:32:26.254 -> Alarm Match: 2 times.
14:32:27.475 -> Alarm Match: 4 times.
14:32:28.630 -> Alarm Match: 6 times.
14:32:29.852 -> Alarm Match: 8 times.
14:32:31.041 -> Alarm Match: 10 times.
14:32:32.232 -> Alarm Match: 12 times.
14:32:33.419 -> Alarm Match: 14 times.
14:32:34.609 -> Alarm Match: 16 times.
14:32:35.828 -> Alarm Match: 18 times.
14:32:37.019 -> Alarm Match: 20 times.
14:32:38.208 -> Alarm Match: 22 times.
14:32:39.411 -> Alarm Match: 24 times.
14:32:40.586 -> Alarm Match: 26 times.

@FRASTM FRASTM marked this pull request as ready for review September 29, 2023 16:17
@FRASTM
Copy link
Contributor Author

FRASTM commented Oct 3, 2023

STM32PowerMonitor when nucleo_wl55jc goes to stop2 low power mode and wakes Up from RTC alarm
(LED is blinking)

STM32Power_nucleo_wl55_lowpower_RTC

@fpistm fpistm self-requested a review October 16, 2023 14:52
In this sketch the RTC is configured in BCD or MIX mode
(for the stm32 devices that supports it)
An Alarm A is set to wakeup the system from low power
deep sleep.

Signed-off-by: Francois Ramu <[email protected]>
In this sketch the RTC is configured in BINary only mode
(for the stm32 devices that supports it)
An Alarm A is set to wakeup the system from low power
deep sleep.

Signed-off-by: Francois Ramu <[email protected]>
@fpistm fpistm added this to the 1.2.5/1.3.0 milestone Dec 20, 2023
@fpistm fpistm merged commit eaeedd7 into stm32duino:main Dec 20, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants