how i can toggle led using external interrupt ?

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

how i can toggle led using external interrupt ?

1,052件の閲覧回数
mesdouaabderraz
Contributor III

using the FRDM-K82F kit, I take the example available about input interrupt.  in the following path in my K82F’s SDK Folder:

"SDK_2.2_FRDM-K82F.zip\boards\frdmk82f\driver_examples\gpio\input_interrupt".

But I can not connect my external button (Not the button available on the kit) . I do not know if I was wrong on the pine where I must plug the button (i used PORTA1). Or else I skipped a step in my code Which you will find enclosed.

Please if anyone can help me, by Specifying the steps required for programming, Or he has an example of code withe toggle pine.

It is for an urgent project, 

Thank you for replying quickly please.

Iva Dorazinova

Erich Styger

@IvanRuiz

Original Attachment has been moved to: input_interrupt.rar

タグ(1)
0 件の賞賛
返信
1 返信

892件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

You just need to modify the code refer the image shown below:

PTA1 input_interrupt SDK_2.3.0_FRDM-K82F.jpg

But you need to notice the PTA1 is connect to FXOS8700CQ. And this pin is default as JTAG_TDI function.

PTA1 FRDM-K82F.jpg

PTA1 ALT7 default JTAG_TDI.jpg

Best Regards,

Robin

 

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

0 件の賞賛
返信