Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #464743 > unrolled thread
| Started by | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| First post | 2017-06-16 16:57 -0400 |
| Last post | 2017-06-19 23:12 -0400 |
| Articles | 8 on this page of 28 — 13 participants |
Back to article view | Back to sci.electronics.design
ADC layout screwup Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-06-16 16:57 -0400
Re: ADC layout screwup John Larkin <jjlarkin@highland_snip_technology.com> - 2017-06-16 14:51 -0700
Re: ADC layout screwup Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-06-16 18:09 -0400
Re: ADC layout screwup John Larkin <jjlarkin@highland_snip_technology.com> - 2017-06-16 15:23 -0700
Re: ADC layout screwup "John Miles, KE5FX" <jmiles@gmail.com> - 2017-06-16 16:17 -0700
Re: ADC layout screwup Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-06-16 19:31 -0400
Re: ADC layout screwup John Larkin <jjlarkin@highland_snip_technology.com> - 2017-06-16 18:12 -0700
Re: ADC layout screwup Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-06-17 11:25 -0400
Re: ADC layout screwup John Larkin <jjlarkin@highlandtechnology.com> - 2017-06-17 11:04 -0700
Re: ADC layout screwup Martin Riddle <martin_ridd@verizon.net> - 2017-06-16 21:17 -0400
Re: ADC layout screwup "Tim Williams" <tiwill@seventransistorlabs.com> - 2017-06-16 21:22 -0500
Re: ADC layout screwup pcdhobbs@gmail.com - 2017-06-17 03:06 -0700
Re: ADC layout screwup Gunther Mannigel <newsgroups@mannigel.net> - 2017-06-18 17:29 +0200
Re: ADC layout screwup Joerg <news@analogconsultants.com> - 2017-06-18 13:12 -0700
Re: ADC layout screwup John Larkin <jjlarkin@highlandtechnology.com> - 2017-06-18 13:51 -0700
Re: ADC layout screwup Joerg <news@analogconsultants.com> - 2017-06-18 14:00 -0700
Re: ADC layout screwup John Larkin <jjlarkin@highlandtechnology.com> - 2017-06-18 17:30 -0700
Re: ADC layout screwup makolber@yahoo.com - 2017-06-19 09:06 -0700
Re: ADC layout screwup Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-06-19 13:04 -0700
Re: ADC layout screwup krw@notreal.com - 2017-06-19 21:28 -0400
Re: ADC layout screwup Joerg <news@analogconsultants.com> - 2017-06-20 13:47 -0700
Re: ADC layout screwup krw@notreal.com - 2017-06-20 20:41 -0400
Re: ADC layout screwup Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-06-20 14:07 -0700
Re: ADC layout screwup Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-06-19 13:22 -0700
Re: ADC layout screwup John Larkin <jjlarkin@highland_snip_technology.com> - 2017-06-19 15:44 -0700
Re: ADC layout screwup Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-06-19 16:07 -0700
Re: ADC layout screwup John Larkin <jjlarkin@highlandtechnology.com> - 2017-06-19 21:03 -0700
Re: ADC layout screwup rickman <gnuarm@gmail.com> - 2017-06-19 23:12 -0400
Page 2 of 2 — ← Prev page 1 [2]
| From | Joerg <news@analogconsultants.com> |
|---|---|
| Date | 2017-06-20 13:47 -0700 |
| Message-ID | <eqtfv0Fabg3U1@mid.individual.net> |
| In reply to | #465043 |
On 2017-06-19 18:28, krw@notreal.com wrote: > On Mon, 19 Jun 2017 13:04:58 -0700 (PDT), Lasse Langwadt Christensen > <langwadt@fonz.dk> wrote: > >> Den mandag den 19. juni 2017 kl. 02.30.12 UTC+2 skrev John Larkin: >>> On Sun, 18 Jun 2017 14:00:56 -0700, Joerg <news@analogconsultants.com> >>> wrote: >>> >>>> On 2017-06-18 13:51, John Larkin wrote: >>>>> On Sun, 18 Jun 2017 13:12:18 -0700, Joerg <news@analogconsultants.com> >>>>> wrote: >>>>> >>>>>> On 2017-06-16 13:57, Phil Hobbs wrote: >>>>>>> So we had a bit of a layout screwup with an SPI ADC: the apparently very >>>>>>> nice ADC122S625 dual 12-bit simultaneous-sampling, differential-input >>>>>>> serial ADC. How bad a screwup? Well, the output has like 20 LSBs of >>>>>>> junk on it. Blech. >>>>>>> >>>>>>> Weirdly, the junk is highly level-dependent. It's much less at outputs >>>>>>> near zero and gets steadily worse towards half-scale. >>>>>>> >>>>>>> My theory is that the SDO pin is coupling through into the sampled input >>>>>>> somehow, so that the change in the bit pattern is what's causing the >>>>>>> difference. The conversion is clocked by SCLK, so transitions in the >>>>>>> higher bits on SDO would cause errors earlier in the conversion, leading >>>>>>> to worse noise. >>>>>>> >>>>>>> The solution would appear to be to put the analogue inputs in a Faraday >>>>>>> cage made of pours, the way you do with SMPS wiring. >>>>>>> >>>>>>> Or am I nuts? It's supposed to be a _sampling_ ADC after all! >>>>>>> >>>>>> >>>>>> To me this sounds like poor grounding and/or bypassing. Assuming the IC >>>>>> designers didn't mess up. >>>>>> >>>>>> If you really suspect SPI pollution try AC termination at the far end of >>>>>> the SDO line and AC termination at the ADC for SCLK. If you have only a >>>>>> few inches of trace each then 33pF or 47pf in series with whatever the >>>>>> microstrip calculator shows as line impedance should work. >>>>> >>>>> AC termination can have strange effects for a burst clock like SPI. >>>> >>>> >>>> It shouldn't, as long as you do not make the capacitor unnecessarily large. >>>> >>>> >>>>> Series termination at the source is probably better. >>>>> >>>> >>>> Source can work as well but that requires cuts. It also requires that >>>> the line impedance does not change much along the way. >>>> >>>> >>>>> Good SPI chips have schmitts on all their inputs, but many don't. We >>>>> have fixed flakey SPI interfaces by adding a 47 pF cap from SCLK to >>>>> ground at the end, without ever understanding why. Scope probes >>>>> sometimes fix (or break) SPI interfaces. >>>>> >>>> >>>> Or a finger, after drinking 2-3 bottles of Belgian Tripel. It worked. >>>> Now I brew my own Belgian Tripel. >>>> >>>> >>>>> We did one parallel ADC to FPGA interface at 250 MHz and the FPGA guy >>>>> got the clock edge wrong. It usually worked! >>>>> >>>> >>>> I had a converter chip from a top notch manufacturer which only worked >>>> with SCLK reversed. The app engineer was puzzled and suggested to leave >>>> it that way. Luckily this was only a prototype system. >>> >>> >>> SPI = Seriously Problematic Interface. >>> >>> Sometimes Proper Input >> >> the problem start with the expectation that SPI is a standard, it is really >> just short hand for a couple of wires one of them probably a clock > > I2S has the same set of problems, in spades. > Worse ones. There are real hang-ups that sometimes require "banging the bus" or a power-cycle. So far I didn't have that with SPI and I used SPI a lot more than I2C, mostly much for that reason. -- Regards, Joerg http://www.analogconsultants.com/
[toc] | [prev] | [next] | [standalone]
| From | krw@notreal.com |
|---|---|
| Date | 2017-06-20 20:41 -0400 |
| Message-ID | <b0gjkctav99g1j82fevf8k3mtsi0ivvi9d@4ax.com> |
| In reply to | #465083 |
On Tue, 20 Jun 2017 13:47:31 -0700, Joerg <news@analogconsultants.com> wrote: >On 2017-06-19 18:28, krw@notreal.com wrote: >> On Mon, 19 Jun 2017 13:04:58 -0700 (PDT), Lasse Langwadt Christensen >> <langwadt@fonz.dk> wrote: >> >>> Den mandag den 19. juni 2017 kl. 02.30.12 UTC+2 skrev John Larkin: >>>> On Sun, 18 Jun 2017 14:00:56 -0700, Joerg <news@analogconsultants.com> >>>> wrote: >>>> >>>>> On 2017-06-18 13:51, John Larkin wrote: >>>>>> On Sun, 18 Jun 2017 13:12:18 -0700, Joerg <news@analogconsultants.com> >>>>>> wrote: >>>>>> >>>>>>> On 2017-06-16 13:57, Phil Hobbs wrote: >>>>>>>> So we had a bit of a layout screwup with an SPI ADC: the apparently very >>>>>>>> nice ADC122S625 dual 12-bit simultaneous-sampling, differential-input >>>>>>>> serial ADC. How bad a screwup? Well, the output has like 20 LSBs of >>>>>>>> junk on it. Blech. >>>>>>>> >>>>>>>> Weirdly, the junk is highly level-dependent. It's much less at outputs >>>>>>>> near zero and gets steadily worse towards half-scale. >>>>>>>> >>>>>>>> My theory is that the SDO pin is coupling through into the sampled input >>>>>>>> somehow, so that the change in the bit pattern is what's causing the >>>>>>>> difference. The conversion is clocked by SCLK, so transitions in the >>>>>>>> higher bits on SDO would cause errors earlier in the conversion, leading >>>>>>>> to worse noise. >>>>>>>> >>>>>>>> The solution would appear to be to put the analogue inputs in a Faraday >>>>>>>> cage made of pours, the way you do with SMPS wiring. >>>>>>>> >>>>>>>> Or am I nuts? It's supposed to be a _sampling_ ADC after all! >>>>>>>> >>>>>>> >>>>>>> To me this sounds like poor grounding and/or bypassing. Assuming the IC >>>>>>> designers didn't mess up. >>>>>>> >>>>>>> If you really suspect SPI pollution try AC termination at the far end of >>>>>>> the SDO line and AC termination at the ADC for SCLK. If you have only a >>>>>>> few inches of trace each then 33pF or 47pf in series with whatever the >>>>>>> microstrip calculator shows as line impedance should work. >>>>>> >>>>>> AC termination can have strange effects for a burst clock like SPI. >>>>> >>>>> >>>>> It shouldn't, as long as you do not make the capacitor unnecessarily large. >>>>> >>>>> >>>>>> Series termination at the source is probably better. >>>>>> >>>>> >>>>> Source can work as well but that requires cuts. It also requires that >>>>> the line impedance does not change much along the way. >>>>> >>>>> >>>>>> Good SPI chips have schmitts on all their inputs, but many don't. We >>>>>> have fixed flakey SPI interfaces by adding a 47 pF cap from SCLK to >>>>>> ground at the end, without ever understanding why. Scope probes >>>>>> sometimes fix (or break) SPI interfaces. >>>>>> >>>>> >>>>> Or a finger, after drinking 2-3 bottles of Belgian Tripel. It worked. >>>>> Now I brew my own Belgian Tripel. >>>>> >>>>> >>>>>> We did one parallel ADC to FPGA interface at 250 MHz and the FPGA guy >>>>>> got the clock edge wrong. It usually worked! >>>>>> >>>>> >>>>> I had a converter chip from a top notch manufacturer which only worked >>>>> with SCLK reversed. The app engineer was puzzled and suggested to leave >>>>> it that way. Luckily this was only a prototype system. >>>> >>>> >>>> SPI = Seriously Problematic Interface. >>>> >>>> Sometimes Proper Input >>> >>> the problem start with the expectation that SPI is a standard, it is really >>> just short hand for a couple of wires one of them probably a clock >> >> I2S has the same set of problems, in spades. >> > >Worse ones. There are real hang-ups that sometimes require "banging the >bus" or a power-cycle. So far I didn't have that with SPI and I used SPI >a lot more than I2C, mostly much for that reason. I2S <> I2C But your point is well taken. SPI is a lot easier to route than I2C, as well. Makes sense because SPI isn't a standard at all (make it what you want), where I2C is limited by design/specification.
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2017-06-20 14:07 -0700 |
| Message-ID | <521373d9-679c-499f-bf0b-8ca08536e08c@googlegroups.com> |
| In reply to | #465083 |
Den tirsdag den 20. juni 2017 kl. 22.47.33 UTC+2 skrev Joerg: > On 2017-06-19 18:28, krw@notreal.com wrote: > > On Mon, 19 Jun 2017 13:04:58 -0700 (PDT), Lasse Langwadt Christensen > > <langwadt@fonz.dk> wrote: > > > >> Den mandag den 19. juni 2017 kl. 02.30.12 UTC+2 skrev John Larkin: > >>> On Sun, 18 Jun 2017 14:00:56 -0700, Joerg <news@analogconsultants.com> > >>> wrote: > >>> > >>>> On 2017-06-18 13:51, John Larkin wrote: > >>>>> On Sun, 18 Jun 2017 13:12:18 -0700, Joerg <news@analogconsultants.com> > >>>>> wrote: > >>>>> > >>>>>> On 2017-06-16 13:57, Phil Hobbs wrote: > >>>>>>> So we had a bit of a layout screwup with an SPI ADC: the apparently very > >>>>>>> nice ADC122S625 dual 12-bit simultaneous-sampling, differential-input > >>>>>>> serial ADC. How bad a screwup? Well, the output has like 20 LSBs of > >>>>>>> junk on it. Blech. > >>>>>>> > >>>>>>> Weirdly, the junk is highly level-dependent. It's much less at outputs > >>>>>>> near zero and gets steadily worse towards half-scale. > >>>>>>> > >>>>>>> My theory is that the SDO pin is coupling through into the sampled input > >>>>>>> somehow, so that the change in the bit pattern is what's causing the > >>>>>>> difference. The conversion is clocked by SCLK, so transitions in the > >>>>>>> higher bits on SDO would cause errors earlier in the conversion, leading > >>>>>>> to worse noise. > >>>>>>> > >>>>>>> The solution would appear to be to put the analogue inputs in a Faraday > >>>>>>> cage made of pours, the way you do with SMPS wiring. > >>>>>>> > >>>>>>> Or am I nuts? It's supposed to be a _sampling_ ADC after all! > >>>>>>> > >>>>>> > >>>>>> To me this sounds like poor grounding and/or bypassing. Assuming the IC > >>>>>> designers didn't mess up. > >>>>>> > >>>>>> If you really suspect SPI pollution try AC termination at the far end of > >>>>>> the SDO line and AC termination at the ADC for SCLK. If you have only a > >>>>>> few inches of trace each then 33pF or 47pf in series with whatever the > >>>>>> microstrip calculator shows as line impedance should work. > >>>>> > >>>>> AC termination can have strange effects for a burst clock like SPI. > >>>> > >>>> > >>>> It shouldn't, as long as you do not make the capacitor unnecessarily large. > >>>> > >>>> > >>>>> Series termination at the source is probably better. > >>>>> > >>>> > >>>> Source can work as well but that requires cuts. It also requires that > >>>> the line impedance does not change much along the way. > >>>> > >>>> > >>>>> Good SPI chips have schmitts on all their inputs, but many don't. We > >>>>> have fixed flakey SPI interfaces by adding a 47 pF cap from SCLK to > >>>>> ground at the end, without ever understanding why. Scope probes > >>>>> sometimes fix (or break) SPI interfaces. > >>>>> > >>>> > >>>> Or a finger, after drinking 2-3 bottles of Belgian Tripel. It worked. > >>>> Now I brew my own Belgian Tripel. > >>>> > >>>> > >>>>> We did one parallel ADC to FPGA interface at 250 MHz and the FPGA guy > >>>>> got the clock edge wrong. It usually worked! > >>>>> > >>>> > >>>> I had a converter chip from a top notch manufacturer which only worked > >>>> with SCLK reversed. The app engineer was puzzled and suggested to leave > >>>> it that way. Luckily this was only a prototype system. > >>> > >>> > >>> SPI = Seriously Problematic Interface. > >>> > >>> Sometimes Proper Input > >> > >> the problem start with the expectation that SPI is a standard, it is really > >> just short hand for a couple of wires one of them probably a clock > > > > I2S has the same set of problems, in spades. > > > > Worse ones. There are real hang-ups that sometimes require "banging the > bus" or a power-cycle. So far I didn't have that with SPI and I used SPI > a lot more than I2C, mostly much for that reason. yeh one wrong glitch on I2C and you are stuck forever. afaiu that is one of the reasons for SMBus used on PC motherboards etc. it is basically I2C with a minium speed and a timeout
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2017-06-19 13:22 -0700 |
| Message-ID | <ea4c0963-b0d3-4495-b8af-967b4a031597@googlegroups.com> |
| In reply to | #464980 |
Den søndag den 18. juni 2017 kl. 22.51.50 UTC+2 skrev John Larkin: > On Sun, 18 Jun 2017 13:12:18 -0700, Joerg <news@analogconsultants.com> > wrote: > > >On 2017-06-16 13:57, Phil Hobbs wrote: > >> So we had a bit of a layout screwup with an SPI ADC: the apparently very > >> nice ADC122S625 dual 12-bit simultaneous-sampling, differential-input > >> serial ADC. How bad a screwup? Well, the output has like 20 LSBs of > >> junk on it. Blech. > >> > >> Weirdly, the junk is highly level-dependent. It's much less at outputs > >> near zero and gets steadily worse towards half-scale. > >> > >> My theory is that the SDO pin is coupling through into the sampled input > >> somehow, so that the change in the bit pattern is what's causing the > >> difference. The conversion is clocked by SCLK, so transitions in the > >> higher bits on SDO would cause errors earlier in the conversion, leading > >> to worse noise. > >> > >> The solution would appear to be to put the analogue inputs in a Faraday > >> cage made of pours, the way you do with SMPS wiring. > >> > >> Or am I nuts? It's supposed to be a _sampling_ ADC after all! > >> > > > >To me this sounds like poor grounding and/or bypassing. Assuming the IC > >designers didn't mess up. > > > >If you really suspect SPI pollution try AC termination at the far end of > >the SDO line and AC termination at the ADC for SCLK. If you have only a > >few inches of trace each then 33pF or 47pf in series with whatever the > >microstrip calculator shows as line impedance should work. > > AC termination can have strange effects for a burst clock like SPI. > Series termination at the source is probably better. > > Good SPI chips have schmitts on all their inputs, but many don't. We > have fixed flakey SPI interfaces by adding a 47 pF cap from SCLK to > ground at the end, without ever understanding why. Scope probes > sometimes fix (or break) SPI interfaces. > > We did one parallel ADC to FPGA interface at 250 MHz and the FPGA guy > got the clock edge wrong. It usually worked! the "wrong" clock edge depends on whether you need setup or hold
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highland_snip_technology.com> |
|---|---|
| Date | 2017-06-19 15:44 -0700 |
| Message-ID | <ugkgkclshk30ve0fj7tcpkkus5mbgqdgrl@4ax.com> |
| In reply to | #465027 |
On Mon, 19 Jun 2017 13:22:41 -0700 (PDT), Lasse Langwadt Christensen <langwadt@fonz.dk> wrote: >Den søndag den 18. juni 2017 kl. 22.51.50 UTC+2 skrev John Larkin: >> On Sun, 18 Jun 2017 13:12:18 -0700, Joerg <news@analogconsultants.com> >> wrote: >> >> >On 2017-06-16 13:57, Phil Hobbs wrote: >> >> So we had a bit of a layout screwup with an SPI ADC: the apparently very >> >> nice ADC122S625 dual 12-bit simultaneous-sampling, differential-input >> >> serial ADC. How bad a screwup? Well, the output has like 20 LSBs of >> >> junk on it. Blech. >> >> >> >> Weirdly, the junk is highly level-dependent. It's much less at outputs >> >> near zero and gets steadily worse towards half-scale. >> >> >> >> My theory is that the SDO pin is coupling through into the sampled input >> >> somehow, so that the change in the bit pattern is what's causing the >> >> difference. The conversion is clocked by SCLK, so transitions in the >> >> higher bits on SDO would cause errors earlier in the conversion, leading >> >> to worse noise. >> >> >> >> The solution would appear to be to put the analogue inputs in a Faraday >> >> cage made of pours, the way you do with SMPS wiring. >> >> >> >> Or am I nuts? It's supposed to be a _sampling_ ADC after all! >> >> >> > >> >To me this sounds like poor grounding and/or bypassing. Assuming the IC >> >designers didn't mess up. >> > >> >If you really suspect SPI pollution try AC termination at the far end of >> >the SDO line and AC termination at the ADC for SCLK. If you have only a >> >few inches of trace each then 33pF or 47pf in series with whatever the >> >microstrip calculator shows as line impedance should work. >> >> AC termination can have strange effects for a burst clock like SPI. >> Series termination at the source is probably better. >> >> Good SPI chips have schmitts on all their inputs, but many don't. We >> have fixed flakey SPI interfaces by adding a 47 pF cap from SCLK to >> ground at the end, without ever understanding why. Scope probes >> sometimes fix (or break) SPI interfaces. >> >> We did one parallel ADC to FPGA interface at 250 MHz and the FPGA guy >> got the clock edge wrong. It usually worked! > >the "wrong" clock edge depends on whether you need setup or hold The plan was to clock the data register of the receiving FPGA at the middle of the 4ns data window, with 2 ns of margin both ways. Instead it got clocked at the edge, just about the time the data was changing. It's astounding that it usually worked; I had to freeze spray the ADC to break it reliably. https://dl.dropboxusercontent.com/u/53724080/PCBs/ESM_rev_B.jpg The ADC is the smaller BGA near the center, and the big chip is the FPGA. All the data and clocks are LVDS. -- John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2017-06-19 16:07 -0700 |
| Message-ID | <ca776859-0700-4450-b8e3-aa5f17d67813@googlegroups.com> |
| In reply to | #465029 |
Den tirsdag den 20. juni 2017 kl. 00.44.47 UTC+2 skrev John Larkin: > On Mon, 19 Jun 2017 13:22:41 -0700 (PDT), Lasse Langwadt Christensen > <langwadt@fonz.dk> wrote: > > >Den søndag den 18. juni 2017 kl. 22.51.50 UTC+2 skrev John Larkin: > >> On Sun, 18 Jun 2017 13:12:18 -0700, Joerg <news@analogconsultants.com> > >> wrote: > >> > >> >On 2017-06-16 13:57, Phil Hobbs wrote: > >> >> So we had a bit of a layout screwup with an SPI ADC: the apparently very > >> >> nice ADC122S625 dual 12-bit simultaneous-sampling, differential-input > >> >> serial ADC. How bad a screwup? Well, the output has like 20 LSBs of > >> >> junk on it. Blech. > >> >> > >> >> Weirdly, the junk is highly level-dependent. It's much less at outputs > >> >> near zero and gets steadily worse towards half-scale. > >> >> > >> >> My theory is that the SDO pin is coupling through into the sampled input > >> >> somehow, so that the change in the bit pattern is what's causing the > >> >> difference. The conversion is clocked by SCLK, so transitions in the > >> >> higher bits on SDO would cause errors earlier in the conversion, leading > >> >> to worse noise. > >> >> > >> >> The solution would appear to be to put the analogue inputs in a Faraday > >> >> cage made of pours, the way you do with SMPS wiring. > >> >> > >> >> Or am I nuts? It's supposed to be a _sampling_ ADC after all! > >> >> > >> > > >> >To me this sounds like poor grounding and/or bypassing. Assuming the IC > >> >designers didn't mess up. > >> > > >> >If you really suspect SPI pollution try AC termination at the far end of > >> >the SDO line and AC termination at the ADC for SCLK. If you have only a > >> >few inches of trace each then 33pF or 47pf in series with whatever the > >> >microstrip calculator shows as line impedance should work. > >> > >> AC termination can have strange effects for a burst clock like SPI. > >> Series termination at the source is probably better. > >> > >> Good SPI chips have schmitts on all their inputs, but many don't. We > >> have fixed flakey SPI interfaces by adding a 47 pF cap from SCLK to > >> ground at the end, without ever understanding why. Scope probes > >> sometimes fix (or break) SPI interfaces. > >> > >> We did one parallel ADC to FPGA interface at 250 MHz and the FPGA guy > >> got the clock edge wrong. It usually worked! > > > >the "wrong" clock edge depends on whether you need setup or hold > > The plan was to clock the data register of the receiving FPGA at the > middle of the 4ns data window, with 2 ns of margin both ways. Instead > it got clocked at the edge, just about the time the data was changing. I'd say that was they right edge, the hold time on an FF is usually zero or slightly negative so you want to maximize the setup time and just make sure that the wire etc. delay on the clock is never longer than on the data
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2017-06-19 21:03 -0700 |
| Message-ID | <gb7hkc53m5p8mtkdifb4l716spna6j695u@4ax.com> |
| In reply to | #465031 |
On Mon, 19 Jun 2017 16:07:26 -0700 (PDT), Lasse Langwadt Christensen <langwadt@fonz.dk> wrote: >Den tirsdag den 20. juni 2017 kl. 00.44.47 UTC+2 skrev John Larkin: >> On Mon, 19 Jun 2017 13:22:41 -0700 (PDT), Lasse Langwadt Christensen >> <langwadt@fonz.dk> wrote: >> >> >Den søndag den 18. juni 2017 kl. 22.51.50 UTC+2 skrev John Larkin: >> >> On Sun, 18 Jun 2017 13:12:18 -0700, Joerg <news@analogconsultants.com> >> >> wrote: >> >> >> >> >On 2017-06-16 13:57, Phil Hobbs wrote: >> >> >> So we had a bit of a layout screwup with an SPI ADC: the apparently very >> >> >> nice ADC122S625 dual 12-bit simultaneous-sampling, differential-input >> >> >> serial ADC. How bad a screwup? Well, the output has like 20 LSBs of >> >> >> junk on it. Blech. >> >> >> >> >> >> Weirdly, the junk is highly level-dependent. It's much less at outputs >> >> >> near zero and gets steadily worse towards half-scale. >> >> >> >> >> >> My theory is that the SDO pin is coupling through into the sampled input >> >> >> somehow, so that the change in the bit pattern is what's causing the >> >> >> difference. The conversion is clocked by SCLK, so transitions in the >> >> >> higher bits on SDO would cause errors earlier in the conversion, leading >> >> >> to worse noise. >> >> >> >> >> >> The solution would appear to be to put the analogue inputs in a Faraday >> >> >> cage made of pours, the way you do with SMPS wiring. >> >> >> >> >> >> Or am I nuts? It's supposed to be a _sampling_ ADC after all! >> >> >> >> >> > >> >> >To me this sounds like poor grounding and/or bypassing. Assuming the IC >> >> >designers didn't mess up. >> >> > >> >> >If you really suspect SPI pollution try AC termination at the far end of >> >> >the SDO line and AC termination at the ADC for SCLK. If you have only a >> >> >few inches of trace each then 33pF or 47pf in series with whatever the >> >> >microstrip calculator shows as line impedance should work. >> >> >> >> AC termination can have strange effects for a burst clock like SPI. >> >> Series termination at the source is probably better. >> >> >> >> Good SPI chips have schmitts on all their inputs, but many don't. We >> >> have fixed flakey SPI interfaces by adding a 47 pF cap from SCLK to >> >> ground at the end, without ever understanding why. Scope probes >> >> sometimes fix (or break) SPI interfaces. >> >> >> >> We did one parallel ADC to FPGA interface at 250 MHz and the FPGA guy >> >> got the clock edge wrong. It usually worked! >> > >> >the "wrong" clock edge depends on whether you need setup or hold >> >> The plan was to clock the data register of the receiving FPGA at the >> middle of the 4ns data window, with 2 ns of margin both ways. Instead >> it got clocked at the edge, just about the time the data was changing. > >I'd say that was they right edge, the hold time on an FF is usually zero or >slightly negative so you want to maximize the setup time and just make >sure that the wire etc. delay on the clock is never longer than on the >data > > > > That LTC2242 ADC outputs a regenerated clock that matches the data timing, all LVDS, so you don't have to worry about the relative timing from the FPGA clock out to the ADC data coming back in. That helps enormously. All the ADC-related logic is clocked from the ADC itself. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-06-19 23:12 -0400 |
| Message-ID | <oia3k2$qib$1@dont-email.me> |
| In reply to | #465029 |
John Larkin wrote on 6/19/2017 6:44 PM: > On Mon, 19 Jun 2017 13:22:41 -0700 (PDT), Lasse Langwadt Christensen > <langwadt@fonz.dk> wrote: > >> Den søndag den 18. juni 2017 kl. 22.51.50 UTC+2 skrev John Larkin: >>> On Sun, 18 Jun 2017 13:12:18 -0700, Joerg <news@analogconsultants.com> >>> wrote: >>> >>>> On 2017-06-16 13:57, Phil Hobbs wrote: >>>>> So we had a bit of a layout screwup with an SPI ADC: the apparently very >>>>> nice ADC122S625 dual 12-bit simultaneous-sampling, differential-input >>>>> serial ADC. How bad a screwup? Well, the output has like 20 LSBs of >>>>> junk on it. Blech. >>>>> >>>>> Weirdly, the junk is highly level-dependent. It's much less at outputs >>>>> near zero and gets steadily worse towards half-scale. >>>>> >>>>> My theory is that the SDO pin is coupling through into the sampled input >>>>> somehow, so that the change in the bit pattern is what's causing the >>>>> difference. The conversion is clocked by SCLK, so transitions in the >>>>> higher bits on SDO would cause errors earlier in the conversion, leading >>>>> to worse noise. >>>>> >>>>> The solution would appear to be to put the analogue inputs in a Faraday >>>>> cage made of pours, the way you do with SMPS wiring. >>>>> >>>>> Or am I nuts? It's supposed to be a _sampling_ ADC after all! >>>>> >>>> >>>> To me this sounds like poor grounding and/or bypassing. Assuming the IC >>>> designers didn't mess up. >>>> >>>> If you really suspect SPI pollution try AC termination at the far end of >>>> the SDO line and AC termination at the ADC for SCLK. If you have only a >>>> few inches of trace each then 33pF or 47pf in series with whatever the >>>> microstrip calculator shows as line impedance should work. >>> >>> AC termination can have strange effects for a burst clock like SPI. >>> Series termination at the source is probably better. >>> >>> Good SPI chips have schmitts on all their inputs, but many don't. We >>> have fixed flakey SPI interfaces by adding a 47 pF cap from SCLK to >>> ground at the end, without ever understanding why. Scope probes >>> sometimes fix (or break) SPI interfaces. >>> >>> We did one parallel ADC to FPGA interface at 250 MHz and the FPGA guy >>> got the clock edge wrong. It usually worked! >> >> the "wrong" clock edge depends on whether you need setup or hold > > The plan was to clock the data register of the receiving FPGA at the > middle of the 4ns data window, with 2 ns of margin both ways. Instead > it got clocked at the edge, just about the time the data was changing. > It's astounding that it usually worked; I had to freeze spray the ADC > to break it reliably. > > https://dl.dropboxusercontent.com/u/53724080/PCBs/ESM_rev_B.jpg > > The ADC is the smaller BGA near the center, and the big chip is the > FPGA. All the data and clocks are LVDS. It usually worked because the aperture time of an FPGA input is very short. It will only screw up when you cross that aperture. Clocking at about the time it changes will only make it fail if the data changes nearly on the aperture so some of the data changes before the aperture time and some changes after the aperture time. I don't know about the inputs compared to the internal FFs, but the alleged aperture windows of the FFs in a modern FPGA are supposed to in the fs range, but I should look that up as it has been a while since I read it. My browser isn't working at the moment. -- Rick C
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | sci.electronics.design
csiph-web