Other Parts Discussed in Thread: TS3A24157
I have a project where I use an ARM7 to communicate with CAN via the SN65HVD232D. I would like to add one more CAN channel than the microcontroller supports. I have thought about "multiplexing" the signal, with a switch (the TS3A24157, since my network operats at 125kbaud or slower). I only require serial use of the CAN devices, that is, I need one transceiver or the other - never both at the same time. I can stand a bit of downtime when switching devices.
Will such an idea work? I plan to switch TX/RX between the MCU and the transceivers only when both devices are in passive mode, and only enabling them after a short delay and reapplying settings.
I have tried this setup and was unable to send or receive CAN data. I am wondering if my idea is not possible, if my code is wrong, if my network may be improperly loaded, or if my schematic is incorrect.
I connect CAN_TX from the MCU to IN1, CAN_RX to IN2, and then connect CAN1_TX/CAN1_RX to NC1/NC2 and CAN2_TX/CAN2_RX to NO1/NO2 respectively. I can post a schematic if it would be helpful to visualize.
Thank you!