> Not sure what you mean by Preemptive but if you are talking about running > three or four simple tasks in a timely manner, there may be a simple way. > What are you trying to do? Well, pre-emptive would mean that the code execution and transition to next code routine would be controlled by some superior process, as opposed to being cooperative and controlled by each routine. This would allow each routine to be alloted some amount of execution time. (pre-emptive=linux multitasking cooperative=windows 3.1 MT) Likely on a PIC it would not be of much value because the p16 only has 8 levels of stack. I am not trying to do anything except perhaps suggest that it would be possible to do this on a p16 if anyone needed to use it for something or other. Just got bored =P > Bill -- andrew -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist