Page 1 of 1

How to set the voltage of the falling edge of the EXTI?

Posted: Fri Aug 26, 2022 3:22 pm
by leon_titan
Hi,

I'm using the EXTI event to detect the gpio's falling edge, but the event not triggered well. After using the multimeter i found the valtage is falling from 3.3 to 1.6(not to zero), maybe this is the reason. So how can I set the voltage of the falling edge by code so when the voltage falling to 1.6 there can be a falling event?

Thanks very much!

Re: How to set the voltage of the falling edge of the EXTI?

Posted: Fri Aug 26, 2022 5:26 pm
by Giovanni
Hi,

STM32 has a voltage monitor, see the PWR unit in the reference manual.

Giovanni

Re: How to set the voltage of the falling edge of the EXTI?

Posted: Sat Aug 27, 2022 1:59 am
by leon_titan
ok, i will check that.
btw, i detect the falling edge in stm32's shutdown mode, do the power monitor work?

Re: How to set the voltage of the falling edge of the EXTI?

Posted: Sat Aug 27, 2022 2:00 am
by leon_titan
leon_titan wrote:ok, i will check that.
btw, i detect the falling edge in stm32's shutdown mode, do the power monitor work?

to wake up the mcu

Re: How to set the voltage of the falling edge of the EXTI?

Posted: Sat Aug 27, 2022 4:39 am
by Giovanni
leon_titan wrote:
leon_titan wrote:ok, i will check that.
btw, i detect the falling edge in stm32's shutdown mode, do the power monitor work?

to wake up the mcu


Neved did that so I don't have an answer, you need to read the RM.

Giovanni