Kinetis Processor Expert Keyboard Interrupt

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Kinetis Processor Expert Keyboard Interrupt

1,947 次查看
PabloA
Contributor II

Please, does anybody can explain me or give me any reference about how to configure a KeyBoard interrupt using Processor Expert with a MKE02Z microcontroller?

I couldn't find any Processor Expert component related.

Regards!

Pablo.

0 项奖励
回复
5 回复数

1,044 次查看
david_diaz
NXP Employee
NXP Employee

Hello Pablo,

In this case I recommend using the ‘Init_KBI’ component from Processor Expert.

This component provides initialization of the KBI, currently supported for Kinetis family module.

Peripheral Initialization Components provide a low-level hardware approach to initialize registers of the peripheral module. They are intended for experienced users.

Please find attached to this response a sample code using the mentioned component.

Hope this information will be useful for you.

Have a great day.

Best Regards,

David Diaz.

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

1,044 次查看
krzysztoflukasz
Contributor I

Hello David,

I try to use Processor Expert on KE02 to read the signals on the Pins when they appear. As there is no specific interrupt handler for each pin I am thinking how to utilize the KBI for that task. The problem is that I don't know how to setup and then use the pin when it is linked within the KBI component. If I need to check multiple pins how I can recognize - using KBI -  which one is already changing its state.  

BR,

Krzysztof

0 项奖励
回复

1,044 次查看
mindriot21
Contributor I

Hi Krzysztof.

I am currently experiencing the exact same issue you had above.

I have looked at the code and it would appear you can either use Processor Expert to create the code to handle the interrupt function but when you have multiple pins that can generate the interrupt, you can see which pin has generated it. Did you ever figure out an answer?

I have the sample code David uploaded but it doesn't handle the above problem.

Any help would be appreciated.

Kind regards

Adam

0 项奖励
回复

1,044 次查看
krzysztoflukasz
Contributor I

Hi Adam,

The thing I have done with it is that once I have the interrupt from KBI, I am checking which pin change the state with the condition in code.  I am using as well Bit Manipulation Engine to make fast access to those pins statuses. 

Depends what kind of signals you try to catch you can as well to try using timers to catch some pulses and use their irq to make something easier. In my case, it was now feasible. Or change the uC if you can - there are other in the family like KE15 that probably have more advanced interrupts, that can be assign per pin.

BR

Krzysztof

0 项奖励
回复

1,044 次查看
mjbcswitzerland
Specialist V

Hi Pablo

I can't help with PE but KBI support for all KE devices is include at

http://www.utasker.com/kinetis/FRDM-KE02Z.html

There is some additional information in the threads:

Re: Re: GPIO pin as interrupt source KEA-64

https://community.freescale.com/message/425331#425331

Regards

Mark

Kinetis: µTasker Kinetis support

KE: http://www.utasker.com/kinetis/FRDM-KE02Z.html / µTasker FRDM-KE02Z40M support / µTasker FRDM-KE06Z support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 项奖励
回复