Shop OBEX P1 Docs P2 Docs Learn Events
Trace length, when is it important, and when can I ignore it. — Parallax Forums

Trace length, when is it important, and when can I ignore it.

Capt. QuirkCapt. Quirk Posts: 872
edited 2011-07-26 17:26 in General Discussion
For the last several days I have been trying different trace layouts that lead from the Propeller to a breadboard, and 4 bit lcd. At first I didn't care what my trace lengths they were, but tonight I noticed how easy it is to create lengths greater than a inch longer than the average length of my other traces leading to the bread board.

1) Is it good practice to keep traces from the propeller within a +/- range? or not necessary?

2) I have often read to use decoupling capacitors as close to the chip as possible. I know the trace length is important here, but if I use 2 capacitors, should all the traces be the same length? or is it ok to have longer traces near the crystal (29 & 32) and shorter traces at 9 & 12.

3) I assume the eeprom trace lengths are important.

4) Are the programming trace lengths important?

5) Is there something I else that I should be concerned with.

Thanks

Bill M.

Comments

  • LeonLeon Posts: 7,620
    edited 2011-07-26 00:48
    I/O track lengths don't matter much.

    Decoupling capacitor and crystal connection lengths don't need to be equal. I'd keep the crystal tracks < 0.5".

    Other connections like the EEPROM and the programming tracks don't matter much, within reason.
  • davejamesdavejames Posts: 4,047
    edited 2011-07-26 08:34
    Hello Bill,

    In general, trace length can be critical in two areas (I'm sure the Forum Wizards can comment deeply):
    1 - when the length of a trace approaches the wavelength (or multiple) of the signal using it as a path
    2 - when the trace length poses excessive parasitic capacitance (mainly due to circuit board composition)

    I believe Number 2 is the reason that there is great emphasis on placing the crystal close to the uC; less parasitic capacitance to disturb the resultant frequency.

    Number 1 comes into play at "high frequencies" (what's that?) where reflections can occur resulting in a loss of power.
  • Dave HeinDave Hein Posts: 6,347
    edited 2011-07-26 08:54
    At the speed of light one foot is about one nanosecond. I suppose trace length could cause problems at a GHz or higher, but it seems like it shouldn't be a problem for the Prop on small cards. I think capacitance would be the main issue.
  • Mark_TMark_T Posts: 1,981
    edited 2011-07-26 08:56
    Trace length is affected by many things - for a low bandwidth signal its not critical, for driving a high speed logic gate that cannot tolerate runt pulses you have to keep ringing and crosstalk under control (short traces help, proper transmission line termination helps). For our purposes its rise/fall times that matter, rather than analog frequency - a 2ns risetime is equivalent to 1650MV/s which makes each pF of parasitic capacitance pull 1.65mA (and if the capacitance is to another signal line it is pushing that 1.65mA into that line (which will respond with 0.25V or so of crosstalk if its a 150 ohm characteristic impedance)...

    I don't know what the actual rise/fall times are from the Prop pins, but this gives you some idea about the importance of layout when dealing with fast logic circuitry. A good understanding of electromagnetism is useful for avoiding pitfalls. For fast signals its common to design logic traces as transmission lines (which is why 4 and 6 layer PCBs are common)
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2011-07-26 10:41
    The inductance caused by the length of the trace in combination with the parasitic capacitance of the board creates a series of low-pass L-C filters over the length of the wire or trace. These low-pass filters can 'round' the edges of a what would normally be a nice square wave. This rounding can also create small phase delays in addition to the normal propagation delay of the signal itself through the trace wire.

    The best practice it to keep all leads as short as possible.


    http://www.consultrsr.com/resources/eis/induct5.htm
  • Capt. QuirkCapt. Quirk Posts: 872
    edited 2011-07-26 14:44
    Initially the ergonomics of the project were more important to me than the trace lengths. But my approach is adding a greater level of complicity. And my recent efforts to keep nearly the same trace lengths using Dip Trace have created traces that just look ugly.

    The board is intended to be a "go-between" for wires or cables connected to a sensor or a system of sensors. I don't like having sensors wires hanging off a bread board, so the sensors are connected directly to the board. So if I need a pull-up resistor, or a circuit, I can use the breadboard as a prototyping area only, and eliminate sensor and lcd connection problems. The ergonomics are important because all my USB and power supplies are on my right hand side.

    Since I can't really control breadboard and cable wire lengths, I was hoping I was just making trace lengths overly complicated. Based on your responses, everybody would probably agree that capacitance could be an issue. But will capacitance really make any difference given I have no control over the breadboard or the wires connected to the board? About half of you say "not to worry about it" ---although Beau is making me think twice about how far a hall sensor can be located from the Propeller.

    I really don't want to use up a chunk of your time, because I know it would be easy for me to get technical about every little detail. I have posted my current trace routing from the Propeller to the bread board and programmer, so you can give me just a simple answer: Am I screwing up? or it looks like Smile, but it will be OK.

    Thanks

    Bill Mazzacane
    1024 x 634 - 88K
    1024 x 616 - 76K
  • Mark_TMark_T Posts: 1,981
    edited 2011-07-26 17:26
    The traces don't look that long - so long as you have ground plane covering most of the spare area it should keep things under control (minimising inductances). Crosstalk gets worse with lower supply voltage, faster edges and tracks run side-by-side away from groundplane. With 3V3 supply you need 1.5V of crosstalk before anything goes wrong at all! Several inches is not going to be a problem at tens of MHz, but at GHz speeds will probably bite you.
Sign In or Register to comment.