KBI SP register

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,781件の閲覧回数
davidsherman
Senior Contributor I

I have an interrupt responding on a KBI interrupt pin.  However, when I look at the KBI_SP register to indicate which pin caused the interrupt, all bits are always set.  This is true even afer I write to the KBI_SC RSTKBSP bit to clear it.  This a MKE06Z128VLH4. I have confirmed that the address is correct for  both the KBI0_SP and KBI1_SP registers, but they are all set and don't appear to change.  Am I missing something?

0 件の賞賛
返信
1 解決策
1,506件の閲覧回数
mjbcswitzerland
Specialist V

David

You need to set the KBSPEN bit in KBIx_SC to configure the correct flag mode.

pastedImage_1.png

Regards

Mark

http://www.utasker.com/kinetis.html

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
1,507件の閲覧回数
mjbcswitzerland
Specialist V

David

You need to set the KBSPEN bit in KBIx_SC to configure the correct flag mode.

pastedImage_1.png

Regards

Mark

http://www.utasker.com/kinetis.html

0 件の賞賛
返信
1,506件の閲覧回数
mjbcswitzerland
Specialist V

David

I recently implemented a KBI module for KE02, KE04 and KE06 processors (there are two versions, whereby the KE06 has the more luxurious one).

The KBIs are simulated in the uTasker Kinetis simulator and allow individual user interrupts to be allocated to each of the pins.

I have a KE06 package including KBI operation at http://www.utasker.com/kinetis/FRDM-KE06Z.html

but haven't yet written up a module analysis. There is however some reference (for the simpler one) at

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

and some discussion of risk involved with individial interrupt assignement at

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

Regards

Mark

µTasker Kinetis support

0 件の賞賛
返信
1,506件の閲覧回数
davidsherman
Senior Contributor I

Ah, I feel sheepish.  That was the one thing I had overlooked in the documentation.  Thank you, Mark!  It's working now.

0 件の賞賛
返信
1,506件の閲覧回数
mjbcswitzerland
Specialist V

David

It is strange but I also missed it when I was developing and had the same issue the first time I tested.

Even after I had read all bit details, that one sort of blends into the white background of the user's manual, since it doesn't really make much sense as to what it does - initially...

Regards

Mark

0 件の賞賛
返信