To everyone that replied to my questions, thanks. Here is what was happening. My coding was not at fault. The MPLAB IDE got me! I'm using ver 8.00 and in the "configure" menu under "configuration bits" I have the box checked to set configuration bits in code. I have the project saved that way. When I last opened MPLAB, for some reason the box was unchecked and using the defaults provided by the IDE, which sets watchdog timer to on. I will now double check this each time I open the IDE and be sure that the box is still checked. I always prefer to code my configuration instead of relying on the IDE menus. I have closed and opened MPLAB several times to see if this was my mistake or the IDE. One time out of four, the IDE came up with the check box unchecked! Will just have to verify each time I guess. Thanks again to all! -- Regards, Stephen D. Barnes -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist