s32k144 interrupt service routine processing case

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

s32k144 interrupt service routine processing case

跳至解决方案
2,144 次查看
SW_Park
Contributor II

hello. I ask the question as follows.

SW_Park_0-1704932698727.png

During PORTE_IRQHandler operation by PTE15 interrupt,

How is it handled when a PTE16 interrupt occurs?

After completing the PORTE_IRQHandler operation, is the PORTE_IRQHandler function called again?

Otherwise, it is expected that missing or duplicate processing will occur.

-> If there is no re-call, it is thought that PTE16 interrupt processing will be missed.

-> If PORTE_IRQHandler is called again when a PTE16 interrupt occurs, it is thought that problems will occur due to duplicate processing of code.

0 项奖励
回复
1 解答
2,109 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@SW_Park

yes, it will call PORTE_IRQHandler again.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,110 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@SW_Park

yes, it will call PORTE_IRQHandler again.

0 项奖励
回复
2,100 次查看
SW_Park
Contributor II

I think it would be correct to put the INT_SYS_DisableIRQGlobal / INT_SYS_EnableIRQGlobal functions at the top and bottom of the PORTE_IRQHandler function, respectively, to pending other interrupts during IRQ processing, and to handle the pending interrupt after IRQ processing is completed.

tell me your opinions.

0 项奖励
回复
2,086 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@SW_Park

I don't think it is necessary since the process sequence is still the same.

if you have in doubt this, you can make some test for your options.

0 项奖励
回复
2,078 次查看
SW_Park
Contributor II

Does this mean there is no "Pre-emption" because the group priority is the same?

0 项奖励
回复
2,064 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@SW_Park

for all pins of PORTx share one Vector Address, so these is no difference in priority

Senlent_0-1704953339977.png

 

0 项奖励
回复