Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Interrupt works in Keil simulator but not in target

2003-12-11 by Helge Fabricius-Hansen

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?
> 
> //Helge

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.