Does the volatile keyword for a variable (using C30 PIC24) guarantee an atomic operation when accessed regarding interrupts? i.e. if I declare a volatile DWORD elapsed_time and increment it in the timer interrupt, do I need to worry about disabling interrupts to access it in the main loop? I always do, just wondering if I could live without it, and can't think of a simple test to prove it. Thanks, Tony -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist