KBI in PA/PT16

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

KBI in PA/PT16

2,079件の閲覧回数
lucyperek
Contributor II

Hi Guys,

has anybody encountered  very strange behaviour of a/m ?

I need to use some pins as KBI. On port B and on port A. I initialize KBI EXACTLY as in the RM (page 273). All corresponding pins are enabled in KBI0PE. Interrupt vector set. And eg. pin B2 generates an interrupt, pin A0 doesn't. Falling edge, pin enabled, pull-up enabled (I see on the scope that there is nice, falling edge).

Nothing happens at all. Is there any other hidden trick ? What can be the reason ?

regards

Jacek

 

0 件の賞賛
返信
2 返答(返信)

2,040件の閲覧回数
lucyperek
Contributor II

Guys, the problem as above is solved :

I have checked carefully what timer channels share I/O pins in SHxx and PTxx. So... there are differences which I haven't noticed
before (as said before I do migration from SH to PA/PT/PL for bigger flexibility).
It has occured that A0 pin was in other part of program configured as Input Capture however no interrupt was assigned. The pin
was working as just normal I/O.  I have simply removed this command and the KBI interrupt on A0 has started to work !

So it looks that KBI will be blocked in shared pin if another module, let's say timer is configured to use it, however pin remains under
normal I/O control. What misled me was that this pin was normally operating as I/O pin.
Maybe it would be good if some comments on it could be mentioned in RM in the KBI paragraph.

"If you intend to use any shared pin as KBI be sure that there is no other configuration of shared module applied". Something like that.

 

regards

Jacek

0 件の賞賛
返信

2,063件の閲覧回数
vicentegomez
NXP TechSupport
NXP TechSupport

I will answer on the case that you created

 

Have a good day.

 

0 件の賞賛
返信