cancel
Showing results for 
Search instead for 
Did you mean: 

WKUP Pins polarity: rising/falling edge OR logic state high/low

ARigo.1
Associate

In order to wakeup the microcontroller from standby mode, is it necessary for the wakeup pin to generate a rising/falling edge or it should only have logic high/low level?

In the datasheet it says rising/falling edge, however inside the HAL functions it says polarity. From what I'm observing performing some tests, the logic level is the answer, but I'd like to have a confirmation.

I'm using an external button to put the microcontroller to standby mode (interrupt triggered on pin falling edge) and also to wake it back up (wake up pin, polarity LOW).

If I keep the button pressed for too long, the system goes into standby and it immediately wakes up, since the logic low of the pin is maintained when the system enters standby.

Is it correct?

2 REPLIES 2

Which STM32?

JW

ARigo.1
Associate

I'm sorry, I did not specify.

It is an STM32L476.