Well you just haven't told the programmer what config bits you would like set. Add a line like this at the top of your code:- __CONFIG(FOSC0 | PWRTE | WDTE | UNPROTECT); This macro is defined in Pic1687x.h. All the configuration bits are given names so it's easy to select the ones you want as shown in the example above. Brent Brown Electronic Design Solutions 16 English Street Hamilton, New Zealand Ph/fax: +64 7 849 0069 Mobile: 025 334 069 eMail: brent.brown@clear.net.nz -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.