Skip to main content
MMARI.1
Senior II
Nov 29, 2023 3:35 AM UTC
Solved

Rising to Falling or Falling to Rising External Interrupt Detection

MMARI1_0-1701228408259.png

There is any possibility to detect exact point on  Rising to Falling or Falling to Rising place .

Because when i enabling  Falling edge or Rising/Falling detection in cube ide and same time if  i2c  sensor activated then interrupt signal generated and Interrupt Call Back has been activated two times because LOW level interrupt time (t) .

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Nov 29, 2023 8:49 AM UTC

Hello,

What's the edge generated by the sensor if it gets interrupt the MCU? So you can define which edge detection  to configure from MCU side.

PS:

From STM32F103's DS :

The minimum pulse detected by an EXTI is 10ns:

SofLit_0-1701247665285.png

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.

2 replies

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Nov 29, 2023 8:49 AM UTC

Hello,

What's the edge generated by the sensor if it gets interrupt the MCU? So you can define which edge detection  to configure from MCU side.

PS:

From STM32F103's DS :

The minimum pulse detected by an EXTI is 10ns:

SofLit_0-1701247665285.png

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
MMARI.1
MMARI.1Author
Senior II
Nov 30, 2023 4:15 AM UTC

hi. thanks for details  :  The minimum pulse detected by an EXTI is 10ns:

Sensor Interrupt is Open Drain and active LOW .

Interesting Finding : Actually sensor producing TWO consecutive interrupt incase slow measurement and single interrupt pulse incase of Fast Measurement .

The minimum pulse detected by an EXTI is 10ns: Is informative and Will be solution for Fast Pulse .