We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I want to do data logging for GPS data in serial memory AT24C512 for this purpose,i need to make a circular buffer in serial memory.
Could some body please post the code now and algorithm for real-time circular buffer so that data may be stored in circular buffer and may be read or retrieved at will.
Data need to be continuously stored over circular queue while data is retrieved from queue only on demand
regards m.yasir
But Einstein would notice that your links don't seem to bother too much with the wear on the serial memory. OK if the serial memory is FRAM. Not so good if the serial memory is flash. Semigood if the serial memory is EEPROM. In some cases acceptable if the serial memory has automatic wear leveling.
That is one of the reasons why the OP was requested to supply a bit more information, and to consider the implications of the wear issues. The OP hasn't responded, so no one have seen an interest in trying to speculate in the OP:s needs. Especially since this was an urgent matter and we have to assume that the OP picked up the wallet and payed a consultant for immediate help. We poor sods on this list just don't have the available time to instantly produce turnkey code whenever someone posts an urgent request.
Wouldn't we be more unprofessional if we ignored the wear problem and just gave a link to a standard RAM-based ring buffer, like you did?