How to check KBI Port

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to check KBI Port

638 Views
ricardcomas
Contributor III

Hello everyon, I've configured and working very well the KBI module, but, in the interrupt I've got the next code:

PE_ISR(interrupcio){

KBI0_SC |= KBI_SC_KBACK_MASK;
}

how can I check the port that has get a pulse? for instance, if I have two configured ports, wich of them has received the pulse?¿

Right now i receive the interrupt but from of any port, I need know the port that has activated the interrupt.

0 Kudos
2 Replies

496 Views
mjbcswitzerland
Specialist V

Hi

Which exact KE part do you use, since there are different KBIs in them.

Generally ones without the RSTKBSP flag don't have any indication of which pin caused the interrupt but others with this hold the interrupt source details in KBIx_SP.

Beware also that when one input is active others will be blocked so it is only possible to have one interrupt detected at any time.

Regards

Mark

Complete Kinetis solutions for professional needs, training and support: http://www.utasker.com/kinetis.html
Kinetis KE:
- http://www.utasker.com/kinetis/FRDM-KE02Z.html
- http://www.utasker.com/kinetis/FRDM-KE02Z40M.html
- http://www.utasker.com/kinetis/FRDM-KE04Z.html
- http://www.utasker.com/kinetis/FRDM-KE06Z.html
- http://www.utasker.com/kinetis/FRDM-KE15Z.html

uTasker: supporting >1'000 registered Kinetis users get products faster and cheaper to market

Request Free emergency remote desk-top consulting at http://www.utasker.com/services.html

Open Source version at https://github.com/uTasker/uTasker-Kinetis

0 Kudos

496 Views
martin_kraxa
Contributor I

Hello. Did you solve this problem? I have the same and need help... Thanks

0 Kudos