Searching \ for '[PIC]:adding a value to rom' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'adding a value to rom'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]:adding a value to rom'
2002\06\05@160920 by Gordon Varney

flavicon
face
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
http://www.iamnee.com

--
http://www.piclist.com hint: To leave the PICList
spam_OUTpiclist-unsubscribe-requestTakeThisOuTspammitvma.mit.edu


2002\06\05@182423 by Drew Vassallo

picon face
>I have a PIC12C671, The part will be programmed, I would like to run a
>calibration sequence on a function, then store

Just an idea... why not use a 12C673 for an extra $.30 which has EEPROM data
space?

--Andrew



_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam@spam@mitvma.mit.edu


2002\06\05@185557 by Dwayne Reid

flavicon
face
At 03:07 PM 6/5/02 -0500, Gordon Varney wrote:
>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.

I see no problem with this, so long as you don't set the code protect bits
until you have programmed the calibration constants.  In other words,
program the base code (in circuit or out - your choice), run the code,
generate the calibration constants, convert those to the actual hex values
you need, program those into the PIC (hopefully using ICSP), verify
performance, program the code protect fuses (if needed).

I say "program the code protect fuses (if needed)" - does your product
require this?

dwayne

--
Dwayne Reid   <dwaynerspamKILLspamplanet.eon.net>
Trinity Electronics Systems Ltd    Edmonton, AB, CANADA
(780) 489-3199 voice          (780) 487-6397 fax

Celebrating 18 years of Engineering Innovation (1984 - 2002)
 .-.   .-.   .-.   .-.   .-.   .-.   .-.   .-.   .-.   .-
    `-'   `-'   `-'   `-'   `-'   `-'   `-'   `-'   `-'
Do NOT send unsolicited commercial email to this email address.
This message neither grants consent to receive unsolicited
commercial email nor is intended to solicit commercial email.

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam.....mitvma.mit.edu


2002\06\05@193345 by Gordon Varney

flavicon
face
Drew,
       I knew some one would ask this question. The answer is that this project is
already 0.21 cents over budget. It will never be accepted, with another 0.30
cents. I will have to make due with what I have.


Thanks.

Gordon Varney

> >I have a PIC12C671, The part will be programmed, I would like to run a
> >calibration sequence on a function, then store
>
> Just an idea... why not use a 12C673 for an extra $.30 which has
> EEPROM data
> space?
>
> --Andrew
>

--
http://www.piclist.com hint: To leave the PICList
EraseMEpiclist-unsubscribe-requestspam_OUTspamTakeThisOuTmitvma.mit.edu


2002\06\05@223511 by Bob Ammerman

picon face
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 removed}

2002\06\06@015913 by ISO-8859-1?Q?Ruben_J=F6nsson?=

flavicon
face
Hi,

Don't forget that it is not only the hardware that has a price
tag. Needing an extra procedure in the production line (such as
reprogramming) is not for free.

Ruben


{Quote hidden}

==============================
Ruben Jvnsson
AB Liros Electronic
Box 9124, 200 39 Malmv, Sweden
TEL INT +46 40142078
FAX INT +46 40947388
rubenspamspam_OUTpp.sbbs.se
==============================

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\06\06@021548 by Anthony Bussan

flavicon
face
Yes, if you can justify that $0.30 in hardware cost will decrease production
cost by $0.30+ your boss just might see the light.

Tony

{Original Message removed}

2002\06\06@034253 by Alan B. Pearce

face picon face
>I have a PIC12C671, The part will be programmed, I would like to run a
>calibration sequence on a function, then store

I haven't checked, but does this chip have RETLW instructions?

If so define an area as DT -1, -1, .... in your source code for as many
bytes as you need calibration values, and then access in the init process as
a table to transfer to RAM. You should be able to overwrite these with the
calibration values you require once you have determined them for each chip.

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\06\06@075909 by Drew Vassallo

picon face
>Yes, if you can justify that $0.30 in hardware cost will decrease
>production
>cost by $0.30+ your boss just might see the light.

Someone else mentioned this excellent point, too.

Typical labor costs ~$1/minute, so you're talking about justifying 18
seconds worth of extra labor.  I have a feeling that testing for the
calibration value and reprogramming it manually will take more time than
this.

Another factor you might want to consider is that a 12CE674 has more
capability than the 671 for that $.30 extra.  More code space and EEPROM
might give you future expandability for your product, or allow you to
include something that you might otherwise have left out due to code space
restrictions.

--Andrew

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\06\06@080902 by Olin Lathrop

face picon face
> 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.

As far as I know, only the F parts can modify their program memory from
program control.  The best way to set calibration values with this part is
probably to bring the programming pins out to a header that can be hooked to
a programming jig at production time.  You determine the calibration values,
then the programming jig writes them to fixed locations that the code has
deliberately left for this purpose.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\06\06@092111 by Gordon Varney

flavicon
face
Bob and every body,
       Thanks, This is what I thought, and had planned.

I wasn't sure if I could program only the bytes set aside.

Thanks.

Gordon Varney
http://www.iamnee.com



{Quote hidden}

> \{Original Message removed}

2002\06\06@093404 by Gordon Varney

flavicon
face
Drew, Alan, Anthony, Ruben,
       The details are as follows.
The existing product circuit board, cost $2.60, The new version cost $2.81
The old system takes about 30 seconds to calibrate manually.
The new system is calibrated by a computer and takes about 4 seconds.
The additional 0.21 cents were justified in the computer programming it.
Note: the programmer unit has the program pins attached already.
All I need to do is write the calibration byte to program memory.

I begged for an EEprom, and a chip with PWM. I was shot down.

They wanted the PIC12C508, I told them no way, I need more. I needed A/D and more speed.


Thanks for the input, well back to the dungeon :-)

Gordon Varney
http://www.iamnee.com



{Quote hidden}

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...