MPC57xx external interrupt

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

MPC57xx external interrupt

跳至解决方案
3,719 次查看
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

标签 (1)
标记 (1)
1 解答
3,283 次查看
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

在原帖中查看解决方案

3 回复数
3,283 次查看
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

3,284 次查看
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

3,282 次查看
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