AnsweredAssumed Answered

Different interrupts from the same port

Question asked by gsanchez on Jan 19, 2013
Latest reply on May 22, 2014 by James Vasil

Hello. I have the following scenario in a kinetis k60 custom board:

On the same port (for example PTE), 'x' pins configured as inputs (for example for switch buttons).

I configure a component GPIO_LDD in processor expert for those inputs. Of course, for one component, it is only one the OnPortEvent function created. But I want that each input execute a different action. If a configure a different component from every input, I have the error that the Interrupt is already used. So, here is my question: How can my program execute a different action from interrupts that become from the same port but different pins? Or, in the other way, how can I detect the pin (not the port) that generate the interruption?

 

Additional info: The project is bareboard (by now), and I use Codewarrior v10.2.

 

Thanks for your help.

 

PS: English is not my native language.

Outcomes