GPIO Interrupt KL25Z

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

GPIO Interrupt KL25Z

1,528 Views
anthonyverfaill
Contributor II

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. 

0 Kudos
2 Replies

1,059 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

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.

build SDK.PNG

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)

GPIO interrupt SDK.PNG

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,059 Views
mjbcswitzerland
Specialist V

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)

0 Kudos