Hi there,
I have a $tring that I need to save into EEPROM on a PIC. How would one go about doing this? The EEPROM 8 bit and the string is 20 charaters long. I know how to do this for long numbers, but not quite sure what format to store the string in EEPROM.
Storing a $tring in EEPROM
Moderator: Benj
Re: Storing a $tring in EEPROM
Hello,
A string is basically just an array of bytes with a null byte at the end to signify the end of data.
Here is an example to read and write strings to the EE memory to get you started.
A string is basically just an array of bytes with a null byte at the end to signify the end of data.
Here is an example to read and write strings to the EE memory to get you started.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Storing a $tring in EEPROM
Thanks Benji,
I'll give that a go.
I'll give that a go.
Storing a $tring in PIC EEPROM
Hi,
I was wondering what the best way was to store a string variable of approx 10 characters in the PIC onboard EEPROM? Any ideas?
I was wondering what the best way was to store a string variable of approx 10 characters in the PIC onboard EEPROM? Any ideas?
Last edited by EtsDriver on Fri Mar 16, 2018 9:50 am, edited 1 time in total.
Reason: Merged with your old topic.
Reason: Merged with your old topic.
Re: Storing a $tring in PIC EEPROM
Also here in the wiki,
https://www.matrixtsl.com/wikiv7/index. ... _(Storage)
https://www.matrixtsl.com/wikiv7/index. ... _(Storage)
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Storing a $tring in PIC EEPROM
Thanks very much, I must have missed that somehow.