MPC57xx external interrupt

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

MPC57xx external interrupt

ソリューションへジャンプ
3,737件の閲覧回数
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,301件の閲覧回数
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,301件の閲覧回数
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,302件の閲覧回数
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,300件の閲覧回数
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