I am in need of a simple push button interrupt. I have searched high and low and tried may example however, I just cannot get anything working. Can someone provide me a working example? I just need a push button that goes to ground and interrupts my program and does a few things thats it.
Hi anthonyverfaillie,
Please download the SDK_2.2_MKL25Z128xxx4 and SDK_2.2_FRDM-KL26Z package refer Generating a downloadable MCUXpresso SDK v.2 package.
And then you can find the gpio input_interrupt example in it's folder. (For example: C:\SDK_2.2_FRDM-KL26Z\boards\frdmkl26z\driver_examples\gpio\input_interrupt)
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Anthony
Is this a problem with the HW that you use? If you have a FRDM-KL25Z PTA0 is is shared with the OpenSDA's SWD and pulled low.
See your other thread KL25Z GPIO Interrupt "IRQHandler" - did you try the code linked there? Don't be frightened by it - it is also FREE in case you need a solution.
Regards
Mark
P.S: I also attached a binary for the FRDM-KL25Z that shows interrupt operation on a falling edge on PTA16 (J2- 9)