cancel
Showing results for 
Search instead for 
Did you mean: 

Handling multiple interrupts on single EXTI line

manoj23
Associate II
Posted on January 17, 2013 at 05:20

Hi all,

I want to use a multiple interrupts on the single EXTI line. In my case I want to handle interrupts of PF8 and PG8 pins on EXTI_Line8 so how can i do that? Do you have any sample code for that? When I initially define EXTI_Line8 for both pins PF8 and PG8 then my device get stuck in EXTI_GetITStatus function, I think controller is unable to identify EXTI_Line8 for both pins. So how can I handle that?

Thanks & Regards

Jonam
5 REPLIES 5
Posted on January 17, 2013 at 05:53

You'll need to gate it externally, or use a priority decoder. Or use different pins.

Someone asked a similar question the other week.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
manoj23
Associate II
Posted on January 17, 2013 at 06:20

Hi clive1,

Thanks for your reply. How can i get it externally? I cant use different pin.

manoj23
Associate II
Posted on January 17, 2013 at 06:33

Cant we handle it from software side?

Posted on January 17, 2013 at 13:52

Cant we handle it from software side?

You could poll them in a SysTick interrupt.

In hardware you could OR high going signals externally into a single pin, a then have the other pin look at one of the sources.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
manoj23
Associate II
Posted on January 19, 2013 at 12:54

Hi clive1,

Thanks buddy. I have done the same polling method and it works, not properly but yes it is working. Not properly means you know task which i can perform properly using EXTI line can not be perform properly by polling method, but still it is working so no problem.

Thanks & Regards

JoNaM