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 pvh@vertonet.com >From: Adam Davis >Reply-To: pic microcontroller discussion list >To: PICLIST@MITVMA.MIT.EDU >Subject: Re: Generating sequential serial-numbers using MPLAB & Picstart+ > -An Auto-increment counter ? >Date: Thu, 1 Jul 1999 09:47:31 -0400 > >(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: > > > > 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 _______________________________________________________________ Get Free Email and Do More On The Web. Visit http://www.msn.com