Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] nested interrupts doubt

2005-07-05 by Dave VanHorn

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