Aadu Adok wrote: > I need to store some data (hundreds of bytes) in my PIC interrupt > handler. New byte arrives every 600us. What you think - is serial eeprom > (like 24LC16B) right choice for handling this task? > > I looked around but did'nt find how fast can 24LC16B store one byte. Any > ideas? A single byte write will almost certainly be slower, but most EEPROMs can write a "page" of bytes for the same write time. Pages vary, but I vaguely remember some of the 24LC series has pages in the 8,16,32 byte size, and the the write time was a few mS. This means the average rate is probably adequate. A knee jerk architecture that comes to mind is using two buffers each the size of the EEPROM page. When the interrupt routine fills one, it sets a flag and starts filling the other. The foreground code writes the filled buffer to the EEPROM when the flag is set, with appropriate bookkeeping about swapping buffers. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist