Thomas Fleckenstein wrote: > > My application: > > A PIC16C84 receives serial data from a data acquisition board in a 5 minute > interval. These data need to be buffered for security reasons. I would like to > connect a 8k serial EEPROM via IIC bus to the PIC as a buffer. This buffer > should work like a ringbuffer. It should fill the memory incrementaly and when > the whole memory chip is full, it should start writing over the data in the > first memory address. > I have not much experience with the PIC. Can somebody give me some ideas how to > do this or can send me a code example. > I would need: The IIC routine, the routine for the ringbuffer ( read and write > )and a RS232 routine to connect a remote pc. > > Thanks in advance for your help. > Best Regards, > Thomas Just a thought...... I would not use an E2prom as a buffer, as it has limited erase/write endurance, and will eventually fail. The life would depend on your data-rate, but 100K to 1M cycles is typical. SRAM could be used instead. jim