This should be a simple problem, but I've missed the solution. I'm programming a 16F684 in assembler. TMR0 interrupts every 4 milliseconds-1:16 prescaler. It is used to time da= ta input. A branch of the program processes in a few microseconds. I want the progra= m to wait until the next interrupt occurs. If I don't clear the TOIF flag before the RETFIE instruction the interrupt = repeats in a continuous loop. I could monitor TMR0 and wait until it reaches 0xff--that would be close en= ough. But there should be some other way. Any ideas? --=20 Bob LeDoux --=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 .