Multiple Interrupt S32k148 configuration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Multiple Interrupt S32k148 configuration

跳至解决方案
2,214 次查看
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 项奖励
回复
1 解答
2,201 次查看
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 项奖励
回复
2 回复数
2,202 次查看
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 项奖励
回复
2,195 次查看
dhirajtarole
Contributor III

Hi @VaneB ,

got it, thanks.

 

 

regards,

dhiraj

0 项奖励
回复