2021-09-29 09:29 PM
Two CANs on the same board. Can I connect CAN1TX to CAN2RX and CAN1RX to CAN2TX?
2021-09-30 12:18 AM
Never tried it myself but why not, try with some diodes and a pullup resistor.
The canbus line needs to be pulledup high when idle(pullup resistor, if your chips logic is 3v3, use 3v3 for the pullup)
The Rx and TX need to be conneted together, so we need a diode to avoid Tx lines to spill their voltage and mess with the bus.
2021-09-30 12:09 PM
Thanks
2021-09-30 12:26 PM
Keil has white papers on this and on STM3
2022-05-12 09:02 AM
The approach looks valid for low bitrates only.
2022-05-12 11:29 AM
Bob suggests it's certainly viable to 500 Kbps on small boards
https://www.keil.com/appnotes/files/apnt_236.pdf
Similar mechanics could be applied to UART single wire bus.
2022-05-13 12:05 AM
This speed is far from being confirmed and this trick is probably not viable in production (automotive grade, noise immunity, etc ...).
Schottky diodes with fast transient response are required. The pull-up value has probably to be decreased if the number of controllers increases, for smart edges.
2022-05-15 10:58 PM