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 00:04
Read: times


 
#176276 - Receiving serial bytes on 80C320 UART
I'm using the serial ports on a Dallas 80C320 to drive a half-duplex RS485 bus (i.e. the Rx and Tx pins are connected together, and I've got a control pin to switch the driver and receiver (a MAX483) on and off). Do I have to be careful that turning the driver off and receiver on does not make the receiver think that it's received a byte? Presumably it only needs a spike to make the UART think it's seen a start bit, and even if it sees nothing else, it will assume it's just received a NULL character. Do I therefore have to do clr RI and possibly read SBUF after turning off the driver, to make sure there's no spurious byte received?

If the receiver has received a byte (possibly the above spurious byte caused by turning the driver off), what do I have to do to enable it to receive another one? Do I have to clear RI? Do I have to read SBUF? If I don't do these things, and another byte comes along, what happens?
- does the byte get ignored?
- or does the byte overwrite what was in SBUF?
- can I detect that this has happened?

Just trying to be sure I've handled every eventuality so I get reliable communications with no lost bytes, no spurious bytes, no lock-ups etc.

Many 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