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

read eeprom data which is stored as intel hex code

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



Joined: 05 Dec 2004
Posts: 31

View user's profile Send private message

read eeprom data which is stored as intel hex code
PostPosted: Mon Apr 06, 2009 6:55 am     Reply with quote

I know that intel hex code format is ascii and if I store some data into eeprom using this format by programmer . After reading from eeprom is it needed to convert to hex code , that is if data is 00 03 , intel hex code format is 30 30 30 33 ?????
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Apr 06, 2009 10:28 am     Reply with quote

The programmer does not write the ASCII Hex file bytes directly to
eeprom. It converts them into binary bytes first.

Example:

If the Hex file has "56" in it, this is represented by two ASCII bytes
of '5' and '6'. The values are: 0x35 0x36

When the programmer (ICD2, etc.) writes the byte to eeprom in your
PIC, it does not write ASCII bytes of '5' and '6'. It converts those two
bytes to one binary integer byte of 0x56. It writes one byte of 0x56 to
eeprom.
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