GPIO Interrupt KL25Z

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GPIO Interrupt KL25Z

2,205件の閲覧回数
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. 

ラベル(2)
0 件の賞賛
返信
2 返答(返信)

1,736件の閲覧回数
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 件の賞賛
返信

1,736件の閲覧回数
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 件の賞賛
返信