CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Serial Numbers

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
hellopic



Joined: 21 Feb 2013
Posts: 8

View user's profile Send private message

Serial Numbers
PostPosted: Thu Feb 21, 2013 11:53 am     Reply with quote

How can I generate a unique serial number for each micro that I program? I looked at #serialize but that seems to require special hardware. I only have access to ICD3.

Setting it in code or sending it over UART after programming are error prone processes, I feel.

I am using dsPIC33 and the serial number needs to be a 16 or 24bit unique number. Are there any software based solutions that can interface with ICD3 to do the programming will modding the .hex file or something similar? Thanks.
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Thu Feb 21, 2013 12:24 pm     Reply with quote

for many years i have used this serialization method.

1- write your serial number to eeprom
2- tag with a CRC or checksum

in your GET id routine - simply make sure the CRC/checksum is valid for the number or string - you wrote to EEPROM -
then flag error if the CRC/check fails on readback
job done
EZ && never had it fail

not the least bit error prone IMHO - as i have never had a client bitch
about its performance

i should add - serialization is always done AFTER test and calibration is done on a system, and before it is shipped. hence no effrot to add a ser# during pic programming
hellopic



Joined: 21 Feb 2013
Posts: 8

View user's profile Send private message

PostPosted: Sat Feb 23, 2013 3:32 am     Reply with quote

Could you please let me know, which programmer you use for #serialize to work?
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Sat Feb 23, 2013 7:36 am     Reply with quote

The serializing method i use is performed individually, using active pic code,
in the program, after test and calibration. It is not an automatic part of the
pic program memory programming.
The pathway is rs-232 or the usb channel.

It is CODE based not an automated thing.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group