how do you set up KBI0_IRQHandler and KBI1_IRQHandler interruptions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am polling the pins PTA and PTB to get the state/value of the pin but I want to use the KBI0_IRQHandler and KBI1_IRQHandler for this pins... Is it possible?
A secondary question is it better than polling in terms of flash memory?
Thanks for all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What does ALT0, ALT1, ALT2, means...? Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The full name of ALT is "alternative", which means other options different from the default way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I choose the keyboard interrupt for the pta1 and the pta3. And then I updated the code.
Then I understand that I have to use some mask and activate the interruption.
But still the interruption is not being triggered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot again.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello carlesls,
Thanks for your post.
For the first question, the answer is yes. I know that you are using the MKE04Z8. Specifically, you can refer to "10.2.1 Signal Multiplexing and Pin Assignments" in the Reference manual, as shown in the following figure.
For the second question, if I understand correctly, you are asking which one is better between polling and interrupts from the perspective of memory. I think interrupts are better. Polling will take up a large amount of processor time and consume CPU resources.
Hope below information can helps.
Best Regards,
Celeste
