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.
Thanks a lot again.
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