Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: nested interrupts doubt

2005-07-05 by aswinefy2003

--- In AVR-Chat@yahoogroups.com, Dave VanHorn <dvanhorn@d...> wrote:
> At 12:13 AM 7/5/2005, aswinefy2003 wrote:
> >I am using iccavr compiler for atmega 32
> >
> >i want to use nested interrupt
> >inside  uart rxc isr .How can i implement it
> 
> First, take your brain out of your skull, and bash it with a 
mallet...
> 
> Nested interrupts are a very bad idea.
> If you think you need to do this, you almost certainly are trying to 
> run WAY too much code in the ISR.
> 
> ISRs should react to the event, and exit.
> Let the foreground code pick up the data and decide what to do with 
it.
> 
> Drop your char in a buffer, check buffer status for asserting 


perhaps you may not know my problem.I have a int1  routine which 
should be seved instantly for some critical issue .SO even if the 
controller is executing other isr,s or code ,it should respond 
instantly to int1 interrupt.That is it should have the top most 
priority. 
Perhaps you may not 
> handshake, and bail out.

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.