Yahoo Groups archive

Lpc2000

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

Thread

help coding ISR in asm

help coding ISR in asm

2006-04-19 by anish n

hello,
 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.
 

 Anish N; aanishn@... 
				
---------------------------------
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

[Non-text portions of this message have been removed]

RE: [lpc2000] help coding ISR in asm

2006-04-19 by Andrew Berney

Is there a reason you're doing it in assembler? It's fairly straightforward
in C that's all.

Andy
Show quoted textHide quoted text
-----Original Message-----
From: lpc2000@yahoogroups.com [mailto:lpc2000@yahoogroups.com]On Behalf
Of anish n
Sent: 19 April 2006 06:51
To: lpc2000@yahoogroups.com
Subject: [lpc2000] help coding ISR in asm




 hello,
 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.


 Anish N; aanishn@...

---------------------------------
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

[Non-text portions of this message have been removed]




Yahoo! Groups Links

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

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.