External Interrupt MPC5748g is not working, what do I miss?

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

External Interrupt MPC5748g is not working, what do I miss?

1,223 Views
naderkhamess
Contributor III

I am stuck for a while with External interrupt since its not working, whenever I connect the EIRQ with 3.3V, the code remains in the loop and doesnt jump to ISR.

Any suggestions please?

1.JPG2.JPG3.JPG4.JPG

5 Replies

959 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you have to also set the SIUL IMCR register

pastedImage_1.png

SIUL2.IMCR[669-512].R = 1;

BR, Petr

959 Views
naderkhamess
Contributor III

Hi Petr,

thank you for your answer.

I have tried it already and still not working. 

Any other suggestion ?

KR, Nader

0 Kudos
Reply

959 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

did you set the priority for the interrupt?

INTC.PSR[244].R = 0x8005;  //Set priority 5 for EIRQ11 interrupt, sent to Core 0

BR, Petr

959 Views
naderkhamess
Contributor III

Hi Petr,

It worked now. Thank you alot.

BR,Nader

0 Kudos
Reply

959 Views
naderkhamess
Contributor III

Hi Petr,

I also tried it and still nothing changed. :/

BR, Nader

0 Kudos
Reply