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...
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.
Well, scattering essentially the same question over 2 different threads doesn't help:
http://www.keil.com/forum/docs/thread16866.asp