At 09:47 PM 6/17/2009, uaca man wrote: >some times the led turns on, some times it just >does nothing until i come close to the PCB and than it turns on just like a >miracle. > >// Config: ext reset, no code protect, no brownout detect, no watchdog, >// power-up timer enabled, 4MHz int clock >__CONFIG(MCLREN & UNPROTECT & BORDIS & WDTDIS & PWRTEN & INTIO); Take a closer look at the above config line. Reset pin is ENABLED. Do you have pin 4 (MCLR) tied to +5V? If not, try connecting pin 4 to pin 1 via a 10k resistor. dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax www.trinity-electronics.com Custom Electronics Design and Manufacturing -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist