I'm trying to establish communication between 2 MCU using TX/RX over 1 line. Please refer to the image.
Questions:
Will this work? There will be an echo for sure.
If MCU 1 sends a "123" signal, MCU 1 and MCU 2 will receive "123" at the same time.
If MCU 2 sends a "678" signal, MCU 2 and MCU 1 will receive "678" at the same time.
Is this assumption correct?
In the long run, will it damage the MCU?
Thank you.
Answer
While your assumption of how the RX works is correct, care needs to be taken with the two TX driving the same line. You want to at least buffer the TX with a reverse diode and a pull-up resistor, like this:
Doing something like this is nothing new and there are lots of references on the internet. This configuration will actually be useful to help detect transmission errors as the transmitter also receives the loop back data.
You might want to look up some stuff on the internet such as this and this.
No comments:
Post a Comment