cancel
Showing results for 
Search instead for 
Did you mean: 

Rising to Falling or Falling to Rising External Interrupt Detection

MMARI.1
Senior

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) .

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.

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 .