cancel
Showing results for 
Search instead for 
Did you mean: 

external interrupts from same pin number in multiple ports

IVent.1
Senior

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?

2 REPLIES 2
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help.

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
Up vote any posts that you find helpful, it shows what's working..