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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/12/11 20:26
Read: times


 
#181564 - A double-buffered solution also possible
Responding to: ???'s previous message
It would work just as well with a doubly-buffered solution, where the ADC capture alternates between two buffers while the serial transfer picks up the other buffer for transmission.

But having a single buffer that the ADC first fills before the serial transfer is started is a solution that will generate breaks in the sampled data when the ADC have to wait for the serial transfer to finish. It will also mean that the serial link is only used for a limited time, before having to idle while the buffer gets filled again.

As long as the serial port have enough bandwidth, the goal must be to keep the ADC constantly running. Switching between ring buffers or double-buffering is a question of architecture. The 8051 is best suited for ring buffers. A more high-end processor with DMA support would better like a double-buffered solution since one DMA channel can transfer data from one buffer to the serial port while another DMA channel can fill data from the ADC into the other buffer.

List of 40 messages in thread
TopicAuthorDate
Transmitting a 100 Hz signal through 8051            01/01/70 00:00      
   What is your problem?            01/01/70 00:00      
   RE: "the 8051 has transmission speed upto 19200"            01/01/70 00:00      
      the 8051 has transmission speed upto 19200            01/01/70 00:00      
         Incorrect analysis            01/01/70 00:00      
            Timing            01/01/70 00:00      
               Doesn't help to send at exact time - PC receive will jitter            01/01/70 00:00      
                  Windows For Sure Will...            01/01/70 00:00      
                  A Labview Limitation?            01/01/70 00:00      
         What makes you think that?            01/01/70 00:00      
            What makes you think that?            01/01/70 00:00      
               How fast are you sampling            01/01/70 00:00      
               Insufficient analysis            01/01/70 00:00      
                  20x            01/01/70 00:00      
         you can (I have) easily get 460kb.            01/01/70 00:00      
            No need to look for high baudrates            01/01/70 00:00      
               It doesn't help            01/01/70 00:00      
                  At least ...            01/01/70 00:00      
   Haven't you done this before...?            01/01/70 00:00      
   Here are the results in the form of images            01/01/70 00:00      
      Didn't bother to preview, did you?            01/01/70 00:00      
         How did you concluded?            01/01/70 00:00      
            Duplicate!            01/01/70 00:00      
         How did you concluded?            01/01/70 00:00      
            I think you're wrong            01/01/70 00:00      
            Looks close to 'as expected'            01/01/70 00:00      
               Seems like around 200Hz sample rate            01/01/70 00:00      
                  4 samples/period for the 50Hz signal            01/01/70 00:00      
            Not sure about your concept            01/01/70 00:00      
               Depends            01/01/70 00:00      
               Continuous monitoring?            01/01/70 00:00      
                  Ambiguity            01/01/70 00:00      
   Displaying the Signal at real time            01/01/70 00:00      
      Still not mentioned what the problem is            01/01/70 00:00      
         I do not think they know the problem            01/01/70 00:00      
            A Ring Buffer ...            01/01/70 00:00      
               A double-buffered solution also possible            01/01/70 00:00      
            What is the Problem.            01/01/70 00:00      
         real RS232?            01/01/70 00:00      
            Huge FIFO in USB-to-serial adapter            01/01/70 00:00      

Back to Subject List