Content originally posted in LPCWare by JGold on Wed Aug 07 12:24:19 MST 2013
Addendum 2
Since I started this project years ago with Keil uVision 3 (eval version which has timed out), I had the thought of trying a newer version of uVision evaluation.  I installed uVision 4.72.  The code compiles without errors, but the interrupts still do not fire.  Even in the simulator, I can not get a break point in the timer ISR to hit.
The __attribute__ did not work with Keil.  I am having more problems with the Red Suite now, so I can not try it out there.
/************************************************************************/
/* Timer0 IRQ: Executed periodically                                          */
/**/
/************************************************************************/
void T0_IRQHandler (void) __irq 
{
unsigned char i;
/***************************  1 millisecond   **************************************/
//LED flash control is on 1 millisecond count
if(LEDA_R_flash_timr)
{
if(--LEDA_R_flash_timr)*LEDA_R_SET = LEDA_R_MASK;
}
T0IR        = 1;                      /* Clear interrupt flag               */
VICVectAddr = 0;                      /* Acknowledge Interrupt              */
}
The simulator shows the VIC set up correctly (as far as I can tell) and the timer shows an interrupt pending, just no ISR executing.
Is there a global interrupt enable flag?