2020-10-05 04:22 AM
Hello I need to use standby mode for my MCU which is STM32F103. In datasheets it says that when MCU is in the standby mode, pins are left in the High Impedance. However, I need these pins to be High ( these are output pins). Is it possible to achieve that? Or should I go with sleep mode or maybe low power consumption mode?
Edit : And are there any coding examples for STM32F1xx to show how to enter Low Power Sleep Mode? Such as this one:
Solved! Go to Solution.
2020-10-05 06:00 AM
> However, I need these pins to be High ( these are output pins). Is it possible to achieve that?
No, they can't be high while in standby mode.
There are some families where pins can be configured as pullups while in low-power modes, but the STM32F1 is not one of them.
> And are there any coding examples for STM32F1xx to show how to enter Low Power Sleep Mode?
2020-10-05 06:00 AM
> However, I need these pins to be High ( these are output pins). Is it possible to achieve that?
No, they can't be high while in standby mode.
There are some families where pins can be configured as pullups while in low-power modes, but the STM32F1 is not one of them.
> And are there any coding examples for STM32F1xx to show how to enter Low Power Sleep Mode?
2020-10-05 06:10 AM
Thank you for your answer. So it looks like it is my best bet to use Low Power Sleep Mode. It says before I put MCU into LPSleep, I need to set system clock to 131 khz. But I cannot do it in run time. And from the link I couldn't find any example about LPSleep mode. May you share any example related to LPSleep if there is any? And how can I change the system clock to 131 khz while run time, before putting MCU to LPSleep mode?
2020-10-05 06:40 AM
> May you share any example related to LPSleep if there is any?
2020-10-05 09:17 AM
I mean you need STOP mode