Yes, simulating a 1000mS (1 Sec) delay in MPLAB even on a fast machine will take a few minutes. Go to Myke website and get the TSR under the PIC tab by the name of 'SPEED.EXE'. This will significantly speed up the timing simulation. And as an FYI, when I am developing any type of software that needs a time delay, I get the delay working first. Once it's working and has the correct time, I then jump over it with a GOTO instruction. This way, I can check the logic of the rest of the program without having to wait on the delay routine. When the whole program is working on the simulator, I remove the GOTO, reassemble, and burn the part with the code. This method hasn't failed me yet. Hope this helps. Regards, Jim > I have written a short program in C to flash an led on and off for > period of 1 second flash. When simulating in mplab using the following > > #use delay (clock=20000000) > > output_high(PIN_B0); > delay_ms(1000); > > the program steps onto the delay line and gets hung up. Any > suggestions > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics