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

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess

leon_titan
Posts: 24
Joined: Sun Jan 12, 2020 2:11 pm
Has thanked: 4 times

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

Postby leon_titan » Fri Aug 26, 2022 3:22 pm

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!

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

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

Postby Giovanni » Fri Aug 26, 2022 5:26 pm

Hi,

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

Giovanni

leon_titan
Posts: 24
Joined: Sun Jan 12, 2020 2:11 pm
Has thanked: 4 times

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

Postby leon_titan » Sat Aug 27, 2022 1:59 am

ok, i will check that.
btw, i detect the falling edge in stm32's shutdown mode, do the power monitor work?

leon_titan
Posts: 24
Joined: Sun Jan 12, 2020 2:11 pm
Has thanked: 4 times

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

Postby leon_titan » Sat Aug 27, 2022 2:00 am

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

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

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

Postby Giovanni » Sat Aug 27, 2022 4:39 am

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


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 9 guests