how do you set up KBI0_IRQHandler and KBI1_IRQHandler interruptions?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how do you set up KBI0_IRQHandler and KBI1_IRQHandler interruptions?

55 Views
carlesls
Contributor II

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. 

Labels (1)
0 Kudos
Reply
2 Replies

3 Views
carlesls
Contributor II

Thanks a lot again. 

0 Kudos
Reply

16 Views
Celeste_Liu
NXP Employee
NXP Employee

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.

Celeste_Liu_0-1732162705827.png


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