Skip to main content
IVent.1
Senior
Feb 6, 2025 3:17 PM UTC
Solved

external interrupts from same pin number in multiple ports

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.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Feb 6, 2025 5:27 PM UTC

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

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

2 replies

mƎALLEm
ST Technical Moderator
Feb 6, 2025 3:31 PM UTC

You cannot do that.

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

SofLit_0-1738855740031.png

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Feb 6, 2025 5:27 PM UTC

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

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..