With some help from Reinhard Keil the problem was solved...
Seams like the only thing missing was the acknowledge to the VIC
before leaving the interruptfunction.
To fix the other problem I moved out the code to a function.
void tc0 (void)
{
TimerUpdate();
timeval++;
TIMER0_IR = 1; // Clear interrupt flag
-> VICVectAddr = 0; // Acknowledge Interrupt
}
Thanks everyone...
--- In lpc2100@yahoogroups.com, "helgefh2003" <helge.fabricius@t...>
wrote:
> Hi,
> --------------------------------------
> The example project from Keil running Timer0 as interrupt source,
> works in the simulator but in the target there is never an
interrupt
> generated. Rewriting it, polling the interrupt flag works both in
> the simulator and the target.
>
> http://www.keil.com/download/files/lpc2100_blinky.zip
>
> Chip used is LPC2106.
>
> Anyone having a clue?
>
> //HelgeMessage
Re: Interrupt works in Keil simulator but not in target
2003-12-11 by Helge Fabricius-Hansen
Attachments
- No local attachments were found for this message.