LPC5536 PINT not working when set to edge triggered

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

LPC5536 PINT not working when set to edge triggered

554件の閲覧回数
orange_chris
Contributor II

Hello,

I am trying to get an external interrupt working on a falling edge. My code is based on the driver example from MCUXPresso which works on the associated eval board. It looks like this:

INPUTMUX_AttachSignal(INPUTMUX, kPINT_PinInt0, kINPUTMUX_GpioPort0Pin26ToPintsel);
NVIC_SetPriority(PIN_INT0_IRQn , 1);
PINT_PinInterruptConfig(PINT, kPINT_PinInt0, kPINT_PinIntEnableFallEdge, callback_fn);
PINT_EnableCallbackByIndex(PINT, kPINT_PinInt0);

On the pin, there is ususally 3V3 level and when an external event happens, the pin is pulled to low for 200us.

I get no reaction, the callback is never called. Interestingly, if I change the interrupt config to low level, the callback gets called so the basic configuration can't be that bad. I suspect some strange filtering or something like that is going on. Can anybody help me?

Regards,
Christian

0 件の賞賛
返信
2 返答(返信)

528件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @orange_chris 

Do you have LPCxpressso55s36-evk board? If yes, how about test your project ton EVK board?

If still have same issue, please send your project to me, I help you check.

 

 

BR

Alice

0 件の賞賛
返信

516件の閲覧回数
orange_chris
Contributor II

Hello, I've got it running in the meantime. It was a init order problem. The IOCON was not clocked yet.

0 件の賞賛
返信