cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement level triggered interrupts with EXTI

arjun.binu
Associate III

Edge-triggered interrupts had been used by us to identify various system states. However, it appears that the interrupts are now sometime erroneous and cause an undesirable state change. This led us to search for implementations where level-triggered interrupts would determine when a state would change.

Note: STM32G041F6P6 is the MCU being used.

1 ACCEPTED SOLUTION

Accepted Solutions

> How to implement level triggered interrupts with EXTI

You can't.

JW

View solution in original post

3 REPLIES 3

> How to implement level triggered interrupts with EXTI

You can't.

JW

S.Ma
Principal

Use a timer input capture channel to generate interrupt (channel 1 or 2 typically) which has some input signal digital filtering capability.

Or make the EXTI interrupt self disable itself and reenable after a timer window period.

> Use a timer input capture channel to generate interrupt (channel 1 or 2 typically) which has some input signal digital filtering capability.

That's still edge-triggered.

> Or make the EXTI interrupt self disable itself and reenable after a timer window period.

That won't generate an interrupt, if pin is at the same level.

JW

EDIT: This is a recurring question on this forum, so you can find several threads discussing it. Maybe this one will help https://community.st.com/s/question/0D53W00000S78MOSAZ/level-sensitive-interrupts-with-exti