Skip to main content
Explorer
March 18, 2024
Solved

EXTI Interrupt conflict

  • March 18, 2024
  • 2 replies
  • 1619 views

Hello,

I have a interrupt conflict between two peripherals on pins PK7 and PI7. I am aware that these two end up on same EXTI7 interrupt mux, hence conflict in interrupt occurs. I am wondering if there is a way to separate these interrupts on different controllers perhaps? Re-designing the HW is not really possible or very hard at this stage 

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Hello,

    In the EXTI interrupt handler read the two pins status (read IDR register) and check which one was the origin of the interrupt.

    But you need to ensure that from the interrupt firing and when reading the GPIO pin input the status of the pin didn't change.

     

    2 replies

    mƎALLEmAnswer
    Technical Moderator
    March 18, 2024

    Hello,

    In the EXTI interrupt handler read the two pins status (read IDR register) and check which one was the origin of the interrupt.

    But you need to ensure that from the interrupt firing and when reading the GPIO pin input the status of the pin didn't change.

     

    Super User
    March 18, 2024

    You cannot have an interrupt on PK7 and PI7 at the same time. This is a hardware limitation. Look at EXTI_EXTICR1 for the underlying hardware limitation. There is no solution which allows have GPIO pin interrupts on multiple ports for the same pin number.

    TDK_0-1710765019257.png