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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/06/04 11:15
Read: times


 
#82589 - RS485 & bus turnaround
Responding to: ???'s previous message

I've found the exact timing of the bus turnaround should not be too critical - assuming you have a correctly functioning RS485 bus. In the instance where the TI gets triggered midway through the stop bit - disabling the 485 driver should allow the bus to settle in the idle state (assuming we have the requisite bias resistors and termination) thus maintaining the stop bit (as seen by the receivers). Some protocols can ignore junk characters if the bus isn't biased correctly (also max485's behave differently to most other '485 chips with an unbiased bus) but since I use Modbus RTU a lot, it uses character timeouts to mark the end of message. If you get junk chars due to an unbiased bus, the message fails. The only cpu I had troubles with RS485 with was the Z180 as the designers forgot to add an interrupt on the uart shifter being empty (or even a status bit) thus the interrupt happened on the holding buffer being empty and there was still a character being shifted out. What a pig it was. Zilog did fix it in the Z180S (they also has different mask versions that worked slightly differently). As for most other micros with inbuilt uart, there's not much of an issue.


List of 27 messages in thread
TopicAuthorDate
THE TIME OF TI            01/01/70 00:00      
   Bitrate            01/01/70 00:00      
      interrupt-driven            01/01/70 00:00      
      Why interrupt driven?            01/01/70 00:00      
         UART Serial Port Interrupt            01/01/70 00:00      
            all the above            01/01/70 00:00      
               UART communication by UART interrupt            01/01/70 00:00      
                  just TI=1            01/01/70 00:00      
                     serial interrupt in adc interrupt            01/01/70 00:00      
                        start with something simple            01/01/70 00:00      
                        misunderstand behaviour            01/01/70 00:00      
                  See the examples            01/01/70 00:00      
                  not has to, but can            01/01/70 00:00      
            The difference is            01/01/70 00:00      
               "            01/01/70 00:00      
                  He's right            01/01/70 00:00      
   How the 8051 UART works            01/01/70 00:00      
      The TI-bit Set Time            01/01/70 00:00      
         no, at the middle            01/01/70 00:00      
            The Transmitter Part, Actually            01/01/70 00:00      
               Setting of TI            01/01/70 00:00      
                  sometimes chip designers listen            01/01/70 00:00      
                     So, Erik            01/01/70 00:00      
                        where does it happen            01/01/70 00:00      
                           Mode 1 TI timing.            01/01/70 00:00      
                              How to post code            01/01/70 00:00      
                                 RS485 & bus turnaround            01/01/70 00:00      

Back to Subject List