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, tfAteba

Post Reply
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?

Post 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!
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

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

Post by Giovanni »

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?

Post by leon_titan »

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?

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

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

Post 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
Post Reply