AnsweredAssumed Answered

Multiple GPIO interrupts

Question asked by Andres L. Bleda on Jun 24, 2016
Latest reply on Jun 24, 2016 by Jorge Antonio Alcala Vazquez

Hi everyone,

 

I am a bit lost with the GPIO interrupts configuration, I hope you can guide me. (I actually use the KL02Z32VFM4 processor and IAR as a Software Tool)

I would like to activate two different input pins with different interrupt routines, specifically PTB3 and PTB4 pins.

At this moment I have one of the interrupt pins working (PTB3) with its own interrupt routine. I use the PORTB_IRQHandler, but I do not know how to configure the processor to distinguish between the two interrupt port pins.

Are there different IRQHandlers to differentiate between these two GPIO pins? Do I have to check the specific inturrupted pin in the same IRQHandler routine? What is the proper way of doing it?

 

Thanks a lot for your help.

Outcomes