John Chung replied: First of all is the code working right? When you remove the loads does the program work right or does it work periodically? Could you remove the routine for the pushbuttons and just run the code first with a preset setting? Regards, John Russ then says: Code is working right sometimes, simulated some versions, seemed ok, may do more. When loads removed still erratic. When pusbutton code gone, still erratic. Did not simulate the delay code, may put that in the simulation next. Russ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist