Ulong to eeprom

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

Moderator: Benj

secs
Posts: 71
Joined: Fri Jul 31, 2015 9:21 pm
Has thanked: 2 times
Been thanked: 12 times
Contact:

Ulong to eeprom

Postby secs » Thu Dec 03, 2015 7:46 pm

Hi all. Tinkering around for a quick couple of timers I am simply using an Arduino Mega 2560.

I need to write and read a ulong to and from eeprom and found some code on these forums I think was being used for a pic
I have attached a couple of images. I simply made the code into macros. I have a feeling a need a couple more bits but does what I have done/copied correct?
Data_out and DIN are Ulong
Peter

reade.jpg
reade.jpg (66.07 KiB) Viewed 2227 times

writee.jpg
writee.jpg (45.31 KiB) Viewed 2227 times

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

Re: Ulong to eeprom

Postby medelec35 » Thu Dec 03, 2015 9:44 pm

Hi secs,
Have you also read this topic?

Martin
Martin

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

secs
Posts: 71
Joined: Fri Jul 31, 2015 9:21 pm
Has thanked: 2 times
Been thanked: 12 times
Contact:

Re: Ulong to eeprom

Postby secs » Thu Dec 03, 2015 10:18 pm

Hmmmm. I did a search and must have spelt something incorrect. Thats what I need. Many thanks guys

George_B
Posts: 88
Joined: Wed Jul 04, 2012 11:21 pm
Has thanked: 37 times
Been thanked: 12 times
Contact:

Re: Ulong to eeprom

Postby George_B » Sun Dec 06, 2015 3:03 pm

Hi, i would like to write and read some floating values (e.g. 3.42 or 34.2) in EEPROM. How can i achive this?

If it matters, i am using PIC18F4523.

Thank you in advance
George

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

Re: Ulong to eeprom

Postby medelec35 » Sun Dec 06, 2015 3:56 pm

Hi George,
Have you read this topic?

Martin
These users thanked the author medelec35 for the post:
George_B (Sun Dec 06, 2015 7:06 pm)
Rating: 5.26%
 
Martin

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

George_B
Posts: 88
Joined: Wed Jul 04, 2012 11:21 pm
Has thanked: 37 times
Been thanked: 12 times
Contact:

Re: Ulong to eeprom

Postby George_B » Sun Dec 06, 2015 6:16 pm

Thank you very much for the reply,

i will have a look on that topic.

I want to discuss something else regarding EEPROM and interrupts as well but i don't know where is the appropriate forum location to post my thought and questions. Any idea or suggestions?

Thanks again
George

kersing
Valued Contributor
Valued Contributor
Posts: 1873
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 530 times
Been thanked: 1040 times
Contact:

Re: Ulong to eeprom

Postby kersing » Sun Dec 06, 2015 7:08 pm

George_B wrote:I want to discuss something else regarding EEPROM and interrupts as well but i don't know where is the appropriate forum location to post my thought and questions. Any idea or suggestions?


Use this part if you are using Flowcode 6. Or 'General Programming' if the subject is not linked to a specific version of Flowcode. Before posting, use 'search' (right top of the page) to check if it has been discussed before.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

George_B
Posts: 88
Joined: Wed Jul 04, 2012 11:21 pm
Has thanked: 37 times
Been thanked: 12 times
Contact:

Re: Ulong to eeprom

Postby George_B » Sun Dec 06, 2015 7:15 pm

Hi, i did not realized that this was posted for V6. Excusse me for that.

My question was for V4 of flowcode. I tried the example in the link above but i get errors while compiling.