Storing a $tring in EEPROM

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

Moderator: Benj

Post Reply
keejay
Flowcode v5 User
Posts: 115
Joined: Tue Jul 23, 2013 10:02 am
Been thanked: 15 times
Contact:

Storing a $tring in EEPROM

Post by keejay »

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: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Storing a $tring in EEPROM

Post by Benj »

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 387 times

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

Re: Storing a $tring in EEPROM

Post by keejay »

Thanks Benji,

I'll give that a go.

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

Storing a $tring in PIC EEPROM

Post by keejay »

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.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Storing a $tring in PIC EEPROM

Post by medelec35 »

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

Martin
Martin

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

Re: Storing a $tring in PIC EEPROM

Post by Benj »


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

Re: Storing a $tring in PIC EEPROM

Post by keejay »

Thanks very much, I must have missed that somehow.

Post Reply