Skip to main content
Graduate
February 6, 2025
Solved

external interrupts from same pin number in multiple ports

  • February 6, 2025
  • 2 replies
  • 496 views

If I have 2 external devices, one mapped on GPIOC0 and another on GPIOG0 of the micro, so they generate the same EXTI0 interrupt, how is it possible to distinguish which of them is calling the interrupt? I mean, is it possible to read effectively the GPIO state (C0 or G0)? or doing this can cause any trouble?

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    If they associate with different TIM or channels, perhaps use those as a means to have them interrupt

    2 replies

    Technical Moderator
    February 6, 2025

    You cannot do that.

    The EXTI is configured for one IO and you can't assign it to two IOs:

    SofLit_0-1738855740031.png

     

    Graduate II
    February 6, 2025

    If they associate with different TIM or channels, perhaps use those as a means to have them interrupt