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 support@ccsinfo.com

#serialize

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



Joined: 03 Dec 2005
Posts: 182
Location: Australia SA

View user's profile Send private message Send e-mail

#serialize
PostPosted: Tue Feb 28, 2006 6:49 am     Reply with quote

Code:
#serialize(id=serialNumA,next="0001",prompt="Enter the serial number",log="C:\Program Files\PICC\Examples\timed Pulse\Pulse_Timed_serial.log")


the above code works OK, I am using the 18F1320 with the last ROM location of 0001FFF. int32 serialNumA;

when I run the serialize as above and have a serilize code of say "99999999" I get from 1FFFE = FF, 1FFFF=E0, 20000 = F5, 20001 = 05. I can not find where the serial number has gone, any idears
_________________
What has been learnt if you make the same mistake? Wink
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Tue Feb 28, 2006 7:30 am     Reply with quote

How did you declare serialNumA? I assume you declared this as an int8 just as in the example code and then a value of 99999999 won't fit. Try an int32 instead.
Storic



Joined: 03 Dec 2005
Posts: 182
Location: Australia SA

View user's profile Send private message Send e-mail

PostPosted: Tue Feb 28, 2006 8:06 am     Reply with quote

declared as int32 serialNumA; even tried const int32 serialNumA;

however I found using the ee data I could get it to work
Code:
#serialize(dataee=0xf0,string=11,next="1",prompt="Put in Serial number",log="C:\Program Files\PICC\Examples\timed Pulse\Pulse_Timed_serial.log")


writing to eeprom from address 0xf0 all works OK, I can see the data. I will use this methode for now

Andrew
_________________
What has been learnt if you make the same mistake? Wink
Storic



Joined: 03 Dec 2005
Posts: 182
Location: Australia SA

View user's profile Send private message Send e-mail

PostPosted: Tue Feb 28, 2006 7:06 pm     Reply with quote

A question on the serilize numbering, Can we include Alpha and numeric serial numbering if so How can we do this with #serialize, if not can this feture be added for future developments.

I wanted to be able to include Unit, version type, time/date as well the serial number.

Andrew
_________________
What has been learnt if you make the same mistake? Wink
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