GPIO as Interrupt in LPC1768

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GPIO as Interrupt in LPC1768

Jump to solution
1,459 Views
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 Kudos
Reply
1 Solution
1,450 Views
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

 

View solution in original post

1 Reply
1,451 Views
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