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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/07/05 11:38
Read: times


 
#104809 - buffers
Responding to: ???'s previous message
U Kaz said:
I just changed setting and 0A0 with 020 and its working all fine, strange though that why 0A0 was giving space in bray terminal well thats computers and electronics.

Well that IS strange, haven't you set Bray's for 7-bit data?

U Kaz said:
was just wondering that in serial communication the data stays at SBUF? as for example if I want to send 'F' to uC and by mistake type 'FF', the uC will execute first 'F' and when it comes back from loop it executes the second 'F' straight away. I think to stop this happening is next stage of serial communication, am I right ?


I wanted to direct you to the "bible" but found out it is actually not there... (or am I looking wrong?)

The SBUF in receive direction is double-buffered, which means that you a received byte is not lost until the following byte is received completely (precisely, until halfway its stopbit). If you expect your software to process bytes slower than they might arrive, you should consider interrupt-driven receiver rutine: removing the received byte from SBUF immediately after its reception triggers the interrupt, placing it into a buffer of your own; later processing it in the "main" (outside the interrupt).

U said:

U (well its easier to call someone named U, as hey U!!!...:) )
Well, it is fine, as long as this IS you real name, as required by the 8052.com etiquette.

Jan Waclawek


List of 21 messages in thread
TopicAuthorDate
serial communication tutorial            01/01/70 00:00      
   step by step '51 serial            01/01/70 00:00      
   Thanks, so did it happen?            01/01/70 00:00      
      use the 232 part of the sbc schematic            01/01/70 00:00      
      SBC RS232            01/01/70 00:00      
      max232 data sheet            01/01/70 00:00      
   Good solution of 80C51 RS232 problem.            01/01/70 00:00      
      More good solutions...            01/01/70 00:00      
         USB version            01/01/70 00:00      
            USB version - clickable            01/01/70 00:00      
      not very good            01/01/70 00:00      
   Many thanks, one last thing            01/01/70 00:00      
      did you hit ENTER key            01/01/70 00:00      
         now I have myself wondering..            01/01/70 00:00      
            Yes I did            01/01/70 00:00      
               Hyperterminal Settings            01/01/70 00:00      
      hyperterminal, setup            01/01/70 00:00      
         Yes it works like this            01/01/70 00:00      
            hyperterminal II.            01/01/70 00:00      
               LOVELY JUBLY            01/01/70 00:00      
                  buffers            01/01/70 00:00      

Back to Subject List