Re: RTC with date and EEPROM
You ask about a "256KB EEPROM", but do you mean 256Kb? (Like the 24LC256?) If so, there is no way that would be big enough to hold all of the data. It only holds 32,767 Bytes. For your task, you will need...
7days * 8hrs * 60min * 60sec * 20Bytes = 4,032,000Bytes (about 32Mbit)
There are some serial (I2C and SPI) flash devices that I think are that big. (Microchip SST25VF032B)
Re: RTC with date and EEPROM
Thanks for the information. I have to look at the data more closely. Maybe I can get away with using some bits but I may end up needing word sized variables too. It's not NASA critical information, maybe I can just use bytes and round off since none of the data is over 2000.
There is this one chip that has 2G of EEPROM and it's not terribly expensive:
http://www.toshiba.com/taec/componen...VG1S3ETA00.pdf
What is the best thing to do if I wanted to store sentences? Meaning:
"Today is the very best day to program PIC's"
"I have questions but I can't think of any answers"
"ummmmmmmmmmmmmmmmmmmmmmmm"
Re: RTC with date and EEPROM
That EEPROM is certianly big enough. I'm sure there are a number of options, just depends on cost vs. what mets you needs for size/package/interface/etc.
What is the 'Best' thing for storing strings? Depends ;)
You could just store them in the commands used, ie:
Code:
LCDOUT "Today is the very best day to program PIC's"
LCDOUT "I have questions but I can't think of any answers"
LCDOUT "u", REP "m"\24
Or, use ARRAYWRITE:
Code:
ARRAYWRITE MyArray, ["Today is the very best day to program PIC's"]
ARRAYWRITE MyArray, ["I have questions but I can't think of any answers"]
ARRAYWRITE MyArray, ["u", REP "m"\24]
Although simple, these methods use up code space.
If code space is limited or your not talking about predetermined strings, and since you have to get a large storage device for the data anyway, storing the strings there would work well. If you want to preserve all of the space for data, and the chip has an internal EEPROM, use that.