Multiple Interrupt S32k148 configuration

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

Multiple Interrupt S32k148 configuration

Jump to solution
2,172 Views
dhirajtarole
Contributor III

Hi,

I  am trying to set multiple interrupt on PORTC eg. PTC10,PTC12 ,PTC13 but it is not working correctly.

i am using below method to install ISR.

dhirajtarole_0-1663587621903.png

 

But while using PORTD--> PTD31 and PORTC -->PTC12 it is working fine.

dhirajtarole_1-1663587706239.png

Query - i want to use multiple interrupt of same port (eg. from PORTC --> PTC10,PTC12....etc).

EVB - S32K148

SDK 3.0.0

 

0 Kudos
Reply
1 Solution
2,159 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @dhirajtarole 

The interruption is just defined per port that’s why when you are trying to implement multiple interrupts on the same port, it does not work but when using different port it does.To work with multiple interruptions in the same port, you must check which pin of the port has its interrupt flag enabled in handler function.

You can see the pins that have received an interrupt on register PORT_ISFR, section 12.5.6 of the RM. 

 

B.R.

VaneB

 

 

View solution in original post

0 Kudos
Reply
2 Replies
2,160 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @dhirajtarole 

The interruption is just defined per port that’s why when you are trying to implement multiple interrupts on the same port, it does not work but when using different port it does.To work with multiple interruptions in the same port, you must check which pin of the port has its interrupt flag enabled in handler function.

You can see the pins that have received an interrupt on register PORT_ISFR, section 12.5.6 of the RM. 

 

B.R.

VaneB

 

 

0 Kudos
Reply
2,153 Views
dhirajtarole
Contributor III

Hi @VaneB ,

got it, thanks.

 

 

regards,

dhiraj

0 Kudos
Reply