Thanks for the ideas. I have never used sleep with interrupt in more than 15 years of programming= PIC's so that was a new idea for me. thanks Chris. A flag would do the job. I just wanted to ensure two branches were not cal= led between interrupts. Thanks again for the ideas Bob --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .