2018-05-02 07:59 AM
I have a couple of questions regarding the state of the GPIO output and the wake up condition in stop mode that I could not find in the datasheet.
When the uProcessor is specifically in stop mode,
1. Can it be woken up by the IWDG? The data sheet mentions various sources such as EXT, ... but nothing mentioned about the IWDG in stop mode.
2. Once the uProcessor enters stop mode, what would happen to the GPIO output? Will they be in HiZ? Or they retain their states, either hi or lo, just before going into stop mode?
Thanks.
2018-05-02 08:24 AM
Hello Andy,
1)
STM32L0 MCUs embeds two watchodg units: Independent Watchdog (IWDG) and System Window Watchdog (WWDG). Second one, so WWDG, has a capability to generate an interrupt. This interrupt can wake up the MCU from STOP mode.
2)
In STOP mode states of GPIOs outputs remains unchanged. If STM32L0 configured outputs to low states before entering STOP mode, they will remain low in STOP mode. The same with GPIOs set to high state.
Let me also mention, that configuratio of GPIOs remains unchanged. So for example if you configure pull-down or pull-up on the GPIO input, it will be also active in STOP mode.
Regards
Szymon2018-05-02 12:35 PM
Thanks for the information. I was wondering if I can ask another question. In my previous program, I was using Standby mode which wakes up after an IWDG reset so it would start at main() after woken up.
Due to the change in the schematic, I now has to use Stop Mode for various reason.
My question is once entered Stop Mode, and after woken up from interrupt, the program starts execute from where Stop Mode was entered correct? And not from start of main()?
Thanks.
2018-05-02 01:00 PM
Hello Andy,
I confirm your assumption.
Regards
Szymon