MPC57xx external interrupt

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

MPC57xx external interrupt

Jump to solution
1,599 Views
jefferson_ll
Contributor III

Hi NXP,

 

I have used MPC57xx platform in my project.

There is a question confused me about GPI and interrupt status.

I use PA2 as GPI.

The following sitting is PA2 config setting.

 

SIUL2.DIRER0.B.EIRE2 = 0 ;

SIUL2.DISR0.R = 1<<2;

SIUL2.IREER0.B.IREE0 =0 ;
SIUL2.IFEER0.B.IFEE0 = 1;


SIUL2.MSCR[2].B.SSS = 0 ;
SIUL2.IMCR[175].B.SSS = 1 ;


SIUL2.MSCR[2].B.OBE = 0;
SIUL2.MSCR[2].B.ODE = 0;
SIUL2.MSCR[2].B.IBE = 1;
SIUL2.MSCR[2].B.PUS = 1;
SIUL2.MSCR[2].B.PUE = 1;


SIUL2.DISR0.R = 1<<2;
// SIUL2.DIRER0.B.EIRE2 =1; //enable "external interrupt request_2"


After above PA2 config. and Interrupt setting I have always read "SIUL2.DISR0.R" and handly tie PA2 high or low to generate edge trigger.


Unfortunately, I always can't get any external interrupt status .

 

Does there something wrong in the above setting?


Please help me or give me some reference code.

Thanks


Best regards,
Jeff

Labels (1)
Tags (1)
1 Solution
1,164 Views
martinkovar
Contributor II

Hi Jeff,

we have already resolved this issue via NXP support case, but I will place my answer also here.

Please see example in the attachment. It shows, how to correctly configure external interrupt.

Regards,

Martin

View solution in original post

3 Replies
1,164 Views
martin_kovar
NXP Employee
NXP Employee

Hi Jeff,

 

we have already resolved this issue via NXP support case, but I will place my answer also here.

 

Please see example in the attachment. It shows, how to correctly configure external interrupt.

 

Regards,

Martin

1,165 Views
martinkovar
Contributor II

Hi Jeff,

we have already resolved this issue via NXP support case, but I will place my answer also here.

Please see example in the attachment. It shows, how to correctly configure external interrupt.

Regards,

Martin

1,164 Views
jefferson_ll
Contributor III
Hi Martin,
I have found something wrong setting in IREER0 after modified it the external interrupt ISR could be triggered.
Thanks for your help.

Best regards,
Jeff