Gordon, I haven't look up the 12C671 datasheet in particular, but in general you cannot program a location in a code-protected chip. However, if you do the following: 1: Burn in your program. 2: Run the calibrartion test 3: Compute the calibration constant(s) 4: Burn the constants into unused memory locations ($FF) 5: Set the code-protect bit Then you can get the effect you are looking for. Bob Ammerman RAm Systems \----- Original Message ----- From: "Gordon Varney" To: Sent: Wednesday, June 05, 2002 4:07 PM Subject: [PIC]:adding a value to rom > Is it possible, and how is it possible. > > I have a PIC12C671, The part will be programmed, I would like to run a calibration sequence on a function, then store > the calibrated value in the rom of the part. If it had EEprom, then no problem. Can I write over a protected rom space > that I know is not used with a new value? Or, do I have to do the new ORG procedure and reprogram the part. > > Gordon Varney > www.iamnee.com > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > > > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu