Olin wrote: > Preemptive multitasking is no possible on a PIC 16. It is > theoretically possible on a PIC 18 and 30 I seem to remember a discussion somewhere (maybe on the Microchip forum) about whether any of the PICs had an atomic test and set capability. The consensus seemed to be that this was not possible. Olin, do you know if this is correct? I think it's possible, e.g. on an 18F, if you use only high priority interrupts, but I'm not sure whether this covers every situation, such as low power or brownout conditions. Neil http://www.pixpopuli.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist