I am designing a system that needs each PIC to have unique codes (32 bits).
Is there a way to generate one source code to do this? I will be using one
of the 8 pin PIC. Since there will be several thousand of these guys,
burning each one with different code is not an option. Also, this is an
open loop system (the PIC can send its ID, but not receive any data). Any
help is greatly appreciated.
-
============================================================
||| Who am I? Mik Kim
-O-O- Where am I? spam_OUTmikkimTakeThisOuTbigfoot.com
! How am I? Learning in progress
\_/ What am I? Perpetual engineering student

> I am designing a system that needs each PIC to have unique codes
> (32 bits). .... Since there will be several thousand of these guys,
> burning each one with different code is not an option.

Of course it's an option.

Microchip's PROMATE programmer (and maybe their PICSTART Plus, as
well) can be configured to do exactly what you want; all you have
to do is put a 4-byte lookup table in your source code and tell
the programmer where it is... Each PIC will be programmed with a
unique set of values in that lookup table.

>Hello,
>
>I am designing a system that needs each PIC to have unique codes (32 bits).
>Is there a way to generate one source code to do this? I will be using one
>of the 8 pin PIC. Since there will be several thousand of these guys,
>burning each one with different code is not an option. Also, this is an
>open loop system (the PIC can send its ID, but not receive any data). Any
>help is greatly appreciated.

To be *sure* it has an unique code you (or a computer managing all the
codes) have to tell it. Maybe use the version with EEPROM and it make it
learn from outer source.

A hardware solution is to use those little neat 3-pin devices from Dallas
that include a unique 64-bit word.

Another way is to write your own program that modifies the hex file to
program the pic before each programming.

Even better: Ask some of the guys that write programming programs to
include that special code change facility for you. Probably a lot of other
users will like a unique code or automatic serial number updating function.
If theu read thit message maybe someone will answer to that.

If you are going for large quantities (it looks like if you are using 32
bit) Microchip can do it for you at production level. Why don't you contact
them about their SQTP (Serialized Quick-Turnaround-Production) service.

>Hello,
>
>I am designing a system that needs each PIC to have unique codes (32 bits).
>Is there a way to generate one source code to do this? I will be using one
>of the 8 pin PIC. Since there will be several thousand of these guys,
>burning each one with different code is not an option. Also, this is an
>open loop system (the PIC can send its ID, but not receive any data). Any
>help is greatly appreciated.
>-
>============================================================
> ||| Who am I? Mik Kim
> -O-O- Where am I? EraseMEmikkimspam_OUTTakeThisOuTbigfoot.com
> ! How am I? Learning in progress
> \_/ What am I? Perpetual engineering student
>