Kinetis Processor Expert Keyboard Interrupt

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

Kinetis Processor Expert Keyboard Interrupt

2,011件の閲覧回数
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,108件の閲覧回数
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,108件の閲覧回数
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,108件の閲覧回数
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,108件の閲覧回数
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,108件の閲覧回数
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 件の賞賛
返信