Bob Axtell wrote: > For example, most people have a task that occurs when counterA counts > down to 0, and > another when counterB counts down to zero, etc. But if they are > chained together, there > will be a situation where all the tasks will happen in the same > interrupt. The best way to > solve this is to stagger the tasks by jump tables so that they CAN'T > occur at the same time. Or each counter is decremented in the interrupt routine and a flag is set when it expires. The flags are then handled by the foreground code. ****************************************************************** 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