Interrupt priority in MC9S12DJ128

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

Interrupt priority in MC9S12DJ128

849件の閲覧回数
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 返信

744件の閲覧回数
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 件の賞賛
返信