> I use C to decrease the time spent programming. I can program in ASM and C, however I am a hardware engineer, and my > programming skills are not as efficient as someone that will program all day. > > I need to use the ISR to exit out of the loop, not post pone it. All I am asking is, is there a way to use the ISR to > stop the loop, in only a few instructions. Keeping the loop in tack is not important. I will call the loop again when I > am ready. If you are willing to "restart" the code, then the interrupt doesn't have to return. Just re-enable GIE and jump to restart. In otherwords you can think of an interrupt as a GOTO 4 as long as you don't intend to do a RETURN to anything before the interrupt. I don't know if this fits your situation, but I think I've used this trick twice in about 30 PIC projects. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads