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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/29/10 10:32
Read: times


 
#176282 - Thanks - excellent FAQ
Responding to: ???'s previous message
Thanks Erik - this is an excellent FAQ. In particular it's useful to know exactly when the 80C320 chip sets the RI and TI bits.

One or two more questions though for my full understanding:
  1. Does reading SBUF have any effect on the chip? Is receipt of the next byte inhibited until I read SBUF, for example? If I'm not interested in the value of the byte received, or if I don't know whether a byte has been received at all, do I still have to read SBUF to be sure the chip is ready to receive the next byte?
  2. Does clearing RI have a similar effect? If I don't clear RI, will the chip receive another character? (I know that if I don't clear RI I won't be able to tell when a byte has arrived).
  3. When receiving another byte, what exactly happens to the value in SBUF, and when? If I continually read SBUF while a character is being received, do I actually see the new character shift through the register, and the old character shift out? Or does the old value of SBUF remain until the new byte has been fully received, and does it then get "instantaneously" transferred into SBUF?
Thanks - Rowan

List of 21 messages in thread
TopicAuthorDate
Receiving serial bytes on 80C320 UART            01/01/70 00:00      
   here            01/01/70 00:00      
      Thanks - excellent FAQ            01/01/70 00:00      
         "bible time"            01/01/70 00:00      
            Truly biblical!            01/01/70 00:00      
   My recommendation...            01/01/70 00:00      
      Useful ideas - but I don't want to change the hardware            01/01/70 00:00      
         You are absolutotally unconditionally confused            01/01/70 00:00      
            !RI or /RE            01/01/70 00:00      
               I'll re-answer the post above            01/01/70 00:00      
                  Use previous advice and keep receiver enabled            01/01/70 00:00      
                     This can't be right...            01/01/70 00:00      
                        How to get it working            01/01/70 00:00      
                        sometimes right, sometimes wrong            01/01/70 00:00      
                           e-mailed to Steve, Craig --- forum FYI            01/01/70 00:00      
                           We're getting there...            01/01/70 00:00      
                              I believe you are corect....            01/01/70 00:00      
                                 join the club            01/01/70 00:00      
                                    "No other way??"            01/01/70 00:00      
                                       in my (personal) opinion            01/01/70 00:00      
         what is "other code" ?            01/01/70 00:00      

Back to Subject List