Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #465051

Re: ADC layout screwup

From rickman <gnuarm@gmail.com>
Newsgroups sci.electronics.design
Subject Re: ADC layout screwup
Date 2017-06-19 23:12 -0400
Organization A noiseless patient Spider
Message-ID <oia3k2$qib$1@dont-email.me> (permalink)
References <KOKdnXfU-4O329nEnZ2dnUU7-T3NnZ2d@supernews.com> <eqo553F2vtjU1@mid.individual.net> <1ipdkcpng932b6r2qsb9pikaufc87k2h30@4ax.com> <ea4c0963-b0d3-4495-b8af-967b4a031597@googlegroups.com> <ugkgkclshk30ve0fj7tcpkkus5mbgqdgrl@4ax.com>

Show all headers | View raw


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

Back to sci.electronics.design | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

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

csiph-web