Doubt on data storage on EEPROM
TAMIL
Posts: 11
controller used:BS2P40
EEPROM 8 x 2KByte
hi,
My question is related to data storage into EEPROM.
By using DATA directive, we can download data along with program. But, what I would like to know is
how to use the data storage in EEPROM once the program is loaded?
is it possible to use WRITE/READ commands for loading a bulk of data (data range may be 2kbits to 10kbits).
is there a best way to do it?
EEPROM 8 x 2KByte
hi,
My question is related to data storage into EEPROM.
By using DATA directive, we can download data along with program. But, what I would like to know is
how to use the data storage in EEPROM once the program is loaded?
is it possible to use WRITE/READ commands for loading a bulk of data (data range may be 2kbits to 10kbits).
is there a best way to do it?
Comments
Post Edited (TAMIL) : 4/11/2008 6:57:34 PM GMT
As for the time it will take, I can give you an estimate. A section of my code writes all 0's to 1k of my eeprom to clear it. That process takes about 3 seconds.
Are you concerned about time because this is an often repeated process? You only have a limited number of write cycles before your eeprom is burned out.
Say you have the other device send 100 bytes at a time, then wait 300ms (~3ms per byte write)....
You could also put a "wait" into the serin and have the other device send a header indicating the start of a byte stream. You could also consider using SEROUT to let the device know that the Stamp has written the 100 bytes and that it's OK to send the next stream. Hopefully this helps some
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com