Tony Vandiver wrote: > Does the volatile keyword for a variable (using C30 PIC24) guarantee an > atomic operation when accessed regarding interrupts? In addition to what the others already wrote: In the C language definition, "volatile" doesn't guarantee much useful. You always have to consult your specific compiler's manual if you really want to know what it does. AFAIK there are compilers where it doesn't do anything, as anything that you may want to use it for needs some kind of memory barrier anyway -- which you have to specify explicitly (with embedded assembly or operating system calls). Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist