Tim, 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. Gordon Varney www.iamnee.com > Hello! > > Am I missing something, or isn't that the whole point of an ISR? To handle > interrupts immediately so the body of your code doesn't have to worry about > it? Why can't your ISR handle the interrupt (or at least jump to a > function that can) in the first place? > > Or is there some limitation of the C compiler you're using? > > Tim Massey > > P.S.: I'm new to PIC's. I understand the value of C compilers on "normal" > computers, especially computers like IBM PC's, with 10 different memory > models, 100 different hardware devices to manage, 1,000 different ASM > instructions and 1,000,000 lines of code. But on a PIC? Why do people > choose C over straight ASM when you're almost always talking about just a > couple of k of code and few hardware devices to worry about? Or am I just > not sophisticated enough yet? > T.J.M. > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads