cancel
Showing results for 
Search instead for 
Did you mean: 

WKUP pin - which edge (rising/falling) and can it still be monitored when MCU is running ?

freeflyer
Associate III

Follow-on from STM32L433RCT6 - Which external interrupt GPIO pin can I used for wakeup ?


I am using the STM32L433RCT6 with a WKUP pin (GPIO PC13) to wake the MCU from shutdown mode.

Does it matter which edge I used (rising or falling) ?

I am currently using a switch to ground (i.e. falling edge)...

freeflyer_0-1752134951858.png

freeflyer_1-1752135031976.png

 

Also, once the MCU is awake and running, am I still able to read this pin as a digital input ?

Because the switch will also be used to put the MCU back into standby, so I need to be able to monitor the state of the WJUP pin.

2 REPLIES 2
Andrew Neil
Super User

@freeflyer wrote:

Does it matter which edge I used (rising or falling) ?


See the Datasheet; eg,

AndrewNeil_1-1752140790148.png

 


@freeflyer wrote:

once the MCU is awake and running, am I still able to read this pin as a digital input ?


Yes.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
freeflyer
Associate III

Thanks Andrew, I did see that the edge is configurable.

I was just wondering if there is an advantage to using one edge compared to another, such as power consumption etc