--0__=80256B59005DC1498f9e8a93df938690918c80256B59005DC149 Content-type: text/plain; charset=us-ascii Hi, MPLAB nor your code has hung....Remember that the PC is simulating operation and will take a very long time to deal with this delay loop. It is often better to #ifdef out your delay functions before simulating in MPLAB to get precisely around this. Alternatively, you could always wiggle your mouse as this seems to speed things up but you will have a very muscular wrist to deal with a delay of 1 second ;-) Dan (Embedded "MATTHEWS, DEAN (D.)" @MITVMA.MIT.EDU image moved 07/02/2002 15:46 to file: pic19435.pcx) Please respond to pic microcontroller discussion list Sent by: pic microcontroller discussion list To: PICLIST@MITVMA.MIT.EDU cc: Subject: Re: [PIC]:simulating delay routine in mplab Security Level:? Internal 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 --0__=80256B59005DC1498f9e8a93df938690918c80256B59005DC149 Content-type: application/octet-stream; name="pic19435.pcx" Content-Disposition: attachment; filename="pic19435.pcx" Content-transfer-encoding: base64 CgUBCAAAAABBADEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAABQgABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAA= --0__=80256B59005DC1498f9e8a93df938690918c80256B59005DC149-- -- 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