Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Having trouble getting interrupts to work on GNUARM + LPC2106

2005-06-28 by Richard

At 03:07 PM 6/28/2005, chabely_k99 wrote:

>Does anyone have a simple example including a startup.s file that I
>can compile in GCC that demonstrates how to use interrupts? I've
>looked at and have tried many examples. I can get the interrupt to
>fire once but never again. I think the interrupt isn't being reset
>correctly within the ISR. I'm usings the following ISR function. I
>can get the ISR to work correctly using the Imagecraft ARM compiler.
>Same LED.c file but different startup.s file. The Imagecraft compiler
>is doing something behind the scenes that allow the interrupts to
>work that I don't understand.

No, we don't do anything behind the scene. We just have good examples etc. 
There are some tricks to use the VIC, read the examples and docs carefully.


>void TimerMatch( void ) __attribute__ ((interrupt ("IRQ")));
>void TimerMatch( void )
>     {
>         p+=1;
>         LED_OFF ;
>
>     TIMER0_IR = 0x1;   // clr Timer interrupt
>     VICVectAddr = 0xFF;
>
>     }
>
>Thanks!

// richard (This email is for mailing lists. To reach me directly, please 
use richard at imagecraft.com)

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.