> I have a question which probably seems rather simple to those of you > who have used the PIC's for a while. > > I need a way to have the processor wait (doing nothing) until an > interrupt from TMR0 occurs. I can't use sleep mode becuse TMR0 stops > when the processor enters sleep mode (right?), so I've tried using a > goto loop calling several NOP's, but this (according to MPSIM) > triggers the watchdog timer. > > Does anybody have a suggestion? Do you need the watchdog-timer ? If not I suppose you could disable it using thc control bits. (I'm not sure whether this is possible on all PIC's, though) --------------------------------------------------------------- Oyvind Kaurstad Phone: Norway+90062116 oyvind@hsr.no 4140 Erfjord http://www.stud.his.no/~oyvind The truth is out there - NOT