read eeprom data which is stored as intel hex code
Posted: Mon Apr 06, 2009 6:55 am
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
Posted: Mon Apr 06, 2009 10:28 am
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.
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