Recommended max length of data bus?
Moskog
Posts: 554
Today I hooked up the DS1620 into the parallell CS-Clk-Data-bus on my BS pcb only to discover the temperature could not be read and the RTC on the main board·only gave strange outputs. The 1620 is placed about 35 meters away and connected to the main pcb through an underground·phone cable. When disconnecting the 1620 board·from the cable, leaving the cable still connected to the main board,·I still got the problem with the RTC.. so I guess the cable itself is·making the problems.
Testing the cable with the multimeter indicated no shorts but the capacity between each leader is about 20nF.
The cable is a three pair phone cable including Vss, Vdd, Cs, Clock and Data line.
Will the cable simply be too long?
Testing the cable with the multimeter indicated no shorts but the capacity between each leader is about 20nF.
The cable is a three pair phone cable including Vss, Vdd, Cs, Clock and Data line.
Will the cable simply be too long?
Comments
Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
The RTC only gave indication that something did not work as it stopped showing time in the display,·but resumed showing correct time once the cable was disconnected. That happend even though the 1620 not was connected in the other end of the cable.
I had another 1620 connected·to the bus-connector with just a couple of meter cable with no problems, this new remote 1620 should replace that one when I faced this new problems.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
·
It recommends the pairing of each data line with each other.
I have noticed "each (twisted pair)·data line should be paired with Vss".
So using 4 pair CAT 5 would be an improvement.
I am no transmission line expert but 35 meters should not be a big problem.
Also check the calculation of pull-up resistors, ·they are fairly critical· on longer runs and depend on many factors.
·
As a minor side note – the data bus you are using is serial, not parallel.
·
A set of RS423 drivers would be good to 4000 feet, though.
But with 3 individual twisted pairs.
This means I cant twist each data line with its own ground line using this cable.
Because I didnt know this would be a problem I paired the lines this way: Vss+Vdd, Clk+Chipselect and Data+Unused line.
But, before I leave this cable.. What if I connect the DS1620 this way:
Clk+Vss
Data+Vss
Vdd+CS
I mean, does·the ChipSelect have to be paired, isn't that a clean 5V line when 1620 is selected?
And, vaclav_sal, you are right on the serial issue, I was just thinking parallell as most of the chips share the lines very parallell except the CS when looking at the pcb.
I suppose I need to settle down and think, I probably need another BS2 out by the 1620 to read the temperature there and then find another way to transmit the values back to the other BS, maybe by air or another smart way.
Clk+Vss
Data+Vss
Vdd+CS
It should definetly improve the situation.
I was just looking at this Bluetooth stuff ·if you like to experiment·with wireless.
There is minor gotcha - as advertized it only works between PC and an embeded device.
http://cgi.ebay.com/Bluetooth-serial-converter-UART-interface_W0QQitemZ350250094988QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item518c88518c&_trksid=p3286.c0.m14