Wouter van Ooijen wrote: >> Do you have a 20K to 100K pullup on MCLR? Do you have LVP >> disabled or a 20K >> to 100K pulldown on MCLR? Do you have the watchdog timer disabled? > > -----------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > this is the one that is *not* a hardware issue, so it would explain > why a known-good .hex file works and the programs you compile yourself > don't. you did specify the fuses, did you? and you know what a > watchdog is? The MCLR and PGM pullups and pulldowns could still be a issue depending on whether PGM and MCLR (if the PIC can do this) are enabled in the configuration bits. Adding the pullups and pulldowns could be a good idea until you know for sure you've set the configuration so that it doesn't matter. ****************************************************************** Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC consultant in 2004 program year. http://www.embedinc.com/products -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist