Interrupt priority in MC9S12DJ128

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

Interrupt priority in MC9S12DJ128

841 次查看
jtpark
Contributor IV

Hello,

 

I am using a MC9S12DJ128  for BCM.

Some problem occurred during CAN interface.

When I tried interrupt in "CAN0 errors", "CAN1 Transmit" didn't work.

Other interrupt was working well.(Timer, etc.)

Where can I check the interrupt priority?

 

Thanks.

标签 (1)
0 项奖励
回复
1 回复

736 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

An Interrupt priority is given by order in the vector table. There is no possibility to chang interrupt priority with exeption than there is one interrupt from I bit maskable interrupt which priority can be put higher from other I-bit maskable interrupts by means of register HPRIO.

There are two application notes which ususally solves issue with interrupts.

Issues with interrupt priority and nesting interrupts solves.

  

Issues with clearing flags when they all are in the same register.

So it looks like you are still going in the loop into CAN0 and all other higher interrupts which avoid you to serve CAN1 interrupts.

Best Regards, Ladislav

0 项奖励
回复