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
Solved! Go to Solution.
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
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