how to set up a keyboard interruption to a gpio pin?

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

how to set up a keyboard interruption to a gpio pin?

ソリューションへジャンプ
1,905件の閲覧回数
carlesls
Contributor II

carlesls_0-1731922632278.png

How do you set up a keyboard interruption to the PTA1 and PTA3 pins?

Thank you. 

ラベル(1)
0 件の賞賛
返信
1 解決策
1,849件の閲覧回数
Celeste_Liu
NXP Employee
NXP Employee

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

元の投稿で解決策を見る

3 返答(返信)
1,786件の閲覧回数
carlesls
Contributor II

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);

0 件の賞賛
返信
1,738件の閲覧回数
Celeste_Liu
NXP Employee
NXP Employee

Yes, I think you should add this.

0 件の賞賛
返信
1,850件の閲覧回数
Celeste_Liu
NXP Employee
NXP Employee

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