I'm using LPC2378 for my current project. I want to configure Port2.7 Pin as an interrupt. I have already used up all the 3 External Interrupts(EXINT0,EXTIN1,EXINT2). It been said tat EXTINT3 Pin can be configured as an interrupt for a GPIO Pin, which i am not clear with.
Please help me in this regard,
Ninan, India
Didn't find your answer? Ask the community — no account required.
R
Rich Webb
EINT3 is bound to P2.13. However, you can setup a "GPIO interrupt" for pins on P0 and P2.
Rich Webb Norfolk, VA
N
ninan
Pin
Could u please let me know how to setup "GPIO interrupt" for
R
Rich Webb
From Chapter 10, section 5.6, using P2 bit 7 falling edge as an example, and with the PINSEL and DIR registers already setup:
Your compiler may have different symbolic names for the registers, and a symbolic name should probably be used for the VIC channel to mitigate typing errors.
Rich Webb Norfolk, VA
N
ninan
Thanks a lot Rich.
Your posting did help me a lot, but didn't work as desired. I wanted to generate an interrupt for the first falling edge of a clock cycle. But now, inspite of absence of a falling edge an interrupt is generated for the corresponding Pin.
Here i have configured P2.7(CLOCK Signal) as a GPIO Pin which generates an interrupt in External
Port2.7
N
ninan
Thanks a lot Rich for your kind and timely response.
Here i have configured P2.7(CLOCK) as a GPIO Pin which is configured to generate an interrupt on External Interrupt3 if a falling edge is detected. Now, when my device is connected, an interrupt is generated inspite of absence of a falling edge.
I have pasted my source code below for your kind reference. Please help me in this regard.