Sean, there is no jump to loop at the end of the main code. The code falls through into the delay code. I do not know how this code was generated, but it is a paraphrase on the thread on stack behavior on PICs ;-). There shouuld be a line like: GOTO MAINLOOP just before the DELAY500 label. Peter -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body