Ruben Jönsson wrote : > Reading the port register, modifying bits in the read value > and writing back the modified value is an example of an non- > atomic operation that can be interrupted. Well, only if you as the programmer allows that to happen. You can easily create non-interruptable "atomic" code blocks by manipulating the Global Interrupt Enable flag bit... Jan-Erik. _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist