Multiple Interrupt S32k148 configuration

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

Multiple Interrupt S32k148 configuration

ソリューションへジャンプ
2,131件の閲覧回数
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,118件の閲覧回数
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,119件の閲覧回数
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,112件の閲覧回数
dhirajtarole
Contributor III

Hi @VaneB ,

got it, thanks.

 

 

regards,

dhiraj

0 件の賞賛
返信