Tony Nixon wrote: > I was just thinking on how to implement this feature. I have not needed > serial numbers yet, so I assume they are stored in the ID registers. > > The Pocket's FAT system has a 32 byte header space for each HEX file > stored in EEPROM. I can implement a 16 bit word in this info so that it > is incremented by 1 everytime that particular file is used for > programming. This value will be placed into the ID regs when programmed. > > The Pocket can have an extra menu function added to enable/disable the > ID override and a way of editing this value. The serial number will be > reset to 0000h when uploading a file from the PC to the Pocket memory. > > Is this what you had in mind? Hi Tony, generally the special ID locations cannot be read by the PIC itself. I prefer to put the ID in the ROM as part of a general data table showing DOM, batch number, firmware version etc. This can then be read by the PIC itself and displayed when operating. The ideal way to store the number in ROM is as one or more RETLW bytes, for obviosu reasons. :o) Having it open source is a good idea! I could modify the souce and do it that way, just thought that you may have other customers that want to number their products.:o) -Roman -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.