> A better way to do that would be to have a flag (a binary semaphore in > concurrent processing nomenclature) which is set by the interrupt when > the jump should be performed. The delay loop (which is by nature > executing instructions continuously) can poll the flag and execute the > GOTO from the main code. Since testing for a flag can be done in a > fixed number of cycles (two for a BTFSS) the timing delay can be > adjusted to accommodate the extra instructions. I agree - in fact it sounds like the OP should be using a state machine in = the code where delays are being used, and look to the interrupt to notify a= change of state, unless the delay times out giving a different change of s= tate. --=20 Scanned by iCritical. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .