----- Original Message ----- From: "David Queen" To: Sent: Thursday, July 12, 2001 2:04 AM 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. OR IF YOUR PROGRAMMER HAVE OPTION EDIT PROGRAM IN ADRESS 0X1FF WRITE NUMBER BEFORE PROGRAMMING, BUT ONLY FOR JW VERSION. IN OTP YOU CAN NOT CHANGE NOTHING -- 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: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics