Using GPIO2 interrupts with LPC2478

Started by "tyc...@gotadsl.co.uk [lpc2000]" December 5, 2014
Hi

I am trying to using P2.27 and P2.26 as input interrupt pins.
I understand the these interrupts shares the EXINT3 interrupt vector

Has anyone have an example using this function

Regards

Jean-Jacques

An Engineer's Guide to the LPC2100 Series

Basically, turn on the interrupt and register the handler with the VIC.
Then enable the pin interrupts using IO2IntEnR for rising edge or IO2IntEnF for falling.
In your interrupt handler you then check what pins have active interrupts with
IOxi20IntStatR or IO2IntStatF and then clear them once acted on using IO2IntClr

Baldur

On Fri, Dec 05, 2014 at 02:57:04AM -0800, t...@gotadsl.co.uk [lpc2000] wrote:
> Hi
>
>
> I am trying to using P2.27 and P2.26 as input interrupt pins.
> I understand the these interrupts shares the EXINT3 interrupt vector
>
>
> Has anyone have an example using this function
>
>
> Regards
>
>
> Jean-Jacques

Posted by: Baldur Gislason