A step in the right direction
Looking at what happens to the VIC and External Interrupts panes, it's pretty obvious that the External Interrupt flag goes high and just stays there forever.
So, more pouring over the LPC user manual for me.
Turns out there was one step that wasn't in the timer example that relates to clearing external interrupts in the interrupt routine. The magic rune is:
EXTINT = EXTINT | 1; // Clear EINT0 to accept interrupts
So, if you put this in the pressed function in the example after:
VICVectAddr = 0; // Acknowledge Interrupt
the program will take interrupts while the button is pressed.
Progress!



0 Comments:
Post a Comment
<< Home