I wanted to wake the PIC up from a sleep using RB0 as an external interrupt. So I did a stimulus text file (.sti extension)with this content: STEP RB0 2 0 4 1 And enabled the stop-watch in mplab's windows menu. Then I went to pin stimulus option and loaded this file. Then did a reset to the stopwatch(which puts RB0 in a low state=0 when counter is 2 and inmediatly back to high =1 when counter is 4) Of course, you can manually modify any relevant flag register to terminate a sleep!!! ---------- > De: Jason Langenauer > A: > Asunto: stepping over the SLEEP instruction > Fecha: Domingo 1 de Noviembre de 1998 11:05 > > Good Morning > > When I am simulating my programs in MP-LAB, how can I step over the SLEEP > instruction? ( I use it for rough delays). It seems that I would have to > press F7 however many times it takes for the PIC to sleep and wake up, and > F8 ("step over") doesn't seem to be any help either. > > Thanks very much > > Jason Langenauer > First Year Engineering, University of Queensland > "Anyone who's normal doesn't really achieve anything" >