Recently active topics in Tibbo tagged with poke

1-1 of 1 topics
  • 4 Replies 1 Follower

    STOR-ing word values in EEPROM Last reply on May 13, 2008 17:28.

    Hi,

    I am using the stor object on the EM1202 to store equipment data (model number, serial number, IP, port, firmware revision etc) in EEPROM. This is fine as I can store and recall all the data as strings.

    However, I now want to store a whole set of values from a 10-bit A-to-D converter into EEPROM. I have the values in 16-bit word variables and want to store them to EEPROM as 2-bytes each, but stor.setdata and stor.getdata accept strings only. If I convert to strings using the hex function, I end up using minimum 4-bytes, or double the space!

    Can anyone suggest how I can easily write/read these values in only 2-bytes each?

    Thanks.
    Hugh Wills Hugh Wills asked this question on May 13, 2008 12:26. It's tagged poke, eeprom, and stor