2020-11-10 12:21 PM
Hello guys,
I'm using a STM32F070CBT MCU and I need to put it in Stop Mode and wake him up second by second. Looking at the datasheet, I noticed I couldn't use I2C as a wake-up source, and the easiest way to do it would be using GPIO.
We've tried to use IWDG as a wake-up source, and it works, but we need to mantain all states and variables, could we use it as a wake-up source but not resetting it?
We thought about using a timer, is it possible to use it, stopping it by one second and then waking it up, and do this in a loop, for better power consumption?
Thanks in advance
Arthur Käfer
2020-11-12 04:37 AM
You could consider to use the RTC, which can be clocked by either HSE, LSE or LSI.
Just activate clock source for the RTC, enable the Internal WakeUp, set the WakeUp Counter and don't forget to enable the RTC global interrupt.
When your question is answered, please close this topic by choosing Select as Best.
/Peter
2020-11-19 08:03 AM
I will change the schematic of the board and try to use RTC, thanks for the reply