Skip to main content
XLei.1
Associate II
Oct 21, 2020 2:48 AM UTC
Solved

Distinguish GPIO port from external interrupt

Hello,

I'm some confused how external interrupt is working with GPIO. If PA3 and PB3 are both configured as external interrupt, and assume the two interrupts are not coming simultaneously, how to determine which PIN generates the interrupt when EXTI3 is triggered?

Thanks in advance!

This topic has been closed for replies.
TDK
TDKBest answer
Oct 21, 2020 3:32 AM UTC

For a given pin number, only one port may be in EXTI mode at a time. It is not possible to have PA3 and PB3 be configured as external interrupt simultaneously.

"If you feel a post has answered your question, please click ""Accept as Solution""."

2 replies

TDK
TDKBest answer
Oct 21, 2020 3:32 AM UTC

For a given pin number, only one port may be in EXTI mode at a time. It is not possible to have PA3 and PB3 be configured as external interrupt simultaneously.

"If you feel a post has answered your question, please click ""Accept as Solution""."
XLei.1
XLei.1Author
Associate II
Oct 21, 2020 3:34 AM UTC

Thanks TDK, then it makes sense now.