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
Are you storing an autoincrementing number in each log entry and of a numeric range able to store larger numbers than max number of entries that fits in the memory?
Or what method do you use to synchronize the ring buffer positions on reset?
u r 2 late 2 give help now.
we have solution.
m.yasir
No, I'm not. But you never responded to my earlier questions.
u help for problem we do not have.
u r 2 late.
we have solution all ready.
plz go now.
u help for problem we do not have...u r 2 late...plz go now.
Yasir,
First, you are extremely rude. Do you really think people will be more interested in helping you is you insult them? Refusing to follow good old Einstein's advice, you seem to understand that you do not even begin to understand the issues at hand...it says more about you than about the good people trying to help sms-generation dummies like yourself.
if u did give advice i would thank u. u did not.
peace 2 u 2.
If it's that urgent, why don't you just take one of the many examples that's already available on this very site!
The interrupt-driven serial IO examples use circular (or "ring") buffers...
With your reading comprehension - more care you must take!
I must admit to finding it a little amusing that you guys are so easily and regularly 'trolled' on this forum. However, it does seem an awful waste of bandwidth and results in you all getting terribly wound up.
Take five minutes to read slowly and carefully through the OP's posts and the response that provided the solution to his problem then think carefully about the use of SMS, capitalisation, spelling and punctuation, noting in particular how it varies. Consider what this tells you about the author of these posts.
Actually, I think it's just the reading!
I just totally missed the fact that it's EEPROM, rather than not understanding it!
Having said that, the OP should have said what it was specifically about this particular application of ring buffers that he couldn't get from all the serial IO (and other) examples...
We haven't more info than "serial memory". May be EEPROM. May be FRAM. May be SD. May be flash.
So we don't know about the needs for wear leveling.
Actually, we have a part number: AT24C512 - which, presumably, answers that question?
Yes, you are correct. My brain did a dangerous and incorrect pattern matching there, checking off chip id as an AT89C51 or similar.
With our reading comprehension - more care we must take!