0

here i am doing some project with the help of Arduino UNO with External EEPROM (24LC256), All i want to create table and wants to store all data into 24LC256 External EEPROM,there are many library for internal EEPROM to create table with limited data as per size of arduino EEPROM but i have huge data to store so have to use External eeprom to do, so i can't find any proper library for doing that.!

can anyone tell me how to do that...

any suggestion..Please help me..

thanking you..

jfpoilpret
9,1627 gold badges38 silver badges54 bronze badges
asked Jan 6, 2017 at 20:39
2
  • I don't quite understand the question. Are you looking for an Arduino library to use (read from and/or write to) the 24LC256? Commented Jan 6, 2017 at 21:07
  • Creating tables is a database thing. What are you actually trying to do? Commented Jan 6, 2017 at 22:47

1 Answer 1

0

Simplest way to create a table is to view it as a vector of struct's. For performance it is good to make the struct size a multiple of the EEPROM page size.

struct row_t {
 ... column fields ...
};
uint32_t row_addr = TABLE_START_ADDR;
row_t data;
data.column = value;
...
eeprom.write(row_addr, &data, sizeof(data));
row_addr += sizeof(row_t);
...

Basically you need to map a two/multiple dimensional table onto a one dimensional address space (of the EEPROM). The programming language can help with some of the calculations (and hide them).

Cheers!

answered Jan 7, 2017 at 1:19
2
  • Exactly i want to know what's library do i have to used and how...? Commented Jan 7, 2017 at 9:42
  • Did you do a web-search or check the arduino playground? You could for instance start here; playground.arduino.cc/Main/LibraryForI2CEEPROM Commented Jan 8, 2017 at 12:55

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.