Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/01/05 19:07
Read: times


 
#86308 - Ring-buffer
Responding to: ???'s previous message
Vu Nhu Khanh said:
thanks for your reply but i'm a newbie so what is the ring buffered serial io ?

A ring buffer (or "circular buffer"), as the name suggests, is a buffer that behaves as if its elements were in a ring.

You have a read pointer (or index) and a write pointer (or index);
Each time you write (or read) a byte, you advance the write (or read) pointer;
When a pointer is at the end of the buffer, advancing it makes it "wrap around" back to the start of the buffer - hence it looks like the elements are in a ring.

Ring buffers can be implemented just as easily in assembler as in 'C'



List of 11 messages in thread
TopicAuthorDate
digital audio with 89s52            01/01/70 00:00      
   coexist            01/01/70 00:00      
      reply to mr erik            01/01/70 00:00      
      make serial processing interrupt driven            01/01/70 00:00      
         thanks but i don't know C            01/01/70 00:00      
            Ring-buffer            01/01/70 00:00      
   re: digital audio with 89s52            01/01/70 00:00      
      Telephone Quality            01/01/70 00:00      
         thanks every body            01/01/70 00:00      
            Sampled data systems recommended reading            01/01/70 00:00      
               Dear Mr Hans Van Pelt            01/01/70 00:00      

Back to Subject List