At 10:46 AM 2/7/02 -0500, you 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=20000000) > >output_high(PIN_B0); >delay_ms(1000); > >the program steps onto the delay line and gets hung up. Any suggestions Simulations in MPLAB are very slow. Assuming you don't want to use ICD or buy an emulator, you could try changing the 1000 to 1 and see what happens, or use macros to automatically change a bunch of such delays so you have a debug setting. Best regards, Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com 9/11 United we Stand -- 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