This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Help with interrupt on lpc2368

Hi!

Im using a lpc2368 I need some help setting up external interrupt. I get square waves on P2.13 and P1.31 and want to get interrupts on the raising edge on these ports. How do I this? Im guessing I need to install my interrupt handler with:

VIC_Install_IRQ(DWORD IntNumber, void* HandlerAddr, DWORD Priority)

What is the input parameters for that function?

lets assume that we got these handlers:

void MyEINTHandler0(void) __irq{ //do something...

VICVectAddr = 0; // ACK the VIC
}

and

void MyEINTHandler1(void) __irq{ //do something...

VICVectAddr = 0; // ACK the VIC
}

to install them just run

VIC_Install_IRQ(???,(void *)MyEINTHandler0,???);
VIC_Install_IRQ(???,(void *)MyEINTHandler1,???);

but what is IntNumber and priority? Where do I set which port and bit to trigger the interrupts? Any good examples to look at?

Best wishes.

Parents Reply Children
No data