How do you set up a keyboard interruption to the PTA1 and PTA3 pins?
Thank you.
Solved! Go to Solution.
Hello carlesls,
Thanks for your post.
Regarding how to configure PTA1 and PTA3 as KBI Pins, you can use the pin tool of the MCUXpresso Configuration Tool to complete it. For specific operations, you can refer to the attached video recording.
For more configuration questions, you can refer to the following web pages. I believe they will be very helpful.
Kinetis Processor Expert Keyboard Interrupt - NXP Community
Solved: External interrupts on KBI pins of MKE04Z - NXP Community
If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
Best Regards,
Celeste
Should I add this? Thank you.
SIM->SCGC |= SIM_SCGC_KBI0_MASK;
KBI0->PE |= KBI_PE_KBIPE_MASK;
KBI0->ES |= KBI_ES_KBEDG_MASK;
KBI0->SC |= KBI_SC_KBMOD_MASK;
NVIC_EnableIRQ(KBI0_IRQn);
Yes, I think you should add this.
Hello carlesls,
Thanks for your post.
Regarding how to configure PTA1 and PTA3 as KBI Pins, you can use the pin tool of the MCUXpresso Configuration Tool to complete it. For specific operations, you can refer to the attached video recording.
For more configuration questions, you can refer to the following web pages. I believe they will be very helpful.
Kinetis Processor Expert Keyboard Interrupt - NXP Community
Solved: External interrupts on KBI pins of MKE04Z - NXP Community
If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
Best Regards,
Celeste