??? 09/23/09 17:59 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#169081 - It is all in the subpressed details Responding to: ???'s previous message |
Kiran V. Sutar said:
Hi Per Westermark,
Per Westermark said:
And what do you think happens with the signals, when you connect two transmitters together? Per Westermark said:
Parallel the 2 TX lines of the 8051's together and also the RX lines of the 8051's together.
Now treat them as 1 port to the PC with appropriate buffering etc. I think Tony Gelonese had meant; was to short the TX pins of both micros to each other and connect that pin to TransmitterINPUT pin of MAX232....I think this is workable. Per Westermark said: This will not be a problem if you have protocol such as Modbus (where PC is the Master), or even simple protocol that you use for RS485 multidrop networks.
Don't you think the PC will have a hard time hearing any messages sent from one of the two 8051 chips? Correct. And my original post did contain the following text: Some serial designs are using tri-state and some are using open-collector drive, to allow multiple masters on a wire. RS232 is designed for one master in each direction. It is a very special case that 8051 chips have weak internal pull-up. But that is not a general case. Some chips have options to configure push-pull operation. And only the datasheet will tell if it will automagically turn on push-pull of an I/O pin, when that pin is used as UART transmit. This is a forum where people have very varying knowledge levels. And very varying processors. And the intention to solve very varying problems. It is absolutely vital to not just post a one-liner claiming to be a general solution, when in fact there are a number of "gotchas" hidden in the solution. Besides the requirement that the processor only makes use of a weak pull-up - or have other ways of deactivating the transmit pin - a reader must also be informed that such a solution will limit the possible protocol options. |