Hi David, That is correct, if your programmer does not support the 12 bit ICSP programmed parts (PIC12C508/PIC12C509/PIC16C505). Which programmer are you using? myke ----- Original Message ----- From: "David Queen" To: Sent: Wednesday, July 11, 2001 8:04 PM Subject: [PIC]:Restoring OSCCAL after erasing a pic I am using some 12C508a's in internal RC mode, I jotted down the OSCCAL value before I erased it, but what is the proper way to put it back? My best guess is to add the following 2 lines and delete the 2nd when I get the bugs out and go to OTP parts. ORG 0x1FF movlw 0x7C I am just looking for verification that this is the way to do it. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads