Electronic – Maximum length of Atmel AVR ISP ribbon cable

avricspispribbon-cable

I recently picked up a cheap USB based ISP (in-system programmer) for Atmel AVRs. There are two variants of the programming socket that are used with these devices, a 10-pin and a 6-pin. Unfortunately my ISP only came with a 10-pin cable, whereas most of my devices use the 6-pin socket. It is pretty easy to construct a 10-to-6 pin adapter (the signals are the same, they're just physically arranged differently on the larger 10-pin connector) and I would like to make a 10-to-6-pin ribbon cable. What is the maximum length that I can make it? (It came with a fairly short cable, about 8 inches, and I would like to slightly lengthen this if possible, to 1 or maybe 2 feet.)

Best Answer

There is no formal maximum length cable (within sensible reason) and the maximum reliable length varies with the quality of the implementation.

As the cable gets longer the capacitance and inter conductor noise coupling rises* and depending on design decisions (or lack of decisions) by the makers, maximum reliable length will vary.
There are some designs which may be "flaky" at 1" cable length and I'd start to get nervous using an eg 10 foot cable with even the best of designs (but it MAY work OK). But, 1 or 2 feet should be OK in most cases. Erring on the shortest sensible length will do you no harm electrically.

Trying 2 feet and seeing what happens costs you an extra termination at one end (or a reused plug if you are clever and lucky) if you have to shorten the cable due to reliability issues.


*Inductance and resistance increase as well but I'd generally expect capacitive coupling and loading to be the key issue.

Related Topic