Hi all,
I am working with KEA128 for switch application, i need to read status of a switch using GPIO interrupt so how do i go about this (alternative would be to use KBI but i do not want to use that) ??
Hi Jashan Mahadevu,
I suggest you use the NMI pin or IRQ(PTA5, PTI0-6), it has the interrupt, otherwise you just can use the KBI or GPIO polling.
Except the NMI and IRQ pin, other GPIO don't support the interrupt, you just can read the GPIO state by polling.
Wish it helps you!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Zhou,
I do not want to use GPIO polling since i am working with all the modules of KEA128 and also monitoring them. So how do i work with KBI for more number of switches (to be specific 12 switches), how do i work around the ISR or is there any other method ??
Hi Jashan Mahadevu,
Do you mean you need 12 IO interrupt?
For KBI module, you need to take care of this point:
So, if in the same KBI module, only all the KBI pin is deasserted, then one KBI pin press can be enter interrupt, otherwise, the new KBI pin event will be ignored.
Please take care of the KBI limitation at first.
For the pin interrupt, there only NMI, IRQ and KBI interrupt!
Wish it helps you!
Jingjing
Jashan
The KEA128 has a single IRQ line that can be multiplexed to a selection of pins.
The IRQ can be programmed to be edge or level sensitive.
If you need just a single IRQ line this is suitable. For more that one interrupt KBI is very similar since it can also be programmed for the same characteristics but has more inputs.
Regards
Mark
Kinetis: http://www.utasker.com/kinetis.html
KEA: http://www.utasker.com/kinetis/TRK-KEA8.html / http://www.utasker.com/kinetis/TRK-KEA64.html / http://www.utasker.com/kinetis/TRK-KEA128.html
For the complete "out-of-the-box" Kinetis experience and faster time to market