Skip to main content
DBurr
Senior
March 4, 2020
Solved

How do you differentiate GPIO interrupts that share the same EXTI interrupt?

  • March 4, 2020
  • 4 replies
  • 1228 views

Hi, I have a design where I have multiple GPIO interrupts and some share the same interrupt input line, for example EXTI10_15. How can I differentiate in the interrupt callback routine which GPIO triggered the interrupt aside from reading these GPIOs' input states?

Thanks,

Doug Burrell

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

They should flag individually, and OR together to generate the IRQ

Check EXTI->PR register (on F4 for example)

4 replies

waclawek.jan
Super User
March 4, 2020

0690X00000DYiQwQAL.png

JW

DBurr
DBurrAuthor
Senior
March 4, 2020

Thanks, that's really helpful.

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
March 4, 2020

They should flag individually, and OR together to generate the IRQ

Check EXTI->PR register (on F4 for example)

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

Thanks for the info! That's exactly what I was looking for.