If you want to stop the pic dead issue a sleep instruction as the last instruction in the program, and maybe add a goto to this sleep instruction after it (in case there is a pending interrupt you do not expect). Peter -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.