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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/19/06 23:25
Read: times


 
#129788 - Uart is full duplex
Responding to: ???'s previous message
If you send a character from the 8051 to your PC running hyperterminal, Hyperterminal won't echo the character you've sent to it - so you won't get a receive character or receive interrupt on the 8051. If you want the 8051 to echo the characters it receives, as to whether you disable receive interrupts is up to you. There can be a receive character coming in whilst you are sending a character - full duplex. The UART has separate pieces of hardware for the receive and transmit tasks. There is also a holding buffer in the UART, when a complete character is received, it is placed into the holding buffer. This gets read when you read SBUF. In the meantime, another character may be being received, but you must read the holding buffer before the next character completes, otherwise you'll loose the first character. There is a similar mechanism for the transmit side.

As for Keil - I have no experience here.

List of 21 messages in thread
TopicAuthorDate
the nature of the UART/steping through interrupts            01/01/70 00:00      
   Uart is full duplex            01/01/70 00:00      
      Thanks Russell            01/01/70 00:00      
   UART Question Part 2            01/01/70 00:00      
      You can not do both            01/01/70 00:00      
         In response to Neil            01/01/70 00:00      
            go with the bit            01/01/70 00:00      
         In response to Neil            01/01/70 00:00      
         In response to Neil            01/01/70 00:00      
            Sorry for teh tripple post...            01/01/70 00:00      
      More...            01/01/70 00:00      
         Search and Read            01/01/70 00:00      
         Thanks Russell            01/01/70 00:00      
         I hope Russell did not lead you down the garden pa            01/01/70 00:00      
            Erik - garden path indeed!            01/01/70 00:00      
               I'm using interrupts            01/01/70 00:00      
   Question about my interrupt driven UART            01/01/70 00:00      
      You know the answer.            01/01/70 00:00      
         Thanks Russell            01/01/70 00:00      
         answer is partially incorrect            01/01/70 00:00      
   Can't single step on UART            01/01/70 00:00      

Back to Subject List