Hi John I should point out that I have *NO* problems programming/reprogramming the device *without* setting the code protect bit. I must have reprgrammed my development PCB 10,000's times without problems! The problem is only when I set the code protect bit, program and then try to reprogram. Alan -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.