Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] help coding ISR in asm

2006-04-19 by Robert Adsett

Quoting anish n <aanishn@...>:
> i want to generate an interrupt from TMR0 every 4secs; and register a 
> FIQ handler for it. could any one please help me with this. i am 
> using GNU as assembeler.

While I'd do the prologue and epilogue in assembler there is no reason 
to not do
the main body in C.  Also no reason to use FIQ over IRQ given the information
you've presented so far.  0.25 Hz isn't exactly pushing the performance limits
of these micros.

Take a look at the newlib-lpc support in the download section at
http://www.aeolusdevelopment.com/  That has an interrupt epilogue and prologue
implementation.  Also some other interrupt utility setup routines (VIC etc..)

Robert

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.