data memory

Started by wilypoop July 13, 2005
hi my name is will kim and I am currently working on a project to
measure the peak speed of linear motion. I am using the bx24 chip in
order to measure the acceleration of the motion. I was wondering if
there was any way for me to store the data recorded through the
accelerometer within the processor or do I have to integrate the part
with another hardware in order for me to store the data recorded?



--- In basicx@basi..., "wilypoop" <wjkim@u...> wrote:
> I was wondering if there was any way for me to store the data
> recorded through the accelerometer within the processor.

You can write data to RAM, Persistent Memory (on-board EEPROM) or
Program Memory (external EEPROM). Each has its limitations. For
RAM, there's not much of it so your ability to store is somewhat
limited.
For Persistent memory, the only way to access it is either to define
Persistent variables (which may be arrays) or by using
PersistentPoke and PersistentPeek. Using the peek/poke is limited
to transferring 1 byte at a time.

For Program Memory you can define read/write tables that will be
initialized with certain data or you can just set aside a portion of
the 32K of Program Memory (near the top) as your data area and use
GetEEPROM and PutEEPROM to access it.

Both the Persistent memory and the Program memory have write cycle
limitations. If you write to a particular address too many times (>
100,000) they may become unreliable.

The manuals have more information on this topic.

One of the other list members has connected FRAM to his BX-24 for
data logging. A search on that keyword will locate the discussion.
It's also fairly easy to interface serial EEPROMs to the BX-24.
Either SPI or I2C devices would work well. They are going to have
similar write cycle limitations, however.

Don