Enabling interrupts from within an ISR, on humble microprocessors, is a very bad idea. Can't you just process the UART RXC char (store in a buffer) and quickly dismiss the interrupt - process the newly arrived char later in the non-ISR code? This is the conventional way to do this. Otherwise, if you read the char and store it, then enable interrupts, you'll be OK >IF< you exit this ISR before another uart interrupt happens. That's hard to assure, since some other ISR may take the CPU for some indeterminate time. -----Original Message----- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of aswinefy2003 Sent: Monday, July 04, 2005 10:14 PM To: AVR-Chat@yahoogroups.com Subject: [AVR-Chat] nested interrupts doubt I am using iccavr compiler for atmega 32 i want to use nested interrupt inside uart rxc isr .How can i implement it .Should i have to do anything with the stack size.Plase suggest some c code. Yahoo! Groups Links
Message
RE: [AVR-Chat] nested interrupts doubt
2005-07-05 by stevech
Attachments
- No local attachments were found for this message.