> Van: Jonathan M. Newport > Aan: PICLIST@MITVMA.MIT.EDU > Onderwerp: after I return from an interupt... > Datum: woensdag 24 juni 1998 20:14 > > sorry, I'm kind of new to this, but say I've got something in a continuous > loop like: > > circle goto circle > > waiting for an interupt. when the isr is finished and I use the retfie > command, will it increment the program counter to execute the instruction > after this one? or if it doesn't is there a way that I can increment the > program counter myself? thanks > > Jonathan Newport As you already have seen, the most general solution to your problem is to check a 'not ready' bit that will be cleared in the interrupt-routine. Another way could be, dependend on the Interrupt-source, to go into 'Sleep'-mode. An interrupt will wake the system and you will continue execution of your program. Greetz, Rudy Wieser