Searching \ for 'Generating sequential serial-numbers using MPLAB &' 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/io/serials.htm?key=serial
Search entire site for: 'Generating sequential serial-numbers using MPLAB &'.

Truncated match.
PICList Thread
'Generating sequential serial-numbers using MPLAB &'
1999\06\30@100612 by Caisson

flavicon
face
Hello all,

 I've got a problem.  I'm creating program for a couple (100+) of devices.
Those devices will be working in a cluster.  A PC will be used to
communicate with them.   But ...  I have to adress all those devices
one-by-one.   That means they will need unique adresses.

That's not really a problem,  cause I can : Set an ID-value, assemble the
program, burn a controller, change the ID-value, assemble the program, burn
the next controller, and-so-on.

If that's how it must be done, that's the way I'll do it.  But when there
is another way (like using an Auto-increment counter), I sure would like to
know :-)

So, if someone knows how to make my life easier, please let me know.

Greetz,
 Rudy Wieser

1999\06\30@172042 by Mark Willis

flavicon
face
Caisson wrote:
> <snipped>
> If that's how it must be done, that's the way I'll do it.  But when there
> is another way (like using an Auto-increment counter), I sure would like to
> know :-)
>
> So, if someone knows how to make my life easier, please let me know.
>
> Greetz,
>   Rudy Wieser

 Alternate methods that come to me just now:

 Each PIC could have a 24C01 attached, drop the ID value in the C01 &
read it in on startup.

 A PISO shift register set could load a bunch of jumpers/dip
switches/broken PCB traces, at startup time.

 A Dallas I-Button could load the I-Button's serial number in at
startup.  (I still wish PICs had a serial number, some times.)

 Cheapest is probably the most labor intensive, which you've mentioned.

 Mark


'Generating sequential serial-numbers using MPLAB &'
1999\07\01@093453 by Adam Davis
flavicon
face
(Note:  I haven't been receiving my own posts from the piclist, though I assume
they're getting through, since I've had a reply from two or three...  Is this
problem typical to the list and being resolved, or is it just me?)

Anyway...

Once you assemble the program, identify the bytes in the hex file which change
when you change the ID.  Then set up a small program (could be basic, C,
whatever.  You might even use grep to search and replace it) and put it in a
batch file which automates the entire thing for you.

start
Modify file
Prompt for new chip
program chip
Goto start

I hope this helps, and good luck!

-Adam

Caisson wrote:
{Quote hidden}

1999\07\01@095400 by Octavio Nogueira

flavicon
face
> Caisson wrote:
> > <snipped>
> > If that's how it must be done, that's the way I'll do it.  But when
there
> > is another way (like using an Auto-increment counter), I sure would like
to
> > know :-)
> >
> > So, if someone knows how to make my life easier, please let me know.
> >

I don't know about PicStart Plus but you can generate the serial
number with ProPic 2 programmer, you can specify the start address,
the size and the increment of the serial number.

                         /"\
Friendly Regards          \ /
                          X  ASCII RIBBON CAMPAIGN
Octavio Nogueira          / \ AGAINST HTML MAIL
===================================================
spam_OUTnogueiraTakeThisOuTspampropic2.com                  ICQ# 19841898
>From the creator of ProPic, ProPic 2 now much better
New ProPic 2  homepage:      http://www.propic2.com
PIC Programmer for Windows with down to earth price
===================================================

1999\07\01@180453 by Eric Oliver

flavicon
face
On Thursday, July 01, 1999 8:48 AM, Adam Davis [SMTP:.....adavisKILLspamspam@spam@BALADYNE.COM]
wrote:
> (Note:  I haven't been receiving my own posts from the piclist, though I
assume
> they're getting through, since I've had a reply from two or three...  Is
this
> problem typical to the list and being resolved, or is it just me?)

Although there was talk of changing this, I think the PICLIST defaults to
not copying you with your own message. There is a way to change it ... I
think the instructions are included in the original sign-on message you
should have received.  Tjaart has a PICLIST FAQ I think .. unfortuantely I
can't find the link .. Tjaart ?

Eric

1999\07\02@063522 by Caisson

flavicon
face
> Van: Adam Davis <adavisspamKILLspamBALADYNE.COM>
> Aan: .....PICLISTKILLspamspam.....MITVMA.MIT.EDU
> Onderwerp: Re: Generating sequential serial-numbers using MPLAB &
Picstart+-An Auto-increment counter ?
> Datum: donderdag 1 juli 1999 15:47

Hello Adam,

> (Note:  I haven't been receiving my own posts from the piclist, though I
assume
> they're getting through, since I've had a reply from two or three...  Is
this
> problem typical to the list and being resolved, or is it just me?)

This is no problem, it's just the (old) default.  You can ask the server to
send you a copy of your own messages (as will be de new default).  How ?
I'm not sure anymore, but you can ask the server to send you a list of
commands. The way to do it is described in your "Hello, nice you joined"
message.

> Anyway...
>
> Once you assemble the program, identify the bytes in the hex file which
change
> when you change the ID.  Then set up a small program (could be basic, C,
> whatever.  You might even use grep to search and replace it) and put it
in a
> batch file which automates the entire thing for you.

Right, that's what I thought of too.  But because of the fact that the
PICSTART+ only works with MPLAB, I would be forced to : Program a chip,
call the routine that modifies my HEX-file, reload the project (making sure
the last version of the HEX-file will be used when programming the next
chip), and start programming again.  It's allmost the same bore as manually
changing the Source-file, assemble it, and program a chip ... :-(  Ah well,
To bad that there is no counter available for this purpose.

Greetz,
 Rudy Wieser

1999\07\02@080721 by Peter van Hoof

picon face
<x-flowed>This may not be that easy not only will the byte change, the checksum
calculated from this byte changes as well!

It will require some knowledge about the hexfile and some programming

Peter EraseMEpvhspam_OUTspamTakeThisOuTvertonet.com



{Quote hidden}

_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com

</x-flowed>

1999\07\02@104730 by Adam Davis

flavicon
face
Yes, this list defaults to not sending you your own messages.  I should have
checked with the list server before sending that message.

For those needing to change this, send the following in the body of a message:

set piclist rep

to: RemoveMELISTSERVTakeThisOuTspamMITVMA.MIT.EDU

It will send you confirmation email, to which you reply 'ok' as you did when you
signed up for the list.

Thanks to everyone who helped!

-Adam

Eric Oliver wrote:
{Quote hidden}

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