Interrupt limitation on LPC552x

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

Interrupt limitation on LPC552x

881 次查看
JRIIS
NXP Employee
NXP Employee

Hi - I Need to understand the limitation of Interrupts on LPC552x.

From DS it Documented:

Up to eight GPIOs can be selected as pin interrupts (PINT), triggered by rising,
falling or both input edges.

I need 14 GPIO for Interrupts!

Can I use the Pin interrupt input multiplexing if I have some interrupts that dont come at the same time?

Could I identify from witch pin an interrupts come from when using the Pin interrupt input multiplexing?

Thanks,

/Jakob

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

858 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @JRIIS,

As you mention, the PINT only has 8 pins available but you can also use the GINT module to multiplex more inputs and trigger the interruption, unfortunately, in this peripheral is not possible to identify the pin using the registers but you could workaround this reading the state of the pin using the GPIO.PIN register.

In the PINT module is possible to identify which pin is the one that trigger the interrupt, if you look at the pint example in the SDK, the first parameter in the callback is to identify which pin is the one that trigger the interruption.

Let me know if this helps you.

Best Regards,

Alexis Andalon

0 项奖励
回复