I am connecting my microprocessor to a SPI device through a cable, with the SCK, MOSI, SS and MISO lines, in addition to +3.3V. I was told it is advisable to twist each line cited above, including the +3.3V, with a ground wire. Should the ground wires be grounded on both master and slave sides? Are ground loops a potential issue here?
Parameters:
- 10Mhz clock speed
- Cable length: 1m
- Buffers: NL27WZ17DFT2G x8
- Shielding: Yes
- AWG: 26 or 28
- Series resistor: 33 Ohms
- Termination resistors: 100 Ohms
Detail on the cable: 5 twisted pairs, a hard find to be honest. Aluminium foil + metal braid connected to chassis ground on both sides via D-SUB connectors. Chassis ground isn't connected to signal ground on sensor side, only on master side.
SE0
bus state is a common-mode signal. I think a lot of people forget this, and hand-wave that USB is differential, and then lift their shield grounds, and wailing and gnashing of teeth ensues. As for twisting with a signal, consider the limiting case, a signal surrounded by ground wires: you'd have coax. There's certainly nothing wrong with a signal going through a good old coax cable! \$\endgroup\$