I am prototyping (point to point wiring only) a digital circuit with multiple shift register IC's to be clocked simultaneously at 500Khz. The distance between the clock source and the IC clock pins is going to be about 5 inches max. How should I lay this out to make sure it works?
|
added: PVC insulation of wire-wrap awg30 has about the same e = 4 and twisted pair 8~10 twists /" as I recall is around 150 Ω, characteristic impedance. Not so important at these slow speeds but do not bundle WW wire signals together. Crosstalk can make a large point-point network fail with WW wire. ( Had a bad experience in 1978, aircraft tech had to rewire backplane from tight WW bundles to direct random point-to point wiring to eliminate crosstalk glitches so my design would work. )
add: same is true with PVC permitivity
I found these just now, and they may be useful; Board design http://www.alternatezone.com/electronics/files/PCBDesignTutorialRevA.pdf EMI design http://www.ti.com/lit/an/szza009/szza009.pdf |
|||||||||||||||||||||
|
|
At 500 kHz, you have a 2 us clock period, and you don't have to worry about set-up times. Assuming you're using a 5 V power, supply the part you referred to has a hold time of 40 ns (min) and a propagation delay of ... well they don't specify a minimum but they imply a minimum of about 93 ns (for no capacitive load). That gives a 50 ns slack between the time the second shift register clocks in its input and the time that the first shift register output changes, invalidating the second shift register input. If you just keep your clock lines reasonably short, you should have no problem with this design. If you do have problems, then go back and figure out how to minimize the clock line impedance (keep a ground wire parallel to each clock wire), and finally if that doesn't work, start worrying about how to route the clock --- counter-propagating relative to the direction of data flow is probably best, but really with 50 ns slack it shouldn't matter at all. EDIT Wouter is absolutely right (in a comment to his own answer) that you must evaluate the "minimum propagation delay against the maximum required data hold time". And that nothing in the data sheet guarantees the circuit will work. However, we should note also the data sheet gives a (typical) formula for the propagation delay as a function of load capacitance: 93 ns + (0.55 ns/pF)CL (for the worst case: t_PLH at 5 V Vdd). That means
I'm assuming, since you're using point-to-point wiring, this is a one-off circuit and a manual adjustment is a reasonable choice. For a mass-produced product you would want a much more sure solution than this. EDIT 2
|
|||||||||||||
|
|
Theoretically, your design won't work because the chip requires a non-zero data-hold time (period in which the input data must be stable after the active clock edge), while the output of the previous chip has no guaranteed minimum data out delay (from the active clock edge to the output). Whether this is a problem in practice depends on the actual data out delay. Note that this has NOTHING to do with the clock frequency. If you have problem there are a number of possible solutions. The best is to use a chip that has a special delayed data out, intended for chaining (that output changes delayed, or even on the opposite clock edge). Example: CD4094, p3 of the datasheet show the extra register that is clocked by the inverted clock, to yield a half-cock delayed output suitable for daisy-chaining. The second best is to use a chip that has a zero data-hold requirement. The 74HC595 , p11, has a typical hold time of -2, but note that the minimum is +3. Funny, a minimum that is lager than the typical vlaue, but it makes sense. This suggestion can be combined with the next suggestion. The third best is to delay the data change (series resistor and/or capacitor to ground) and/or to feed the clock starting at the most downstream shift register (so the SRs will be clocked back-to-front). (This approach is a stopgap measure at best.) An alternative that has some design impact is to invert the clock for every other SR (= feed the odd numbered chips with the inverted clock). There is some discussion of this approach on SE, but I don't recall where. It does lose you some SR outputs. |
|||||||||||||
|