Interrupt priority in MC9S12DJ128

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Interrupt priority in MC9S12DJ128

410 Views
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.

Labels (1)
0 Kudos
1 Reply

305 Views
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 Kudos