Can't comment on the diodes, but disabling USART also turns off receive. That's why I disabled only transmit.
Can't comment on the diodes, but disabling USART also turns off receive. That's why I disabled only transmit.
The URL I referenced in post #4 shows diodes in TX lines. There's no coding required. Schottky diodes would be best.
http://cool-emerald.com/?p=711
Mr Demon,
I definitely solve this.
You will need a couple of transistor per each Tx output and 3 resistor.
As you said, if you disable the usart, also Rx line will be disable.
If you use diodes, you will need a conversor as MAX 232...
Problem with diodos, is due to signal keep positive if Tx is idle. Plus this, Impedance for Tx and Rx line are so sensitive.
If want to communicate several PIC without using interfacing, you can do it using the schematic that I will post next.
/jose p.
I needed 115200 at 48mhz, not sure diodes could handle it. Switching coms in software doesn't add hardware limitations.
Attached is a pdf schematic similar to Jose P's posting, but halving the number of transistors per channel.
Also need to add a TX BUSY bus to prevent collision. (Hold to ground when transmitting, tristate when idle).
A similar circuit ran fine at 115200 baud.
Almost any signal diode in series to the TX pins (cathode to the TX pin) with a bus pull up resistor on the anode could also work fine.
Tim.
Hey Everybody,
Thanks for this thread, you saved me a truckload of frustration! The series diodes worked in my case.
All the Best,
Paul
The way to avoid mistakes is to gain experience. The way to gain experience is to make mistakes.
Bookmarks