Skip to main content
William Huang
Associate II
February 7, 2018
Solved

What's threshold voltage for external interrupt?

  • February 7, 2018
  • 8 replies
  • 3398 views
Posted on February 07, 2018 at 21:12

Hello, 

I'm just wondering what is the threshold voltage used to determine if an external interrupt due to falling or rising edge should occur. I'm attempting to find it in the datasheet, but unsure at which value to look at. 

For reference, I am using the stm32l476ve.

Many thanks!

    This topic has been closed for replies.
    Best answer by Bertrand DENIS
    Posted on February 07, 2018 at 22:54

    Below V_IL max you are sure that it will be seen as a 0, above V_IH min it is a 1. Between these two values it is grey area.

    8 replies

    henry.dick
    Associate II
    February 7, 2018
    Posted on February 07, 2018 at 21:30

    Check the datasheet for logic high and logic low levels.

    William Huang
    Associate II
    February 7, 2018
    Posted on February 07, 2018 at 21:57

    Thank you, I'm assuming I should look at the voltage input low (V_IL) and voltage input high (V_IH), correct?

    If that's the case, then let's say the V_IL = ~0.9V and ~V_IH = 2.3V. Is a falling edge determined as crossing the low input voltage line from a higher voltage? Likewise, rising edge is crossing the high input voltage line from a lower voltage?

    Also what should happen if we are in the area in between V_IL and V_IH? 

    Bertrand DENISBest answer
    ST Employee
    February 7, 2018
    Posted on February 07, 2018 at 22:54

    Below V_IL max you are sure that it will be seen as a 0, above V_IH min it is a 1. Between these two values it is grey area.

    T J
    Senior III
    February 7, 2018
    Posted on February 07, 2018 at 23:37

    With digital circuits we like Hi or Low not inbetween.

    Old cmos circuits with dangling pins would oscillate at high frequencies and draw current

    So, we have the Schmitt function on these 'Analog' type pins,

    the voltage must GO below Vil to become a 0 and GO above to ViH become a 1.

    Now, in between VilL and ViH, the signal is still stable.

    Tesla DeLorean
    Guru
    February 7, 2018
    Posted on February 07, 2018 at 23:54

    Think the hysteresis is quoted, last time I looked something like 200mV. See V_HYS in datasheet for the specific pins being used.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    henry.dick
    Associate II
    February 7, 2018
    Posted on February 07, 2018 at 23:41

    Yes, you are right. Those pins are logic 1 if the input is greater than vih on the rising edge, and logic 0 if input is below vil on the falling edge. For anything in-between, it retains it's prior state.

    William Huang
    Associate II
    February 8, 2018
    Posted on February 08, 2018 at 01:19

    Thanks for the information everyone, I have a better understanding now!