D. Jay Newman wrote: >>> 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. >> >> Why is it not possible at the very least by temporarily disabling >> interrupts? Also the 30F do have a bit test and set instruction. > > It is *possible* to do preemptive multitasking. I just can't see > any reason to actually use it. But the question wasn't about preemptive multitasking. It was about atomic test and set capability. ****************************************************************** Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC consultant in 2004 program year. http://www.embedinc.com/products -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist