Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Phil Hobbs Newsgroups: sci.electronics.design Subject: Re: SPI transmission line thing Date: Mon, 24 Aug 2015 14:33:10 -0400 Organization: A noiseless patient Spider Lines: 165 Message-ID: <55DB6366.4030308@electrooptical.net> References: <55D79732.1060909@electrooptical.net> <55D79EDC.1040106@electrooptical.net> <3almtad0pbb8vjbcgggv20foo0n8o8emr5@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: mx02.eternal-september.org; posting-host="7f274aa16eb7662e9246b4f248fa3066"; logging-data="20216"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iM8DVwE9+GF8dQC81Qy5G" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 In-Reply-To: <3almtad0pbb8vjbcgggv20foo0n8o8emr5@4ax.com> Cancel-Lock: sha1:swSME4CLNrJDgKaeY2/Xi4STYZA= Xref: csiph.com sci.electronics.design:374331 On 08/24/2015 01:37 PM, John Larkin wrote: > On Fri, 21 Aug 2015 17:57:48 -0400, Phil Hobbs > wrote: > >> On 8/21/2015 5:47 PM, upsidedown@downunder.com wrote: >>> On Fri, 21 Aug 2015 17:25:06 -0400, Phil Hobbs >>> wrote: >>> >>>> On 8/21/2015 5:09 PM, rickman wrote: >>>>> On 8/21/2015 4:13 PM, Phil Hobbs wrote: >>>>>> On 08/21/2015 02:33 PM, John Larkin wrote: >>>>>>> On Fri, 21 Aug 2015 10:30:51 -0700 (PDT), Lasse Langwadt Christensen >>>>>>> wrote: >>>>>>> >>>>>>>> Den fredag den 21. august 2015 kl. 18.12.49 UTC+2 skrev rickman: >>>>>>>>> On 8/21/2015 11:42 AM, John Larkin wrote: >>>>>>>>>> On Fri, 21 Aug 2015 06:30:24 -0500, "Tim Williams" >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> Yeh, what clock frequency? >>>>>>>>>> >>>>>>>>>> That doesn't matter; only edge quality matters. >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Glancing at the listing, I suppose you've modeled the traces as >>>>>>>>>>> transmission >>>>>>>>>>> lines of typical impedance? >>>>>>>>>> >>>>>>>>>> 6 mil traces on the top of a 6-layer board, with L2 being the ground >>>>>>>>>> plane. 88 ohms according to AppCad. >>>>>>>>>> >>>>>>>>>> If you can gloss over the mismatch (alternating >>>>>>>>>>> high impedance transmission lines and shunt capacitances or low >>>>>>>>>>> impedance >>>>>>>>>>> lines look like a lowpass filter), then the average impedance can be >>>>>>>>>>> terminated (source and/or load) and overshoot/ringing will be >>>>>>>>>>> minimal. >>>>>>>>>> >>>>>>>>>> That's the heart of the problem: the transmission line traces are >>>>>>>>>> periodically loaded with lump capacitances. Driven by slow edges, you >>>>>>>>>> can pretend that it's just a lower impedance line. But drive it with >>>>>>>>>> fast edges, it's a ringing nightmare. >>>>>>>>>> >>>>>>>>>> End termination requires an insanely brute driver to avoid voltage >>>>>>>>>> loss, especially in the tee config. Driving one end and terminating >>>>>>>>>> the other got ugly. Source termination solves some problems. >>>>>>>>>> >>>>>>>>>> The >>>>>>>>>>> transition itself might be ugly (a lumpy rise, due to reflection >>>>>>>>>>> and loss in >>>>>>>>>>> the LPF structure, and due to the effect of source termination), >>>>>>>>>>> but if it's >>>>>>>>>>> still fast enough, who cares? >>>>>>>>>> >>>>>>>>>> Yup, it seems to work. Design by instinct and simulation. >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Are those eight channels actually critical in regards to timing / >>>>>>>>>>> jitter, or >>>>>>>>>>> do they not matter? >>>>>>>>>> >>>>>>>>>> They are SPI links up to isolated DACs, and we can have all the data >>>>>>>>>> setup/hold time we want, so relative alignment doesn't matter. We're >>>>>>>>>> simulating thermocouples, so there's no rush. >>>>>>>>>> >>>>>>>>>> I should use HC244s at 3.3 volts, not HCTs. The HCT comment was left >>>>>>>>>> over from another version that didn't work as well, namely 5 volt >>>>>>>>>> drive with both source and end terminations to wind up with 3.3. >>>>>>>>>> >>>>>>>>>> The design is messy in that we have to keep chasing the layout guy to >>>>>>>>>> make sure our clock terminations are compatible with his placement >>>>>>>>>> and >>>>>>>>>> routing. >>>>>>>>> >>>>>>>>> If this is a conventional clock, why not use a conventional >>>>>>>>> multi-output >>>>>>>>> clock driver? Or is this a gated clock? >>>>>>>>> >>>>>>>> >>>>>>>> SPI clock, so I'll assume burst of clock when ever there is a >>>>>>>> transaction >>>>>>>> with the other end >>>>>>>> >>>>>>>> a series resistor source termination(ish) is usually how it's done >>>>>>>> >>>>>>>> -Lasse >>>>>>> >>>>>>> Source termination shouldn't work with multiple loads along a line. It >>>>>>> does if you slow down the drive some. >>>>>>> >>>>>>> Driving my setup from one end works, too, but the tee drive is >>>>>>> prettier. >>>>>>> >>>>>>> CMOS keeps getting faster. The AHC and VHC and Tiny parts, and FPGAs, >>>>>>> can output crazy edges, like 600 ps, and that can cause all sorts of >>>>>>> problems. >>>>>>> >>>>>>> >>>>>> >>>>>> How about skinny serpentine traces so the reflections all arrive at >>>>>> once, with the correct impedance? That would basically turn it into a >>>>>> single drop, so you could just series-terminate at the driver. >>>>> >>>>> I don't follow what you are saying. >>>>> >>>> >>>> If you have, say, a 30-ohm trace, and split it into eight 240-ohm >>>> traces, either all at once (30 ohm -> 8x 240 ohm) or one at a time (so >>>> that at the forks the main trace goes 30 -> 34.3 -> 40 -> 48 -> 60 -> 80 >>>> -> 120 -> 240 ohms respectively), there are ideally no reflections at >>>> the splits. >>> >>> Can you really implement 240 ohm (unbalanced) PCB tracks ? The tracks >>> would have to be really narrow. >> >> For arbitrary values of 240. ;) >> >> It might need two 30-ohm traces, each feeding four 120-ohm traces. The >> principle is to make the reflections coincide in time, so that you can >> get rid of them all at once with a series termination. >>> >>>> If the branch lengths are chosen so that the reflections all arrive back >>>> at the driver at once, then at that end you have the usual >>>> series-termination, resulting in no ringing. >>> >>> The classical Wilkinson power divider will require a 1/4 wavelength >>> traces between each power division points. >>> >> Not exactly. A Wilkinson needs to be 1/4 wave long because it goes >> 50->2 x 70.7->50 ohms, so there's a 180 degree reflection at each end, >> and you need the phase delay to make them cancel. If you went 50 -> 2 x >> 100, there would be no reflection. >> >> The reason the Wilkinson is useful is that it has a 100-ohm resistor >> between the two split outputs, so differential-mode reflections cancel. >> (Common-mode ones obviously add.) >> >> Cheers >> >> Phil "RF guy in a previous life" Hobbs > > We can get about a 90 ohm trace on the top of a 6-layer FR4 board, > with the ground plane as layer 2 about 10 mils down. That's a 6 mil > trace. A 6 mil trace would be about 50 ohms on an inner layer. I > don't see how people can get sensible impedances on inner layers of 12 > and 16 layer boards. > > Use Rogers. ;) Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC Optics, Electro-optics, Photonics, Analog Electronics 160 North State Road #203 Briarcliff Manor NY 10510 hobbs at electrooptical dot net http://electrooptical.net