GPIO as Interrupt in LPC1768

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

GPIO as Interrupt in LPC1768

跳至解决方案
1,943 次查看
jagan_k
Contributor II

Hi All,
       We are using all the interrupt in LPC1768 and we need an another interrupt,is there any way to use one of the GPIO pins as Interrupt.
Or how can i use GPIO as one event trigger?

Please post your suggestions

0 项奖励
回复
1 解答
1,934 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Jagan,

As the following Table, P2_10, P2_11,P2_12 and P2_13 pins can function as the pin interrupt source for LPC176x.

If you have used all of them, I suppose that you can the capture feature of CTimer to extend the pin interrupt.

For example, the P1_18 and P1_19 are capture pin of Timer1, you can run the timer1, you can define the triggering edge by the Capture Control Register, when you enter the ISR, you can poll the Interrupt Register (T[0/1/2/3]IR to check if capture pin triggers the interrupt, if it is , do what you want.

Hope it can help you

BR

XiangJun Rong

xiangjun_rong_2-1626054259610.png

 

xiangjun_rong_1-1626053875332.png

 

xiangjun_rong_0-1626053372013.png

 

在原帖中查看解决方案

1 回复
1,935 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Jagan,

As the following Table, P2_10, P2_11,P2_12 and P2_13 pins can function as the pin interrupt source for LPC176x.

If you have used all of them, I suppose that you can the capture feature of CTimer to extend the pin interrupt.

For example, the P1_18 and P1_19 are capture pin of Timer1, you can run the timer1, you can define the triggering edge by the Capture Control Register, when you enter the ISR, you can poll the Interrupt Register (T[0/1/2/3]IR to check if capture pin triggers the interrupt, if it is , do what you want.

Hope it can help you

BR

XiangJun Rong

xiangjun_rong_2-1626054259610.png

 

xiangjun_rong_1-1626053875332.png

 

xiangjun_rong_0-1626053372013.png