At 04:49 PM 2/08/2007, you wrote: >If I could Test (save) and Disable Interrupts with an indivisible >instruction, run the process then return the original Global >Interrupt state I would feel a bit safer... No REALLY sure what you are trying to do but here we go.... There are no INVISIBLE instructions...that I can see...... :-) but you can save the status register (SREG), do testing on bits or whatever, and then restore the status register which SHOULD re enable interrupts. Regards John Samperi ******************************************************** Ampertronics Pty. Ltd. 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA Tel. (02) 9674-6495 Fax (02) 9674-8745 Email: john@ampertronics.com.au Website http://www.ampertronics.com.au *Electronic Design * Custom Products * Contract Assembly ******************************************************** -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.2/931 - Release Date: 1/08/2007 4:53 PM
Message
Re: [AVR-Chat] ATmega128, flags, semaphores and interrupts
2007-08-02 by John Samperi
Attachments
- No local attachments were found for this message.