TransWikia.com

Are Dual Bus Transceiver or Analog Switch best practice to manually switch between SPI devices?

Electrical Engineering Asked by fr_nk on November 11, 2021

I have two different use cases for 4 lines (this could be an SPI bus or other digital signals). The goal is to manually switch all four lines between the two different use cases with just a single switch or jumper. That can be done when the device is off.

Initially I had a DIP switch for each line, but I was wondering if one or both of the following solutions would work as well? If they do, which one should be preferred for which use case? Is there an alternative I am not seeing?

Note: Since the four lines are not necessarily SPI, I can’t use CS, but I am using SPI for the schematics below. Also, should it be relevant: The signal at J1 arrives through a twisted pair cable…

Variant 1 (Analog Switch eg MAX4784):
Variant 1 using an analog switch

Variant 2 (Dual Bus transceiver, eg SN74AVC4T774)
Variant 2 using a dual bus transceiver

One Answer

The transceivers are potentially capable of stronger drive than the processor.

However, the transceivers will have increased propagation delay compared to the mux.

On the other hand, the mux introduces additional capacitance and resistance which (in my opinion) is more likely to become a problem before the latency of the mux does.

But the mux is a single-chip solution whereas the transceiver is two. Since this is an SPI bus that does not require a transceiver IC (like RS-232, RS-422, or RS-485) then the fact the mux is single-chip solution probably wins out.

For interfaces that require a ruggedized transceiver IC anyways (like RS-232, RS-422, or RS-485) you do not want to use a mux if you can help it because you are unlikely to find a mux with that is just as rugged as the transceivers (i.e. ESD protection, fault protection, high common-mode tolerance, etc). Not to mention that if a transceiver IC is needed anyways, you end up with two ICs either way (either transceiver+mux or transceiver+transceiver) so there is no chip count advantage to going with a mux in this case.

Answered by DKNguyen on November 11, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP