KBI in PA/PT16

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

KBI in PA/PT16

1,716 Views
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 Kudos
Reply
2 Replies

1,677 Views
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 Kudos
Reply

1,700 Views
vicentegomez
NXP TechSupport
NXP TechSupport

I will answer on the case that you created

 

Have a good day.

 

0 Kudos
Reply