On Thu, 7 Feb 2002 10:46:06 -0500, "MATTHEWS, DEAN (D.)" wrote: >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=3D20000000) > >output_high(PIN_B0); >delay_ms(1000); > >the program steps onto the delay line and gets hung up. Any suggestions MPLAB's simulation is notoriously slooooooow. Are you sure it's getting hung up? You might try a small number for your delay_ms argument to get a feel for just how slow it is. (I'm presuming that 1000 is within the range allowed for delay_ms.) Regards, Bob -- 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