Wire length for synchronous serial?
Professor Chaos
Posts: 36
Does anyone know what a reasonable distance is for synchronous serial communication?
I am contemplating the following arrangement: a sensor module with several sensors feeds them into a 74HC165 shift register. The BS2 then reads the shift register. I am wondering how much distance can separate the BS2 board and the sensor module board before I run into problems.
Along the same line, is it a problem to supply the sensor module with +5 v using a power supply (like the BoE) some distance away?
Thanks
I am contemplating the following arrangement: a sensor module with several sensors feeds them into a 74HC165 shift register. The BS2 then reads the shift register. I am wondering how much distance can separate the BS2 board and the sensor module board before I run into problems.
Along the same line, is it a problem to supply the sensor module with +5 v using a power supply (like the BoE) some distance away?
Thanks
Comments
For the power, regardless of the distance, I would recommend providing Vin over the cable and regulating it down to 5V at the module end. This will help, not only with I2R losses through the cable, but also with any noise that might be induced along the way.
-Phil
I'm not familiar with RS422 signaling, but isn't it quite a different beast than using serial, clock, and latch lines on a reigster?
Coming back from the shift register is a little more complicated, since its output can't source or sink the kind of current the Stamp can. An open-collector transistor driver would work here, with a 3.3K pull-up resistor on the Stamp end. Just remember that your return signal will be inverted!
While you may even get by with providing 5V over this distance, I'd still be more inclined to feed Vin instead and regulate it down at the other end to 5V. It requires nothing more than a cheap 79L05 78L05 regulator and a couple caps. If you choose to forgo even this, at least add a 22uF tantalum to the remote circuit between +5 and ground.
Regarding the RS422 option: at the receiving end there would be receiver ICs that convert the differential (RS422) signals back to logic levels for your shift register chip. But this would be way overkill for a mere 20-foot run!
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 3/7/2007 6:24:32 PM GMT
Clearly I am reaching the limits of my electronics understanding when we start talking about tying lines to both ground and power... I think I need to pick up a good book about such matters. Any recommendations?
Thanks
-Phil
Yes, if you tied to both power and ground with a wire, that would be a very bad thing. That's why you use a 2.2 K and 3.3 Kohm resistor.