Skip to main content
Visitor II
May 15, 2010
Question

Is it possible to set different EXTI trigger condition at same port ?

  • May 15, 2010
  • 4 replies
  • 1041 views
Posted on May 15, 2010 at 04:29

Is it possible to set different EXTI trigger condition at same port ?

    This topic has been closed for replies.

    4 replies

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:08

    Hi,

    no it's not possible. Configuration refers to the whole port.

    brazov

    jeffrey23Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:08

    In STM8S103F3, I used both PC.3 and PC.6 as falling edge trigger source.

    But how to distinguish them during EXTI_PORTC_ISR (IRQ5 interrupt service routine) ?
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:08

    You must enable both falling and rising edge on that port.

    And after you must discriminate every interrupt on that port with an xor manually

    It's complicated but this is the way.

    b.r.

    Spectre

    jeffrey23Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:08

    Hi Spectre,

    Thanks for your input. 

    Is there an easier way ?

    However, I got a solution finally.