Storing a $tring in EEPROM

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

keejay
Flowcode v5 User
Posts: 110
Joined: Tue Jul 23, 2013 10:02 am
Been thanked: 14 times
Contact:

Storing a $tring in EEPROM

Postby keejay » Mon Feb 15, 2016 6:59 am

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.

User avatar
Benj
Matrix Staff
Posts: 14310
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4401 times
Been thanked: 4127 times
Contact:

Re: Storing a $tring in EEPROM

Postby Benj » Mon Feb 15, 2016 6:38 pm

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.

StringEE.fcfx
(8.64 KiB) Downloaded 158 times
These users thanked the author Benj for the post (total 2):
medelec35 (Mon Feb 15, 2016 7:29 pm) • kersing (Mon Feb 15, 2016 8:43 pm)
Rating: 10.53%
 

keejay
Flowcode v5 User
Posts: 110
Joined: Tue Jul 23, 2013 10:02 am
Been thanked: 14 times
Contact:

Re: Storing a $tring in EEPROM

Postby keejay » Tue Feb 16, 2016 7:49 am

Thanks Benji,

I'll give that a go.

keejay
Flowcode v5 User
Posts: 110
Joined: Tue Jul 23, 2013 10:02 am
Been thanked: 14 times
Contact:

Storing a $tring in PIC EEPROM

Postby keejay » Sat Feb 24, 2018 8:29 pm

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?
Last edited by EtsDriver on Fri Mar 16, 2018 9:50 am, edited 1 time in total.
Reason: Merged with your old topic.

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8420
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2402 times
Been thanked: 3437 times
Contact:

Re: Storing a $tring in PIC EEPROM

Postby medelec35 » Sun Feb 25, 2018 12:14 am

Hi keejay,
You already asked this question here
It was answered for you.

Martin
These users thanked the author medelec35 for the post:
Benj (Mon Feb 26, 2018 11:17 am)
Rating: 5.26%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
Benj
Matrix Staff
Posts: 14310
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4401 times
Been thanked: 4127 times
Contact:

Re: Storing a $tring in PIC EEPROM

Postby Benj » Mon Feb 26, 2018 11:18 am


keejay
Flowcode v5 User
Posts: 110
Joined: Tue Jul 23, 2013 10:02 am
Been thanked: 14 times
Contact:

Re: Storing a $tring in PIC EEPROM

Postby keejay » Fri Mar 02, 2018 6:55 pm

Thanks very much, I must have missed that somehow.